Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Localization

    locales-test 1.4.0

    Download button

    No screenshots available
    Downloads: 95  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Boris Nagaev | More programs
    GPL / FREE
    May 3rd, 2012, 07:49 GMT
    ROOT / Programming / Localization

     Read user reviews (0)  Refer to a friend  Subscribe

    locales-test description

    Test of xml-based localizations used by Wt apps

    The locales-test command provides a tool to check XML-based localizations of Wt apps.

    Wt applications use XML-based localization files. These files consist of messages. A message consists of message identifier and message translation. Each locale is represented with one XML file (localization). Message identifiers are the same in all the localizations, while message translations are different. For more information about localization of Wt applications, see Wt documentation.

    Wt does not require much from message identifiers and message order. To reduce to a system, this tool makes demands:

    - message identifier should be like prefix.SECTION.ID (prefix and section list are provided as command line options)
    - first letter of message identifier should be of the same case, as message translation
    - words inside message identifier should be separated with "_", regardless of case-style
    - messages should be grouped by section (groups are separated by empty line)
    - messages should be ordered by message identifier (case is ignored)
    - multi-line messages should be moved to the end of group and also be ordered
    - message identifiers of template messages should have suffix "_template"
    - max length of line: 120
    - messages should not start or end with space
    - no tabs are allowed
    - Wt itself translations are in the beginning and need not be sorted

    If --wt option is provided, this file is used to check translations of Wt messages itself (e.g. "Wt.WDatePicker.Close").

    To use message translations in Wt app, Wt::WString::tr() function is used. The tool checks if message identifiers in .cpp and .hpp files and in localization correspond each other.

    Examples

    Part of locales/wtclasses.xml used by library wt-classes:

    < message id='wc.wbi.Download' >Download< /message >
    < message id='wc.wbi.Run' >Run< /message >
    < message id='wc.wbi.View' >View< /message >


    To test this file and the whole library, located in current folder:

     locales-test --prefix=wc --sections wbi


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    xml-based localizations | Wt localization | Wt | xml-based | localization

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM