flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcl...@apache.org
Subject [1/2] git commit: [flex-utilities] [refs/heads/develop] - Added en_AU and en_GB locales
Date Tue, 08 Jul 2014 03:21:05 GMT
Repository: flex-utilities
Updated Branches:
  refs/heads/develop 5fee30767 -> 964353857


Added en_AU and en_GB 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/9678190f
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/9678190f
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/9678190f

Branch: refs/heads/develop
Commit: 9678190f153df9b41f6c6d460ed11b42f009a4e0
Parents: 5fee307
Author: Justin Mclean <jmclean@apache.org>
Authored: Tue Jul 8 12:58:51 2014 +1000
Committer: Justin Mclean <jmclean@apache.org>
Committed: Tue Jul 8 12:58:51 2014 +1000

----------------------------------------------------------------------
 ant_on_air/locale/en_AU/ant.properties        | 32 +++++++++++
 ant_on_air/locale/en_GB/ant.properties        | 32 +++++++++++
 ant_on_air/src/AntClasses.as                  |  1 +
 ant_on_air/src/org/apache/flex/ant/tags/Or.as | 65 ++++++++++++++++++++++
 4 files changed, 130 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/9678190f/ant_on_air/locale/en_AU/ant.properties
----------------------------------------------------------------------
diff --git a/ant_on_air/locale/en_AU/ant.properties b/ant_on_air/locale/en_AU/ant.properties
new file mode 100644
index 0000000..8420313
--- /dev/null
+++ b/ant_on_air/locale/en_AU/ant.properties
@@ -0,0 +1,32 @@
+<?xml version="1.0"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+
+MKDIR=Created directory %1
+COPY=Copying %1 file to %2
+COPYFILES=Copying %1 files to %2
+MOVE=Moving %1 file to %2
+MOVEFILES=Moving %1 files to %2
+DELETEFILE=Deleting file %1
+DELETEDIR=Deleting directory %1
+GETTING=Getting %1
+GETTO=To %1
+TOUCH=Creating %1
+UNZIP=Expanding %1 into %2
+

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/9678190f/ant_on_air/locale/en_GB/ant.properties
----------------------------------------------------------------------
diff --git a/ant_on_air/locale/en_GB/ant.properties b/ant_on_air/locale/en_GB/ant.properties
new file mode 100644
index 0000000..8420313
--- /dev/null
+++ b/ant_on_air/locale/en_GB/ant.properties
@@ -0,0 +1,32 @@
+<?xml version="1.0"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+
+MKDIR=Created directory %1
+COPY=Copying %1 file to %2
+COPYFILES=Copying %1 files to %2
+MOVE=Moving %1 file to %2
+MOVEFILES=Moving %1 files to %2
+DELETEFILE=Deleting file %1
+DELETEDIR=Deleting directory %1
+GETTING=Getting %1
+GETTO=To %1
+TOUCH=Creating %1
+UNZIP=Expanding %1 into %2
+

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/9678190f/ant_on_air/src/AntClasses.as
----------------------------------------------------------------------
diff --git a/ant_on_air/src/AntClasses.as b/ant_on_air/src/AntClasses.as
index 5626ddf..62c12d9 100644
--- a/ant_on_air/src/AntClasses.as
+++ b/ant_on_air/src/AntClasses.as
@@ -49,6 +49,7 @@ package
             import org.apache.flex.ant.tags.Mkdir; Mkdir;
             import org.apache.flex.ant.tags.Move; Move;
             import org.apache.flex.ant.tags.Not; Not;
+			import org.apache.flex.ant.tags.Or; Or;
             import org.apache.flex.ant.tags.OS; OS;
 			import org.apache.flex.ant.tags.Param; Param;
             import org.apache.flex.ant.tags.Property; Property;

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/9678190f/ant_on_air/src/org/apache/flex/ant/tags/Or.as
----------------------------------------------------------------------
diff --git a/ant_on_air/src/org/apache/flex/ant/tags/Or.as b/ant_on_air/src/org/apache/flex/ant/tags/Or.as
new file mode 100644
index 0000000..7c4371c
--- /dev/null
+++ b/ant_on_air/src/org/apache/flex/ant/tags/Or.as
@@ -0,0 +1,65 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package org.apache.flex.ant.tags
+{
+    import mx.core.IFlexModuleFactory;
+    
+    import org.apache.flex.ant.Ant;
+    import org.apache.flex.ant.tags.supportClasses.IValueTagHandler;
+    import org.apache.flex.ant.tags.supportClasses.ParentTagHandler;
+    
+    [Mixin]
+    public class Or extends ParentTagHandler implements IValueTagHandler
+    {
+        public static function init(mf:IFlexModuleFactory):void
+        {
+            Ant.antTagProcessors["or"] = Or;
+        }
+
+        public function Or()
+        {
+            super();
+        }
+        
+        public function getValue(context:Object):Object
+        {
+            ant.processChildren(xml, this);
+			
+            if (numChildren > 0)
+            {
+				var n:int = numChildren;
+				var result:Boolean;
+				
+				for (var i:int = 0; i < n; i++)
+				{
+	                var value:IValueTagHandler = getChildAt(i) as IValueTagHandler;
+	                // get the value from the children
+	                var val:Object = IValueTagHandler(value).getValue(context);
+					
+					result = result && (val == "true" || val == true);
+					
+					if (result)
+						return true;
+				}
+            }
+			
+			return false;
+        }
+    }
+}
\ No newline at end of file


Mime
View raw message