Added SDK locale example + needed to change build file to compile swf with multiple locales
Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/06bbbd6c Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/06bbbd6c Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/06bbbd6c Branch: refs/heads/develop Commit: 06bbbd6c60d7075ea644c33b65f3b67ab914849f Parents: 24d74bf Author: Justin Mclean <jmcl...@apache.org> Authored: Sun Aug 24 14:17:15 2014 +1000 Committer: Justin Mclean <jmcl...@apache.org> Committed: Sun Aug 24 14:17:15 2014 +1000 ---------------------------------------------------------------------- TourDeFlex/TourDeFlex3/build.xml | 22 +++++++++++++++++++++- TourDeFlex/TourDeFlex3/src/explorer.xml | 1 + 2 files changed, 22 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/06bbbd6c/TourDeFlex/TourDeFlex3/build.xml ---------------------------------------------------------------------- diff --git a/TourDeFlex/TourDeFlex3/build.xml b/TourDeFlex/TourDeFlex3/build.xml index 4780bee..e71896e 100644 --- a/TourDeFlex/TourDeFlex3/build.xml +++ b/TourDeFlex/TourDeFlex3/build.xml @@ -38,7 +38,7 @@ <taskdef resource="flexTasks.tasks" classpathref="flexTasks.path"/> <macrodef name="compile-mxml"> - <attribute name="example"/> + <attribute name="example"/> <sequential> <mxmlc file="${basedir}/src/@{example}.mxml" @@ -47,6 +47,25 @@ </mxmlc> </sequential> </macrodef> + + <macrodef name="compile-mxml-locales"> + <attribute name="example"/> + <attribute name="locales" default="en_US"/> + + <sequential> + <mxmlc file="${basedir}/src/@{example}.mxml" + output="${basedir}/src/@{example}.swf" fork="true" failonerror="true"> + <locale>en_US</locale> + <locale>en_AU</locale> + <locale>en_GB</locale> + <locale>en_CA</locale> + <locale>el_GR</locale> + <locale>de_CH</locale> + <locale>pt_PT</locale> + <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/> + </mxmlc> + </sequential> + </macrodef> <target name="compile" depends="compile-shell,compile-mx,compile-spark,compile-spark2,compile-spark3,compile-apache"> </target> @@ -390,6 +409,7 @@ <compile-mxml example="/apache/formatters/PostCodeFormatterExample"/> <compile-mxml example="/apache/validators/PostCodeValidatorExample"/> + <compile-mxml-locales example="/apache/i18n/LocaleExample"/> </target> <target name="package" description="package up all source files" depends="package-dir,package-tar,package-zip"> http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/06bbbd6c/TourDeFlex/TourDeFlex3/src/explorer.xml ---------------------------------------------------------------------- diff --git a/TourDeFlex/TourDeFlex3/src/explorer.xml b/TourDeFlex/TourDeFlex3/src/explorer.xml index 4eafbb3..5915040 100755 --- a/TourDeFlex/TourDeFlex3/src/explorer.xml +++ b/TourDeFlex/TourDeFlex3/src/explorer.xml @@ -447,6 +447,7 @@ <!-- Add examples here --> <compile-mxml label="PostCodeFormatter" app="apache/formatters/PostCodeFormatterExample"/> <compile-mxml label="PostCodeValidator" app="apache/validators/PostCodeValidatorExample"/> + <compile-mxml label="New SDK locales" app="apache/i18n/LocaleExample"/> </node> <node label="Apache Flex 4.10" app="apache/ApacheFlex4_10_0"> <!-- Add examples here -->