Changeset 30884 in osm for applications/editors/josm


Ignore:
Timestamp:
2014-12-27T23:01:52+01:00 (10 years ago)
Author:
holgermappt
Message:

<gettext-extract> must be in a build file in the main directory, otherwise it doesn't extract because the path to the source files will be wrong.

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

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/photoadjust/build.xml

    • Property svn:mime-type changed from application/xml to text/xml
    r30428 r30884  
    2828    <import file="i18n/build-i18n.xml"/>
    2929
     30    <target name="pot" description="Extract translatable strings from source." depends="gettext-init">
     31        <mkdir dir="${plugin.po.dir}"/>
     32        <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">
     33            <fileset dir="${plugin.src.dir}" includes="**/*.java"/>
     34        </gettext-extract>
     35        <echo file="${plugin.po.dir}/${ant.project.name}.pot" append="true">
     36#. Plugin ${ant.project.name}
     37#: build.xml:1
     38msgid "${plugin.description}"
     39msgstr ""
     40</echo>
     41    </target>
     42
    3043    <!--
    3144    **********************************************************
  • applications/editors/josm/plugins/photoadjust/i18n/build-i18n.xml

    • Property svn:mime-type changed from application/xml to text/xml
    r30180 r30884  
    66<project name="plugin_i18n" basedir=".">
    77    <property name="gettexttasks.jar" value="../../i18n/lib/gettext-ant-tasks-0.9.7.jar"/>
    8     <property name="plugin.po.dir" location="po"/>
     8    <property name="plugin.po.dir" value="po"/>
    99    <property name="poimport.tarball" value="latest"/>
    1010    <property name="plugin.manifest" location="MANIFEST"/>
     
    1616        <mkdir dir="${plugin.po.dir}"/>
    1717        <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">
    18             <fileset dir="src" includes="**/*.java"/>
     18            <fileset dir="${plugin.src.dir}" includes="**/*.java"/>
    1919        </gettext-extract>
    2020        <echo file="${plugin.po.dir}/${ant.project.name}.pot" append="true">
Note: See TracChangeset for help on using the changeset viewer.