- Timestamp:
- 05/23/08 11:06:23 (6 months ago)
- Location:
- util/trunk/buildscripts/cldr
- Files:
-
- 3 modified
-
arrayInherit.js (modified) (5 diffs)
-
number.xsl (modified) (3 diffs)
-
specialLocale.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
util/trunk/buildscripts/cldr/arrayInherit.js
r10809 r13790 17 17 * 'dateTimeFormat': "{1} {0}" 18 18 * }) 19 * 19 * 20 20 * child locale - "en-us": 21 21 * // generated from ldml/main/*.xml, xpath: ldml/calendars/calendar-ethiopic … … 24 24 * 'dateFormat-long': "yyyy-MMMM-d" 25 25 * }) 26 * 27 * After process, the re uslt will be:26 * 27 * After process, the result will be: 28 28 * child locale - "en-us": 29 29 * // generated from ldml/main/*.xml, xpath: ldml/calendars/calendar-ethiopic … … 79 79 var variantArray = variantData[prop]; 80 80 dojo.forEach(data[prop], function(element, index, list){ 81 if( typeof element == "undefined"&& dojo.isArray(variantArray)){81 if(element === undefined && dojo.isArray(variantArray)){ 82 82 list[index] = variantArray[index]; 83 83 hasChanged = true; 84 if( typeof list[index] == "undefined"){84 if(!("index" in list)){ 85 85 isComplete = false; 86 86 } … … 90 90 data[prop] = data[prop].concat(variantArray.slice(data[prop].length)); 91 91 hasChanged = true; 92 93 92 } 94 93 } … … 98 97 }); 99 98 if(hasChanged){ 100 fileUtil.saveUtf8File(jsFileName, dojo.toJson(data));99 fileUtil.saveUtf8File(jsFileName, "(" + dojo.toJson(data, true) + ")"); 101 100 } 102 101 } -
util/trunk/buildscripts/cldr/number.xsl
r12062 r13790 75 75 <xsl:for-each select="*[not(@draft)] | *[@draft!='provisional' and @draft!='unconfirmed']"> 76 76 <xsl:call-template name="insert_comma"/> 77 '<xsl:value-of select="name()"></xsl:value-of>77 '<xsl:value-of select="name()"></xsl:value-of> 78 78 <xsl:text>':"</xsl:text> 79 79 <xsl:value-of select="replace(.,'"', '\\"')"></xsl:value-of> … … 116 116 .//pattern[@draft!='provisional' and @draft!='unconfirmed']"> 117 117 <xsl:call-template name="insert_comma"/> 118 '<xsl:value-of select="name(..)"></xsl:value-of>118 '<xsl:value-of select="name(..)"></xsl:value-of> 119 119 <xsl:if test="string-length($width)>0"> 120 120 <xsl:text>-</xsl:text> … … 160 160 <xsl:if test=".[(not(@draft) or @draft!='provisional' and @draft!='unconfirmed')]"> 161 161 <xsl:call-template name="insert_comma"/> 162 '<xsl:value-of select="name(../..)"></xsl:value-of>162 '<xsl:value-of select="name(../..)"></xsl:value-of> 163 163 <xsl:text>-</xsl:text> 164 164 <xsl:value-of select="name(..)"></xsl:value-of> -
util/trunk/buildscripts/cldr/specialLocale.js
r12062 r13790 125 125 //add the new bundle to source locale 126 126 validateDir(srcLocalePath); 127 fileUtil.saveUtf8File(srcLocalePath + '/' + BUNDLE_MAP[len] + '.js', NLS_JSON_HEAD[len] + '(' + dojo.toJson(aliasBundle) + ')'); 128 logMsg = "specailLocale.js : copyed " + BUNDLE_MAP[len] + '.js to ' + srcLocalePath; 129 127 fileUtil.saveUtf8File(srcLocalePath + '/' + BUNDLE_MAP[len] + '.js', NLS_JSON_HEAD[len] + '(' + dojo.toJson(aliasBundle, true) + ')'); 128 logMsg = "specialLocale.js : copied " + BUNDLE_MAP[len] + '.js to ' + srcLocalePath; 130 129 }else if(aliasBundle && srcBundle){ 131 130 var isUpdated = false; … … 152 151 if(isUpdated){ 153 152 validateDir(srcLocalePath); 154 fileUtil.saveUtf8File(srcLocalePath + '/' + BUNDLE_MAP[len] + '.js', NLS_JSON_HEAD[len] + '(' + dojo.toJson(nativeSrcBundle ) + ')');155 logMsg = 'spec ailLocale.js : updated ' + BUNDLE_MAP[len] + '.js in ' + srcLocalePath;153 fileUtil.saveUtf8File(srcLocalePath + '/' + BUNDLE_MAP[len] + '.js', NLS_JSON_HEAD[len] + '(' + dojo.toJson(nativeSrcBundle, true) + ')'); 154 logMsg = 'specialLocale.js : updated ' + BUNDLE_MAP[len] + '.js in ' + srcLocalePath; 156 155 } 157 156 }