Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/angular-gettext.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ angular.module('gettext').factory('gettextCatalog', ["gettextPlurals", "gettextF
var fallbackLanguage = gettextFallbackLanguage(this.currentLanguage);
string = this.getStringFormFor(this.currentLanguage, string, n, context) ||
this.getStringFormFor(fallbackLanguage, string, n, context) ||
prefixDebug(n === 1 ? string : stringPlural);
prefixDebug(n == 1 ? string : stringPlural);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but i think it would be better if convert n to number :/

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also, there should be a new test case for this.

if (scope) {
scope.$count = n;
string = $interpolate(string)(scope);
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-gettext.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/catalog.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ angular.module('gettext').factory('gettextCatalog', function (gettextPlurals, ge
var fallbackLanguage = gettextFallbackLanguage(this.currentLanguage);
string = this.getStringFormFor(this.currentLanguage, string, n, context) ||
this.getStringFormFor(fallbackLanguage, string, n, context) ||
prefixDebug(n === 1 ? string : stringPlural);
prefixDebug(n == 1 ? string : stringPlural);
if (scope) {
scope.$count = n;
string = $interpolate(string)(scope);
Expand Down