Changeset 34689 in osm for applications/editors


Ignore:
Timestamp:
2018-10-21T17:40:52+02:00 (6 years ago)
Author:
simon04
Message:

JOSM/i18n: split into core/maplist/pluginlist/presets/plugins

see #josm8645

Location:
applications/editors/josm/i18n
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/i18n/.tx/config

    r31119 r34689  
    11[main]
    22host = https://www.transifex.com
     3lang_map = ca@valencia: ca-valencia
    34
    45[josm.core]
     
    89type = PO
    910
    10 [josm.data]
    11 file_filter = po/<lang>/data.po
    12 source_file = po/data.pot
     11[josm.maplist]
     12file_filter = po/<lang>/maplist.po
     13source_file = po/maplist.pot
     14source_lang = en
     15type = PO
     16
     17[josm.pluginlist]
     18file_filter = po/<lang>/pluginlist.po
     19source_file = po/pluginlist.pot
     20source_lang = en
     21type = PO
     22
     23[josm.presets]
     24file_filter = po/<lang>/presets.po
     25source_file = po/presets.pot
    1326source_lang = en
    1427type = PO
  • applications/editors/josm/i18n/build.xml

    r34688 r34689  
    8585        </gettext-extract>
    8686    </target>
    87     <target name="po/core.pot" description="Extracts message keys from the JOSM core source code" depends="trans_.java,init">
     87    <target name="po/core.pot" description="Extracts message keys from the JOSM core source code" depends="init">
    8888        <gettext-extract keysFile="core.pot" poDirectory="po" keywords="${gettext.keywords} --exclude-file=excludes.pot">
    8989            <fileset dir="${josm.build.dir}/src" includes="**/*.java"/>
    9090            <fileset dir="${i18n.build.dir}" includes="specialmessages.java"/>
    91             <fileset dir="${i18n.build.dir}" includes="trans_presets.java"/>
    9291            <fileset dir="${josm.build.dir}/data/validator" includes="*.mapcss"/>
    9392            <fileset dir="${josm.build.dir}/styles/standard" includes="*.mapcss"/>
    94             <!-- maps should be in data instead, but that requires language file loading support in trac python code -->
     93        </gettext-extract>
     94    </target>
     95    <target name="po/maplist.pot" description="Extracts message keys from plugin descriptions" depends="trans_.java,init">
     96        <gettext-extract keysFile="maplist.pot" poDirectory="po" keywords="${gettext.keywords} --exclude-file=excludes.pot">
     97            <!-- maps should be translated server-side, but that requires language file loading support in trac python code -->
    9598            <fileset dir="${i18n.build.dir}" includes="trans_maps.java"/>
    9699        </gettext-extract>
     
    99102        <gettext-extract keysFile="pluginlist.pot" poDirectory="po" keywords="${gettext.keywords} --exclude-file=excludes.pot">
    100103            <fileset dir="${i18n.build.dir}" includes="trans_plugins.java"/>
    101             <!-- <fileset dir="${i18n.build.dir}/josmfiles" includes="trans_*.*"/> -->
    102         </gettext-extract>
    103     </target>
    104     <target name="po/plugins.pot" description="Extracts message keys from the plugins source code (minus core and data strings)" depends="trans_.java,po/core.pot,init">
    105         <gettext-extract keysFile="plugins.pot" poDirectory="po" keywords="${gettext.keywords} --exclude-file=excludes.pot --exclude-file=po/core.pot">
     104        </gettext-extract>
     105    </target>
     106    <target name="po/presets.pot" description="Extracts message keys from presets (minus core)" depends="trans_.java,po/core.pot,init">
     107        <gettext-extract keysFile="presets.pot" poDirectory="po" keywords="${gettext.keywords} --exclude-file=excludes.pot --exclude-file=po/core.pot">
     108            <fileset dir="${i18n.build.dir}" includes="trans_presets.java"/>
     109        </gettext-extract>
     110    </target>
     111    <target name="po/plugins.pot" description="Extracts message keys from the plugins source code (minus core)" depends="trans_.java,po/core.pot,po/presets.pot,init,filterpluginsources">
     112        <gettext-extract keysFile="plugins.pot" poDirectory="po" keywords="${gettext.keywords} --exclude-file=excludes.pot --exclude-file=po/core.pot --exclude-file=po/presets.pot">
    106113            <fileset dir="${plugin.dir}" includesfile="${po.build.dir}/pluginSrc.txt"/>
    107114            <fileset dir="${i18n.build.dir}" includes="trans_surveyor.java"/>
     
    191198    </target>
    192199    <target name="pot" depends="po/josm.pot" />
    193     <target name="allpot" depends="po/core.pot,po/pluginlist.pot,po/plugins.pot" />
     200    <target name="allpot" depends="po/core.pot,po/maplist.pot,po/pluginlist.pot,po/presets.pot,po/plugins.pot" />
    194201    <target name="update">
    195202        <exec executable="perl" failonerror="true">
Note: See TracChangeset for help on using the changeset viewer.