diff options
author | Peter <Peter.Gijsels@gmail.com> | 2010-03-02 22:46:50 (GMT) |
---|---|---|
committer | Peter <Peter.Gijsels@gmail.com> | 2010-03-02 22:46:50 (GMT) |
commit | ea211eca1f3aebf2381577f0092f494248c617d4 (patch) | |
tree | fafaa5f74f9356ee65db5729d9b234fdc9cda014 /examples/6_Maths_matchingAnglesAndShapes/js/lesson.js | |
parent | 15721c5a271c26ac755819dee67f6ae947ff8f89 (diff) |
Reworked i18n.
Changes:
- using pgettext i.s.o. _c to be consistent with gnu gettext
- no longer using 'default' context when there is no context
- mo2js.py now deals with contexts
- changed the extension for messages file from .json to .js
Diffstat (limited to 'examples/6_Maths_matchingAnglesAndShapes/js/lesson.js')
-rwxr-xr-x | examples/6_Maths_matchingAnglesAndShapes/js/lesson.js | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/examples/6_Maths_matchingAnglesAndShapes/js/lesson.js b/examples/6_Maths_matchingAnglesAndShapes/js/lesson.js index 8aef7d8..ce105ba 100755 --- a/examples/6_Maths_matchingAnglesAndShapes/js/lesson.js +++ b/examples/6_Maths_matchingAnglesAndShapes/js/lesson.js @@ -6,7 +6,7 @@ Bugs (firefox 3.5.7): recto iso angulo-recto) * the text for angulo-obtuso is not displaying properly * title in english: 'matching angles with shapes' should maybe be -'matching angles and shapes' +'matching angles and shapes' Questions: * how do we set locale? cfr beginning of $(document).ready() @@ -96,22 +96,6 @@ $(document).ready(function() { }; - // example of ngettext usage - alert(function(clickCounter, h, m, s) { - return format($.i18n.ngettext('You have completed the game in <span class="specialText">%d</span> clicks within <span class="specialText">%d</span> hour,', - 'You have completed the game in <span class="specialText">%d</span> clicks within <span class="specialText">%d</span> hours,', - h), - clickCounter, h) - + format($.i18n.ngettext('<span class="specialText">%d</span> minute and ', - '<span class="specialText">%d</span> minutes and ', - m), - m) - + format ($.i18n.ngettext('<span class="specialText">%d</span> second.', - '<span class="specialText">%d</span> seconds.', - s), - s); - }(10, 2, 3, 1)); - var check_game_over = function(){ if(numMatched === NUM_OBJECTS){ //show all play = 0; |