You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by sv...@apache.org on 2006/11/10 10:15:40 UTC
svn commit: r473277 [19/45] - in
/myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource:
./ src/ src/animation/ src/cal/ src/charting/ src/charting/svg/
src/charting/vml/ src/collections/ src/crypto/ src/data/ src/data/...
Added: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/INR.js
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/INR.js?view=auto&rev=473277
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/INR.js (added)
+++ myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/INR.js Fri Nov 10 01:15:01 2006
@@ -0,0 +1,14 @@
+/*
+ Copyright (c) 2004-2006, The Dojo Foundation
+ All Rights Reserved.
+
+ Licensed under the Academic Free License version 2.1 or above OR the
+ modified BSD license. For more information on Dojo licensing, see:
+
+ http://dojotoolkit.org/community/licensing.shtml
+*/
+
+({
+ displayName: "INR",
+ symbol: function(value){return (value == 1) ? "Re." : "Rs.";}
+})
\ No newline at end of file
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/INR.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/INR.js
------------------------------------------------------------------------------
svn:keywords = "Id Author LastChangedDate LastChangedBy LastChangedRevision"
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/INR.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ITL.js
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ITL.js?view=auto&rev=473277
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ITL.js (added)
+++ myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ITL.js Fri Nov 10 01:15:01 2006
@@ -0,0 +1,14 @@
+/*
+ Copyright (c) 2004-2006, The Dojo Foundation
+ All Rights Reserved.
+
+ Licensed under the Academic Free License version 2.1 or above OR the
+ modified BSD license. For more information on Dojo licensing, see:
+
+ http://dojotoolkit.org/community/licensing.shtml
+*/
+
+({
+ displayName: "ITL",
+ symbol: "\u20A4"
+})
\ No newline at end of file
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ITL.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ITL.js
------------------------------------------------------------------------------
svn:keywords = "Id Author LastChangedDate LastChangedBy LastChangedRevision"
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ITL.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/JPY.js
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/JPY.js?view=auto&rev=473277
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/JPY.js (added)
+++ myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/JPY.js Fri Nov 10 01:15:01 2006
@@ -0,0 +1,14 @@
+/*
+ Copyright (c) 2004-2006, The Dojo Foundation
+ All Rights Reserved.
+
+ Licensed under the Academic Free License version 2.1 or above OR the
+ modified BSD license. For more information on Dojo licensing, see:
+
+ http://dojotoolkit.org/community/licensing.shtml
+*/
+
+({
+ displayName: "JPY",
+ symbol: "\u00a5"
+})
\ No newline at end of file
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/JPY.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/JPY.js
------------------------------------------------------------------------------
svn:keywords = "Id Author LastChangedDate LastChangedBy LastChangedRevision"
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/JPY.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/README
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/README?view=auto&rev=473277
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/README (added)
+++ myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/README Fri Nov 10 01:15:01 2006
@@ -0,0 +1,6 @@
+All files within this directory and subdirectories were manually derived from http://unicode.org/cldr
+
+See terms of use: http://www.unicode.org/copyright.html#Exhibit1
+
+Eventually, this data should be generated directly from the XML in the CLDR repository to provide
+accurate and full support for the full set of locales.
Added: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/USD.js
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/USD.js?view=auto&rev=473277
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/USD.js (added)
+++ myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/USD.js Fri Nov 10 01:15:01 2006
@@ -0,0 +1,14 @@
+/*
+ Copyright (c) 2004-2006, The Dojo Foundation
+ All Rights Reserved.
+
+ Licensed under the Academic Free License version 2.1 or above OR the
+ modified BSD license. For more information on Dojo licensing, see:
+
+ http://dojotoolkit.org/community/licensing.shtml
+*/
+
+({
+ displayName: "USD",
+ symbol: "$"
+})
\ No newline at end of file
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/USD.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/USD.js
------------------------------------------------------------------------------
svn:keywords = "Id Author LastChangedDate LastChangedBy LastChangedRevision"
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/USD.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en-us/USD.js
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en-us/USD.js?view=auto&rev=473277
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en-us/USD.js (added)
+++ myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en-us/USD.js Fri Nov 10 01:15:01 2006
@@ -0,0 +1,13 @@
+/*
+ Copyright (c) 2004-2006, The Dojo Foundation
+ All Rights Reserved.
+
+ Licensed under the Academic Free License version 2.1 or above OR the
+ modified BSD license. For more information on Dojo licensing, see:
+
+ http://dojotoolkit.org/community/licensing.shtml
+*/
+
+({
+ symbol: "$"
+})
\ No newline at end of file
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en-us/USD.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en-us/USD.js
------------------------------------------------------------------------------
svn:keywords = "Id Author LastChangedDate LastChangedBy LastChangedRevision"
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en-us/USD.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/EUR.js
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/EUR.js?view=auto&rev=473277
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/EUR.js (added)
+++ myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/EUR.js Fri Nov 10 01:15:01 2006
@@ -0,0 +1,13 @@
+/*
+ Copyright (c) 2004-2006, The Dojo Foundation
+ All Rights Reserved.
+
+ Licensed under the Academic Free License version 2.1 or above OR the
+ modified BSD license. For more information on Dojo licensing, see:
+
+ http://dojotoolkit.org/community/licensing.shtml
+*/
+
+({
+ displayName: "Euro"
+})
\ No newline at end of file
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/EUR.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/EUR.js
------------------------------------------------------------------------------
svn:keywords = "Id Author LastChangedDate LastChangedBy LastChangedRevision"
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/EUR.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/GBP.js
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/GBP.js?view=auto&rev=473277
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/GBP.js (added)
+++ myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/GBP.js Fri Nov 10 01:15:01 2006
@@ -0,0 +1,13 @@
+/*
+ Copyright (c) 2004-2006, The Dojo Foundation
+ All Rights Reserved.
+
+ Licensed under the Academic Free License version 2.1 or above OR the
+ modified BSD license. For more information on Dojo licensing, see:
+
+ http://dojotoolkit.org/community/licensing.shtml
+*/
+
+({
+ displayName: "British Pound Sterling"
+})
\ No newline at end of file
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/GBP.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/GBP.js
------------------------------------------------------------------------------
svn:keywords = "Id Author LastChangedDate LastChangedBy LastChangedRevision"
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/GBP.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/INR.js
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/INR.js?view=auto&rev=473277
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/INR.js (added)
+++ myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/INR.js Fri Nov 10 01:15:01 2006
@@ -0,0 +1,13 @@
+/*
+ Copyright (c) 2004-2006, The Dojo Foundation
+ All Rights Reserved.
+
+ Licensed under the Academic Free License version 2.1 or above OR the
+ modified BSD license. For more information on Dojo licensing, see:
+
+ http://dojotoolkit.org/community/licensing.shtml
+*/
+
+({
+ displayName: "Indian Rupee"
+})
\ No newline at end of file
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/INR.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/INR.js
------------------------------------------------------------------------------
svn:keywords = "Id Author LastChangedDate LastChangedBy LastChangedRevision"
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/INR.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/ITL.js
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/ITL.js?view=auto&rev=473277
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/ITL.js (added)
+++ myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/ITL.js Fri Nov 10 01:15:01 2006
@@ -0,0 +1,13 @@
+/*
+ Copyright (c) 2004-2006, The Dojo Foundation
+ All Rights Reserved.
+
+ Licensed under the Academic Free License version 2.1 or above OR the
+ modified BSD license. For more information on Dojo licensing, see:
+
+ http://dojotoolkit.org/community/licensing.shtml
+*/
+
+({
+ displayName: "Italian Lira"
+})
\ No newline at end of file
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/ITL.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/ITL.js
------------------------------------------------------------------------------
svn:keywords = "Id Author LastChangedDate LastChangedBy LastChangedRevision"
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/ITL.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/JPY.js
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/JPY.js?view=auto&rev=473277
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/JPY.js (added)
+++ myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/JPY.js Fri Nov 10 01:15:01 2006
@@ -0,0 +1,13 @@
+/*
+ Copyright (c) 2004-2006, The Dojo Foundation
+ All Rights Reserved.
+
+ Licensed under the Academic Free License version 2.1 or above OR the
+ modified BSD license. For more information on Dojo licensing, see:
+
+ http://dojotoolkit.org/community/licensing.shtml
+*/
+
+({
+ displayName: "Japanese Yen"
+})
\ No newline at end of file
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/JPY.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/JPY.js
------------------------------------------------------------------------------
svn:keywords = "Id Author LastChangedDate LastChangedBy LastChangedRevision"
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/JPY.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/USD.js
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/USD.js?view=auto&rev=473277
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/USD.js (added)
+++ myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/USD.js Fri Nov 10 01:15:01 2006
@@ -0,0 +1,14 @@
+/*
+ Copyright (c) 2004-2006, The Dojo Foundation
+ All Rights Reserved.
+
+ Licensed under the Academic Free License version 2.1 or above OR the
+ modified BSD license. For more information on Dojo licensing, see:
+
+ http://dojotoolkit.org/community/licensing.shtml
+*/
+
+({
+ displayName: "US Dollar",
+ symbol: "US$"
+})
\ No newline at end of file
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/USD.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/USD.js
------------------------------------------------------------------------------
svn:keywords = "Id Author LastChangedDate LastChangedBy LastChangedRevision"
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/en/USD.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/EUR.js
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/EUR.js?view=auto&rev=473277
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/EUR.js (added)
+++ myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/EUR.js Fri Nov 10 01:15:01 2006
@@ -0,0 +1,13 @@
+/*
+ Copyright (c) 2004-2006, The Dojo Foundation
+ All Rights Reserved.
+
+ Licensed under the Academic Free License version 2.1 or above OR the
+ modified BSD license. For more information on Dojo licensing, see:
+
+ http://dojotoolkit.org/community/licensing.shtml
+*/
+
+({
+ displayName: "यà¥à¤°à¥"
+})
\ No newline at end of file
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/EUR.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/EUR.js
------------------------------------------------------------------------------
svn:keywords = "Id Author LastChangedDate LastChangedBy LastChangedRevision"
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/EUR.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/GBP.js
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/GBP.js?view=auto&rev=473277
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/GBP.js (added)
+++ myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/GBP.js Fri Nov 10 01:15:01 2006
@@ -0,0 +1,13 @@
+/*
+ Copyright (c) 2004-2006, The Dojo Foundation
+ All Rights Reserved.
+
+ Licensed under the Academic Free License version 2.1 or above OR the
+ modified BSD license. For more information on Dojo licensing, see:
+
+ http://dojotoolkit.org/community/licensing.shtml
+*/
+
+({
+ displayName: "बà¥à¤°à¤¿à¤¤à¤¨ à¤à¤¾ पà¥à¤¨à¥à¤¡ सà¥à¤à¤°à¥à¤²à¤¿à¤"
+})
\ No newline at end of file
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/GBP.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/GBP.js
------------------------------------------------------------------------------
svn:keywords = "Id Author LastChangedDate LastChangedBy LastChangedRevision"
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/GBP.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/INR.js
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/INR.js?view=auto&rev=473277
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/INR.js (added)
+++ myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/INR.js Fri Nov 10 01:15:01 2006
@@ -0,0 +1,14 @@
+/*
+ Copyright (c) 2004-2006, The Dojo Foundation
+ All Rights Reserved.
+
+ Licensed under the Academic Free License version 2.1 or above OR the
+ modified BSD license. For more information on Dojo licensing, see:
+
+ http://dojotoolkit.org/community/licensing.shtml
+*/
+
+({
+ displayName: "à¤à¤¾à¤°à¤¤à¥à¤¯ रà¥à¤ªà¤¯à¤¾",
+ symbol: "रà¥."
+})
\ No newline at end of file
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/INR.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/INR.js
------------------------------------------------------------------------------
svn:keywords = "Id Author LastChangedDate LastChangedBy LastChangedRevision"
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/INR.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/ITL.js
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/ITL.js?view=auto&rev=473277
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/ITL.js (added)
+++ myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/ITL.js Fri Nov 10 01:15:01 2006
@@ -0,0 +1,13 @@
+/*
+ Copyright (c) 2004-2006, The Dojo Foundation
+ All Rights Reserved.
+
+ Licensed under the Academic Free License version 2.1 or above OR the
+ modified BSD license. For more information on Dojo licensing, see:
+
+ http://dojotoolkit.org/community/licensing.shtml
+*/
+
+({
+ displayName: "à¤à¤¤à¤²à¥ à¤à¤¾ लà¥à¤°à¤¾"
+})
\ No newline at end of file
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/ITL.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/ITL.js
------------------------------------------------------------------------------
svn:keywords = "Id Author LastChangedDate LastChangedBy LastChangedRevision"
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/ITL.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/JPY.js
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/JPY.js?view=auto&rev=473277
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/JPY.js (added)
+++ myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/JPY.js Fri Nov 10 01:15:01 2006
@@ -0,0 +1,13 @@
+/*
+ Copyright (c) 2004-2006, The Dojo Foundation
+ All Rights Reserved.
+
+ Licensed under the Academic Free License version 2.1 or above OR the
+ modified BSD license. For more information on Dojo licensing, see:
+
+ http://dojotoolkit.org/community/licensing.shtml
+*/
+
+({
+ displayName: "à¤à¤¾à¤ªà¤¾à¤¨à¥ यà¥à¤¨"
+})
\ No newline at end of file
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/JPY.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/JPY.js
------------------------------------------------------------------------------
svn:keywords = "Id Author LastChangedDate LastChangedBy LastChangedRevision"
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/JPY.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/USD.js
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/USD.js?view=auto&rev=473277
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/USD.js (added)
+++ myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/USD.js Fri Nov 10 01:15:01 2006
@@ -0,0 +1,13 @@
+/*
+ Copyright (c) 2004-2006, The Dojo Foundation
+ All Rights Reserved.
+
+ Licensed under the Academic Free License version 2.1 or above OR the
+ modified BSD license. For more information on Dojo licensing, see:
+
+ http://dojotoolkit.org/community/licensing.shtml
+*/
+
+({
+ displayName: "à¤
मरà¥à¤à¥ डालर"
+})
\ No newline at end of file
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/USD.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/USD.js
------------------------------------------------------------------------------
svn:keywords = "Id Author LastChangedDate LastChangedBy LastChangedRevision"
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/hi/USD.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/EUR.js
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/EUR.js?view=auto&rev=473277
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/EUR.js (added)
+++ myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/EUR.js Fri Nov 10 01:15:01 2006
@@ -0,0 +1,13 @@
+/*
+ Copyright (c) 2004-2006, The Dojo Foundation
+ All Rights Reserved.
+
+ Licensed under the Academic Free License version 2.1 or above OR the
+ modified BSD license. For more information on Dojo licensing, see:
+
+ http://dojotoolkit.org/community/licensing.shtml
+*/
+
+({
+ displayName: "ã¦ã¼ã"
+})
\ No newline at end of file
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/EUR.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/EUR.js
------------------------------------------------------------------------------
svn:keywords = "Id Author LastChangedDate LastChangedBy LastChangedRevision"
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/EUR.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/GBP.js
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/GBP.js?view=auto&rev=473277
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/GBP.js (added)
+++ myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/GBP.js Fri Nov 10 01:15:01 2006
@@ -0,0 +1,13 @@
+/*
+ Copyright (c) 2004-2006, The Dojo Foundation
+ All Rights Reserved.
+
+ Licensed under the Academic Free License version 2.1 or above OR the
+ modified BSD license. For more information on Dojo licensing, see:
+
+ http://dojotoolkit.org/community/licensing.shtml
+*/
+
+({
+ displayName: "è±å½ãã³ã"
+})
\ No newline at end of file
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/GBP.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/GBP.js
------------------------------------------------------------------------------
svn:keywords = "Id Author LastChangedDate LastChangedBy LastChangedRevision"
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/GBP.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/INR.js
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/INR.js?view=auto&rev=473277
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/INR.js (added)
+++ myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/INR.js Fri Nov 10 01:15:01 2006
@@ -0,0 +1,14 @@
+/*
+ Copyright (c) 2004-2006, The Dojo Foundation
+ All Rights Reserved.
+
+ Licensed under the Academic Free License version 2.1 or above OR the
+ modified BSD license. For more information on Dojo licensing, see:
+
+ http://dojotoolkit.org/community/licensing.shtml
+*/
+
+({
+ displayName: "ã¤ã³ã ã«ãã¼",
+ symbol: "INR"
+})
\ No newline at end of file
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/INR.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/INR.js
------------------------------------------------------------------------------
svn:keywords = "Id Author LastChangedDate LastChangedBy LastChangedRevision"
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/INR.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/ITL.js
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/ITL.js?view=auto&rev=473277
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/ITL.js (added)
+++ myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/ITL.js Fri Nov 10 01:15:01 2006
@@ -0,0 +1,13 @@
+/*
+ Copyright (c) 2004-2006, The Dojo Foundation
+ All Rights Reserved.
+
+ Licensed under the Academic Free License version 2.1 or above OR the
+ modified BSD license. For more information on Dojo licensing, see:
+
+ http://dojotoolkit.org/community/licensing.shtml
+*/
+
+({
+ displayName: "ã¤ã¿ãªã¢ ãªã©"
+})
\ No newline at end of file
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/ITL.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/ITL.js
------------------------------------------------------------------------------
svn:keywords = "Id Author LastChangedDate LastChangedBy LastChangedRevision"
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/ITL.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/JPY.js
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/JPY.js?view=auto&rev=473277
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/JPY.js (added)
+++ myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/JPY.js Fri Nov 10 01:15:01 2006
@@ -0,0 +1,14 @@
+/*
+ Copyright (c) 2004-2006, The Dojo Foundation
+ All Rights Reserved.
+
+ Licensed under the Academic Free License version 2.1 or above OR the
+ modified BSD license. For more information on Dojo licensing, see:
+
+ http://dojotoolkit.org/community/licensing.shtml
+*/
+
+({
+ displayName: "æ¥æ¬å",
+ symbol: "ï¿¥"
+})
\ No newline at end of file
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/JPY.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/JPY.js
------------------------------------------------------------------------------
svn:keywords = "Id Author LastChangedDate LastChangedBy LastChangedRevision"
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/JPY.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/USD.js
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/USD.js?view=auto&rev=473277
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/USD.js (added)
+++ myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/USD.js Fri Nov 10 01:15:01 2006
@@ -0,0 +1,13 @@
+/*
+ Copyright (c) 2004-2006, The Dojo Foundation
+ All Rights Reserved.
+
+ Licensed under the Academic Free License version 2.1 or above OR the
+ modified BSD license. For more information on Dojo licensing, see:
+
+ http://dojotoolkit.org/community/licensing.shtml
+*/
+
+({
+ displayName: "ç±³ãã«"
+})
\ No newline at end of file
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/USD.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/USD.js
------------------------------------------------------------------------------
svn:keywords = "Id Author LastChangedDate LastChangedBy LastChangedRevision"
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/currency/nls/ja/USD.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/number.js
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/number.js?view=auto&rev=473277
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/number.js (added)
+++ myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/number.js Fri Nov 10 01:15:01 2006
@@ -0,0 +1,292 @@
+/*
+ Copyright (c) 2004-2006, The Dojo Foundation
+ All Rights Reserved.
+
+ Licensed under the Academic Free License version 2.1 or above OR the
+ modified BSD license. For more information on Dojo licensing, see:
+
+ http://dojotoolkit.org/community/licensing.shtml
+*/
+
+dojo.provide("dojo.i18n.number");
+
+dojo.require("dojo.experimental");
+dojo.experimental("dojo.i18n.number");
+
+dojo.require("dojo.regexp");
+dojo.require("dojo.i18n.common");
+dojo.require("dojo.lang.common");
+
+/**
+* Method to Format and validate a given number
+*
+* @param Number value
+* The number to be formatted and validated.
+* @param Object flags
+* flags.places number of decimal places to show, default is 0 (cannot be Infinity)
+* flags.round true to round the number, false to truncate
+* @param String locale
+* The locale used to determine the number format.
+* @return String
+* the formatted number of type String if successful
+* or null if an unsupported locale value was provided
+**/
+dojo.i18n.number.format = function(value, flags /*optional*/, locale /*optional*/){
+ flags = (typeof flags == "object") ? flags : {};
+
+ var formatData = dojo.i18n.number._mapToLocalizedFormatData(dojo.i18n.number.FORMAT_TABLE, locale);
+ if (typeof flags.separator == "undefined") {flags.separator = formatData[1];}
+ if (typeof flags.decimal == "undefined") {flags.decimal = formatData[2];}
+ if (typeof flags.groupSize == "undefined") {flags.groupSize = formatData[3];}
+ if (typeof flags.groupSize2 == "undefined") {flags.groupSize2 = formatData[4];}
+ if (typeof flags.round == "undefined") {flags.round = true;}
+ if (typeof flags.signed == "undefined") {flags.signed = true;}
+
+ var output = (flags.signed && (value < 0)) ? "-" : "";
+ value = Math.abs(value);
+ var whole = String((((flags.places > 0) || !flags.round) ? Math.floor : Math.round)(value));
+
+ // Splits str into substrings of size count, starting from right to left. Is there a more clever way to do this in JS?
+ function splitSubstrings(str, count){
+ for(var subs = []; str.length >= count; str = str.substr(0, str.length - count)){
+ subs.push(str.substr(-count));
+ }
+ if (str.length > 0){subs.push(str);}
+ return subs.reverse();
+ }
+
+ if (flags.groupSize2 && (whole.length > flags.groupSize)){
+ var groups = splitSubstrings(whole.substr(0, whole.length - flags.groupSize), flags.groupSize2);
+ groups.push(whole.substr(-flags.groupSize));
+ output = output + groups.join(flags.separator);
+ }else if (flags.groupSize){
+ output = output + splitSubstrings(whole, flags.groupSize).join(flags.separator);
+ }else{
+ output = output + whole;
+ }
+
+//TODO: what if flags.places is Infinity?
+ if (flags.places > 0){
+ //Q: Is it safe to convert to a string and split on ".", or might that be locale dependent? Use Math for now.
+ var fract = value - Math.floor(value);
+ fract = (flags.round ? Math.round : Math.floor)(fract * Math.pow(10, flags.places));
+ output = output + flags.decimal + fract;
+ }
+
+//TODO: exp
+
+ return output;
+};
+
+/**
+* Method to convert a properly formatted int string to a primative numeric value.
+*
+* @param String value
+* The int string to be convertted
+* @param string locale
+* The locale used to convert the number string
+* @param Object flags
+* flags.validate true to check the string for strict adherence to the locale settings for separator, sign, etc.
+* Default is true
+* @return Number
+* Returns a value of type Number, Number.NaN if not a number, or null if locale is not supported.
+**/
+dojo.i18n.number.parse = function(value, locale /*optional*/, flags /*optional*/){
+ flags = (typeof flags == "object") ? flags : {};
+
+ var formatData = dojo.i18n.number._mapToLocalizedFormatData(dojo.i18n.number.FORMAT_TABLE, locale);
+ if (typeof flags.separator == "undefined") {flags.separator = formatData[1];}
+ if (typeof flags.decimal == "undefined") {flags.decimal = formatData[2];}
+ if (typeof flags.groupSize == "undefined") {flags.groupSize = formatData[3];}
+ if (typeof flags.groupSize2 == "undefined") {flags.groupSize2 = formatData[4];}
+ if (typeof flags.validate == "undefined") {flags.validate = true;}
+
+ if (flags.validate && !dojo.i18n.number.isReal(value, locale, flags)) {
+ return Number.NaN;
+ }
+
+ var numbers = value.split(flags.decimal);
+ if (numbers.length > 2){return Number.NaN; }
+ var whole = Number(numbers[0].replace(new RegExp("\\" + flags.separator, "g"), ""));
+ var fract = (numbers.length == 1) ? 0 : Number(numbers[1]) / Math.pow(10, String(numbers[1]).length); // could also do Number(whole + "." + numbers[1]) if whole != NaN
+
+//TODO: exp
+
+ return whole + fract;
+};
+
+/**
+ Validates whether a string is in an integer format.
+
+ @param value A string.
+ @param locale the locale to determine formatting used. By default, the locale defined by the
+ host environment: dojo.locale
+ @param flags An object.
+ flags.signed The leading plus-or-minus sign. Can be true, false, or [true, false].
+ Default is [true, false], (i.e. sign is optional).
+ flags.separator The character used as the thousands separator. Default is specified by the locale.
+ For more than one symbol use an array, e.g. [",", ""], makes ',' optional.
+ The empty array [] makes the default separator optional.
+ @return true or false.
+*/
+dojo.i18n.number.isInteger = function(value, locale /*optional*/, flags /*optional*/) {
+ flags = (typeof flags == "object") ? flags : {};
+
+ var formatData = dojo.i18n.number._mapToLocalizedFormatData(dojo.i18n.number.FORMAT_TABLE, locale);
+ if (typeof flags.separator == "undefined") {flags.separator = formatData[1];}
+ else if (dojo.lang.isArray(flags.separator) && flags.separator.length ===0){
+ flags.separator = [formatData[1],""];
+ }
+ if (typeof flags.groupSize == "undefined") {flags.groupSize = formatData[3];}
+ if (typeof flags.groupSize2 == "undefined") {flags.groupSize2 = formatData[4];}
+
+ var re = new RegExp("^" + dojo.regexp.integer(flags) + "$");
+ return re.test(value);
+};
+
+/**
+ Validates whether a string is a real valued number.
+ Format is the usual exponential notation.
+
+ @param value A string.
+ @param locale the locale to determine formatting used. By default, the locale defined by the
+ host environment: dojo.locale
+ @param flags An object.
+ flags.places The integer number of decimal places.
+ If not given, the decimal part is optional and the number of places is unlimited.
+ flags.decimal The character used for the decimal point. The default is specified by the locale.
+ flags.exponent Express in exponential notation. Can be true, false, or [true, false].
+ Default is [true, false], (i.e. the exponential part is optional).
+ flags.eSigned The leading plus-or-minus sign on the exponent. Can be true, false,
+ or [true, false]. Default is [true, false], (i.e. sign is optional).
+ flags in regexp.integer can be applied.
+ @return true or false.
+*/
+dojo.i18n.number.isReal = function(value, locale /*optional*/, flags /*optional*/) {
+ flags = (typeof flags == "object") ? flags : {};
+
+ var formatData = dojo.i18n.number._mapToLocalizedFormatData(dojo.i18n.number.FORMAT_TABLE, locale);
+ if (typeof flags.separator == "undefined") {flags.separator = formatData[1];}
+ else if (dojo.lang.isArray(flags.separator) && flags.separator.length ===0){
+ flags.separator = [formatData[1],""];
+ }
+ if (typeof flags.decimal == "undefined") {flags.decimal = formatData[2];}
+ if (typeof flags.groupSize == "undefined") {flags.groupSize = formatData[3];}
+ if (typeof flags.groupSize2 == "undefined") {flags.groupSize2 = formatData[4];}
+
+ var re = new RegExp("^" + dojo.regexp.realNumber(flags) + "$");
+ return re.test(value);
+};
+
+//TODO: hide in a closure?
+//TODO: change to use hashes and mixins, rather than arrays
+//Q: fallback algorithm/how to structure table:
+// does it make sense to look by country code most of the time (wildcard match on
+// language, except where it's relevant) and provide default country when only
+// a language is given?
+(function() {
+
+dojo.i18n.number.FORMAT_TABLE = {
+ //0: thousand seperator for monetary, 1: thousand seperator for number, 2: decimal seperator, 3: group size, 4: second group size because of india
+ 'ar-ae': ["","", ",", 1],
+ 'ar-bh': ["","",",", 1],
+ 'ar-dz': ["","",",", 1],
+ 'ar-eg': ["","", ",", 1],
+ 'ar-jo': ["","",",", 1],
+ 'ar-kw': ["","", ",", 1],
+ 'ar-lb': ["","", ",", 1],
+ 'ar-ma': ["","", ",", 1],
+ 'ar-om': ["","", ",", 1],
+ 'ar-qa': ["","", ",", 1],
+ 'ar-sa': ["","", ",", 1],
+ 'ar-sy': ["","", ",", 1],
+ 'ar-tn': ["","", ",", 1],
+ 'ar-ye': ["","", ",", 1],
+ 'cs-cz': [".",".", ",", 3],
+ 'da-dk': [".",".", ",", 3],
+ 'de-at': [".",".", ",", 3],
+ 'de-de': [".",".", ",", 3],
+ 'de-lu': [".",".", ",", 3],
+ //IBM JSL defect 51278. right now we have problem with single quote. //IBM: explain?
+ 'de-ch': ["'","'", ".", 3], //Q: comma as decimal separator for currency??
+ //'de-ch': [".",".", ",", 3],
+ 'el-gr': [".",".", ",", 3],
+ 'en-au': [",",",", ".", 3],
+ 'en-ca': [",",",", ".", 3],
+ 'en-gb': [",",",", ".", 3],
+ 'en-hk': [",",",", ".", 3],
+ 'en-ie': [",",",", ".", 3],
+ 'en-in': [",",",", ".", 3,2],//india-english, 1,23,456.78
+ 'en-nz': [",",",", ".", 3],
+ 'en-us': [",",",", ".", 3],
+ 'en-za': [",",",", ".", 3],
+
+ 'es-ar': [".",".", ",", 3],
+ 'es-bo': [".",".", ",", 3],
+ 'es-cl': [".",".", ",", 3],
+ 'es-co': [".",".", ",", 3],
+ 'es-cr': [".",".", ",", 3],
+ 'es-do': [".",".", ",", 3],
+ 'es-ec': [".",".", ",", 3],
+ 'es-es': [".",".", ",", 3],
+ 'es-gt': [",",",", ".", 3],
+ 'es-hn': [",",",", ".", 3],
+ 'es-mx': [",",",", ".", 3],
+ 'es-ni': [",",",", ".", 3],
+ 'es-pa': [",",",", ".", 3],
+ 'es-pe': [",",",", ".", 3],
+ 'es-pr': [",",",", ".", 3],
+ 'es-py': [".",".",",", 3],
+ 'es-sv': [",", ",",".", 3],
+ 'es-uy': [".",".",",", 3],
+ 'es-ve': [".",".", ",", 3],
+
+ 'fi-fi': [" "," ", ",", 3],
+
+ 'fr-be': [".",".",",", 3],
+ 'fr-ca': [" ", " ", ",", 3],
+
+ 'fr-ch': [" ", " ",".", 3],
+
+ 'fr-fr': [" "," ", ",", 3],
+ 'fr-lu': [".",".", ",", 3],
+
+ 'he-il': [",",",", ".", 3],
+
+ 'hu-hu': [" ", " ",",", 3],
+
+ 'it-ch': [" "," ", ".", 3],
+
+ 'it-it': [".",".", ",", 3],
+ 'ja-jp': [",",",", ".", 3],
+ 'ko-kr': [",", ",",".", 3],
+
+ 'no-no': [".",".", ",", 3],
+
+ 'nl-be': [" "," ", ",", 3],
+ 'nl-nl': [".",".", ",", 3],
+ 'pl-pl': [".", ".",",", 3],
+
+ 'pt-br': [".",".", ",", 3],
+ 'pt-pt': [".",".", "$", 3],
+ 'ru-ru': [" ", " ",",", 3],
+
+ 'sv-se': ["."," ", ",", 3],
+
+ 'tr-tr': [".",".", ",", 3],
+
+ 'zh-cn': [",",",", ".", 3],
+ 'zh-hk': [",",",",".", 3],
+ 'zh-tw': [",", ",",".", 3],
+ '*': [",",",", ".", 3]
+};
+})();
+
+dojo.i18n.number._mapToLocalizedFormatData = function(table, locale){
+ locale = dojo.hostenv.normalizeLocale(locale);
+//TODO: most- to least-specific search? search by country code?
+//TODO: implement aliases to simplify and shorten tables
+ var data = table[locale];
+ if (typeof data == 'undefined'){data = table['*'];}
+ return data;
+}
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/number.js
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/number.js
------------------------------------------------------------------------------
svn:keywords = "Id Author LastChangedDate LastChangedBy LastChangedRevision"
Propchange: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/i18n/number.js
------------------------------------------------------------------------------
svn:mime-type = text/plain
Modified: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/iCalendar.js
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/iCalendar.js?view=diff&rev=473277&r1=473276&r2=473277
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/iCalendar.js (original)
+++ myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/dojo/resource/src/iCalendar.js Fri Nov 10 01:15:01 2006
@@ -8,807 +8,5 @@
http://dojotoolkit.org/community/licensing.shtml
*/
-dojo.provide("dojo.iCalendar");
-dojo.require("dojo.text.textDirectory");
-dojo.require("dojo.date");
-dojo.require("dojo.lang");
-
-
-dojo.iCalendar.fromText = function (/* string */text) {
- // summary
- // Parse text of an iCalendar and return an array of iCalendar objects
-
- var properties = dojo.textDirectoryTokeniser.tokenise(text);
- var calendars = [];
-
- //dojo.debug("Parsing iCal String");
- for (var i = 0, begun = false; i < properties.length; i++) {
- var prop = properties[i];
- if (!begun) {
- if (prop.name == 'BEGIN' && prop.value == 'VCALENDAR') {
- begun = true;
- var calbody = [];
- }
- } else if (prop.name == 'END' && prop.value == 'VCALENDAR') {
- calendars.push(new dojo.iCalendar.VCalendar(calbody));
- begun = false;
- } else {
- calbody.push(prop);
- }
- }
- return /* array */calendars;
-}
-
-
-dojo.iCalendar.Component = function (/* string */ body ) {
- // summary
- // A component is the basic container of all this stuff.
-
- if (!this.name) {
- this.name = "COMPONENT"
- }
-
- this.properties = [];
- this.components = [];
-
- if (body) {
- for (var i = 0, context = ''; i < body.length; i++) {
- if (context == '') {
- if (body[i].name == 'BEGIN') {
- context = body[i].value;
- var childprops = [];
- } else {
- this.addProperty(new dojo.iCalendar.Property(body[i]));
- }
- } else if (body[i].name == 'END' && body[i].value == context) {
- if (context=="VEVENT") {
- this.addComponent(new dojo.iCalendar.VEvent(childprops));
- } else if (context=="VTIMEZONE") {
- this.addComponent(new dojo.iCalendar.VTimeZone(childprops));
- } else if (context=="VTODO") {
- this.addComponent(new dojo.iCalendar.VTodo(childprops));
- } else if (context=="VJOURNAL") {
- this.addComponent(new dojo.iCalendar.VJournal(childprops));
- } else if (context=="VFREEBUSY") {
- this.addComponent(new dojo.iCalendar.VFreeBusy(childprops));
- } else if (context=="STANDARD") {
- this.addComponent(new dojo.iCalendar.Standard(childprops));
- } else if (context=="DAYLIGHT") {
- this.addComponent(new dojo.iCalendar.Daylight(childprops));
- } else if (context=="VALARM") {
- this.addComponent(new dojo.iCalendar.VAlarm(childprops));
- }else {
- dojo.unimplemented("dojo.iCalendar." + context);
- }
- context = '';
- } else {
- childprops.push(body[i]);
- }
- }
-
- if (this._ValidProperties) {
- this.postCreate();
- }
- }
-}
-
-dojo.lang.extend(dojo.iCalendar.Component, {
-
- addProperty: function (prop) {
- // summary
- // push a new property onto a component.
- this.properties.push(prop);
- this[prop.name.toLowerCase()] = prop;
- },
-
- addComponent: function (prop) {
- // summary
- // add a component to this components list of children.
- this.components.push(prop);
- },
-
- postCreate: function() {
- for (var x=0; x<this._ValidProperties.length; x++) {
- var evtProperty = this._ValidProperties[x];
- var found = false;
-
- for (var y=0; y<this.properties.length; y++) {
- var prop = this.properties[y];
- var propName = prop.name.toLowerCase();
- if (dojo.lang.isArray(evtProperty)) {
-
- var alreadySet = false;
- for (var z=0; z<evtProperty.length; z++) {
- var evtPropertyName = evtProperty[z].name.toLowerCase();
- if((this[evtPropertyName]) && (evtPropertyName != propName )) {
- alreadySet=true;
- }
- }
- if (!alreadySet) {
- this[propName] = prop;
- }
- } else {
- if (propName == evtProperty.name.toLowerCase()) {
- found = true;
- if (evtProperty.occurance == 1){
- this[propName] = prop;
- } else {
- found = true;
- if (!dojo.lang.isArray(this[propName])) {
- this[propName] = [];
- }
- this[propName].push(prop);
- }
- }
- }
- }
-
- if (evtProperty.required && !found) {
- dojo.debug("iCalendar - " + this.name + ": Required Property not found: " + evtProperty.name);
- }
- }
-
- // parse any rrules
- if (dojo.lang.isArray(this.rrule)) {
- for(var x=0; x<this.rrule.length; x++) {
- var rule = this.rrule[x].value;
-
- //add a place to cache dates we have checked for recurrance
- this.rrule[x].cache = function() {};
-
- var temp = rule.split(";");
- for (var y=0; y<temp.length; y++) {
- var pair = temp[y].split("=");
- var key = pair[0].toLowerCase();
- var val = pair[1];
-
- if ((key == "freq") || (key=="interval") || (key=="until")) {
- this.rrule[x][key]= val;
- } else {
- var valArray = val.split(",");
- this.rrule[x][key] = valArray;
- }
- }
- }
- this.recurring = true;
- }
-
- },
-
- toString: function () {
- // summary
- // output a string representation of this component.
- return "[iCalendar.Component; " + this.name + ", " + this.properties.length +
- " properties, " + this.components.length + " components]";
- }
-});
-
-dojo.iCalendar.Property = function (prop) {
- // summary
- // A single property of a component.
-
- // unpack the values
- this.name = prop.name;
- this.group = prop.group;
- this.params = prop.params;
- this.value = prop.value;
-
-}
-
-dojo.lang.extend(dojo.iCalendar.Property, {
- toString: function () {
- // summary
- // output a string reprensentation of this component.
- return "[iCalenday.Property; " + this.name + ": " + this.value + "]";
- }
-});
-
-// This is just a little helper function for the Component Properties
-var _P = function (n, oc, req) {
- return {name: n, required: (req) ? true : false,
- occurance: (oc == '*' || !oc) ? -1 : oc}
-}
-
-/*
- * VCALENDAR
- */
-
-dojo.iCalendar.VCalendar = function (/* string */ calbody) {
- // summary
- // VCALENDAR Component
-
- this.name = "VCALENDAR";
- this.recurring = [];
- this.nonRecurringEvents = function(){};
- dojo.iCalendar.Component.call(this, calbody);
-}
-
-dojo.inherits(dojo.iCalendar.VCalendar, dojo.iCalendar.Component);
-
-dojo.lang.extend(dojo.iCalendar.VCalendar, {
-
- addComponent: function (prop) {
- // summary
- // add component to the calenadar that makes it easy to pull them out again later.
- this.components.push(prop);
- if (prop.name.toLowerCase() == "vevent") {
- if (prop.rrule) {
- this.recurring.push(prop);
- } else {
- var startDate = prop.getDate();
- var month = startDate.getMonth() + 1;
- var dateString= month + "-" + startDate.getDate() + "-" + startDate.getFullYear();
- if (!dojo.lang.isArray(this[dateString])) {
- this.nonRecurringEvents[dateString] = [];
- }
- this.nonRecurringEvents[dateString].push(prop);
- }
- }
- },
-
- preComputeRecurringEvents: function(until) {
- var calculatedEvents = function(){};
-
- for(var x=0; x<this.recurring.length; x++) {
- var dates = this.recurring[x].getDates(until);
- for (var y=0; y<dates.length;y++) {
- var month = dates[y].getMonth() + 1;
- var dateStr = month + "-" + dates[y].getDate() + "-" + dates[y].getFullYear();
- if (!dojo.lang.isArray(calculatedEvents[dateStr])) {
- calculatedEvents[dateStr] = [];
- }
-
- if (!dojo.lang.inArray(calculatedEvents[dateStr], this.recurring[x])) {
- calculatedEvents[dateStr].push(this.recurring[x]);
- }
- }
- }
- this.recurringEvents = calculatedEvents;
-
- },
-
- getEvents: function(/* Date */ date) {
- // summary
- // Gets all events occuring on a particular date
- var events = [];
- var recur = [];
- var nonRecur = [];
- var month = date.getMonth() + 1;
- var dateStr= month + "-" + date.getDate() + "-" + date.getFullYear();
- if (dojo.lang.isArray(this.nonRecurringEvents[dateStr])) {
- nonRecur= this.nonRecurringEvents[dateStr];
- dojo.debug("Number of nonRecurring Events: " + nonRecur.length);
- }
-
-
- if (dojo.lang.isArray(this.recurringEvents[dateStr])) {
- recur= this.recurringEvents[dateStr];
- }
-
- events = recur.concat(nonRecur);
-
- if (events.length > 0) {
- return events;
- }
-
- return null;
- }
-});
-
-/*
- * STANDARD
- */
-
-var StandardProperties = [
- _P("dtstart", 1, true), _P("tzoffsetto", 1, true), _P("tzoffsetfrom", 1, true),
- _P("comment"), _P("rdate"), _P("rrule"), _P("tzname")
-];
-
-
-dojo.iCalendar.Standard = function (/* string */ body) {
- // summary
- // STANDARD Component
-
- this.name = "STANDARD";
- this._ValidProperties = StandardProperties;
- dojo.iCalendar.Component.call(this, body);
-}
-
-dojo.inherits(dojo.iCalendar.Standard, dojo.iCalendar.Component);
-
-/*
- * DAYLIGHT
- */
-
-var DaylightProperties = [
- _P("dtstart", 1, true), _P("tzoffsetto", 1, true), _P("tzoffsetfrom", 1, true),
- _P("comment"), _P("rdate"), _P("rrule"), _P("tzname")
-];
-
-dojo.iCalendar.Daylight = function (/* string */ body) {
- // summary
- // Daylight Component
- this.name = "DAYLIGHT";
- this._ValidProperties = DaylightProperties;
- dojo.iCalendar.Component.call(this, body);
-}
-
-dojo.inherits(dojo.iCalendar.Daylight, dojo.iCalendar.Component);
-
-/*
- * VEVENT
- */
-
-var VEventProperties = [
- // these can occur once only
- _P("class", 1), _P("created", 1), _P("description", 1), _P("dtstart", 1),
- _P("geo", 1), _P("last-mod", 1), _P("location", 1), _P("organizer", 1),
- _P("priority", 1), _P("dtstamp", 1), _P("seq", 1), _P("status", 1),
- _P("summary", 1), _P("transp", 1), _P("uid", 1), _P("url", 1), _P("recurid", 1),
- // these two are exclusive
- [_P("dtend", 1), _P("duration", 1)],
- // these can occur many times over
- _P("attach"), _P("attendee"), _P("categories"), _P("comment"), _P("contact"),
- _P("exdate"), _P("exrule"), _P("rstatus"), _P("related"), _P("resources"),
- _P("rdate"), _P("rrule")
-];
-
-dojo.iCalendar.VEvent = function (/* string */ body) {
- // summary
- // VEVENT Component
- this._ValidProperties = VEventProperties;
- this.name = "VEVENT";
- dojo.iCalendar.Component.call(this, body);
- this.recurring = false;
- this.startDate = dojo.date.fromIso8601(this.dtstart.value);
-}
-
-dojo.inherits(dojo.iCalendar.VEvent, dojo.iCalendar.Component);
-
-dojo.lang.extend(dojo.iCalendar.VEvent, {
- getDates: function(until) {
- var dtstart = this.getDate();
-
- var recurranceSet = [];
- var weekdays=["su","mo","tu","we","th","fr","sa"];
- var order = {
- "daily": 1, "weekly": 2, "monthly": 3, "yearly": 4,
- "byday": 1, "bymonthday": 1, "byweekno": 2, "bymonth": 3, "byyearday": 4};
-
- // expand rrules into the recurrance
- for (var x=0; x<this.rrule.length; x++) {
- var rrule = this.rrule[x];
- var freq = rrule.freq.toLowerCase();
- var interval = 1;
-
- if (rrule.interval > interval) {
- interval = rrule.interval;
- }
-
- var set = [];
- var freqInt = order[freq];
-
- if (rrule.until) {
- var tmpUntil = dojo.date.fromIso8601(rrule.until);
- } else {
- var tmpUntil = until
- }
-
- if (tmpUntil > until) {
- tmpUntil = until
- }
-
-
- if (dtstart<tmpUntil) {
-
- var expandingRules = function(){};
- var cullingRules = function(){};
- expandingRules.length=0;
- cullingRules.length =0;
-
- switch(freq) {
- case "yearly":
- var nextDate = new Date(dtstart);
- set.push(nextDate);
- while(nextDate < tmpUntil) {
- nextDate.setYear(nextDate.getFullYear()+interval);
- tmpDate = new Date(nextDate);
- if(tmpDate < tmpUntil) {
- set.push(tmpDate);
- }
- }
- break;
- case "monthly":
- nextDate = new Date(dtstart);
- set.push(nextDate);
- while(nextDate < tmpUntil) {
- nextDate.setMonth(nextDate.getMonth()+interval);
- var tmpDate = new Date(nextDate);
- if (tmpDate < tmpUntil) {
- set.push(tmpDate);
- }
- }
- break;
- case "weekly":
- nextDate = new Date(dtstart);
- set.push(nextDate);
- while(nextDate < tmpUntil) {
- nextDate.setDate(nextDate.getDate()+(7*interval));
- var tmpDate = new Date(nextDate);
- if (tmpDate < tmpUntil) {
- set.push(tmpDate);
- }
- }
- break;
- case "daily":
- nextDate = new Date(dtstart);
- set.push(nextDate);
- while(nextDate < tmpUntil) {
- nextDate.setDate(nextDate.getDate()+interval);
- var tmpDate = new Date(nextDate);
- if (tmpDate < tmpUntil) {
- set.push(tmpDate);
- }
- }
- break;
-
- }
-
- if ((rrule["bymonth"]) && (order["bymonth"]<freqInt)) {
- for (var z=0; z<rrule["bymonth"].length; z++) {
- if (z==0) {
- for (var zz=0; zz < set.length; zz++) {
- set[zz].setMonth(rrule["bymonth"][z]-1);
- }
- } else {
- var subset=[];
- for (var zz=0; zz < set.length; zz++) {
- var newDate = new Date(set[zz]);
- newDate.setMonth(rrule[z]);
- subset.push(newDate);
- }
- tmp = set.concat(subset);
- set = tmp;
- }
- }
- }
-
-
- // while the spec doesn't prohibit it, it makes no sense to have a bymonth and a byweekno at the same time
- // and if i'm wrong then i don't know how to apply that rule. This is also documented elsewhere on the web
- if (rrule["byweekno"] && !rrule["bymonth"]) {
- dojo.debug("TODO: no support for byweekno yet");
- }
-
-
- // while the spec doesn't prohibit it, it makes no sense to have a bymonth and a byweekno at the same time
- // and if i'm wrong then i don't know how to apply that rule. This is also documented elsewhere on the web
- if (rrule["byyearday"] && !rrule["bymonth"] && !rrule["byweekno"] ) {
- if (rrule["byyearday"].length > 1) {
- var regex = "([+-]?)([0-9]{1,3})";
- for (var z=1; x<rrule["byyearday"].length; z++) {
- var regexResult = rrule["byyearday"][z].match(regex);
- if (z==1) {
- for (var zz=0; zz < set.length; zz++) {
- if (regexResult[1] == "-") {
- dojo.date.setDayOfYear(set[zz],366-regexResult[2]);
- } else {
- dojo.date.setDayOfYear(set[zz],regexResult[2]);
- }
- }
- } else {
- var subset=[];
- for (var zz=0; zz < set.length; zz++) {
- var newDate = new Date(set[zz]);
- if (regexResult[1] == "-") {
- dojo.date.setDayOfYear(newDate,366-regexResult[2]);
- } else {
- dojo.date.setDayOfYear(newDate,regexResult[2]);
- }
- subset.push(newDate);
- }
- tmp = set.concat(subset);
- set = tmp;
- }
- }
- }
- }
-
- if (rrule["bymonthday"] && (order["bymonthday"]<freqInt)) {
- if (rrule["bymonthday"].length > 0) {
- var regex = "([+-]?)([0-9]{1,3})";
- for (var z=0; z<rrule["bymonthday"].length; z++) {
- var regexResult = rrule["bymonthday"][z].match(regex);
- if (z==0) {
- for (var zz=0; zz < set.length; zz++) {
- if (regexResult[1] == "-") {
- if (regexResult[2] < dojo.date.getDaysInMonth(set[zz])) {
- set[zz].setDate(dojo.date.getDaysInMonth(set[zz]) - regexResult[2]);
- }
- } else {
- if (regexResult[2] < dojo.date.getDaysInMonth(set[zz])) {
- set[zz].setDate(regexResult[2]);
- }
- }
- }
- } else {
- var subset=[];
- for (var zz=0; zz < set.length; zz++) {
- var newDate = new Date(set[zz]);
- if (regexResult[1] == "-") {
- if (regexResult[2] < dojo.date.getDaysInMonth(set[zz])) {
- newDate.setDate(dojo.date.getDaysInMonth(set[zz]) - regexResult[2]);
- }
- } else {
- if (regexResult[2] < dojo.date.getDaysInMonth(set[zz])) {
- newDate.setDate(regexResult[2]);
- }
- }
- subset.push(newDate);
- }
- tmp = set.concat(subset);
- set = tmp;
- }
- }
- }
- }
-
- if (rrule["byday"] && (order["byday"]<freqInt)) {
- if (rrule["bymonth"]) {
- if (rrule["byday"].length > 0) {
- var regex = "([+-]?)([0-9]{0,1}?)([A-Za-z]{1,2})";
- for (var z=0; z<rrule["byday"].length; z++) {
- var regexResult = rrule["byday"][z].match(regex);
- var occurance = regexResult[2];
- var day = regexResult[3].toLowerCase();
-
-
- if (z==0) {
- for (var zz=0; zz < set.length; zz++) {
- if (regexResult[1] == "-") {
- //find the nth to last occurance of date
- var numDaysFound = 0;
- var lastDayOfMonth = dojo.date.getDaysInMonth(set[zz]);
- var daysToSubtract = 1;
- set[zz].setDate(lastDayOfMonth);
- if (weekdays[set[zz].getDay()] == day) {
- numDaysFound++;
- daysToSubtract=7;
- }
- daysToSubtract = 1;
- while (numDaysFound < occurance) {
- set[zz].setDate(set[zz].getDate()-daysToSubtract);
- if (weekdays[set[zz].getDay()] == day) {
- numDaysFound++;
- daysToSubtract=7;
- }
- }
- } else {
- if (occurance) {
- var numDaysFound=0;
- set[zz].setDate(1);
- var daysToAdd=1;
-
- if(weekdays[set[zz].getDay()] == day) {
- numDaysFound++;
- daysToAdd=7;
- }
-
- while(numDaysFound < occurance) {
- set[zz].setDate(set[zz].getDate()+daysToAdd);
- if(weekdays[set[zz].getDay()] == day) {
- numDaysFound++;
- daysToAdd=7;
- }
- }
- } else {
- //we're gonna expand here to add a date for each of the specified days for each month
- var numDaysFound=0;
- var subset = [];
-
- lastDayOfMonth = new Date(set[zz]);
- var daysInMonth = dojo.date.getDaysInMonth(set[zz]);
- lastDayOfMonth.setDate(daysInMonth);
-
- set[zz].setDate(1);
-
- if (weekdays[set[zz].getDay()] == day) {
- numDaysFound++;
- }
- var tmpDate = new Date(set[zz]);
- daysToAdd = 1;
- while(tmpDate.getDate() < lastDayOfMonth) {
- if (weekdays[tmpDate.getDay()] == day) {
- numDaysFound++;
- if (numDaysFound==1) {
- set[zz] = tmpDate;
- } else {
- subset.push(tmpDate);
- tmpDate = new Date(tmpDate);
- daysToAdd=7;
- tmpDate.setDate(tmpDate.getDate() + daysToAdd);
- }
- } else {
- tmpDate.setDate(tmpDate.getDate() + daysToAdd);
- }
- }
- var t = set.concat(subset);
- set = t;
- }
- }
- }
- } else {
- var subset=[];
- for (var zz=0; zz < set.length; zz++) {
- var newDate = new Date(set[zz]);
- if (regexResult[1] == "-") {
- if (regexResult[2] < dojo.date.getDaysInMonth(set[zz])) {
- newDate.setDate(dojo.date.getDaysInMonth(set[zz]) - regexResult[2]);
- }
- } else {
- if (regexResult[2] < dojo.date.getDaysInMonth(set[zz])) {
- newDate.setDate(regexResult[2]);
- }
- }
- subset.push(newDate);
- }
- tmp = set.concat(subset);
- set = tmp;
- }
- }
- }
- } else {
- dojo.debug("TODO: byday within a yearly rule without a bymonth");
- }
- }
-
- dojo.debug("TODO: Process BYrules for units larger than frequency");
-
- //add this set of events to the complete recurranceSet
- var tmp = recurranceSet.concat(set);
- recurranceSet = tmp;
- }
- }
-
- // TODO: add rdates to the recurrance set here
-
- // TODO: subtract exdates from the recurrance set here
-
- //TODO: subtract dates generated by exrules from recurranceSet here
-
- recurranceSet.push(dtstart);
- return recurranceSet;
- },
-
- getDate: function() {
- return dojo.date.fromIso8601(this.dtstart.value);
- }
-});
-
-/*
- * VTIMEZONE
- */
-
-var VTimeZoneProperties = [
- _P("tzid", 1, true), _P("last-mod", 1), _P("tzurl", 1)
-
- // one of 'standardc' or 'daylightc' must occur
- // and each may occur more than once.
-];
-
-dojo.iCalendar.VTimeZone = function (/* string */ body) {
- // summary
- // VTIMEZONE Component
- this.name = "VTIMEZONE";
- this._ValidProperties = VTimeZoneProperties;
- dojo.iCalendar.Component.call(this, body);
-}
-
-dojo.inherits(dojo.iCalendar.VTimeZone, dojo.iCalendar.Component);
-
-/*
- * VTODO
- */
-
-var VTodoProperties = [
- // these can occur once only
- _P("class", 1), _P("completed", 1), _P("created", 1), _P("description", 1),
- _P("dtstart", 1), _P("geo", 1), _P("last-mod", 1), _P("location", 1),
- _P("organizer", 1), _P("percent", 1), _P("priority", 1), _P("dtstamp", 1),
- _P("seq", 1), _P("status", 1), _P("summary", 1), _P("uid", 1), _P("url", 1),
- _P("recurid", 1),
- // these two are exclusive
- [_P("due", 1), _P("duration", 1)],
- // these can occur many times over
- _P("attach"), _P("attendee"), _P("categories"), _P("comment"), _P("contact"),
- _P("exdate"), _P("exrule"), _P("rstatus"), _P("related"), _P("resources"),
- _P("rdate"), _P("rrule")
-];
-
-dojo.iCalendar.VTodo= function (/* string */ body) {
- // summary
- // VTODO Componenet
- this.name = "VTODO";
- this._ValidProperties = VTodoProperties;
- dojo.iCalendar.Component.call(this, body);
-}
-
-dojo.inherits(dojo.iCalendar.VTodo, dojo.iCalendar.Component);
-
-/*
- * VJOURNAL
- */
-
-var VJournalProperties = [
- // these can occur once only
- _P("class", 1), _P("created", 1), _P("description", 1), _P("dtstart", 1),
- _P("last-mod", 1), _P("organizer", 1), _P("dtstamp", 1), _P("seq", 1),
- _P("status", 1), _P("summary", 1), _P("uid", 1), _P("url", 1), _P("recurid", 1),
- // these can occur many times over
- _P("attach"), _P("attendee"), _P("categories"), _P("comment"), _P("contact"),
- _P("exdate"), _P("exrule"), _P("related"), _P("rstatus"), _P("rdate"), _P("rrule")
-];
-
-dojo.iCalendar.VJournal= function (/* string */ body) {
- // summary
- // VJOURNAL Component
- this.name = "VJOURNAL";
- this._ValidProperties = VJournalProperties;
- dojo.iCalendar.Component.call(this, body);
-}
-
-dojo.inherits(dojo.iCalendar.VJournal, dojo.iCalendar.Component);
-
-/*
- * VFREEBUSY
- */
-
-var VFreeBusyProperties = [
- // these can occur once only
- _P("contact"), _P("dtstart", 1), _P("dtend"), _P("duration"),
- _P("organizer", 1), _P("dtstamp", 1), _P("uid", 1), _P("url", 1),
- // these can occur many times over
- _P("attendee"), _P("comment"), _P("freebusy"), _P("rstatus")
-];
-
-dojo.iCalendar.VFreeBusy= function (/* string */ body) {
- // summary
- // VFREEBUSY Component
- this.name = "VFREEBUSY";
- this._ValidProperties = VFreeBusyProperties;
- dojo.iCalendar.Component.call(this, body);
-}
-
-dojo.inherits(dojo.iCalendar.VFreeBusy, dojo.iCalendar.Component);
-
-/*
- * VALARM
- */
-
-var VAlarmProperties = [
- [_P("action", 1, true), _P("trigger", 1, true), [_P("duration", 1), _P("repeat", 1)],
- _P("attach", 1)],
-
- [_P("action", 1, true), _P("description", 1, true), _P("trigger", 1, true),
- [_P("duration", 1), _P("repeat", 1)]],
-
- [_P("action", 1, true), _P("description", 1, true), _P("trigger", 1, true),
- _P("summary", 1, true), _P("attendee", "*", true),
- [_P("duration", 1), _P("repeat", 1)],
- _P("attach", 1)],
-
- [_P("action", 1, true), _P("attach", 1, true), _P("trigger", 1, true),
- [_P("duration", 1), _P("repeat", 1)],
- _P("description", 1)],
-];
-
-dojo.iCalendar.VAlarm= function (/* string */ body) {
- // summary
- // VALARM Component
- this.name = "VALARM";
- this._ValidProperties = VAlarmProperties;
- dojo.iCalendar.Component.call(this, body);
-}
-
-dojo.inherits(dojo.iCalendar.VAlarm, dojo.iCalendar.Component);
-
+dojo.require("dojo.cal.iCalendar");
+dojo.deprecated("dojo.icalendar", "use dojo.cal.iCalendar isntead", "0.5");