| 28 | | <!-- ** internationalization ** --> |
| 29 | | <import file="i18n/build-i18n.xml"/> |
| 30 | | |
| 31 | | <target name="pot" description="Extract translatable strings from source." depends="gettext-init"> |
| 32 | | <mkdir dir="${plugin.po.dir}"/> |
| 33 | | <gettext-extract keysFile="${ant.project.name}.pot" poDirectory="${plugin.po.dir}" keywords="-k -ktrc:1c,2 -kmarktrc:1c,2 -ktr -kmarktr -ktrn:1,2 -ktrnc:1c,2,3"> |
| 34 | | <fileset dir="${plugin.src.dir}" includes="**/*.java"/> |
| 35 | | </gettext-extract> |
| 36 | | <echo file="${plugin.po.dir}/${ant.project.name}.pot" append="true"> |
| 37 | | #. Plugin ${ant.project.name} |
| 38 | | #: build.xml:1 |
| 39 | | msgid "${plugin.description}" |
| 40 | | msgstr "" |
| 41 | | </echo> |
| 42 | | </target> |
| 43 | | |
| 44 | | <!-- |
| | 28 | <!-- |
| 49 | | <target name="javadoc" description="generate documentation"> |
| 50 | | <javadoc destdir="${plugin.javadoc.dir}" |
| 51 | | sourcepath="${plugin.src.dir}" |
| 52 | | windowtitle="${ant.project.name}" |
| 53 | | linksource="true" |
| 54 | | private="true"> |
| 55 | | <classpath> |
| 56 | | <pathelement location="${josm}"/> |
| 57 | | </classpath> |
| 58 | | <!-- Paths are relative to javadoc destdir (${plugin.javadoc.dir}). --> |
| 59 | | <link href="../../../core/javadoc/"/> |
| 60 | | <link href="https://josm.openstreetmap.de/doc/"/> |
| 61 | | <link href="https://docs.oracle.com//javase/8/docs/api/"/> |
| 62 | | </javadoc> |
| 63 | | </target> |
| 64 | | |
| 65 | | <target name="additional-manifest"> |
| 66 | | <antcall target="mftrans"/> |
| 67 | | </target> |
| | 33 | |