Changes between Version 105 and Version 106 of DevelopersGuide/DevelopingPlugins
- Timestamp:
- 2021-08-20T20:41:05+02:00 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DevelopersGuide/DevelopingPlugins
v105 v106 227 227 * Extract strings with {{{xgettext -k -ktrc:1c,2 -kmarktrc:1c,2 -ktr -kmarktr -ktrn:1,2 -ktrnc:1c,2,3 ...}}} 228 228 * Use {{{msgmerge}}} to update translation files 229 * b) Use the ant tools of JOSM translation toolchain, see [ osm:source:applications/editors/josm/i18n i18n directory].229 * b) Use the ant tools of JOSM translation toolchain, see [source:osm/applications/editors/josm/i18n i18n directory]. 230 230 * Create the language files and store them in the plugin file: 231 231 * Language files are stored in directory "data" of a plugin and named with the lowercase language code with extension '''.lang'''. 232 232 * These files are always a set. The English base file and the translation files must be created together or they will not work correctly. 233 * 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.233 * The perl script [source:osm/applications/editors/josm/i18n/i18n.pl i18n.pl] must be called with a destination directory and the '''.po''' files to create translation data. 234 234 235 235 == Publishing a plugin ==