Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3)

Side by Side Diff: MoinMoin/templates/dictionary.js

Issue 10330044: Separates jinja2 templates from JS
Patch Set: JS statically served, one global function Created 11 years, 9 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 function _(text){
2 return $.i18n._(text);
3 }
TheSheep 2013/06/18 13:26:25 var _ = $.i18n._;
4
5 $(document).ready(function(){
6 i18n_dict = {·
7 "Hide comments" : "{{ _("Hide comments") }}",
8 "Show comments" : "{{ _("Show comments") }}",
9 "Hide transclusions" : "{{ _("Hide transclusions") }}",
10 "Show transclusions" : "{{ _("Show transclusions") }}",
11 "Your changes will be discarded if you leave this page without saving." : "{{ _("Your changes will be discarded if you leave this page without saving.") }}",·
12 "You missed! Double-click on text or to the right of text to auto-scroll text editor." : "{{ _("You missed! Double-click on text or to the right of tex t to auto-scroll text editor.") }}",
13 "Your browser is obsolete. Upgrade to gain auto-scroll text editor featu re." : "{{ _("Your browser is obsolete. Upgrade to gain auto-scroll text editor feature.") }}",
14 "Your browser is old. Upgrade to gain auto-scroll page after edit featur e." : "{{ _("Your browser is old. Upgrade to gain auto-scroll page after edit f eature.") }}",
15 "Deleting" : "{{ _("Deleting") }}",
16 "Destroying" : "{{ _("Destroying") }}",
17 "Items deleted: " : "{{ _("Items deleted: ") }}",
18 "Items destroyed: " : "{{ _("Items destroyed: ") }}",
19 ", Items not deleted: " : "{{ _(", Items not deleted: ") }}",
20 ", Items not destroyed: " : "{{ _(", Items not destroyed: ") }}"
21 };
22
23 $.i18n.setDictionary(i18n_dict);
24 });
OLDNEW

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b