Ignore:
Timestamp:
2013-12-28T21:35:45+01:00 (12 years ago)
Author:
holgermappt
Message:

Reorganized i18n.

Location:
applications/editors/josm/plugins/photoadjust
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/photoadjust

    • Property svn:ignore set to
      josm_trans_*gz
      build
      po
  • applications/editors/josm/plugins/photoadjust/build.xml

    r30137 r30155  
    1919         See http://josm.openstreetmap.de/wiki/DevelopersGuide/DevelopingPlugins
    2020    -->
    21     <property name="plugin.author" value="Holger Mappt"/>
     21    <property name="plugin.author" value="holgermappt"/>
    2222    <property name="plugin.class" value="org.openstreetmap.josm.plugins.photoadjust.PhotoAdjustPlugin"/>
    2323    <property name="plugin.description" value="Make photos movable and position them on the map."/>
     
    3131    <property name="plugin.dist.dir" value="../../dist"/>
    3232    <property name="plugin.javadoc.dir" location="javadoc"/>
    33     <property name="gettexttasks.jar" value="../../i18n/lib/gettext-ant-tasks-0.9.7.jar"/>
    3433       
    3534    <!-- ** include targets that all plugins have in common ** -->
    3635    <import file="../build-common.xml"/>
     36    <!-- ** internationalization ** -->
     37    <import file="i18n/build-i18n.xml"/>
    3738
    3839    <!--
     
    5253    </target>
    5354
    54     <!--
    55     **********************************************************
    56     ** gettext - string extraction and merge
    57     **********************************************************
    58     -->
    59     <target name="gettext-init" description="Loads the Ant gettext and contrib tasks.">
    60         <taskdef name="gettext-extract" classname="org.xnap.commons.ant.gettext.GettextExtractKeysTask" classpath="${gettexttasks.jar}"/>
    61     </target>
    62     <target name="pot" description="Extract translatable strings from source." depends="gettext-init">
    63         <mkdir dir="po"/>
    64         <gettext-extract keysFile="${ant.project.name}.pot" poDirectory="po" keywords="-k -ktrc:1c,2 -kmarktrc:1c,2 -ktr -kmarktr -ktrn:1,2 -ktrnc:1c,2,3">
    65             <fileset dir="src" includes="**/*.java"/>
    66         </gettext-extract>
    67         <echo file="po/${ant.project.name}.pot" append="true">
    68 #. Plugin ${ant.project.name}
    69 #: build.xml:1
    70 msgid "${plugin.description}"
    71 msgstr ""
    72 </echo>
    73     </target>
    74     <target name="pomerge" description="Merge extracted strings into language files.">
    75         <exec executable="perl">
    76             <arg line="pomerge.pl"/>
    77         </exec>
    78     </target>
    79     <target name="poimport" description="Import the PO files from the tarball launchpad-export.tar.gz exported from Launchpad.">
    80         <exec executable="perl">
    81             <arg line="poimport.pl"/>
    82         </exec>
    83     </target>
    84     <target name="lang" description="Prepare *.lang files in data directory.">
    85         <exec executable="perl">
    86             <arg line="../../i18n/i18n.pl data po/*.po"/>
    87         </exec>
     55    <target name="additional-manifest">
     56        <antcall target="mftrans"/>
    8857    </target>
    8958</project>
Note: See TracChangeset for help on using the changeset viewer.