1. OFBiz
  2. OFBIZ-385

Externalize strings for translation. . Normalize existing keys.


    • Type: Task Task
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Won't Fix
    • Affects Version/s: Trunk
    • Fix Version/s: None
    • Component/s: framework
    • Labels:
    • Environment:

      All platforms


      1. Externalize strings for translation.

      Stings taken out are all strings that comply with the following criteria

      Has more than one word in it
      60 % of all the words are recognized as known standard English words
      60 % of the string length consists of known standard English words

      Strings are places one of 3 files

      1. Exception.properties
      2. Message.properties
      3. UndefContext.properties

      Each property file is placed into the correct directories in the module that contains the *.java file

      Keys are defined in the *.java file as

      Private static final String Name1Name2Name3 = "Name1Name2Name3";

      Then referred to in the code as Name1Name2Name3.

      UtilMisc must be changed to return the current Locale for the thread using the resource. This is required in the case of Exceptions using resources to construct error messages.

      2. Normalize existing keys.

      All keys of the form name1.name2.name3 is to be changed to Name1Name2Name3. The references to the keys must be changed in the *.java file as well as the definition in the *.properties file.


        Gerrie Myburgh created issue -
        Marco Risaliti made changes -
        Field Original Value New Value
        Component/s framework [ 12311145 ]
        Gavin made changes -
        Workflow jira [ 12387322 ] OFbiz Workflow [ 12505506 ]
        Jacopo Cappellato made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Won't Fix [ 2 ]


          • Assignee:
            Gerrie Myburgh
          • Votes:
            0 Vote for this issue
            0 Start watching this issue


            • Created: