Skip to content

Commit

Permalink
Fixes decimal problem in polish
Browse files Browse the repository at this point in the history
  • Loading branch information
tinganho committed Feb 20, 2015
1 parent e601923 commit c38c0c8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions libraries/LDML/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ LDML.NumberComparisonGroupTypePrecedence = {
*/

LDML.prototype.parse = function(string) {
this.integerExample = null;
this.decimalExample = null;
this.ruleAST = {};
this.lexer = new Lexer(string);
this.currentToken = this.lexer.getNextToken();
Expand Down
2 changes: 1 addition & 1 deletion libraries/MessageFormat/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ MessageFormat.prototype._readPluralRules = function() {
var pluralRule = pluralRules[count];
var case_ = count.replace('pluralRule-count-', '');
this.pluralRules[case_] = LDML.parse(pluralRule);
this.pluralRules[case_].example = LDML.integerExample;
this.pluralRules[case_].example = LDML.integerExample || LDML.decimalExample;
}

cache[this.languageTag].pluralRules = this.pluralRules;
Expand Down
4 changes: 2 additions & 2 deletions libraries/log.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

var file = require('./file')
, log = require('./_log');
var file = require('./file');
var log = require('./_log');

/**
* Add terminal colors
Expand Down

0 comments on commit c38c0c8

Please sign in to comment.