Wrong default resource bundle is retrieved, anyone?

Hi,
i have defined resource bundle files for localizing purpose, which i define:
localization.properties
localization_da.properties (danish language)
localization_sv.properties (swedish language)
By default for all other languages than danish & swedish, it should use the localized texts from localization.properties
However i have a weird scenario: i created a user with English language.
On the development server, the user uses the localization.properties
On the test server, the user (with english and all other languages than da/sv) uses the localization_da.properties INSTEAD!?!?
I found the
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/42/938297a5061d69e10000000a1553f6/frameset.htm">Lookup of Recource Bundle</a>, which is quite useful but didn't help resolve this problem.
As it states the locale is determined by the following priorities:
1. Component locale (there's no setting in this case)
2. Portal mandatory localte (no setting neither)
3. User locale (i have set the bebud info and it shows correctly that user has EN language)
4. Request locate (the request.getLocale also shows the EN language which is correct)
5. Portal default locale (i checked prtDefault.properties file in both servers, it both set to EN/US as default setting)
6. System default locale
- Anyone know how to check JVM default language?
I checked the windows language setting, both have EN as default so no different in this case neither.
So how can one server uses the correct resource and another use the wrong resource still, any ideas??
Are there any other settings i haven't checked yet? Any helps will be very appreciated.
I think about my work around is to have only 3 resource files:
localization_en.properties (english and other languages)
localization_da.properties (danish language)
localization_sv.properties (swedish language)
but i don't sure if it's possible to have no default localization.properties file?

Hi Matt,
> but i don't sure if it's possible to have
> no default localization.properties file?
No, that leads to an exception if the language determined for a user is not reflected by some bundle file. You can still duplicate the localization_en.properties file to localization.properties.
Anyhow, if - for whatever reason - the bundle localization_da.properties got selected for a certain user, it probably also will be selected if you provide additional property files...
Hope it helps
Detlev

Similar Messages

  • ADF:  Translated XLIFF Resource Bundle not Selected at Runtime

    Issue: When I run my ADF app in a web browser where French is selected as the default language, the labels on the form are still populated with English text from the default resource bundle, even though an XLIFF resource bundle for French exists.
    Details: I have created a default XLIFF resource bundle containing the text for all labels on my form in English, called labels.xlf. I have also created two translated XLIFF bundles for French and German and named them labels_fr.xlf and labels_de.xlf, respectively.
    On my form, I have used value expressions to retrieve the text for each component's label, like label="#{res.language}. JDeveloper added '<c:set var="res" value="#{adfBundle['oracle.fosxliff.uitest.labels']}"/>' to the top of my page, so I could access the resource bundle text. Identifying the resource bundle in the faces-config.xml file does not work. However, I did define which locales are supported by my application in this config file.
    *NOTE:* When I access these sames resource bundles in a managed bean by utilizing the locale of the UIViewRoot, the correct XLIFF file is retrieved and the translated text is correctly assigned to my components on the form.
    Is there some other configuration that I am missing? I was expecting XLIFF files to work similarly to properties files, which do work correctly regardless of whether the text is accessed using value expressions or managed beans.

    Ok, I've found the answer.
    I've added translatable custom properties on the view implemention
    and access these in the code...

  • Resource bundle naming issue across platforms

    Sorry, but there's no issue anymore. After a complete restart of the windows server it now accepts lowercase "da".
    We're using resource bundles to internationalize our app for English and Danish users. The default resource bundle is named "ViewControllerBundle" and the Danish bundle is named "ViewControllerBundle_DA" (on windows at least).
    Our problem occurs, when we deploy the application on different platforms. At the moment we have Weblogic 10.3.5 running on Linux and on Windows. Our development environment (JDeveloper 11.1.2) is running on Windows.
    When we deploy the application on Weblogic/Linux we need to rename the Danish resource bundle to lowercase "da", like "ViewControllerBundle_da".
    When we deploy on Windows or runs the application from JDeveloper we need to name the Danish resource bundle with uppercase "DA", like "ViewControllerBundle_DA".
    If we don't rename the bundles we're not able to display danish labels etc.
    I would like to know, whether we are naming the bundle the right way or whether it is possible to avoid this manual renaming before deploy. We would like to use the same EAR file for all the servers, if possible.
    From faces-config:
    <locale-config>
    <default-locale>da_DK</default-locale>
    <supported-locale>da_DK</supported-locale>
    <supported-locale>en_GB</supported-locale>
    </locale-config>
    Edited by: wmjaboj on 2011-08-30 02:45

    b) In some parts on our website, we need to show data, depending on an attribute in a user's profile. So, for instance, if the user is not an administrator, the address shouldn't be shown when his profile is shown to a regular user. Is there an elegant way to solve this? I'm a Struts programmer (first JSF project) and normally you do <c:if test="${}">, but that's not possible in JSF :-).You can certainly use JSTL in JSF. You need at least JSF 1.2 at a JSP 2.1 environment and JSTL 1.2. Google for "unified EL" in Sun.com. But if you want to use a JSF-only solution, then make use of the 'rendered' attribute which is supported by every JSF HTML component and a few JSF core components. It accepts a boolean expression and when it evaluates to true, then the component will be rendered in the view.
    E.g.<h:panelGroup rendered="#{user.admin}">
        <h:outputText value="I am an admin." />
    </h:panelGroup>where the User bean look likepublic class User {
        public boolean isAdmin() {
            return admin;
    }Here are some more EL examples which you can use in the 'rendered' attribute:<h:someComponent rendered="#{myBean.booleanValue}" />
    <h:someComponent rendered="#{!myBean.booleanValue}" />
    <h:someComponent rendered="#{myBean.intValue > 10}" />
    <h:someComponent rendered="#{myBean.objectValue == null}" />
    <h:someComponent rendered="#{myBean.stringValue != 'someValue'}" />
    <h:someComponent rendered="#{!empty myBean.collectionValue}" />
    <h:someComponent rendered="#{!myBean.booleanValue && myBean.intValue != 0}" />
    <h:someComponent rendered="#{myBean.stringValue == 'oneValue' || myBean.stringValue == 'anotherValue'}" />

  • Resource bundle option changing

    Hie
    I started my ADF project with default resource bundle settings.. like using .properties files
    In the middle of the development if I switch to .xilff option then what would happen to my existing .properties files? will they be migrated automatically?
    will they be still compatible with new option ?

    any updates on this please?

  • Default lookup of resource bundle is wrong ?

    Hi,
    i have defined resource bundle files for localizing purpose, which i define:
      localization.properties
      localization_da.properties (danish language)
      localization_sv.properties (swedish language)
    By default for all other languages than danish & swedish, it should use the localized texts from localization.properties
    However i have a weird scenario: i created a user with English language.
    On the development server, the user uses the localization.properties
    On the test server, the user (with english and all other languages than da/sv) uses the localization_da.properties INSTEAD!?!?
    I found the
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/42/938297a5061d69e10000000a1553f6/frameset.htm">Lookup of Recource Bundle</a>, which is quite useful but didn't help resolve this problem.
    As it states the locale is determined by the following priorities:
    1. Component locale (there's no setting in this case)
    2. Portal mandatory localte (no setting neither)
    3. User locale (i have set the bebud info and it shows correctly that user has EN language)
    4. Request locate (the request.getLocale also shows the EN language which is correct)
    5. Portal default locale (i checked prtDefault.properties file in both servers, it both set to EN/US as default setting)
    6. System default locale
       - Anyone know how to check JVM default language?
       I checked the windows language setting, both have EN as default so no different in this case neither.
    So how can one server uses the correct resource and another use the wrong resource still, any ideas??
    Are there any other settings i haven't checked yet? Any helps will be very appreciated.
    I think about my work around is to have only 3 resource files:
      localization_en.properties (english and other languages)
      localization_da.properties (danish language)
      localization_sv.properties (swedish language)
    but i don't sure if it's possible to have no default  localization.properties file?

    Hi,
    +"But what is the point of having Bundle class for let say EO"+
    The point is to allow applications to be translated into multiple languages so that - based on the user language setting - the application runs with native labels. This works well with the default properties or Java resource bundle in ADF BC. So what doesn't work is the solution you copied from the AMIS blog and you may want to reach out to them if this works for them and if not why. Oracle support is correct in that they cannot support 3rd party samples and demos
    Frank

  • Cannot retrieve resource bundle

    Hello all, I need some help with obtaining my resource bundle. I'm fairly
              new to JCA so please bear with me. I would like to get my resource bundle
              for my logging messages. I'm using Log4J with Weblogic 7.0 SP1.
              I had an ear file containing several resrouce adapters. Here's a sample
              makeup of the ear file:
              application.ear:
              config/log4j.properties
              config/log4j_resourceBundle.properties
              ra1.rar
              ra2.rar
              webapp1.rar.
              Each of the resource adapters and the web applications have a reference to
              the config directory within MANIFEST.MF:
              Class-Path: config
              Now at startup, I try to get my resource bundle using the following line:
              try {
              ResourceBundle bundle = ResourceBundle.getBundle(bundleName,
              Locale.getDefault(), Thread.currentThread().getContextClassLoader());
              logger.setResourceBundle(bundle);
              } catch (MissingResourceException mre) {
              System.out.println("Missing Resource Bundle : " +
              bundleName);
              Every time I try to get the resource bundle within my rar file, I keep
              getting the println statement. Within my EJBs and web applications, this
              piece of code works and is able to get the resource bundle. It's only the
              RAR file which has trouble doing so.
              Can anyone help me out here? Any help would be appreciated.
              Sundeep Kapadia
              

              Hi Sundeep Kapadia,
              "Sundeep" <[email protected]> wrote:
              >Hello all, I need some help with obtaining my resource bundle. I'm fairly
              >new to JCA so please bear with me. I would like to get my resource bundle
              >for my logging messages. I'm using Log4J with Weblogic 7.0 SP1.
              >
              >I had an ear file containing several resrouce adapters. Here's a sample
              >makeup of the ear file:
              >
              >application.ear:
              >
              > config/log4j.properties
              > config/log4j_resourceBundle.properties
              > ra1.rar
              > ra2.rar
              > webapp1.rar.
              > ...
              >
              >Each of the resource adapters and the web applications have a reference
              >to
              >the config directory within MANIFEST.MF:
              >
              > Class-Path: config
              >
              >Now at startup, I try to get my resource bundle using the following line:
              >
              > try {
              > ResourceBundle bundle = ResourceBundle.getBundle(bundleName,
              >Locale.getDefault(), Thread.currentThread().getContextClassLoader());
              > logger.setResourceBundle(bundle);
              > } catch (MissingResourceException mre) {
              > System.out.println("Missing Resource Bundle : " +
              >bundleName);
              > }
              >
              >Every time I try to get the resource bundle within my rar file, I keep
              >getting the println statement. Within my EJBs and web applications,
              >this
              >piece of code works and is able to get the resource bundle. It's only
              >the
              >RAR file which has trouble doing so.
              >
              >Can anyone help me out here? Any help would be appreciated.
              >
              >Sundeep Kapadia
              >
              >
              This exception is "Key used to locate the message stating that the message bundle
              for a resource adapter cannot be located on the classpath".
              I have used ResourceBundle in my LDAP Adapter. I have included the ResourceBundle
              inside the jar of LDAP Adapter itself. The RAR uses the classes available in the
              same JVM, So I have set the .jar file in the classpath of the Weblogic Server.
              You could use separate Resource Bundle for RAR.
              Regards,
              Balendran
              Software Engineer,
              SIP Technologies.
              www.siptech.com
              

  • Java: Loading Resource Bundle File with UTF-8

    I have found out all my previous problems now, thank you all for your assitance with this...
    During the time we have worked so solve our problem with UTF-8 charset we have found new problem with this?
    I don't know if this is the right forum to put this up, if not please let us know where to go with this?
    I have prepared both Eclipse (JSP Files) and GlassFish to run all my files in charset UTF-8. Then i got my
    resource bundle files(property files) to use UTF-8 encoding. Everything looks fine in my text editor. Then
    when i upload these pages every character retrieved from my resource bundles look garbled. This is because
    Java loads property files using ISO 8859-1 character encoding.
    This is a problem from Sun i have read on the internet!
    Note: that in JDK 1.6, you can use PropertyResourceBundle constructor to take a Reader which uses UTF-8 encoding.
    please have a look at these links for more info:
    [http://www.kai-mai.com/node/128]
    [http://java.sun.com/javase/6/docs/api/java/util/PropertyResourceBundle.html]
    Note: PropertyResourceBundle can be constructed either from an InputStream or a Reader, which represents a property file.
    Constructing a PropertyResourceBundle instance from an InputStream requires that the input stream be encoded in ISO-8859-1.
    In that case, characters that cannot be represented in ISO-8859-1 encoding must be represented by Unicode Escapes,
    whereas the other constructor which takes a Reader does not have that limitation.
    What i have read and understand is that the real solution to the problem is: Get the fmt lib to use a Reader instead of an
    InputStream. Alternativly if it works get a ResourceBundle instead of creating one that is wrong all the time? I have to create
    my own ResourceBundle instead of using my own fmt lib wich i cannot trust in a way any more. Is this right or am i comletly wrong?
    My WebTexts files, en, sv and ry are my resource property bundles. To be able to read them i will use resource property bundle reader.
    Fmt lib gives me this but it seems that it inciates this in an InputStream (wich is looked to iso-8859-1) instead of a reader who can
    read UTF-8 without no problem. So can i get my fmt lib to change this or not, anybody have an idea about this???

    Torleif wrote:
    Ok, i know there are a few ways of doing this already. The problem is that i have no idea how to use these different problem solving issues. First we have the;
    1. native2ascii command line utility.
    2. use the XML properties format.
    3. other ways of converting from iso-8859-1 to utf-8.
    The last one i have tried already but i never get this to work. So after knowing of 2 standardized solutions you choose to implement your own non-standard soltion? That's usually not a good idea until you've verified that the standardized solution don't help.
    This is also not the best solution to the problem i have to say. This way i will have both properties files and source files to work with and that is to much i think. Either i will use the native2ascii command or use XML properties format like you say here. I need some more insight in how these two work only because i have no idea my self.Uhm .. read [the documentation|http://java.sun.com/javase/6/docs/api/java/util/Properties.html]? loadFromXML/storeToXML work pretty much exactly the same as load/store, except they handle XML. Try it, look at what it produces, learn.
    Could you please help and explain how to use either this native2ascii command line work or how this XML format properties would work for me. Please i need guidance here with this!!![native2ascii is documented as well|http://java.sun.com/javase/6/docs/technotes/tools/windows/native2ascii.html].
    If you have a specific question after reading those, feel free to ask here.
    You really have to work on your Google-fu, it seems to be too weak.

  • Resource bundle is not build

    Hi,
    I am creating a application in which i want to read some value from .properties file. But when i build my project (using right click project and select Rebuild) this properties file is not copied in the deployed war files in integrated weblogic server . So when running this application it shows error. java.util.MissingResourceException: Can't find bundle for base name
    Can anyone help me out how to include .properties file in build process.???

    Is your resource bundle registered in your project ?
    Go to Project Properties -> Resource Bundle -> Basic Configuration and check if the default Project Bundle name is populated alongwith Resource Bundle type as "Properties Bundle"
    Also another reason might be the following tag might be missing from your jspx/jsff page -
    <c:set var="viewcontrollerBundle"
             value="#{adfBundle['view.ViewControllerBundle']}"/>Edited by: Sudipto Desmukh on May 10, 2012 3:42 PM
    Edited by: Sudipto Desmukh on May 10, 2012 3:45 PM

  • Error: Could not find compiled resource bundle 'components' for locale 'en_US'

    We are porting a fairly large body of Flex3 code developed under FlexBuilder 3 to Flex4 under FlashBuilder 4.  Most of the conversion appears to be working fine, with one exception.  When I launch the Flex4 version, all my data interchanges with the server works.  Just as it is about to show the UI, the following error occurs:
         Error: Could not find compiled resource bundle 'components' for locale 'en_US'
    I am actually using a locale of fr_FR, but I assume it couldn't find that, reverted to en_US, failed again and then barfed.  If I look in
         ~Adobe Flash Builder 4\sdks\4.0.0\frameworks\locale\fr_FR
    I see a lot of swc files, and of course no 'components.swc'.  I believe the problem is that our Flex3 code is using mx components, and the compatibility mode is not properly handling it for some reason.  I think this is mostly from our in-house UI library.  The properties for that library (and for my main app I am testing now) have:
         - Use default SDK (currently "Flex 4.0")
         - Use Flex 3 compability mode
         - Use minimum version (Flash Player) required by the Flex SDK
         - Enable strict type checking
         - Enable warnings
    I also tried putting the compatibility flag in the mxmlc compile line, with no change in behavior.  This project is built by the following script:
    ruby scripts/concat_properties.rb -o resources.properties ^
         src/main/flex/locale/fr_common/res_myname_fr_common.properties ^
         src/main/flex/locale/fr_common/scout/res_myname_scout_fr_common.properties ^
         src/main/flex/locale/fr_fr/res_myname_fr_fr.properties ^
         ../../scout/common/src/locale/fr_common/mypals/resources.properties
    mxmlc -locale=fr_FR -source-path=. ^
         -compatibility-version=3.0.0. ^
         -static-rsls=true ^
         -include-resource-bundles=resources ^
         -output src/main/resources/bundles/mypals/fr_fr_resources.swf
    copy src\main\resources\bundles\mypals\fr_fr_resources.swf ^
         bin-debug\bundles\mypals
    What have I missed???

    You have two posts. I will try to answer each completely.  Second one first. You say I should change my build to include the framework resources.  I am afraid I am not sure which and what to do there.  We combine all our properties file into one large one, then use the following build line:
    mxmlc -locale=fr_FR,en_US -source-path=. ^
         -compatibility-version=3.0.0. ^
         -static-rsls=true ^
         -include-resource-bundles=resources ^
         -output src/main/resources/bundles/mypals/fr_fr_resources.swf
    I am assuming you are telling me to change the "-include-resource-bundles" line, but what to add?  The "sdks\4.0.0\frameworks\locale\en_US" holds 13 swf files.  I tried adding that entire folder (along with the fr_FR folder) to the project library path (in the project properties dialog), but that made no change.  I also tried reverting the library path tab back to "MX Only" instead of "MX + Spark", but again no change.
    ====================
    For your first message, I did a search for 'spark' in the entire project.  It only existed on 3 lines, each at the start of css files:
        @namespace s "library://ns.adobe.com/flex/spark";
    I had put those in based on reading needed changes to naming in CSS.  Since I was not actually using any spark ('s') components yet, I removed these lines.  The entire project now does not have the word 'spark' anywhere in it. No change in behavior (as I expected).
    I did a search for "s:" throughout the project.  That does exist in probably 100 places, but all are legitimate. Things like (xmlns:mx="http://www.adobe.com/2006/mxml") or variable names ("var matches:Object").  No reference to any s: object.  (While on the topic, why does FlashBuilder still not have a "whole word" box to limit searches??).
    Note that when I first reported this problem, the compiler was set to ONLY support fr_FR.  In fighting this, I changed it to "en_US,fr_FR" hoping that would tell the compiler to load whatever en_US items it was looking for.  We really do not want any English support in this version. (We do have another SWF created with only support for en_US, and another for en_UK, etc.  Each language is a separate node on our server, so there is no need to mix & match at runtime)
    The console shows a lot of swf loads that I do not understand...
    The console output shows (my comments after ==> indicator)
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\myname.swf - 2,229,992 bytes after decompression
                 ==> our locale is set here, after the above load and before the next line
    Look for name file at: ./data/fr_fr/names.csv
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\myname.swf - 21,200 bytes after decompression
    Loaded 2278 names.       ==> indicates successful load of data retrieved from server
    Loaded 154 bad words     ==> our second data set has been retrieved and loaded
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\styles\mypals_style.swf - 58,777 bytes after decompression
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\styles\mypals_style.swf - 322,606 bytes after decompression
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\bundles\mypals\fr_fr_resources.swf - 595,025 bytes after decompression
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\styles\mypals_style.swf - 202,168 bytes after decompression
        ==> not sure what this next warning means.  I'm guessing I will later have to research it and return to 'secure' comm with server, but I'm ignoring for now
    Warning: Ignoring 'secure' attribute in policy file from http://fpdownload.adobe.com/pub/swz/crossdomain.xml.  The 'secure' attribute is only permitted in HTTPS and socket policy files.  See http://www.adobe.com/go/strict_policy_files for details.
    Resource bundle loaded for locale fr_fr  ==> at this point, we appear to have our French assets loaded successfully
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\styles\mypals_style.swf - 202,168 bytes after decompression
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\styles\mypals_style.swf - 1,303,976 bytes after decompression
    [Unload SWF] C:\ConnectedProducts\common-web\myname\bin-debug\myname.swf  ==> some runs see this, but others do not. I expect it is a timing issue of whether it is reached or not before the crash
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\styles\mypals_style.swf - 794,898 bytes after decompression
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\styles\mypals_style.swf - 194,635 bytes after decompression
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\styles\mypals_style.swf - 261,589 bytes after decompression
    ==> everything looks fine up to here.  This is then when the third call to installCompiledResourceBundles occurs
    Error: Could not find compiled resource bundle 'components' for locale 'en_US'.
        at mx.resources::ResourceManagerImpl/installCompiledResourceBundle()[E:\dev\4.0.0\frameworks \projects\framework\src\mx\resources\ResourceManagerImpl.as:340]
        at mx.resources::ResourceManagerImpl/installCompiledResourceBundles()[E:\dev\4.0.0\framework s\projects\framework\src\mx\resources\ResourceManagerImpl.as:269]
        at mx.core::FlexModuleFactory/installCompiledResourceBundles()
        at mx.core::FlexModuleFactory/docFrameHandler()
        at mx.core::FlexModuleFactory/docFrameListener()

  • Resource Bundle issue in ATG 10 migration

    Hi,
    Migrating from ATG 2007.1 to 10 & getting issues with resource bundle for Merchandizing pages in BCC.Page is loading the StoreMerchandisingIcons.swf from the WAR module.Additionally the page is throwing error #404 for StoreMerchandisingIcons_en.swf & StoreMerchandisingIcons_en_US.swf (which is not available in the WAR)
    This URL is loading fine
    http://localhost:8180/store-merchandising/StoreMerchandisingIcons.swf
    404 for these URLs
    http://localhost:8180/store-merchandising/StoreMerchandisingIcons_en.swf
    http://localhost:8180/store-merchandising/StoreMerchandisingIcons_en_US.swf
    Configured the resource bundle & default locale in the StoreConfiguration but still I am getting this error.Am I missing anything?
    Debugged through FireBug , not getting any error in the page or Jboss console
    Thanks in advance!
    Mani

    Hi,
    Application.getResourceBundle(FacesContext, String) retrieves the named ResourceBundle from faces-config.xml and is indeed a good way to access a bundle from an application.
    Now, however, you're trying to access a Model layer bundle which is itself an aberration imho. I already mentioned that in numerous posts in the past, but I won't ever think that specifying localized information in the model layer is a good design. At best I could accept it for default value, but localized message it in no way a business logic concern, it's pretty much a pure presentation one. The model layer should return error code/keys and parameters and it should be the responsibility of the view layer to translate it in an understandable version for the target client (human or automated). Can't you use a view layer bundle?
    Regards,
    ~ Simon

  • Skin resource bundle

    Hi,
    I'm using a paged af:table and getting in the logs "<RenderingContext> <getTranslatedString> Could not fetch resource key Page from the skin myskin.desktop" (roughly translated).
    Solution in non-portal application is to specify resource bundle with specified key in trinidad-skins.xml/skins/skin/bundle-name but what is the proper solution in a portal application if I still want to allow for runtime selection of skin?
    The "update portal resource" dialog does not provide input of resource bundle name.
    The generated generic-site-resources.xml contains a reference resourceBundle="oracle.webcenter.framework.translations.TranslationsMDSResourceBundle" that indicates there might be some proper place to put skin bundle resources. (I tried editing the xml manually testing changing resourceBundle="MyBundle" and also adding <customAttribute name="skinBundleName" seeded="false" value="MyBundle" visible="ALWAYS"/> but to no avail).
    Best bet, if it is indeed possible to translate the "???Page???" in an af:table in a portal application, would be to add something to ResourceLibraryBundle but I don't know what trans-unit id.
    There's a handful of this exact question (e.g. https://forums.oracle.com/message/10620083) but no answers, either the solution is very obvious or there is no solution other than hard-coding the skin (which would not be that much of a problem).
    Any ideas?

    Thank you again!
    I'm using JDeveloper 10g.
    First, I've created a custom resource bundle (com.ieci.mugeju.view.resource.MugejuResourceBundle) and overrided the default resource string values.
    Second, I've created the file adf-faces-skins.xml like this:
    <?xml version="1.0" encoding="windows-1252" ?>
    <skins xmlns="http://xmlns.oracle.com/adf/view/faces/skin">
    <skin>
    <id>MugejuSkin</id>
    <family>MugejuSkin</family>
    <render-kit-id>oracle.adf.desktop</render-kit-id>
    <bundle-name>
    com.ieci.mugeju.view.resource.MugejuResourceBundle
    </bundle-name>
    </skin>
    </skins>
    Third, I set the skin-family property of the file adf-faces-config.xml to 'MugejuSkin'.
    If I follow all these steps, I achieve to change the text in ADF Faces components, as I wanted, but I lost the oracle styles (skin-family = oracle) that I had before following these steps.
    I must be doing someting wrong. I would like both, to mantain the oracle styles and to change the text in ADF Faces components.
    Thank you very much.

  • Resource Bundle location

    Hi,
    I have recreated several resource bundle properties files for different locales. The structure of my files are as follows:
    All my jsp files are in a folder called i18n which is located in the ROOT folder of Tomcat 5.5.7. Within the i18n folder a WEB-INF folder is located
    All my properties files are in a folder called classes within the WEB-INF.
    When I run my jsp page allowing the user to choose a locale, the following error appears:
    org.apache.jasper.JasperException: Can't find bundle for base name Message, locale en_US
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.util.MissingResourceException: Can't find bundle for base name Message, locale en_US
         java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:837)
         java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:727)
         java.util.ResourceBundle.getBundle(ResourceBundle.java:577)
         org.apache.jsp.i18n.i18nDemo_jsp._jspService(org.apache.jsp.i18n.i18nDemo_jsp:88)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Did I place the properties files in the wrong folder?? Please help. Thanks

    I'm assuming you're talking about Struts.
    Make sure your files are named correctly for the different locales. For example, the default, english and french versions would be:
    WEB-INF/classes/ApplicationResources.properties
    WEB-INF/classes/ApplicationResources_en.properties
    WEB-INF/classes/ApplicationResources_fr.properties
    and so forth..

  • Resource Bundle and encoding

    Hi,
    I'm too confused abt the encoding stuff that java does. First of all, I have a resource bundle written in chinese (Big5), in my program I've used getString(key) to retrieve the corresponding value to be displayed on the html page. I've got a few questions.
    1) From what I've understand, String is always in Unicode. Does that mean that when the string I've retrieved from Resource Bundle is converted to Unicode?
    2) When I do String a = ResourceBundle.getString(key), in order to display the correct Chinese character, I should do new String(a.getBytes("Big5")), right?? But i've got some weird characters. Why?
    3) It will work if I use new String(a.getBytes(), "Big5").
    I know that if I use a.getBytes(), it will return me bytes[] encoded using the system default encoding (in my case, Cp1252). But why is it returning me the correct string since my Resource Bundle is written in "Big5"? Or will getString(key) do some encoding?
    4) It will also work if I use this:
    BufferedReader reader = new BufferedReader(new InputStreamReader(new StringBufferInputStream(a),"Big5"));
    the display will be correct, why is this so? Is there any other class besides StringBufferInputStream as it is deprecated.
    I've been researching on this encoding topic for quite some time but didn't manage to understand it at all. Please help!! Thanks!

    Hi,
    I'm too confused abt the encoding stuff that java
    does. First of all, I have a resource bundle written
    in chinese (Big5), in my program I've used
    getString(key) to retrieve the corresponding value to
    be displayed on the html page. I've got a few
    questions.PropertyResourceBundles should be converted using the native2ascii tool. ListResourceBundles should be compiled with the -encoding flag. In your case:
    1. native2ascii -encoding Big5 resource.txt bundle.properties, or
    2. javac -encoding Big5 bundle.java
    >
    1) From what I've understand, String is always in
    Unicode. Does that mean that when the string I've
    retrieved from Resource Bundle is converted to
    Unicode?Once you have compiled the ResourceBundle, all text objects are represented as Unicode. Your retrieved String is Unicode text.
    2) When I do String a = ResourceBundle.getString(key),
    in order to display the correct Chinese character, I
    should do new String(a.getBytes("Big5")), right?? But
    i've got some weird characters. Why?No, you should not try to convert the String further. You have a perfectly good Unicode String at that point. You have weird characters after the above operation because you are converting Big5 text to a Unicode String using the default charset on your host...which may not be Big5 at all. In fact, it is not Big5 since you say you see strange characters.
    3) It will work if I use new String(a.getBytes(),
    "Big5").
    I know that if I use a.getBytes(), it will return me
    bytes[] encoded using the system default encoding (in
    my case, Cp1252). But why is it returning me the
    correct string since my Resource Bundle is written in
    "Big5"? Or will getString(key) do some encoding?Do not convert the String. Your operations with getBytes and new String() are an attempt to recreate the original String...which you already have...it is unnecessary.
    4) It will also work if I use this:
    BufferedReader reader = new BufferedReader(new
    InputStreamReader(new
    StringBufferInputStream(a),"Big5"));
    the display will be correct, why is this so? Is there
    any other class besides StringBufferInputStream as it
    is deprecated.Do not convert the String. It is already usable.
    >
    I've been researching on this encoding topic for quite
    some time but didn't manage to understand it at all.
    Please help!! Thanks!String a = bundle.getString(SOME_KEY);
    component.setText(a);
    This should be sufficient to retrieve and display the text, assuming all else is correct.
    Regards,
    John O'Conner

  • Skin's resource bundle

    Hello,
    I'm using the Oracle skin in an ADF application. I would need a new "skin's resource bundle" for an unsupported locale. How could I do it? Which is the name of the Oracle Resource bundle class (or properties file)?
    Thanks in advance!

    Thank you again!
    I'm using JDeveloper 10g.
    First, I've created a custom resource bundle (com.ieci.mugeju.view.resource.MugejuResourceBundle) and overrided the default resource string values.
    Second, I've created the file adf-faces-skins.xml like this:
    <?xml version="1.0" encoding="windows-1252" ?>
    <skins xmlns="http://xmlns.oracle.com/adf/view/faces/skin">
    <skin>
    <id>MugejuSkin</id>
    <family>MugejuSkin</family>
    <render-kit-id>oracle.adf.desktop</render-kit-id>
    <bundle-name>
    com.ieci.mugeju.view.resource.MugejuResourceBundle
    </bundle-name>
    </skin>
    </skins>
    Third, I set the skin-family property of the file adf-faces-config.xml to 'MugejuSkin'.
    If I follow all these steps, I achieve to change the text in ADF Faces components, as I wanted, but I lost the oracle styles (skin-family = oracle) that I had before following these steps.
    I must be doing someting wrong. I would like both, to mantain the oracle styles and to change the text in ADF Faces components.
    Thank you very much.

  • Unable to resolve resource bundle "fiber"

    Hi all!
    I'm trying to use AMF with PHP in Flash Builder 4 (plug-in version) and I'm having the following error:
    Unable to resolve resource bundle "fiber" for locale "pt_PT". dss Unknown Flex Problem
    I've found a workaround here in which they recommend to add these lines too the beginning of the eclipse.ini file:
    -nl
    en_US
    Nonetheless, even adding those lines to the file, I keep having the same error.
    Anyone knows what might be going wrong?
    Best regards,
    Jorge

    If you're trying to...
    use Adobe's lifecycle/fiber/generated classes/RemoteObjectServiceWrapper
    import com.adobe.fiber.valueobjects.AvailablePropertyIterator
    import com.adobe.fiber.services.wrapper.RemoteObjectServiceWrapper;
    etc. etc., here's what I did:
    Don't add those two lines to your ini file. (At least, I'm using Flash Builder 4 and this wasn't necessary for me)
    import 2 swc folders (Under Properties -> Flex Build Path -> Library Path):
    /Applications/Adobe Flash Builder 4/plugins/com.adobe.flexbuilder.dcrad_4.0.0.272416/dcradSwcs/4.0/libs
    and
    /Applications/Adobe Flash Builder 4/plugins/com.adobe.flexbuilder.dcrad_4.0.0.272416/dcradSwcs/4.0/locale
    (the latter has the swc with the locale and the locations of these files will vary, esp. if you're not on a mac)
    HTH

Maybe you are looking for