Changes between Version 18 and Version 19 of Translations


Ignore:
Timestamp:
Jul 8, 2011 6:33:05 PM (23 months ago)
Author:
stoecker
Comment:

Add description how to test new languages.

Legend:

Unmodified
Added
Removed
Modified
  • Translations

    v18 v19  
    4545 
    4646Translation of the program texts is done at [https://translations.launchpad.net/josm/trunk/ Launchpad]. 
     47 
     48Changes made in Launchpad will be imported into JOSM for all languages which are already in JOSM. The JOSM team will try to update the text data at least every second week. 
     49 
     50New languages will be added to JOSM when there are at least 2000 translated strings. Please start with main user interface to reach best results. 
     51 
     52A short description how to add new language support for test purposes, when 2000 strings limit is not yet reached: 
     53* Create the language files and store them in the plugin file: 
     54 * Language files are stored in directory "data" of JOSM and named with the lowercase language code with extension '''.lang'''. 
     55 * These files are always a set. The English base file and the translation files must be created together or they will not work correctly. 
     56 * The Perl script [osm:source:applications/editors/josm/i18n/i18n.pl i18n.pl] must be called with a destination directory and the '''.po''' files to create translation data. 
     57* Add you language in init() function of [source:trunk/src/org/openstreetmap/tools/I18n.java I18n.java]. 
     58 * You need to specify a proper code for the plural mode of your language. 
     59 * A description of the plural calculations can be found in the '''.po''' file downloaded from Launchpad. 
     60 * If none of the existing modes matches your language, you need to add one in the PluralMode enumeration and in pluralEval() function. 
    4761 
    4862== JOSM online help ==