You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by vs...@apache.org on 2009/03/31 00:45:53 UTC

svn commit: r760210 [35/37] - in /incubator/shindig/trunk/features: ./ src/main/javascript/features/ src/main/javascript/features/i18n/ src/main/javascript/features/i18n/data/

Propchange: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__yo_NG.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__yo_NG.js
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh.js?rev=760210&view=auto
==============================================================================
--- incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh.js (added)
+++ incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh.js Mon Mar 30 22:45:30 2009
@@ -0,0 +1,42 @@
+/*
+ * 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.
+ */
+
+var gadgets = gadgets || {};
+
+gadgets.i18n = gadgets.i18n || {};
+
+gadgets.i18n.NumberFormatConstants = {
+  DECIMAL_SEP:".",
+  GROUP_SEP:",",
+  PERCENT:"%",
+  ZERO_DIGIT:"0",
+  PLUS_SIGN:"+",
+  MINUS_SIGN:"-",
+  EXP_SYMBOL:"E",
+  PERMILL:"\u2030",
+  INFINITY:"\u221E",
+  NAN:"NaN",
+  DECIMAL_PATTERN:"#,##0.###",
+  SCIENTIFIC_PATTERN:"#E0",
+  PERCENT_PATTERN:"#,##0%",
+  CURRENCY_PATTERN:"\u00A4#,##0.00",
+  DEF_CURRENCY_CODE:"CNY"
+};
+
+gadgets.i18n.NumberFormatConstants.MONETARY_SEP = gadgets.i18n.NumberFormatConstants.DECIMAL_SEP;
+gadgets.i18n.NumberFormatConstants.MONETARY_GROUP_SEP = gadgets.i18n.NumberFormatConstants.GROUP_SEP;

Propchange: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh.js
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_CN.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_CN.js?rev=760210&view=auto
==============================================================================
--- incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_CN.js (added)
+++ incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_CN.js Mon Mar 30 22:45:30 2009
@@ -0,0 +1,42 @@
+/*
+ * 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.
+ */
+
+var gadgets = gadgets || {};
+
+gadgets.i18n = gadgets.i18n || {};
+
+gadgets.i18n.NumberFormatConstants = {
+  DECIMAL_SEP:".",
+  GROUP_SEP:",",
+  PERCENT:"%",
+  ZERO_DIGIT:"0",
+  PLUS_SIGN:"+",
+  MINUS_SIGN:"-",
+  EXP_SYMBOL:"E",
+  PERMILL:"\u2030",
+  INFINITY:"\u221E",
+  NAN:"NaN",
+  DECIMAL_PATTERN:"#,##0.###",
+  SCIENTIFIC_PATTERN:"#E0",
+  PERCENT_PATTERN:"#,##0%",
+  CURRENCY_PATTERN:"\u00A4#,##0.00",
+  DEF_CURRENCY_CODE:"CNY"
+};
+
+gadgets.i18n.NumberFormatConstants.MONETARY_SEP = gadgets.i18n.NumberFormatConstants.DECIMAL_SEP;
+gadgets.i18n.NumberFormatConstants.MONETARY_GROUP_SEP = gadgets.i18n.NumberFormatConstants.GROUP_SEP;

Propchange: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_CN.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_CN.js
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_HK.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_HK.js?rev=760210&view=auto
==============================================================================
--- incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_HK.js (added)
+++ incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_HK.js Mon Mar 30 22:45:30 2009
@@ -0,0 +1,42 @@
+/*
+ * 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.
+ */
+
+var gadgets = gadgets || {};
+
+gadgets.i18n = gadgets.i18n || {};
+
+gadgets.i18n.NumberFormatConstants = {
+  DECIMAL_SEP:".",
+  GROUP_SEP:",",
+  PERCENT:"%",
+  ZERO_DIGIT:"0",
+  PLUS_SIGN:"+",
+  MINUS_SIGN:"-",
+  EXP_SYMBOL:"E",
+  PERMILL:"\u2030",
+  INFINITY:"\u221E",
+  NAN:"NaN",
+  DECIMAL_PATTERN:"#,##0.###",
+  SCIENTIFIC_PATTERN:"#E0",
+  PERCENT_PATTERN:"#,##0%",
+  CURRENCY_PATTERN:"\u00A4#,##0.00;(\u00A4#,##0.00)",
+  DEF_CURRENCY_CODE:"HKD"
+};
+
+gadgets.i18n.NumberFormatConstants.MONETARY_SEP = gadgets.i18n.NumberFormatConstants.DECIMAL_SEP;
+gadgets.i18n.NumberFormatConstants.MONETARY_GROUP_SEP = gadgets.i18n.NumberFormatConstants.GROUP_SEP;

Propchange: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_HK.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_HK.js
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hans.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hans.js?rev=760210&view=auto
==============================================================================
--- incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hans.js (added)
+++ incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hans.js Mon Mar 30 22:45:30 2009
@@ -0,0 +1,42 @@
+/*
+ * 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.
+ */
+
+var gadgets = gadgets || {};
+
+gadgets.i18n = gadgets.i18n || {};
+
+gadgets.i18n.NumberFormatConstants = {
+  DECIMAL_SEP:".",
+  GROUP_SEP:",",
+  PERCENT:"%",
+  ZERO_DIGIT:"0",
+  PLUS_SIGN:"+",
+  MINUS_SIGN:"-",
+  EXP_SYMBOL:"E",
+  PERMILL:"\u2030",
+  INFINITY:"\u221E",
+  NAN:"NaN",
+  DECIMAL_PATTERN:"#,##0.###",
+  SCIENTIFIC_PATTERN:"#E0",
+  PERCENT_PATTERN:"#,##0%",
+  CURRENCY_PATTERN:"\u00A4#,##0.00",
+  DEF_CURRENCY_CODE:"CNY"
+};
+
+gadgets.i18n.NumberFormatConstants.MONETARY_SEP = gadgets.i18n.NumberFormatConstants.DECIMAL_SEP;
+gadgets.i18n.NumberFormatConstants.MONETARY_GROUP_SEP = gadgets.i18n.NumberFormatConstants.GROUP_SEP;

Propchange: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hans.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hans.js
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hans_CN.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hans_CN.js?rev=760210&view=auto
==============================================================================
--- incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hans_CN.js (added)
+++ incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hans_CN.js Mon Mar 30 22:45:30 2009
@@ -0,0 +1,42 @@
+/*
+ * 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.
+ */
+
+var gadgets = gadgets || {};
+
+gadgets.i18n = gadgets.i18n || {};
+
+gadgets.i18n.NumberFormatConstants = {
+  DECIMAL_SEP:".",
+  GROUP_SEP:",",
+  PERCENT:"%",
+  ZERO_DIGIT:"0",
+  PLUS_SIGN:"+",
+  MINUS_SIGN:"-",
+  EXP_SYMBOL:"E",
+  PERMILL:"\u2030",
+  INFINITY:"\u221E",
+  NAN:"NaN",
+  DECIMAL_PATTERN:"#,##0.###",
+  SCIENTIFIC_PATTERN:"#E0",
+  PERCENT_PATTERN:"#,##0%",
+  CURRENCY_PATTERN:"\u00A4#,##0.00",
+  DEF_CURRENCY_CODE:"CNY"
+};
+
+gadgets.i18n.NumberFormatConstants.MONETARY_SEP = gadgets.i18n.NumberFormatConstants.DECIMAL_SEP;
+gadgets.i18n.NumberFormatConstants.MONETARY_GROUP_SEP = gadgets.i18n.NumberFormatConstants.GROUP_SEP;

Propchange: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hans_CN.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hans_CN.js
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hans_HK.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hans_HK.js?rev=760210&view=auto
==============================================================================
--- incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hans_HK.js (added)
+++ incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hans_HK.js Mon Mar 30 22:45:30 2009
@@ -0,0 +1,42 @@
+/*
+ * 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.
+ */
+
+var gadgets = gadgets || {};
+
+gadgets.i18n = gadgets.i18n || {};
+
+gadgets.i18n.NumberFormatConstants = {
+  DECIMAL_SEP:".",
+  GROUP_SEP:",",
+  PERCENT:"%",
+  ZERO_DIGIT:"0",
+  PLUS_SIGN:"+",
+  MINUS_SIGN:"-",
+  EXP_SYMBOL:"E",
+  PERMILL:"\u2030",
+  INFINITY:"\u221E",
+  NAN:"NaN",
+  DECIMAL_PATTERN:"#,##0.###",
+  SCIENTIFIC_PATTERN:"#E0",
+  PERCENT_PATTERN:"#,##0%",
+  CURRENCY_PATTERN:"\u00A4#,##0.00",
+  DEF_CURRENCY_CODE:"HKD"
+};
+
+gadgets.i18n.NumberFormatConstants.MONETARY_SEP = gadgets.i18n.NumberFormatConstants.DECIMAL_SEP;
+gadgets.i18n.NumberFormatConstants.MONETARY_GROUP_SEP = gadgets.i18n.NumberFormatConstants.GROUP_SEP;

Propchange: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hans_HK.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hans_HK.js
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hans_MO.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hans_MO.js?rev=760210&view=auto
==============================================================================
--- incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hans_MO.js (added)
+++ incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hans_MO.js Mon Mar 30 22:45:30 2009
@@ -0,0 +1,42 @@
+/*
+ * 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.
+ */
+
+var gadgets = gadgets || {};
+
+gadgets.i18n = gadgets.i18n || {};
+
+gadgets.i18n.NumberFormatConstants = {
+  DECIMAL_SEP:".",
+  GROUP_SEP:",",
+  PERCENT:"%",
+  ZERO_DIGIT:"0",
+  PLUS_SIGN:"+",
+  MINUS_SIGN:"-",
+  EXP_SYMBOL:"E",
+  PERMILL:"\u2030",
+  INFINITY:"\u221E",
+  NAN:"NaN",
+  DECIMAL_PATTERN:"#,##0.###",
+  SCIENTIFIC_PATTERN:"#E0",
+  PERCENT_PATTERN:"#,##0%",
+  CURRENCY_PATTERN:"\u00A4#,##0.00",
+  DEF_CURRENCY_CODE:"MOP"
+};
+
+gadgets.i18n.NumberFormatConstants.MONETARY_SEP = gadgets.i18n.NumberFormatConstants.DECIMAL_SEP;
+gadgets.i18n.NumberFormatConstants.MONETARY_GROUP_SEP = gadgets.i18n.NumberFormatConstants.GROUP_SEP;

Propchange: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hans_MO.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hans_MO.js
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hans_SG.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hans_SG.js?rev=760210&view=auto
==============================================================================
--- incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hans_SG.js (added)
+++ incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hans_SG.js Mon Mar 30 22:45:30 2009
@@ -0,0 +1,42 @@
+/*
+ * 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.
+ */
+
+var gadgets = gadgets || {};
+
+gadgets.i18n = gadgets.i18n || {};
+
+gadgets.i18n.NumberFormatConstants = {
+  DECIMAL_SEP:".",
+  GROUP_SEP:",",
+  PERCENT:"%",
+  ZERO_DIGIT:"0",
+  PLUS_SIGN:"+",
+  MINUS_SIGN:"-",
+  EXP_SYMBOL:"E",
+  PERMILL:"\u2030",
+  INFINITY:"\u221E",
+  NAN:"NaN",
+  DECIMAL_PATTERN:"#,##0.###",
+  SCIENTIFIC_PATTERN:"#E0",
+  PERCENT_PATTERN:"#,##0%",
+  CURRENCY_PATTERN:"\u00A4#,##0.00",
+  DEF_CURRENCY_CODE:"SGD"
+};
+
+gadgets.i18n.NumberFormatConstants.MONETARY_SEP = gadgets.i18n.NumberFormatConstants.DECIMAL_SEP;
+gadgets.i18n.NumberFormatConstants.MONETARY_GROUP_SEP = gadgets.i18n.NumberFormatConstants.GROUP_SEP;

Propchange: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hans_SG.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hans_SG.js
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hant.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hant.js?rev=760210&view=auto
==============================================================================
--- incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hant.js (added)
+++ incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hant.js Mon Mar 30 22:45:30 2009
@@ -0,0 +1,42 @@
+/*
+ * 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.
+ */
+
+var gadgets = gadgets || {};
+
+gadgets.i18n = gadgets.i18n || {};
+
+gadgets.i18n.NumberFormatConstants = {
+  DECIMAL_SEP:".",
+  GROUP_SEP:",",
+  PERCENT:"%",
+  ZERO_DIGIT:"0",
+  PLUS_SIGN:"+",
+  MINUS_SIGN:"-",
+  EXP_SYMBOL:"E",
+  PERMILL:"\u2030",
+  INFINITY:"\u221E",
+  NAN:"NaN",
+  DECIMAL_PATTERN:"#,##0.###",
+  SCIENTIFIC_PATTERN:"#E0",
+  PERCENT_PATTERN:"#,##0%",
+  CURRENCY_PATTERN:"\u00A4#,##0.00",
+  DEF_CURRENCY_CODE:"TWD"
+};
+
+gadgets.i18n.NumberFormatConstants.MONETARY_SEP = gadgets.i18n.NumberFormatConstants.DECIMAL_SEP;
+gadgets.i18n.NumberFormatConstants.MONETARY_GROUP_SEP = gadgets.i18n.NumberFormatConstants.GROUP_SEP;

Propchange: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hant.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hant.js
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hant_HK.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hant_HK.js?rev=760210&view=auto
==============================================================================
--- incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hant_HK.js (added)
+++ incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hant_HK.js Mon Mar 30 22:45:30 2009
@@ -0,0 +1,42 @@
+/*
+ * 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.
+ */
+
+var gadgets = gadgets || {};
+
+gadgets.i18n = gadgets.i18n || {};
+
+gadgets.i18n.NumberFormatConstants = {
+  DECIMAL_SEP:".",
+  GROUP_SEP:",",
+  PERCENT:"%",
+  ZERO_DIGIT:"0",
+  PLUS_SIGN:"+",
+  MINUS_SIGN:"-",
+  EXP_SYMBOL:"E",
+  PERMILL:"\u2030",
+  INFINITY:"\u221E",
+  NAN:"NaN",
+  DECIMAL_PATTERN:"#,##0.###",
+  SCIENTIFIC_PATTERN:"#E0",
+  PERCENT_PATTERN:"#,##0%",
+  CURRENCY_PATTERN:"\u00A4#,##0.00;(\u00A4#,##0.00)",
+  DEF_CURRENCY_CODE:"HKD"
+};
+
+gadgets.i18n.NumberFormatConstants.MONETARY_SEP = gadgets.i18n.NumberFormatConstants.DECIMAL_SEP;
+gadgets.i18n.NumberFormatConstants.MONETARY_GROUP_SEP = gadgets.i18n.NumberFormatConstants.GROUP_SEP;

Propchange: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hant_HK.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hant_HK.js
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hant_MO.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hant_MO.js?rev=760210&view=auto
==============================================================================
--- incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hant_MO.js (added)
+++ incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hant_MO.js Mon Mar 30 22:45:30 2009
@@ -0,0 +1,42 @@
+/*
+ * 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.
+ */
+
+var gadgets = gadgets || {};
+
+gadgets.i18n = gadgets.i18n || {};
+
+gadgets.i18n.NumberFormatConstants = {
+  DECIMAL_SEP:".",
+  GROUP_SEP:",",
+  PERCENT:"%",
+  ZERO_DIGIT:"0",
+  PLUS_SIGN:"+",
+  MINUS_SIGN:"-",
+  EXP_SYMBOL:"E",
+  PERMILL:"\u2030",
+  INFINITY:"\u221E",
+  NAN:"NaN",
+  DECIMAL_PATTERN:"#,##0.###",
+  SCIENTIFIC_PATTERN:"#E0",
+  PERCENT_PATTERN:"#,##0%",
+  CURRENCY_PATTERN:"\u00A4#,##0.00",
+  DEF_CURRENCY_CODE:"MOP"
+};
+
+gadgets.i18n.NumberFormatConstants.MONETARY_SEP = gadgets.i18n.NumberFormatConstants.DECIMAL_SEP;
+gadgets.i18n.NumberFormatConstants.MONETARY_GROUP_SEP = gadgets.i18n.NumberFormatConstants.GROUP_SEP;

