Ignore:
Timestamp:
2016-01-01T20:15:49+01:00 (11 years ago)
Author:
simon04
Message:

JOSM/i18n: get rid of nonsense comments in POT file

This reduces the number of lines in the POT file by 55%.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/i18n/build.xml

    r31900 r31901  
    4242    </target>
    4343    <target name="po/josm.pot" description="Extracts message keys from the source code" depends="trans_.java,init">
    44         <gettext-extract keysFile="josm.pot" poDirectory="po" keywords="-k -ktrc:1c,2 -kmarktrc:1c,2 -ktr -kmarktr -ktrn:1,2 -ktrnc:1c,2,3">
     44        <gettext-extract keysFile="josm.raw.pot" poDirectory="po" keywords="-k -ktrc:1c,2 -kmarktrc:1c,2 -ktr -kmarktr -ktrn:1,2 -ktrnc:1c,2,3">
    4545            <fileset dir="${josm.build.dir}/src" includes="**/*.java"/>
    4646            <fileset dir="${i18n.build.dir}" includes="specialmessages.java"/>
     
    5151            <fileset dir="${plugin.dir}" includes="**/*.java"/>
    5252        </gettext-extract>
     53        <exec executable="msggrep" failonerror="true">
     54            <arg line="--msgid --regexp='---DUMMY-MARKER---' --invert-match --output-file=po/josm.pot po/josm.raw.pot"/>
     55        </exec>
     56        <delete file="po/josm.raw.pot"/>
    5357    </target>
    5458    <target name="po/core.pot" description="Extracts message keys from the JOSM core source code" depends="trans_.java,init">
Note: See TracChangeset for help on using the changeset viewer.