Changes between Version 1 and Version 2 of synch_lang
- Timestamp:
- 04/03/09 02:43:39 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
synch_lang
v1 v2 2 2 == Synchronize language files == 3 3 4 Roberto Giaccio wrote this small application for G N version 2.0that compares all localized files and checks for;4 Roberto Giaccio wrote this small application for GeoNetwork that compares all localized files and checks for; 5 5 6 6 - files available in main language but missing in localized directory … … 13 13 The program is executed with the following commands: 14 14 15 cd GEONETWORK_WEBAPP_DIR (usually .../geonetwork/web) 16 java -cp WEB-INF/lib/geonetwork.jar:WEB-INF/lib/jeeves.jar:WEB-INF/lib/jdom.jar org.fao.geonet.apps.!CheckLocalizedFiles loc/ en 15 {{{cd GEONETWORK_WEBAPP_DIR (usually ./web/geonetwork)}}} 16 {{{java -cp WEB-INF/lib/geonetwork.jar:WEB-INF/lib/jeeves.jar:WEB-INF/lib/jdom.jar org.fao.geonet.apps.!CheckLocalizedFiles loc/ en > output_file.txt}}} 17 17 18 You can find below the output for the current french and spanish files; the french translation is almost ok, but the spanish one needs some revision; who is going to revise the two translations?18 You can also run the application for other folders containing localized files. For instance part of InterMap or those that come with a metadata schema. Just change the {{{loc/}}} part with a reference to the folder you want to compare. So for instance: 19 19 20 Finally, note that the following files in the french and spanish translations are actually in english: 21 22 metadata-validate.xml 23 24 validation-error.xml 20 {{{java -cp WEB-INF/lib/geonetwork.jar:WEB-INF/lib/jeeves.jar:WEB-INF/lib/jdom.jar org.fao.geonet.apps.CheckLocalizedFiles xml/schemas/iso19139/loc/ en > ~/localization_errors_19139.txt}}} 25 21 26 22 23 24 25