Skip to content

Commit

Permalink
refs #19043, Fix for field aliases that appear outside of calendars i…
Browse files Browse the repository at this point in the history
…n CLDR root.xml
  • Loading branch information
pottedmeat authored and dylans committed Aug 10, 2017
1 parent 8b4ccc0 commit a100a18
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions buildscripts/cldr/alias.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ function _calculateAliasPath(bundle, name/*String*/){
mapping[LOCALE_ALIAS_SOURCE_PROPERTY] = src;
mapping[LOCALE_ALIAS_TARGET_PROPERTY] = bundle[localeAliasSource + LOCALE_ALIAS_MARK + i][LOCALE_ALIAS_TARGET_PROPERTY];
mapping[LOCALE_ALIAS_TARGET_BUNDLE] = bundle[localeAliasSource + LOCALE_ALIAS_MARK + i][LOCALE_ALIAS_TARGET_BUNDLE];
if (!mapping[LOCALE_ALIAS_TARGET_BUNDLE]) {
// TODO: Fix calendar.xsl to handle the new aliases in root.xml
continue;
}
//whether aliased to the bundle itself
mapping.inSelf = mapping[LOCALE_ALIAS_TARGET_BUNDLE] === name;
path.push(mapping);
Expand Down

0 comments on commit a100a18

Please sign in to comment.