Author: rwhitcomb Date: Mon Jun 18 16:42:27 2018 New Revision: 1833735 URL: http://svn.apache.org/viewvc?rev=1833735&view=rev Log: PIVOT-1036: Add an Ant target to zip up the resource files required for a Japanese translation. First step in getting them translated.
Modified: pivot/trunk/build.xml Modified: pivot/trunk/build.xml URL: http://svn.apache.org/viewvc/pivot/trunk/build.xml?rev=1833735&r1=1833734&r2=1833735&view=diff ============================================================================== --- pivot/trunk/build.xml (original) +++ pivot/trunk/build.xml Mon Jun 18 16:42:27 2018 @@ -92,6 +92,19 @@ limitations under the License. <isset property="running.on.jenkins"/> </condition> + <!-- Definitions of the various translated resource files --> + <patternset id="resource-files"> + <include name="**/src/**/Localization*.json"/> + <include name="**/src/**/StockTrackerWindow*.json"/> + <include name="**/src/**/Alert*.json"/> + <include name="**/src/**/Prompt*.json"/> + <include name="**/src/**/TerraCalendarSkin*.json"/> + <include name="**/src/**/TerraFileBrowserSheetSkin*.json"/> + <include name="**/src/**/TerraFileBrowserSkin*.json"/> + <include name="**/src/**/TerraVFSBrowserSheetSkin*.json"/> + <include name="**/src/**/TerraVFSBrowserSkin*.json"/> + </patternset> + <!-- Ant version check --> <fail> <condition> @@ -459,6 +472,15 @@ limitations under the License. <delete dir="${folder.doc}"/> </target> + <!-- Package the internationalizable resources separately for translators --> + <target name="package-i18n-resources" description="Packages the internationalizable resources" depends="compile"> + <zip destfile="${release}-i18n.zip" update="false"> + <zipfileset dir="." prefix=""> + <patternset refid="resource-files"/> + </zipfileset> + </zip> + </target> + <!-- Run unit tests --> <target name="test" description="Executes unit tests" depends="compile-tests"> <test project="charts"/>