Propchange: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hant_MO.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hant_MO.js
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hant_TW.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hant_TW.js?rev=760210&view=auto
==============================================================================
--- incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hant_TW.js (added)
+++ incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hant_TW.js Mon Mar 30 22:45:30 2009
@@ -0,0 +1,42 @@
+/*
+ * 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.
+ */
+
+var gadgets = gadgets || {};
+
+gadgets.i18n = gadgets.i18n || {};
+
+gadgets.i18n.NumberFormatConstants = {
+  DECIMAL_SEP:".",
+  GROUP_SEP:",",
+  PERCENT:"%",
+  ZERO_DIGIT:"0",
+  PLUS_SIGN:"+",
+  MINUS_SIGN:"-",
+  EXP_SYMBOL:"E",
+  PERMILL:"\u2030",
+  INFINITY:"\u221E",
+  NAN:"NaN",
+  DECIMAL_PATTERN:"#,##0.###",
+  SCIENTIFIC_PATTERN:"#E0",
+  PERCENT_PATTERN:"#,##0%",
+  CURRENCY_PATTERN:"\u00A4#,##0.00",
+  DEF_CURRENCY_CODE:"TWD"
+};
+
+gadgets.i18n.NumberFormatConstants.MONETARY_SEP = gadgets.i18n.NumberFormatConstants.DECIMAL_SEP;
+gadgets.i18n.NumberFormatConstants.MONETARY_GROUP_SEP = gadgets.i18n.NumberFormatConstants.GROUP_SEP;

Propchange: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hant_TW.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_Hant_TW.js
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_MO.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_MO.js?rev=760210&view=auto
==============================================================================
--- incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_MO.js (added)
+++ incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_MO.js Mon Mar 30 22:45:30 2009
@@ -0,0 +1,42 @@
+/*
+ * 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.
+ */
+
+var gadgets = gadgets || {};
+
+gadgets.i18n = gadgets.i18n || {};
+
+gadgets.i18n.NumberFormatConstants = {
+  DECIMAL_SEP:".",
+  GROUP_SEP:",",
+  PERCENT:"%",
+  ZERO_DIGIT:"0",
+  PLUS_SIGN:"+",
+  MINUS_SIGN:"-",
+  EXP_SYMBOL:"E",
+  PERMILL:"\u2030",
+  INFINITY:"\u221E",
+  NAN:"NaN",
+  DECIMAL_PATTERN:"#,##0.###",
+  SCIENTIFIC_PATTERN:"#E0",
+  PERCENT_PATTERN:"#,##0%",
+  CURRENCY_PATTERN:"\u00A4#,##0.00",
+  DEF_CURRENCY_CODE:"MOP"
+};
+
+gadgets.i18n.NumberFormatConstants.MONETARY_SEP = gadgets.i18n.NumberFormatConstants.DECIMAL_SEP;
+gadgets.i18n.NumberFormatConstants.MONETARY_GROUP_SEP = gadgets.i18n.NumberFormatConstants.GROUP_SEP;

Propchange: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_MO.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_MO.js
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_SG.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_SG.js?rev=760210&view=auto
==============================================================================
--- incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_SG.js (added)
+++ incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_SG.js Mon Mar 30 22:45:30 2009
@@ -0,0 +1,42 @@
+/*
+ * 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.
+ */
+
+var gadgets = gadgets || {};
+
+gadgets.i18n = gadgets.i18n || {};
+
+gadgets.i18n.NumberFormatConstants = {
+  DECIMAL_SEP:".",
+  GROUP_SEP:",",
+  PERCENT:"%",
+  ZERO_DIGIT:"0",
+  PLUS_SIGN:"+",
+  MINUS_SIGN:"-",
+  EXP_SYMBOL:"E",
+  PERMILL:"\u2030",
+  INFINITY:"\u221E",
+  NAN:"NaN",
+  DECIMAL_PATTERN:"#,##0.###",
+  SCIENTIFIC_PATTERN:"#E0",
+  PERCENT_PATTERN:"#,##0%",
+  CURRENCY_PATTERN:"\u00A4#,##0.00",
+  DEF_CURRENCY_CODE:"SGD"
+};
+
+gadgets.i18n.NumberFormatConstants.MONETARY_SEP = gadgets.i18n.NumberFormatConstants.DECIMAL_SEP;
+gadgets.i18n.NumberFormatConstants.MONETARY_GROUP_SEP = gadgets.i18n.NumberFormatConstants.GROUP_SEP;

Propchange: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_SG.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_SG.js
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_TW.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_TW.js?rev=760210&view=auto
==============================================================================
--- incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_TW.js (added)
+++ incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_TW.js Mon Mar 30 22:45:30 2009
@@ -0,0 +1,42 @@
+/*
+ * 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.
+ */
+
+var gadgets = gadgets || {};
+
+gadgets.i18n = gadgets.i18n || {};
+
+gadgets.i18n.NumberFormatConstants = {
+  DECIMAL_SEP:".",
+  GROUP_SEP:",",
+  PERCENT:"%",
+  ZERO_DIGIT:"0",
+  PLUS_SIGN:"+",
+  MINUS_SIGN:"-",
+  EXP_SYMBOL:"E",
+  PERMILL:"\u2030",
+  INFINITY:"\u221E",
+  NAN:"NaN",
+  DECIMAL_PATTERN:"#,##0.###",
+  SCIENTIFIC_PATTERN:"#E0",
+  PERCENT_PATTERN:"#,##0%",
+  CURRENCY_PATTERN:"\u00A4#,##0.00",
+  DEF_CURRENCY_CODE:"TWD"
+};
+
+gadgets.i18n.NumberFormatConstants.MONETARY_SEP = gadgets.i18n.NumberFormatConstants.DECIMAL_SEP;
+gadgets.i18n.NumberFormatConstants.MONETARY_GROUP_SEP = gadgets.i18n.NumberFormatConstants.GROUP_SEP;

Propchange: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_TW.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zh_TW.js
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zu.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zu.js?rev=760210&view=auto
==============================================================================
--- incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zu.js (added)
+++ incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zu.js Mon Mar 30 22:45:30 2009
@@ -0,0 +1,42 @@
+/*
+ * 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.
+ */
+
+var gadgets = gadgets || {};
+
+gadgets.i18n = gadgets.i18n || {};
+
+gadgets.i18n.NumberFormatConstants = {
+  DECIMAL_SEP:",",
+  GROUP_SEP:"\u00A0",
+  PERCENT:"%",
+  ZERO_DIGIT:"0",
+  PLUS_SIGN:"+",
+  MINUS_SIGN:"-",
+  EXP_SYMBOL:"E",
+  PERMILL:"\u2030",
+  INFINITY:"\u221E",
+  NAN:"NaN",
+  DECIMAL_PATTERN:"#,##0.###",
+  SCIENTIFIC_PATTERN:"#E0",
+  PERCENT_PATTERN:"#,##0%",
+  CURRENCY_PATTERN:"\u00A4#,##0.00",
+  DEF_CURRENCY_CODE:"ZAR"
+};
+
+gadgets.i18n.NumberFormatConstants.MONETARY_SEP = gadgets.i18n.NumberFormatConstants.DECIMAL_SEP;
+gadgets.i18n.NumberFormatConstants.MONETARY_GROUP_SEP = gadgets.i18n.NumberFormatConstants.GROUP_SEP;

