Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate i18n files from transifex po files #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 21 additions & 12 deletions build.xml
Original file line number Diff line number Diff line change
@@ -1,24 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<project name="pt_assistant" default="dist" basedir=".">
<property name="plugin.src.dir" value="src/main/java"/>
<property name="plugin.resources.dir" value="src/main/resources"/>
<property name="plugin.po.dir" value="src/main/po"/>
<property name="i18n.dir" value="../../i18n"/>
<property name="po.dir" value="data"/>
<property name="po.build.dir" value="${po.dir}/build"/>
<property name="gettext.keywords" value="-k -ktrc:1c,2 -kmarktrc:1c,2 -ktr -kmarktr -ktrn:1,2 -ktrnc:1c,2,3"/>
<property name="gettexttasks.jar" value="${i18n.dir}/lib/gettext-ant-tasks-0.9.7.jar"/>

<!-- edit the properties of this plugin in the file `gradle.properties` -->
<property file="${basedir}/gradle.properties"/>

<!-- ** include targets that all plugins have in common ** -->
<import file="../build-common.xml"/>

<!-- Override the `setup-dist-default` task from build-common.xml -->
<target name="setup-dist-default">
<copy todir="${plugin.build.dir}" failonerror="no" includeemptydirs="no">
<fileset dir="src/main/resources"/>
</copy>
<copy todir="${plugin.build.dir}">
<fileset dir=".">
<include name="README"/>
<include name="LICENSE*"/>
<include name="*GPL*"/>
</fileset>
</copy>
<target name="plugintrans">
<taskdef name="gettext-extract" classname="org.xnap.commons.ant.gettext.GettextExtractKeysTask" classpath="${gettexttasks.jar}"/>
<echo message="Run plugintrans target for plugin ${ant.project.name}" level="info"/>
<mkdir dir="${po.build.dir}"/>
<exec executable="perl" failonerror="true" output="${po.build.dir}/trans_plugin.java">
<arg line="${i18n.dir}/convplugins.pl build.xml"/>
</exec>
<gettext-extract keysFile="josm.pot" poDirectory="${po.build.dir}" keywords="${gettext.keywords}">
<fileset dir="${plugin.src.dir}" includes="**/*.java"/>
</gettext-extract>
<exec executable="perl" failonerror="true">
<arg line="${i18n.dir}/i18n.pl --potfile=${po.build.dir}/josm.pot --basedir=${po.dir} ${plugin.po.dir}/*.po"/>
</exec>
<delete dir="${po.build.dir}"/>
</target>
</project>
Binary file added data/ast.lang
Binary file not shown.
Binary file added data/be.lang
Binary file not shown.
Binary file added data/cs.lang
Binary file not shown.
Binary file added data/da.lang
Binary file not shown.
Binary file added data/de.lang
Binary file not shown.
Binary file added data/de_DE.lang
Binary file not shown.
Binary file added data/el.lang
Binary file not shown.
Binary file added data/en.lang
Binary file not shown.
Binary file added data/en_GB.lang
Binary file not shown.
Binary file added data/es.lang
Binary file not shown.
Binary file added data/fr.lang
Binary file not shown.
Binary file added data/hu.lang
Binary file not shown.
Binary file added data/id.lang
Binary file not shown.
Binary file added data/it.lang
Binary file not shown.
Binary file added data/ko.lang
Binary file not shown.
Binary file added data/nl.lang
Binary file not shown.
Binary file added data/pl.lang
Binary file not shown.
Binary file added data/pt.lang
Binary file not shown.
Binary file added data/ru.lang
Binary file not shown.
Binary file added data/sk.lang
Binary file not shown.
Binary file added data/uk.lang
Binary file not shown.
Binary file added data/zh_CN.lang
Binary file not shown.
Binary file added data/zh_TW.lang
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ private void continueAfterDownload(Relation rel) {
DialogUtils.showYesNoQuestion(
MainApplication.getMainFrame(),
tr("This is not a PT v2 relation"),
tr("This relation is not PT version 2. Sorting its stops wouldn't make sense.\n\n"
tr("This relation is not PT version 2. Sorting its stops wouldn''t make sense.\n\n"
+ "Would you like to set ''public_transport:version=2''?\n\n"
+ "There will still be some extra work needed,\n\n"
+ "but PT_Assistant can help prepare the \n" +
Expand Down