generate fake translations automatically

This commit is contained in:
Eric House 2014-05-06 07:47:29 -07:00
parent c0afd40337
commit 30b966b902
2 changed files with 17 additions and 2 deletions

View file

@ -65,7 +65,9 @@
</target>
<target name="-pre-compile">
<antcall target="my-pre-compile"/>
<antcall target="my-pre-compile">
<param name="VARIANT_NAME" value="xw4"/>
</antcall>
</target>
<!--

View file

@ -86,7 +86,20 @@
</target>
<target name="my-pre-compile">
<copy file="./gen/org/eehouse/android/xw4/R.java" todir="archive"/>
<copy file="./gen/org/eehouse/android/${VARIANT_NAME}/R.java" todir="archive"/>
<exec dir="." executable="../scripts/fake_locales.py" failonerror="true">
<arg value="-l" />
<arg value="ba_CK" />
<arg value="-o" />
<arg value="res_src/values-ba_CK/strings.xml" />
</exec>
<exec dir="." executable="../scripts/fake_locales.py" failonerror="true">
<arg value="-l" />
<arg value="ca_PS" />
<arg value="-o" />
<arg value="res_src/values-ca_PS/strings.xml" />
</exec>
</target>
</project>