Permalink
Browse files

Fixing syntax issues

  • Loading branch information...
1 parent 2d38fc4 commit 6cd27a927dfe8e48b8367f7f0ad0597b66c3d9b5 @ozten ozten committed Mar 20, 2013
Showing with 5 additions and 5 deletions.
  1. +5 −5 localization/localization_part_1.md
@@ -59,17 +59,17 @@ The next step is to work through all of your code where you have user visible pr
Here is an example template file:
- <html lang="{{LANG}}" dir="{{DIR}}">
+ <html lang="<%= lang %>" dir="<%= lang_dir %>">
<head>
- <title>{{gettext('Mozilla Persona')}}</title>
+ <title><%= gettext('Mozilla Persona') %></title>
The key thing abide does, is it injects into the Node and express framework references to the `gettext` function.
-Abide also provides other variables and functions, such as `LANG`, `DIR`.
+Abide also provides other variables and functions, such as `lang`, `lang_dir`.
-`LANG` is the language code based on the user's browser and preferred language settings.
+`lang` is the language code based on the user's browser and preferred language settings.
-`DIR` is for [bidirectional text](http://en.wikipedia.org/wiki/Bi-directional_text) support.
+`lang_dir` is for [bidirectional text](http://en.wikipedia.org/wiki/Bi-directional_text) support.
It will be either `ltr` or `rtl`. The English language is rendered `ltr` or left to right.
`gettext` is a JS function which will take an English string and return a localize string, again based on the user's preferred region and language.

0 comments on commit 6cd27a9

Please sign in to comment.