Changeset 5147 in osm for applications/editors/josm/plugins/lang
- Timestamp:
- 2007-10-24T07:31:46+02:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/lang/build.xml
r5017 r5147 10 10 <property name="plugins" value=".."/> 11 11 12 13 14 15 16 17 12 <target name="install-all" depends="josm-build,keys.pot"> 13 <ant target="install"><property name="language" value="de"/></ant> 14 <ant target="install"><property name="language" value="fr"/></ant> 15 <ant target="install"><property name="language" value="ro"/></ant> 16 <ant target="install"><property name="language" value="en_GB"/></ant> 17 </target> 18 18 19 20 21 22 19 <target name="install"> 20 <mkdir dir="${language}/bin"/> 21 <mkdir dir="dist"/> 22 <javac srcdir="${language}/src" classpath="${josm.build.dir}/dist/josm-custom.jar" destdir="${language}/bin" /> 23 23 24 25 26 24 <exec executable="msgmerge"> 25 <arg line="-U ${language}/${language}.po keys.pot"/> 26 </exec> 27 27 28 29 30 28 <exec executable="msgfmt"> 29 <arg line="--java2 -d${language}/bin -rorg.openstreetmap.josm.Translation -l${language} ${language}/${language}.po"/> 30 </exec> 31 31 32 32 <copy file="i18n.properties" todir="${language}/bin/org/openstreetmap/josm" /> 33 33 34 35 36 37 38 39 40 41 34 <jar destfile="dist/lang-${language}.jar" basedir="${language}/bin"> 35 <manifest> 36 <attribute name="Plugin-Class" value="org.openstreetmap.josm.TranslationLoader_${language}" /> 37 <attribute name="Plugin-Description" value="Translation to locale ${language}" /> 38 <attribute name="Plugin-Early" value="true" /> 39 </manifest> 40 </jar> 41 </target> 42 42 43 43 44 44 45 46 47 48 49 50 51 52 45 <target name="josm-build"> 46 <ant dir="${josm.build.dir}" /> 47 </target> 48 49 <target name="keys.pot"> 50 <exec executable="find" output="alljava.txt"> 51 <arg line="${josm.build.dir}/src ${plugins} -name '*.java'"/> 52 </exec> 53 53 54 55 56 57 54 <exec executable="xgettext"> 55 <arg line="-ktr -ktrn:1,2 -ktrc -kmarktr -Ljava -okeys.pot -falljava.txt"/> 56 </exec> 57 </target> 58 58 59 60 61 62 63 59 <target name="clean"> 60 <delete dir="build" /> 61 <delete dir="dist" /> 62 <delete dir="${plugin.jar}" /> 63 </target> 64 64 65 65 </project>
Note:
See TracChangeset
for help on using the changeset viewer.