Changeset 31901 in osm


Ignore:
Timestamp:
2016-01-01T20:15:49+01:00 (9 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%.

Location:
applications/editors/josm/i18n
Files:
5 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">
  • applications/editors/josm/i18n/convmaps.pl

    r31111 r31901  
    3434  $line =~ s/\r//g;
    3535  chomp($line);
    36   print "tr(\"\"); ";
     36  print "tr(\"---DUMMY-MARKER---\"); ";
    3737  if($line =~ /<name(?: +lang=['"]en['"])?>(.*)<\/name>/)
    3838  {
  • applications/editors/josm/i18n/convpreset.pl

    r31634 r31901  
    3636  ++$linenr;
    3737  chomp($line);
    38   print "tr(\"\"); ";
     38  print "tr(\"---DUMMY-MARKER---\"); ";
    3939  if($line =~ /<item\s+name=(".*?")/)
    4040  {
  • applications/editors/josm/i18n/convstyle.pl

    r31111 r31901  
    1818{
    1919  chomp($line);
    20   print "tr(\"\"); ";
     20  print "tr(\"---DUMMY-MARKER---\"); ";
    2121  if($line =~ /<rules\s+name=(".*?")/)
    2222  {
  • applications/editors/josm/i18n/convsurveyor.pl

    r29943 r31901  
    1919{
    2020  chomp($line);
    21   print "tr(\"\"); ";
     21  print "tr(\"---DUMMY-MARKER---\"); ";
    2222  if($line =~ /^#(.*)$/)
    2323  {
Note: See TracChangeset for help on using the changeset viewer.