| | 53 | <target name="po/core.pot" description="Extracts message keys from the JOSM core source code" depends="init"> |
| | 54 | <gettext-extract keysFile="core.pot" poDirectory="po" keywords="-k -ktrc:1c,2 -kmarktrc:1c,2 -ktr -kmarktr -ktrn:1,2 -ktrnc:1c,2,3"> |
| | 55 | <fileset dir="${josm.build.dir}/src" includes="**/*.java"/> |
| | 56 | <fileset dir="${i18n.build.dir}" includes="specialmessages.java"/> |
| | 57 | </gettext-extract> |
| | 58 | </target> |
| | 59 | <target name="po/core.2.pot" depends="po/core.pot" description="Duplicates core.pot for de-duplication in data.pot and plugins.pot"> |
| | 60 | <copy file="po/core.pot" tofile="po/core.2.pot"/> |
| | 61 | </target> |
| | 62 | <target name="po/data.pot" description="Extracts message keys from data files, e.g., presets, imagery (minus core strings)" depends="trans_.java,po/core.pot,po/core.2.pot,init"> |
| | 63 | <gettext-extract keysFile="data.raw.pot" poDirectory="po" keywords="-k -ktrc:1c,2 -kmarktrc:1c,2 -ktr -kmarktr -ktrn:1,2 -ktrnc:1c,2,3"> |
| | 64 | <fileset dir="${i18n.build.dir}" includes="trans_*.java"/> |
| | 65 | </gettext-extract> |
| | 66 | <exec executable="msgcomm" output="po/data.pot"> |
| | 67 | <arg line="--unique po/core.pot po/core.2.pot po/data.raw.pot"/> |
| | 68 | </exec> |
| | 69 | </target> |
| | 70 | <target name="po/plugins.pot" description="Extracts message keys from the plugins source code (minus core strings)" depends="po/core.pot,po/core.2.pot,init"> |
| | 71 | <gettext-extract keysFile="plugins.raw.pot" poDirectory="po" keywords="-k -ktrc:1c,2 -kmarktrc:1c,2 -ktr -kmarktr -ktrn:1,2 -ktrnc:1c,2,3"> |
| | 72 | <fileset dir="${plugin.dir}" includes="**/*.java"/> |
| | 73 | </gettext-extract> |
| | 74 | <exec executable="msgcomm" output="po/plugins.pot"> |
| | 75 | <arg line="--unique po/core.pot po/core.2.pot po/plugins.raw.pot"/> |
| | 76 | </exec> |
| | 77 | </target> |