Line | |
---|
1 | <project name="lang-de" default="install" basedir=".">
|
---|
2 |
|
---|
3 | <property name="language" value="de" />
|
---|
4 |
|
---|
5 | <target name="init">
|
---|
6 | <mkdir dir="bin" />
|
---|
7 | </target>
|
---|
8 |
|
---|
9 | <target name="compile" depends="init">
|
---|
10 | <javac srcdir="src" classpath="../../../core/dist/josm-custom.jar" destdir="bin" />
|
---|
11 | <copy file="src/org/openstreetmap/josm/i18n.properties" tofile="bin/org/openstreetmap/josm/i18n.properties" />
|
---|
12 | </target>
|
---|
13 |
|
---|
14 | <!-- install entry point for eclipse user -->
|
---|
15 | <target name="jar">
|
---|
16 | <jar destfile="${user.home}/.josm/plugins/lang-${language}.jar" basedir="bin">
|
---|
17 | <manifest>
|
---|
18 | <attribute name="Plugin-Class" value="org.openstreetmap.josm.TranslationLoader_${language}" />
|
---|
19 | <attribute name="Plugin-Description" value="German translation / Deutsche Übersetzung." />
|
---|
20 | <attribute name="Plugin-Author" value="sven@anders-hanburg.de" />
|
---|
21 | <attribute name="Plugin-Early" value="true" />
|
---|
22 | </manifest>
|
---|
23 | </jar>
|
---|
24 | </target>
|
---|
25 |
|
---|
26 | <target name="install" depends="compile,gettext,jar" />
|
---|
27 |
|
---|
28 |
|
---|
29 |
|
---|
30 | <target name="find">
|
---|
31 | <exec executable="find" output="alljava.txt">
|
---|
32 | <arg line="../../../core/src ../.. -name '*.java'"/>
|
---|
33 | </exec>
|
---|
34 | </target>
|
---|
35 |
|
---|
36 | <target name="xgettext">
|
---|
37 | <exec executable="xgettext">
|
---|
38 | <arg line="--from-code=iso-8859-1 -ktr -ktrn:1,2 -ktrc -kmarktr -Ljava -okeys.pot -falljava.txt"/>
|
---|
39 | </exec>
|
---|
40 | </target>
|
---|
41 |
|
---|
42 | <target name="msgmerge">
|
---|
43 | <exec executable="msgmerge">
|
---|
44 | <arg line="-U ${language}.po keys.pot"/>
|
---|
45 | </exec>
|
---|
46 | </target>
|
---|
47 |
|
---|
48 | <target name="gettext" depends="find,xgettext,msgmerge">
|
---|
49 | <exec executable="msgfmt">
|
---|
50 | <arg line="--java2 -dbin -rorg.openstreetmap.josm.Translation -l${language} ${language}.po"/>
|
---|
51 | </exec>
|
---|
52 | </target>
|
---|
53 |
|
---|
54 | </project>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.