How to use resource bundles?

I have a requirement to translate the test that appears on the custom buttons of my portal application. I know resource bundles are part of .properties file that are delivered in Classes floder. But i am not sure how should i make use of this in translating the button text. It would be grate if someone knows it. I will be  very helpfull.
Regards,
Ameya

Hi Ameya,
[This link|http://help.sap.com/saphelp_nw04/helpdata/en/74/641640b7b6dd5fe10000000a155106/frameset.htm] will provide you information on how to implement Portal Content Translation.
[This link|http://help.sap.com/saphelp_nw04/helpdata/en/62/8b1d40bb37e569e10000000a155106/frameset.htm] will explain how to create and access Resource Bundles (read the entire chapter).
Hope it helps,
Roy
Edited by: Roy Cohen on Nov 26, 2008 3:21 PM

Similar Messages

  • How to use resource bundle entries for column names/title in .rpt file

    <p>Our application needs to be able to support reporting in multiple languages. Hence we do not want to put language specifiec column names in the rpt file but rather use text for a particular locale during runtime which in java world is easily achievable using Resource Bundle entries.</p><p>Does JRC allow for using resource bundle entries as column names or for that matter for titles etc. in the .rpt file?</p>

    Hi,
       You can follow this step-by-step tutorial to find out how to achieve this using our User Function Libraries (UFLs). The walkthrough can be found here:
    <a href="http://diamond.businessobjects.com/node/412">http://diamond.businessobjects.com/node/412</a>
    Regards,<br />Sean Johnson (CR4E Product Manager) <br /><br /> <a href="http://www.eclipseplugincentral.com/Web_Links-index-req-ratelink-lid-639.html">Rate this plugin @ Eclipse Plugin Central</a>

  • How could i use resource bundle in managed bean instead of harding coding?

    component is created in managed bean programmatically, so how to set attributes(e.g. text, value) using resource bundling instead of hard coding, as like coding on the page directlly?
    Thanks for your help!
    Kevin.

    component is created in managed bean programmatically, so how to set attributes(e.g. text, value) using resource bundling instead of hard coding, as like coding on the page directlly?
    Thanks for your help!
    Kevin.

  • Problem in using resource bundle in labels and error message

    Hi All,
    Anyone please help me to fix the problem.
    Actually i am using resource bundle for displaying labels in the jspx, since i developing the page for multilingual that's why i am using bundle in the label attribute.
    When i throw the validation error its displaying like this
    com.sun.faces.el.ValueBindingImpl@106cf24 - Value required.
    How can i fix the code in order display like this
    PO Number - Value required.
    Kindly provide the syntax and changes to be done or sample code.
    Thanks & Regards
    Vimalan Balan

    Hi,
    how do you throw the validation error? Are you adding the message explicitly or what doyou do ? Note that if you reference a binding in your validation then the binding needs to be referenced either by bindings.attr.label or bindings.attr.inputValue.
    Frank

  • How to configure resource bundle in facescontext.xml in JSF

    I have to take each label from the resource bundle in my web application, so how to configure resource bundle in JSF and how to use it, so please help me.....

    Follow the below mentioned steps ::
    1) make a properties file say mymessages.properties alongwith your java files. Put content like
    click=Click Me !!!
    #where click is the key and Click Me !!! is the actual value that needs to be displayed
    2) Add in faces-config.xml like this ::
    <application>
              <message-bundle>mymessages.mymessages</message-bundle>
         </application>     
    3) Use in your jsp page like this ::
    <f:view>
    <f:loadBundle basename="mymessages/mymessages" var="msg"/>
    hello :: <h:commandButton value="#{msg.click}" onclick="callJavaMethod()"></h:commandButton>
    </f:view>

  • Best practices for building menus using resource bundles?

    Greetings; I am curious to find out what the current best practices people are using to build menus/menu bars using resource bundles, specifically ListResourceBundle.
    What I am trying to figure out is how best to write my Swing application so it does not need to know what menu items it needs to grab from the resource bundle.
    The only idea I have come up with is this:
    class MyBundle extends ListResourceBundle {
    private Object[][] contents = {
            {"menubar", { {"menu.file.item", "blah"}, ....} }
    }Inside the GUI class:
    Object[][] menubar = resourceBundle.getObject("menubar");I would then iterate over the menu bar items and build the menu. I would have to use a naming scheme and then parse appropriately to know when to start a new menu, when a submenu occurs, etc.
    Is this the common practice, or does anyone know of a more clever way of doing this? I've searched various FAQs and googled about, but I have yet to come across any sort of tutorial or page that covers this.

    Anyone have any input on this? Am I close to the solution people are
    using out in real production environments?

  • Problem using Resource Bundle in XSLT File

    Hi All,
    I've been trying to use Resource Bundle on my XSLT file with no success for the last 2 weeks. So I would like some help to definitely end this problem.
    The fact is that i have a property file that i would like to read and it works fine when i use jsp or a servlet however when i try to call the same property file using my XSL i get the message below:
    java.util.MissingResourceException: Can't find bundle for base name thoth, locale en_US
    Follow the code from my Stylesheet that i'm calling the resource bundle:
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:java="java.util.ResourceBundle" exclude-result-prefixes="java" version="1.0">
    <xsl:strip-space elements="*"/>
    <xsl:output method="html" indent="yes" version="4.0"/>
    <xsl:output encoding="ISO-8859-1"/>
    <xsl:template match="page">
    <html>
    <body>
    <xsl:apply-templates select="paragraph"/>
    <xsl:variable name="resources" select="java:getBundle('thoth')"/>
    <xsl:value-of select="java:getString($resources,'general.title')"/>
    </body>
    </html>
    </xsl:template>
    </xsl:stylesheet>
    Please someone could help me why this file cannot be located, I am 100% of sure the property file path is in my classpath since it works fine in a servlet. Should i have to put it some other place? Do i have some other way to read this file and show the information from the file?
    I would appreciate any help
    thanks in advance and Regards
    Fabio

    Please someone could help me why this file cannot be located, I am 100% of sure the property file path is in my classpath since it works fine in a servlet.
    Is the property file in your classpath? or whether the directory where the property file is residing is in your classpath. Please put only the directory where the property file is located in the classpath and try again.
    It may be working fine with the servlet because j2ee servlet containers put the classes and lib directory automatically in the classpath therefore resource bundle gets loaded even without putting it explicitly in the classpath. This doesn't happen when you try to test some component from the console.
    Let me know if this does not work.
    regards,
    Abhishek.

  • Using resource bundler with a specific encoding type

    Hi All,
    Using resource bundler class in Java one can pass the key and get the appropriate string value for that in appropriate language. These strings can be stored in a class (BuldlerList) or in some file.
    My doubt is can I specify the encoding type of the string while passing the key ?
    This might be needed in a case like follows. Say I have a Java Swing application for which I want to get the labels in appropriate language. The application is Windows based. The methods in resource buldler class while getting the string value for a key uses platform's default encoding type. So if I store my file containing all the resource bundler in UTF-8 I can't read them properly from an Windows 2000 system having Japanese as the locale. The constraint is that you can never make Windows default platform encoding as UTF-8 (or something equivalent for Unicode). In that case one cannot developed a truly internationalised application in this frame work.
    Any comments/suggestion/input will be highly appreciated.
    Thanks,
    Sourav

    I dunno 'bout the bundles BUT u can possiblly use XML
    instead.
    u can have a attribute type that specifies the encoding
    type for the content. This will be a totally application
    specific approach BUT it will work.. that much I am sure
    of. IF u read this attribute in your application first and
    then read the value, in that pre-specified encoding, ur
    problem could be solved.
    Just like resource bundles, XML files will be stored in
    local machines only. The only thing is u need a
    JAXP API for processing them.
    aXe!

  • How to use resource servlet ?

    Hi all,
    Does any body know know how to use resource servlet to share resources (xsd, wsdl etc) in OSB ? Kindly provid eme witht the steps
    Thank you.

    Hi Eric,
    We can share the resource in the following way, but unfortunately OEPE doesnt accept http urls in schemaLocation arrtibute
    How can I get the WSDL/Policy/MFL/Schema/Proxy via HTTP?
    You can retrieve many of the resource types directly from the OSB server by using HTTP instead
    of needing to use the service bus console. The general pattern for the URL is as follows:
    http://[hostname]:[port]/sbresource?[Resource Type]/[Project Name]/[Resource Name]
    CHAPTER 18 ■ HOW DO I . . . ? 477
    The [Resource Type] section of the URL may be any one of the following values:
    • BIZ
    • MFL
    • POLICY
    • PROXY
    • SCHEMA
    • WSDL
    The URL must be UTF-8 encoded. If the resource is stored in a directory, then the directory
    structure needs to be declared explicitly in the URL also.
    For example, in the Hello World project in Chapter 4 of this book, we defined aWSDL resource
    in the WSDL folder of the project. The name of that WSDL resource is set to HelloWorld. To retrieve
    this WSDL, you would use the following URL:
    http://localhost:7001/sbresource?WSDL/Hello+World/WSDL/HelloWorld

  • 11gR2 Connector not using resource bundle

    Hi All,
    Creating a custom connector based on DBAT.
    I made sure the values in the properties file were changed to match the names I used on the name parameter for the provider definitions. After the install the new provider names seemed to work
    but nothing else. so I ran the download resource script made a few changes and ran the upload resource script and now nothing is working.
    after running the upload the provider names in the drop down when creating the GTC are now the values from the name parameter and not the values in the resource bundle :(
    so how can I test these bundles without do re-installs?
    and how do you create an uninstall for the connector?
    Thanx in advance
    Fred

    TemplateEmailSender will render the JSP using the normal servlet pipeline i.e Thus, the template page is rendered simply as if it were a JSP page requested through a browser. In this case, the locale will be identified from the HTTP-HEADER (in an email case, the locale might be created using the Profile.locale property) and if it is null it will look for /atg/dynamo/servlet/RequestLocale.defaultRequestLocaleName.
    Check the Profile.locale and RequestLocale.defaultRequestLocaleName, you might be getting this issue because of the value is null here.
    Cheers
    R

  • How To Change Resource Bundle file's data from Java Class

    Hi
    i have used below code for accessing Resource Bndle from Java Class but here i also want to make change in a particular key and its value.
    please let me know the code i should use to make changes in Resource Bundle file's key and value and saving the same in the file.
    package test;  import java.util.Enumeration;
    import java.util.ResourceBundle;
    public class ResourceBundleTest {
    public static void main(String[] args) {
    ResourceBundle rb = ResourceBundle.getBundle("test.bundletest.mybundle");
    Enumeration <String> keys = rb.getKeys();
    while (keys.hasMoreElements()) {
    String key = keys.nextElement();
    String value = rb.getString(key);
    System.out.println(key + ": " + value);
    Thanks

    With further debugging, I noticed the following line only works in integrated WLS but not in standalone WLS
    resourceBundle = ResourceBundle.getBundle("com.myapp.MyMappings");
    I confirmed the corresponding properties file was included properly in the EAR file but the standalone WLS failed to find the properties file at runtime.
    Why did the standalone WLS class loader (must be the same as the integrated WLS) failed to find the properties file deployed under the WEB-INF/classes path in the EAR file?
    The above line was in a POJO class which has the same classpath as the properties file ie. com.myapp.MappingManager.class.
    It was strange that the class loader could load the POJO class but unable to find the com.myapp.MyMappings.properties in the same classpath!!!
    Is this a bug in standalone WLS?
    Edited by: Pricilla on May 26, 2010 8:52 AM
    Edited by: Pricilla on May 26, 2010 9:01 AM

  • How to use SKU Bundle Links?

    Hi,
    I'm trying to create a bundle with 2 sku skulinks in crs, but I am not able to make the purchase of the items contained in skulinks in my bundle sku by crs.
    The manual that follows this http://docs.oracle.com/cd/E22630_01/Platform.1002/pdf/ATGCommStoreGuide.pdf page 19.
    Anyone know how to use skulink and skubundle?

    Hi <h:selectOneMenu is not working properly for my. My code is as follow
    JSP code
    <h:selectOneMenu styleClass="selectOneMenu" id="slcAccountIDList" value="#{pc_AccountSelectionPortletView.defaultAccountID}" >
         <f:selectItems id="itmsAccountID" value="# pc_AccountSelectionPortletView.accountIDList}"/>
    <h:selectOneMenu
    view bean code
    private String defaultAccountID = "1";
    List accountIDList = new ArrayList();
    accountIDList.add(new SelectItem("123244", "123244"));
    accountIDList.add(new SelectItem("101", "1011"));
    accountIDList.add(new SelectItem("102", "1022"));
    View bean has a session scope. I am not able to get the selected value.i,e in drop down when i select 101 and clicks on submit button i am not able to get the 101 value in defaultAccountID variable. Please tell where is the problem.
    Thanks
    Monu

  • How to use ES  bundles (with or without PI)?

    Hello Experts,
    I am new to this forum and this is my first question
    I am currently working in a landscape comprising of ECC 6.0 EHP4 and APO systems. We do not have SAP PI installation.
    I wanted to know the right way forward to get SOA enablement.
    I understand that Service enablement is two fold (Please correct me if I am wrong):
    1) 'Inside out' (from FMs) for which the WS runtime engine of the AS is sufficient. The services thus generated can be consumed directly from other SAP systems (within our landscape only??) or from a frontend app which can conume services (probably a widget developed in .NET with a cool UI).
    2) 'Outside In' where services are modeled in PI/  OR standard SAP services (ES bundles) can be used.
    My question , more precisely, is if we need SAP NW PI to use these ES bundles from the service marketplace.
    If No, the how can it be done?????
    If yes, then do the Business objects to which these services are related to also provided along with this content??? And do these business objects correspond the the ones whihc are available in the Business Object Repository in the backend???
    Is there any other alternative to getting SOA enabled without actually having to instal SAP Nwtweaver PI??
    I am really looking forward to some interesting answers from the experts on this forum.
    Thank you well in advance. Regards,
    Amith

    > So, is it right if I say that the services available in the backend are already implemented? And just creating an endpoint for them would make them ready for use?
    Yes: kind of instant services 
    > Also if I consume a service, say, 'CreateSalesOrder_In' for example, will it create entries in all my Sales order relevant tables (VBAK, VBAP) automatically using a BAPI internally?
    The service has the task to do all necessary steps, whether with or without using a BAPI.
    > Actually,  I have these doubts because during my time at SAP Labs (for the composites team in BusinesByDesign), I used to create business objects in the ESR and create an implementation for the same in the backend using BOPF. But now, in the customer scenario, where a full fledged ECC implementation is used, I am unaware as to how the services would update the tables or even read the relevant data.
    My consumer view on aservice is that I do not have to know how the service works, just need to know how to call it.
    Regards, Boris

  • How to implement resource bundle in Arabic

    In my project we are using English and French language.. Now the Arabic language has to be used.. Did any one have idea of using Arabic in core java.

    Follow the below mentioned steps ::
    1) make a properties file say mymessages.properties alongwith your java files. Put content like
    click=Click Me !!!
    #where click is the key and Click Me !!! is the actual value that needs to be displayed
    2) Add in faces-config.xml like this ::
    <application>
              <message-bundle>mymessages.mymessages</message-bundle>
         </application>     
    3) Use in your jsp page like this ::
    <f:view>
    <f:loadBundle basename="mymessages/mymessages" var="msg"/>
    hello :: <h:commandButton value="#{msg.click}" onclick="callJavaMethod()"></h:commandButton>
    </f:view>

  • How to use resource of in Webcenter Space into one of its Child Spaces

    I have a requirement for using the Spaces resources(Navigation Model,Skin ) that are created at the Sub Space level to be used in the Child Sub Spaces.
    For eg.,
    Consider the example where i have a sub Space "A". This space has the Resources like navigation N1, Skin S1 and Page template P1 created at the scope of the Space. Also this Space has 3 Sub Spaces, A1,A2,A3.
    My requirement is to use the Navigation model "N1" ,Skin "S1" and Page template "P1" of the Parent Space "A" at the Sub Space level with the Spaces "A1","A2","A3"
    Regards,
    Hardik

    For some resources this is possible like the navigation model. When you edit a navigation model, you can add the navigation model of a different space to the current navigation model. Just select navigation model reference when editing a navigation model and you should be able to select whatever space you want.
    Resources like resource catalog, page templates and skins can not be selected from the parent.
    There is, however a workaround for this and that is creating your resource at the highest level possible in spaces. This is done in the resource section in the administration section of webcenter spaces. Not the admin of a specific space, the admiinistration section of the environment. From there you shoiuld be able to create navigation models, skins, resource catalogs and so on that can be used in every space.

Maybe you are looking for

  • IPad can't get out of recovery mode.

    I literally have done everything I can think of. TinyUmbrella can't even detect the iPad. It detected my iPhone in like a second though. Dr. Wonderfone and Recboot simply can't work for some reason. When I try to restore using the normal way over itu

  • Integrating an SCM within Forte

    Good morning, Could someone tell me if they have had any luck integrating a third-party software configuration management system (such as PVCS Version Manager) with Forte? If so, could you share enough information with which I can begin such an endea

  • Serial number for install

    I purchased Photoshop Elements 11 & Premiere Elements 11 on December 2012. I am just now wanting to do the installation. I dont know why did I waited so long, its just but been a hectic year. I see now that Elements 12 is available. Should I not even

  • Force Active Directory Users to Log Into a Shared Local Profile.

    I've searched long and hard for an answer to this but I've found very little info on it so I'm starting to wonder if it's at all possible. On some of our "Presenter PC's" at work it has been deemed that the creation of a new account from the Default

  • Fx 5900 ultra flickering fix

    if you have the problem http://www.nvnews.net/vbulletin/showindex.php?s=&postid=190078#post190078 NVIDIA was made aware of an issue involving the GeForce FX 5900 series of graphics cards where some users have reported a slight "flickering" of the ima