Propchange: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zu.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zu.js
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zu_ZA.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zu_ZA.js?rev=760210&view=auto
==============================================================================
--- incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zu_ZA.js (added)
+++ incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zu_ZA.js Mon Mar 30 22:45:30 2009
@@ -0,0 +1,42 @@
+/*
+ * 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.
+ */
+
+var gadgets = gadgets || {};
+
+gadgets.i18n = gadgets.i18n || {};
+
+gadgets.i18n.NumberFormatConstants = {
+  DECIMAL_SEP:",",
+  GROUP_SEP:"\u00A0",
+  PERCENT:"%",
+  ZERO_DIGIT:"0",
+  PLUS_SIGN:"+",
+  MINUS_SIGN:"-",
+  EXP_SYMBOL:"E",
+  PERMILL:"\u2030",
+  INFINITY:"\u221E",
+  NAN:"NaN",
+  DECIMAL_PATTERN:"#,##0.###",
+  SCIENTIFIC_PATTERN:"#E0",
+  PERCENT_PATTERN:"#,##0%",
+  CURRENCY_PATTERN:"\u00A4#,##0.00",
+  DEF_CURRENCY_CODE:"ZAR"
+};
+
+gadgets.i18n.NumberFormatConstants.MONETARY_SEP = gadgets.i18n.NumberFormatConstants.DECIMAL_SEP;
+gadgets.i18n.NumberFormatConstants.MONETARY_GROUP_SEP = gadgets.i18n.NumberFormatConstants.GROUP_SEP;

