Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
applyBabelJob: Discard plural forms not used by a locale, and emit a …
…warning.
- Loading branch information
1 parent
fc5e9cc
commit 2e5c729
Showing
6 changed files
with
131 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
</head> | ||
<body> | ||
<script> | ||
INCLUDE('index.i18n'); | ||
alert(TR('MyPlurals', { | ||
one: 'The plural', | ||
other: 'The plurals' | ||
})); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"MyPlurals": { | ||
"en": { | ||
"one": "The plural", | ||
"other": "The plurals" | ||
}, | ||
"cs": { | ||
"one": null, | ||
"other": null, | ||
"few": null, | ||
"many": null | ||
} | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
testdata/bin/applyBabelJob/invalidPlurals/translationjob/cs.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
MyPlurals[one]=xxxx | ||
MyPlurals[other]=yyyy | ||
MyPlurals[few]=zzzz | ||
MyPlurals[many]=wwww |
4 changes: 4 additions & 0 deletions
4
testdata/bin/applyBabelJob/invalidPlurals/translationjob/en.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
MyPlurals[one]=The plural | ||
MyPlurals[other]=The plurals | ||
MyPlurals[few]=argh | ||
MyPlurals[many]=blargh |