Propchange: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zu_ZA.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/shindig/trunk/features/src/main/javascript/features/i18n/data/NumberFormatConstants__zu_ZA.js
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: incubator/shindig/trunk/features/src/main/javascript/features/i18n/datetimeformat.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/src/main/javascript/features/i18n/datetimeformat.js?rev=760210&view=auto
==============================================================================
--- incubator/shindig/trunk/features/src/main/javascript/features/i18n/datetimeformat.js (added)
+++ incubator/shindig/trunk/features/src/main/javascript/features/i18n/datetimeformat.js Mon Mar 30 22:45:30 2009
@@ -0,0 +1,581 @@
+/*
+ * 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.
+ */
+
+/**
+ * @fileoverview Functions for dealing with Date formatting
+ */
+
+var gadgets = gadgets || {};
+
+gadgets.i18n = gadgets.i18n || {};
+
+/**
+ * DateTime formatting functions following the pattern specification as defined
+ * in JDK, ICU and CLDR, with minor modification for typical usage in JS.
+ * Pattern specification: (Refer to JDK/ICU/CLDR)
+ * <pre>
+ * Symbol Meaning Presentation        Example
+ * ------   -------                 ------------        -------
+ * G        era designator          (Text)              AD
+ * y#       year                    (Number)            1996
+ * Y*       year (week of year)     (Number)            1997
+ * u*       extended year           (Number)            4601
+ * M        month in year           (Text & Number)     July & 07
+ * d        day in month            (Number)            10
+ * h        hour in am/pm (1~12)    (Number)            12
+ * H        hour in day (0~23)      (Number)            0
+ * m        minute in hour          (Number)            30
+ * s        second in minute        (Number)            55
+ * S        fractional second       (Number)            978
+ * E        day of week             (Text)              Tuesday
+ * e*       day of week (local 1~7) (Number)            2
+ * D*       day in year             (Number)            189
+ * F*       day of week in month    (Number)            2 (2nd Wed in July)
+ * w*       week in year            (Number)            27
+ * W*       week in month           (Number)            2
+ * a        am/pm marker            (Text)              PM
+ * k        hour in day (1~24)      (Number)            24
+ * K        hour in am/pm (0~11)    (Number)            0
+ * z        time zone               (Text)              Pacific Standard Time
+ * Z        time zone (RFC 822)     (Number)            -0800
+ * v        time zone (generic)     (Text)              Pacific Time
+ * g*       Julian day              (Number)            2451334
+ * A*       milliseconds in day     (Number)            69540000
+ * '        escape for text         (Delimiter)         'Date='
+ * ''       single quote            (Literal)           'o''clock'
+ *
+ * Item marked with '*' are not supported yet.
+ * Item marked with '#' works different than java
+ *
+ * The count of pattern letters determine the format.
+ * (Text): 4 or more, use full form, <4, use short or abbreviated form if it
+ * exists. (e.g., "EEEE" produces "Monday", "EEE" produces "Mon")
+ *
+ * (Number): the minimum number of digits. Shorter numbers are zero-padded to
+ * this amount (e.g. if "m" produces "6", "mm" produces "06"). Year is handled
+ * specially; that is, if the count of 'y' is 2, the Year will be truncated to
+ * 2 digits. (e.g., if "yyyy" produces "1997", "yy" produces "97".) Unlike other
+ * fields, fractional seconds are padded on the right with zero.
+ *
+ * (Text & Number): 3 or over, use text, otherwise use number. (e.g., "M"
+ * produces "1", "MM" produces "01", "MMM" produces "Jan", and "MMMM" produces
+ * "January".)
+ *
+ * Any characters in the pattern that are not in the ranges of ['a'..'z'] and
+ * ['A'..'Z'] will be treated as quoted text. For instance, characters like ':',
+ * '.', ' ', '#' and '@' will appear in the resulting time text even they are
+ * not embraced within single quotes.
+ * </pre>
+ *
+ */
+
+/**
+ * Construct a DateTimeFormat object based on current locale by using
+ * the symbol table passed in.
+ * @constructor
+ */
+gadgets.i18n.DateTimeFormat = function(symbol) {
+    this.symbols_ = symbol;
+};
+
+/**
+ * regular expression pattern for parsing pattern string
+ * @private
+ */
+gadgets.i18n.DateTimeFormat.TOKENS_ = [
+    //quote string
+    /^\'(?:[^\']|\'\')*\'/,
+    // pattern chars
+    /^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|z+|Z+)/,
+    // and all the other chars
+    /^[^\'GyMkSEahKHcLQdmsvzZ]+/  // and all the other chars
+];
+
+/**
+ * These are token types, corresponding to above token definitions.
+ * @enum {number}
+ */
+gadgets.i18n.DateTimeFormat.PartTypes = {
+    QUOTED_STRING : 0,
+    FIELD : 1,
+    LITERAL : 2
+};
+
+/**
+ * Pads number to given length and optionally rounds it to a given precision.
+ * For example:
+ * <pre>padNumber(1.25, 2, 3) -> '01.250'
+ * padNumber(1.25, 2) -> '01.25'
+ * padNumber(1.25, 2, 1) -> '01.3'
+ * padNumber(1.25, 0) -> '1.25'</pre>
+ *
+ * @param {number} num The number to pad.
+ * @param {number} length The desired length.
+ * @return {string} {@code num} as a string with the given options.
+ * @private
+ */
+gadgets.i18n.DateTimeFormat.padNumber_ = function(num, length) {
+    var s = String(num);
+    var index = s.indexOf('.');
+    if (index == -1) {
+        index = s.length;
+    }
+    var tempArray = new Array(Math.max(0, length - index) + 1);
+    return tempArray.join('0') + s;
+};
+
+/**
+ * Apply specified pattern to this formatter object.
+ * @param {string} pattern String specifying how the date should be formatted.
+ */
+gadgets.i18n.DateTimeFormat.prototype.applyPattern = function(pattern) {
+    this.patternParts_ = [];
+
+  // lex the pattern, once for all uses
+    while (pattern) {
+        for (var i = 0; i < gadgets.i18n.DateTimeFormat.TOKENS_.length; ++i) {
+            var m = pattern.match(gadgets.i18n.DateTimeFormat.TOKENS_[i]);
+            if (m) {
+                var part = m[0];
+                pattern = pattern.substring(part.length);
+                if (i == gadgets.i18n.DateTimeFormat.PartTypes.QUOTED_STRING) {
+                    if (part == "''") {
+                        part = "'";  // '' -> '
+                    } else {
+                        // strip quotes
+                        part = part.substring(1, part.length - 1);
+                        part = part.replace(/\'\'/, "'");
+                    }
+                }
+                this.patternParts_.push({ text: part, type: i });
+                break;
+            }
+        }
+    }
+};
+
+/**
+ * Format the given date object according to preset pattern and current lcoale.
+ * @param {Date} date The Date object that is being formatted.
+ * @return {string} Formatted string for the given date.
+ */
+gadgets.i18n.DateTimeFormat.prototype.format = function(date) {
+    /*  if (!opt_timeZone) {
+        opt_timeZone =
+          gadgets.i18n.TimeZone.createTimeZone(date.getTimezoneOffset());
+      }
+
+      // We don't want to write code to calculate each date field because we
+      // want to maximize performance and minimize code size.
+      // JavaScript only provide API to render local time.
+      // Suppose target date is: 16:00 GMT-0400
+      // OS local time is:       12:00 GMT-0800
+      // We want to create a Local Date Object : 16:00 GMT-0800, and fix the
+      // time zone display ourselves.
+      // Thing get a little bit tricky when daylight time transition happens. For
+      // example, suppose OS timeZone is America/Los_Angeles, it is impossible to
+      // represent "2006/4/2 02:30" even for those timeZone that has no transition
+      // at this time. Because 2:00 to 3:00 on that day does not exising in
+      // America/Los_Angeles time zone. To avoid calculating date field through
+      // our own code, we uses 3 Date object instead, one for "Year, month, day",
+      // one for time within that day, and one for timeZone object since it need
+      // the real time to figure out actual time zone offset.
+      var diff = (date.getTimezoneOffset() - opt_timeZone.getOffset(date)) * 60000;
+      var dateForDate = diff ? new Date(date.getTime() + diff) : date;
+      var dateForTime = dateForDate;
+      // in daylight time switch on/off hour, diff adjustment could alter time
+      // because of timeZone offset change, move 1 day forward or backward.
+      if (dateForDate.getTimezoneOffset() != date.getTimezoneOffset()) {
+        diff += diff > 0 ? -24 * 60 * 60000 : 24 * 60 * 60000;
+        dateForTime = new Date(date.getTime() + diff);
+      }
+    */
+    var out = [];
+    for (var i = 0; i < this.patternParts_.length; ++i) {
+        var text = this.patternParts_[i].text;
+        if (gadgets.i18n.DateTimeFormat.PartTypes.FIELD ==
+            this.patternParts_[i].type) {
+            out.push(this.formatField_(text, date));
+        } else {
+            out.push(text);
+        }
+    }
+    return out.join('');
+};
+
+/**
+ * Apply a predefined pattern as identified by formatType, which is stored in
+ * locale specific repository.
+ * @param {number} formatType A number that identified the predefined pattern.
+ */
+gadgets.i18n.DateTimeFormat.prototype.applyStandardPattern =
+function(formatType) {
+    var pattern;
+    if (formatType < 4) {
+        pattern = this.symbols_.DATEFORMATS[formatType];
+    } else if (formatType < 8) {
+        pattern = this.symbols_.TIMEFORMATS[formatType - 4];
+    } else if (formatType < 12) {
+        pattern = this.symbols_.DATEFORMATS[formatType - 8] +
+                  ' ' + this.symbols_.TIMEFORMATS[formatType - 8];
+    } else {
+        this.applyStandardPattern(gadgets.i18n.MEDIUM_DATETIME_FORMAT);
+    }
+    return this.applyPattern(pattern);
+};
+
+/**
+ * Formats Era field according to pattern specified.
+ *
+ * @param {number} count Number of time pattern char repeats, it controls
+ *     how a field should be formatted.
+ * @param {Date} date It holds the date object to be formatted.
+ * @return {string} Formatted string that represent this field.
+ * @private
+ */
+gadgets.i18n.DateTimeFormat.prototype.formatEra_ = function(count, date) {
+    var value = date.getFullYear() > 0 ? 1 : 0;
+    return count >= 4 ? this.symbols_.ERANAMES[value] : this.symbols_.ERAS[value];
+};
+
+/**
+ * Formats Year field according to pattern specified
+ *   Javascript Date object seems incapable handling 1BC and
+ *   year before. It can show you year 0 which does not exists.
+ *   following we just keep consistent with javascript's
+ *   toString method. But keep in mind those things should be
+ *   unsupported.
+ * @param {number} count Number of time pattern char repeats, it controls
+ *     how a field should be formatted.
+ * @param {Date} date It holds the date object to be formatted.
+ * @return {string} Formatted string that represent this field.
+ * @private
+ */
+gadgets.i18n.DateTimeFormat.prototype.formatYear_ = function(count, date) {
+    var value = date.getFullYear();
+    if (value < 0) {
+        value = -value;
+    }
+    return count == 2 ?
+           gadgets.i18n.DateTimeFormat.padNumber_(value % 100, 2) :
+           String(value);
+};
+
+/**
+ * Formats Month field according to pattern specified
+ *
+ * @param {number} count Number of time pattern char repeats, it controls
+ *     how a field should be formatted.
+ * @param {Date} date It holds the date object to be formatted.
+ * @return {string} Formatted string that represent this field.
+ * @private
+ */
+gadgets.i18n.DateTimeFormat.prototype.formatMonth_ = function(count, date) {
+    var value = date.getMonth();
+    switch (count) {
+        case 5: return this.symbols_.NARROWMONTHS[value];
+        case 4: return this.symbols_.MONTHS[value];
+        case 3: return this.symbols_.SHORTMONTHS[value];
+        default:
+            return gadgets.i18n.DateTimeFormat.padNumber_(value + 1, count);
+    }
+};
+
+/**
+ * Formats (1..24) Hours field according to pattern specified
+ *
+ * @param {number} count Number of time pattern char repeats. This controls
+ *     how a field should be formatted.
+ * @param {Date} date It holds the date object to be formatted.
+ * @return {string} Formatted string that represent this field.
+ * @private
+ */
+gadgets.i18n.DateTimeFormat.prototype.format24Hours_ = function(count, date) {
+    return gadgets.i18n.DateTimeFormat.padNumber_(date.getHours() || 24, count);
+};
+
+/**
+ * Formats Fractional seconds field according to pattern specified
+ *
+ * @param {number} count Number of time pattern char repeats, it controls
+ *     how a field should be formatted.
+ * @param {Date} date It holds the date object to be formatted.
+ *
+ * @return {string} Formatted string that represent this field.
+ * @private
+ */
+gadgets.i18n.DateTimeFormat.prototype.formatFractionalSeconds_ =
+function(count, date) {
+    // Fractional seconds left-justify, append 0 for precision beyond 3
+    var value = date.getTime() % 1000 / 1000;
+    return value.toFixed(Math.min(3, count)).substr(2) +
+           (count > 3 ? gadgets.i18n.DateTimeFormat.padNumber_(0, count - 3) : '');
+};
+
+/**
+ * Formats Day of week field according to pattern specified
+ *
+ * @param {number} count Number of time pattern char repeats, it controls
+ *     how a field should be formatted.
+ * @param {Date} date It holds the date object to be formatted.
+ * @return {string} Formatted string that represent this field.
+ * @private
+ */
+gadgets.i18n.DateTimeFormat.prototype.formatDayOfWeek_ = function(count, date) {
+    var value = date.getDay();
+    return count >= 4 ? this.symbols_.WEEKDAYS[value] :
+           this.symbols_.SHORTWEEKDAYS[value];
+};
+
+/**
+ * Formats Am/Pm field according to pattern specified
+ *
+ * @param {number} count Number of time pattern char repeats, it controls
+ *     how a field should be formatted.
+ * @param {Date} date It holds the date object to be formatted.
+ * @return {string} Formatted string that represent this field.
+ * @private
+ */
+gadgets.i18n.DateTimeFormat.prototype.formatAmPm_ = function(count, date) {
+    var hours = date.getHours();
+    return this.symbols_.AMPMS[hours >= 12 && hours < 24 ? 1 : 0];
+};
+
+/**
+ * Formats (1..12) Hours field according to pattern specified
+ *
+ * @param {number} count Number of time pattern char repeats, it controls
+ *     how a field should be formatted.
+ * @param {Date} date It holds the date object to be formatted.
+ * @return {string} formatted string that represent this field.
+ * @private
+ */
+gadgets.i18n.DateTimeFormat.prototype.format1To12Hours_ = function(count, date) {
+    return gadgets.i18n.DateTimeFormat.padNumber_(date.getHours() % 12 || 12, count);
+};
+
+/**
+ * Formats (0..11) Hours field according to pattern specified
+ *
+ * @param {number} count Number of time pattern char repeats, it controls
+ *     how a field should be formatted.
+ * @param {Date} date It holds the date object to be formatted.
+ * @return {string} formatted string that represent this field.
+ * @private
+ */
+gadgets.i18n.DateTimeFormat.prototype.format0To11Hours_ = function(count, date) {
+    return gadgets.i18n.DateTimeFormat.padNumber_(date.getHours() % 12, count);
+};
+
+/**
+ * Formats (0..23) Hours field according to pattern specified
+ *
+ * @param {number} count Number of time pattern char repeats, it controls
+ *     how a field should be formatted.
+ * @param {Date} date It holds the date object to be formatted.
+ * @return {string} formatted string that represent this field.
+ * @private
+ */
+gadgets.i18n.DateTimeFormat.prototype.format0To23Hours_ = function(count, date) {
+    return gadgets.i18n.DateTimeFormat.padNumber_(date.getHours(), count);
+};
+
+/**
+ * Formats Standalone weekday field according to pattern specified
+ *
+ * @param {number} count Number of time pattern char repeats, it controls
+ *     how a field should be formatted.
+ * @param {Date} date It holds the date object to be formatted.
+ * @return {string} formatted string that represent this field.
+ * @private
+ */
+gadgets.i18n.DateTimeFormat.prototype.formatStandaloneDay_ =
+function(count, date) {
+    var value = date.getDay();
+    switch (count) {
+        case 5:
+            return this.symbols_.STANDALONENARROWWEEKDAYS[value];
+        case 4:
+            return this.symbols_.STANDALONEWEEKDAYS[value];
+        case 3:
+            return this.symbols_.STANDALONESHORTWEEKDAYS[value];
+        default:
+            return gadgets.i18n.DateTimeFormat.padNumber_(value, 1);
+    }
+};
+
+/**
+ * Formats Standalone Month field according to pattern specified
+ *
+ * @param {number} count Number of time pattern char repeats, it controls
+ *     how a field should be formatted.
+ * @param {Date} date It holds the date object to be formatted.
+ * @return {string} formatted string that represent this field.
+ * @private
+ */
+gadgets.i18n.DateTimeFormat.prototype.formatStandaloneMonth_ =
+function(count, date) {
+    var value = date.getMonth();
+    switch (count) {
+        case 5:
+            return this.symbols_.STANDALONENARROWMONTHS[value];
+        case 4:
+            return this.symbols_.STANDALONEMONTHS[value];
+        case 3:
+            return this.symbols_.STANDALONESHORTMONTHS[value];
+        default:
+            return gadgets.i18n.DateTimeFormat.padNumber_(value + 1, count);
+    }
+};
+
+/**
+ * Formats Quarter field according to pattern specified
+ *
+ * @param {number} count Number of time pattern char repeats, it controls
+ *     how a field should be formatted.
+ * @param {Date} date It holds the date object to be formatted.
+ * @return {string} Formatted string that represent this field.
+ * @private
+ */
+gadgets.i18n.DateTimeFormat.prototype.formatQuarter_ = function(count, date) {
+    var value = Math.floor(date.getMonth() / 3);
+    return count < 4 ? this.symbols_.SHORTQUARTERS[value] :
+           this.symbols_.QUARTERS[value];
+};
+
+/**
+ * Formats Date field according to pattern specified
+ *
+ * @param {number} count Number of time pattern char repeats, it controls
+ *     how a field should be formatted.
+ * @param {Date} date It holds the date object to be formatted.
+ * @return {string} Formatted string that represent this field.
+ * @private
+ */
+gadgets.i18n.DateTimeFormat.prototype.formatDate_ = function(count, date) {
+    return gadgets.i18n.DateTimeFormat.padNumber_(date.getDate(), count);
+};
+
+/**
+ * Formats Minutes field according to pattern specified
+ *
+ * @param {number} count Number of time pattern char repeats, it controls
+ *     how a field should be formatted.
+ * @param {Date} date It holds the date object to be formatted.
+ * @return {string} Formatted string that represent this field.
+ * @private
+ */
+gadgets.i18n.DateTimeFormat.prototype.formatMinutes_ = function(count, date) {
+    return gadgets.i18n.DateTimeFormat.padNumber_(date.getMinutes(), count);
+};
+
+/**
+ * Formats Seconds field according to pattern specified
+ *
+ * @param {number} count Number of time pattern char repeats, it controls
+ *     how a field should be formatted.
+ * @param {Date} date It holds the date object to be formatted.
+ * @return {string} Formatted string that represent this field.
+ * @private
+ */
+gadgets.i18n.DateTimeFormat.prototype.formatSeconds_ = function(count, date) {
+    return gadgets.i18n.DateTimeFormat.padNumber_(date.getSeconds(), count);
+};
+
+/**
+ * Formats TimeZone field following RFC
+ *
+ * @param {number} count Number of time pattern char repeats, it controls
+ *     how a field should be formatted.
+ * @param {Date} date It holds the date object to be formatted.
+ * @param {gadgets.i18n.TimeZone} timeZone holds current time zone info.
+ * @return {string} Formatted string that represent this field.
+ * @private
+ */
+gadgets.i18n.DateTimeFormat.prototype.formatTimeZoneRFC_ =
+function(count, date) {
+    if (count < 4) {
+        // 'short' (standard Java) form, must use ASCII digits
+        var val = date.getTimezoneOffset();
+        var sign = '-';
+        if (val < 0) {
+            val = -val;
+            sign = '+';
+        }
+        val = val / 3 * 5 + val % 60;
+    // minutes => KKmm
+        return sign + gadgets.i18n.DateTimeFormat.padNumber_(val, 4);
+    }
+    return this.formatGMT_(count, date);
+};
+
+/**
+ * Generate GMT timeZone string for given date
+ * @param {number} count Number of time pattern char repeats, it controls
+ *     how a field should be formatted.
+ * @param {Date} date Whose value being evaluated.
+ * @return {string} GMT timeZone string.
+ * @private
+ */
+gadgets.i18n.DateTimeFormat.prototype.formatGMT_ = function(count, date) {
+    var value = date.getTimezoneOffset();
+    var out = [];
+    if (value > 0) {
+        out.push('GMT-');
+    } else {
+        value = -value;
+        out.push('GMT+');
+    }
+
+    out.push(gadgets.i18n.DateTimeFormat.padNumber_(value / 60, 2));
+    out.push(':');
+    out.push(gadgets.i18n.DateTimeFormat.padNumber_(value % 60, 2));
+    return out.join('');
+};
+
+/**
+ * Formatting one date field.
+ * @param {string} patternStr The pattern string for the field being formatted.
+ * @param {Date} date The Date object whose field will be formatted.
+ * @private
+ */
+gadgets.i18n.DateTimeFormat.prototype.formatField_ = function(patternStr, date) {
+    var count = patternStr.length;
+    switch (patternStr.charAt(0)) {
+        case 'G': return this.formatEra_(count, date);
+        case 'y': return this.formatYear_(count, date);
+        case 'M': return this.formatMonth_(count, date);
+        case 'k': return this.format24Hours_(count, date);
+        case 'S': return this.formatFractionalSeconds_(count, date);
+        case 'E': return this.formatDayOfWeek_(count, date);
+        case 'a': return this.formatAmPm_(count, date);
+        case 'h': return this.format1To12Hours_(count, date);
+        case 'K': return this.format0To11Hours_(count, date);
+        case 'H': return this.format0To23Hours_(count, date);
+        case 'c': return this.formatStandaloneDay_(count, date);
+        case 'L': return this.formatStandaloneMonth_(count, date);
+        case 'Q': return this.formatQuarter_(count, date);
+        case 'd': return this.formatDate_(count, date);
+        case 'm': return this.formatMinutes_(count, date);
+        case 's': return this.formatSeconds_(count, date);
+        case 'v': return this.formatGMT_(count, date);
+        case 'z': return this.formatGMT_(count, date);
+        case 'Z': return this.formatTimeZoneRFC_(count, date);
+        default: return '';
+    }
+};

Propchange: incubator/shindig/trunk/features/src/main/javascript/features/i18n/datetimeformat.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/shindig/trunk/features/src/main/javascript/features/i18n/datetimeformat.js
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: incubator/shindig/trunk/features/src/main/javascript/features/i18n/datetimeformattest.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/src/main/javascript/features/i18n/datetimeformattest.js?rev=760210&view=auto
==============================================================================
--- incubator/shindig/trunk/features/src/main/javascript/features/i18n/datetimeformattest.js (added)
+++ incubator/shindig/trunk/features/src/main/javascript/features/i18n/datetimeformattest.js Mon Mar 30 22:45:30 2009
@@ -0,0 +1,241 @@
+/*
+ * 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.
+ */
+
+
+/**
+ * @fileoverview Unit Tests - gadgets.i18n.DateTimeFormat.
+ */
+
+function DateTimeFormatTest(name) {
+    TestCase.call(this, name);
+}
+
+DateTimeFormatTest.inherits(TestCase);
+
+var DateTimeConstants_de = {
+    ERAS:["v. Chr.", "n. Chr."],
+    ERANAMES:["v. Chr.", "n. Chr."],
+    NARROWMONTHS:["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
+    MONTHS:["Januar", "Februar", "M\u00E4rz", "April", "Mai", "Juni", "Juli",
+        "August", "September", "Oktober", "November", "Dezember"],
+    SHORTMONTHS:["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep",
+        "Okt", "Nov", "Dez"],
+    WEEKDAYS:["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag",
+        "Freitag", "Samstag"],
+    SHORTWEEKDAYS:["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
+    NARROWWEEKDAYS:["S", "M", "D", "M", "D", "F", "S"],
+    SHORTQUARTERS:["Q1", "Q2", "Q3", "Q4"],
+    QUARTERS:["1. Quartal", "2. Quartal", "3. Quartal", "4. Quartal"],
+    AMPMS:["vorm.", "nachm."],
+    DATEFORMATS:["EEEE, d. MMMM yyyy", "d. MMMM yyyy", "dd.MM.yyyy",
+        "dd.MM.yy"],
+    TIMEFORMATS:["H:mm' Uhr 'z", "HH:mm:ss z", "HH:mm:ss", "HH:mm"],
+    ZONESTRINGS:null
+};
+
+DateTimeConstants_de.STANDALONENARROWMONTHS =
+DateTimeConstants_de.NARROWMONTHS;
+DateTimeConstants_de.STANDALONEMONTHS =
+DateTimeConstants_de.MONTHS;
+DateTimeConstants_de.STANDALONESHORTMONTHS =
+DateTimeConstants_de.SHORTMONTHS;
+DateTimeConstants_de.STANDALONEWEEKDAYS = DateTimeConstants_de.WEEKDAYS;
+DateTimeConstants_de.STANDALONESHORTWEEKDAYS =
+DateTimeConstants_de.SHORTWEEKDAYS;
+DateTimeConstants_de.STANDALONENARROWWEEKDAYS =
+DateTimeConstants_de.NARROWWEEKDAYS;
+
+// Helpers to make tests work regardless of the timeZone we're in.
+function timezoneString(date) {
+    return (new gadgets.i18n.DateTimeFormat(DateTimeConstants_de)).formatGMT_(1, date);
+}
+
+function timezoneStringRFC(date) {
+    return (new gadgets.i18n.DateTimeFormat(DateTimeConstants_de)).formatTimeZoneRFC_(1, date);
+}
+
+DateTimeFormatTest.prototype.setUp = function() {
+    gadgets.i18n.dtFormatter_
+            = new gadgets.i18n.DateTimeFormat(DateTimeConstants_de);
+};
+
+DateTimeFormatTest.prototype.testHHmmss = function() {
+    var date = new Date(2006, 6, 27, 13, 10, 10, 250);
+    this.assertEquals("13:10:10",
+            gadgets.i18n.formatDateTime("HH:mm:ss", date));
+};
+
+DateTimeFormatTest.prototype.testhhmmssa = function() {
+    var date = new Date(2006, 6, 27, 13, 10, 10, 250);
+    this.assertEquals("1:10:10 nachm.",
+            gadgets.i18n.formatDateTime("h:mm:ss a", date));
+};
+
+DateTimeFormatTest.prototype.testEEEMMMddyy = function() {
+    var date = new Date(2006, 6, 27, 13, 10, 10, 250);
+    this.assertEquals("Do, Jul 27, 06",
+            gadgets.i18n.formatDateTime("EEE, MMM d, yy", date));
+};
+
+DateTimeFormatTest.prototype.testEEEEMMMddyy = function() {
+    var date = new Date(2006, 6, 27, 13, 10, 10, 250);
+    this.assertEquals("Donnerstag,Juli 27, 2006",
+            gadgets.i18n.formatDateTime("EEEE,MMMM dd, yyyy", date));
+};
+
+DateTimeFormatTest.prototype.testyyyyMMddG = function() {
+    var date = new Date(2006, 6, 27, 13, 10, 10, 250);
+    this.assertEquals("2006.07.27 n. Chr. at 13:10:10 " + timezoneString(date),
+            gadgets.i18n.formatDateTime("yyyy.MM.dd G 'at' HH:mm:ss vvvv",
+                    date));
+};
+
+DateTimeFormatTest.prototype.testyyyyyMMMMM = function() {
+    var date = new Date(2006, 6, 27, 13, 10, 10, 250);
+    this.assertEquals("2006.J.27 n. Chr. 01:10 nachm.",
+            gadgets.i18n.formatDateTime("yyyyy.MMMMM.dd GGG hh:mm aaa", date));
+};
+
+DateTimeFormatTest.prototype.testQQQQyy = function() {
+    var date = new Date(2006, 0, 27, 13, 10, 10, 250);
+    this.assertEquals("1. Quartal 06",
+            gadgets.i18n.formatDateTime("QQQQ yy", date));
+    date = new Date(2006, 1, 27, 13, 10, 10, 250);
+    this.assertEquals("1. Quartal 06",
+            gadgets.i18n.formatDateTime("QQQQ yy", date));
+    date = new Date(2006, 2, 27, 13, 10, 10, 250);
+    this.assertEquals("1. Quartal 06",
+            gadgets.i18n.formatDateTime("QQQQ yy", date));
+    date = new Date(2006, 3, 27, 13, 10, 10, 250);
+    this.assertEquals("2. Quartal 06",
+            gadgets.i18n.formatDateTime("QQQQ yy", date));
+    date = new Date(2006, 4, 27, 13, 10, 10, 250);
+    this.assertEquals("2. Quartal 06",
+            gadgets.i18n.formatDateTime("QQQQ yy", date));
+    date = new Date(2006, 5, 27, 13, 10, 10, 250);
+    this.assertEquals("2. Quartal 06",
+            gadgets.i18n.formatDateTime("QQQQ yy", date));
+    date = new Date(2006, 6, 27, 13, 10, 10, 250);
+    this.assertEquals("3. Quartal 06",
+            gadgets.i18n.formatDateTime("QQQQ yy", date));
+    date = new Date(2006, 7, 27, 13, 10, 10, 250);
+    this.assertEquals("3. Quartal 06",
+            gadgets.i18n.formatDateTime("QQQQ yy", date));
+    date = new Date(2006, 8, 27, 13, 10, 10, 250);
+    this.assertEquals("3. Quartal 06",
+            gadgets.i18n.formatDateTime("QQQQ yy", date));
+    date = new Date(2006, 9, 27, 13, 10, 10, 250);
+    this.assertEquals("4. Quartal 06",
+            gadgets.i18n.formatDateTime("QQQQ yy", date));
+    date = new Date(2006, 10, 27, 13, 10, 10, 250);
+    this.assertEquals("4. Quartal 06",
+            gadgets.i18n.formatDateTime("QQQQ yy", date));
+    date = new Date(2006, 11, 27, 13, 10, 10, 250);
+    this.assertEquals("4. Quartal 06",
+            gadgets.i18n.formatDateTime("QQQQ yy", date));
+};
+
+DateTimeFormatTest.prototype.testQQyyyy = function() {
+    var date = new Date(2006, 0, 27, 13, 10, 10, 250);
+    this.assertEquals("Q1 2006", gadgets.i18n.formatDateTime("QQ yyyy", date));
+    date = new Date(2006, 1, 27, 13, 10, 10, 250);
+    this.assertEquals("Q1 2006", gadgets.i18n.formatDateTime("QQ yyyy", date));
+    date = new Date(2006, 2, 27, 13, 10, 10, 250);
+    this.assertEquals("Q1 2006", gadgets.i18n.formatDateTime("QQ yyyy", date));
+    date = new Date(2006, 3, 27, 13, 10, 10, 250);
+    this.assertEquals("Q2 2006", gadgets.i18n.formatDateTime("QQ yyyy", date));
+    date = new Date(2006, 4, 27, 13, 10, 10, 250);
+    this.assertEquals("Q2 2006", gadgets.i18n.formatDateTime("QQ yyyy", date));
+    date = new Date(2006, 5, 27, 13, 10, 10, 250);
+    this.assertEquals("Q2 2006", gadgets.i18n.formatDateTime("QQ yyyy", date));
+    date = new Date(2006, 6, 27, 13, 10, 10, 250);
+    this.assertEquals("Q3 2006", gadgets.i18n.formatDateTime("QQ yyyy", date));
+    date = new Date(2006, 7, 27, 13, 10, 10, 250);
+    this.assertEquals("Q3 2006", gadgets.i18n.formatDateTime("QQ yyyy", date));
+    date = new Date(2006, 8, 27, 13, 10, 10, 250);
+    this.assertEquals("Q3 2006", gadgets.i18n.formatDateTime("QQ yyyy", date));
+    date = new Date(2006, 9, 27, 13, 10, 10, 250);
+    this.assertEquals("Q4 2006", gadgets.i18n.formatDateTime("QQ yyyy", date));
+    date = new Date(2006, 10, 27, 13, 10, 10, 250);
+    this.assertEquals("Q4 2006", gadgets.i18n.formatDateTime("QQ yyyy", date));
+    date = new Date(2006, 11, 27, 13, 10, 10, 250);
+    this.assertEquals("Q4 2006", gadgets.i18n.formatDateTime("QQ yyyy", date));
+};
+
+DateTimeFormatTest.prototype.testMMddyyyyHHmmsszzz = function() {
+    var date = new Date(2006, 6, 27, 13, 10, 10, 250);
+    this.assertEquals("07/27/2006 13:10:10 " + timezoneString(date),
+            gadgets.i18n.formatDateTime("MM/dd/yyyy HH:mm:ss zzz", date));
+};
+
+DateTimeFormatTest.prototype.testMMddyyyyHHmmssZ = function() {
+    var date = new Date(2006, 6, 27, 13, 10, 10, 250);
+    this.assertEquals("07/27/2006 13:10:10 " + timezoneStringRFC(date),
+            gadgets.i18n.formatDateTime("MM/dd/yyyy HH:mm:ss Z", date));
+};
+
+DateTimeFormatTest.prototype.testQuote = function() {
+    var date = new Date(2006, 6, 27, 13, 10, 10, 250);
+    this.assertEquals("13 o'clock",
+            gadgets.i18n.formatDateTime("HH 'o''clock'", date));
+    this.assertEquals("13 oclock",
+            gadgets.i18n.formatDateTime("HH 'oclock'", date));
+    this.assertEquals("13 '", gadgets.i18n.formatDateTime("HH ''", date));
+};
+
+DateTimeFormatTest.prototype.testPredefinedFormat = function() {
+    var date = new Date(2006, 7, 4, 13, 49, 24, 000);
+    this.assertEquals("Freitag, 4. August 2006",
+            gadgets.i18n.formatDateTime(gadgets.i18n.FULL_DATE_FORMAT, date));
+    this.assertEquals("4. August 2006",
+            gadgets.i18n.formatDateTime(gadgets.i18n.LONG_DATE_FORMAT, date));
+    this.assertEquals("04.08.2006",
+            gadgets.i18n.formatDateTime(gadgets.i18n.MEDIUM_DATE_FORMAT, date));
+    this.assertEquals("04.08.06",
+            gadgets.i18n.formatDateTime(gadgets.i18n.SHORT_DATE_FORMAT, date));
+    this.assertEquals("13:49 Uhr " + timezoneString(date),
+            gadgets.i18n.formatDateTime(gadgets.i18n.FULL_TIME_FORMAT, date));
+    this.assertEquals("13:49:24 " + timezoneString(date),
+            gadgets.i18n.formatDateTime(gadgets.i18n.LONG_TIME_FORMAT, date));
+    this.assertEquals("13:49:24",
+            gadgets.i18n.formatDateTime(gadgets.i18n.MEDIUM_TIME_FORMAT, date));
+    this.assertEquals("13:49",
+            gadgets.i18n.formatDateTime(gadgets.i18n.SHORT_TIME_FORMAT, date));
+    this.assertEquals("Freitag, 4. August 2006 13:49 Uhr "
+            + timezoneString(date),
+            gadgets.i18n.formatDateTime(gadgets.i18n.FULL_DATETIME_FORMAT,
+                    date));
+    this.assertEquals("4. August 2006 13:49:24 " + timezoneString(date),
+            gadgets.i18n.formatDateTime(gadgets.i18n.LONG_DATETIME_FORMAT,
+                    date));
+    this.assertEquals("04.08.2006 13:49:24",
+            gadgets.i18n.formatDateTime(gadgets.i18n.MEDIUM_DATETIME_FORMAT,
+                    date));
+    this.assertEquals("04.08.06 13:49",
+            gadgets.i18n.formatDateTime(gadgets.i18n.SHORT_DATETIME_FORMAT,
+                    date));
+};
+
+DateTimeFormatTest.prototype.testFractionalSeconds = function() {
+    var date = new Date(2006, 6, 27, 13, 10, 10, 256);
+    this.assertEquals("10:3", gadgets.i18n.formatDateTime("s:S", date));
+    this.assertEquals("10:26", gadgets.i18n.formatDateTime("s:SS", date));
+    this.assertEquals("10:256", gadgets.i18n.formatDateTime("s:SSS", date));
+    this.assertEquals("10:2560", gadgets.i18n.formatDateTime("s:SSSS", date));
+    this.assertEquals("10:25600", gadgets.i18n.formatDateTime("s:SSSSS", date));
+};

Propchange: incubator/shindig/trunk/features/src/main/javascript/features/i18n/datetimeformattest.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/shindig/trunk/features/src/main/javascript/features/i18n/datetimeformattest.js
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision