Skip to content

Commit

Permalink
short doc for controller translator.
Browse files Browse the repository at this point in the history
  • Loading branch information
majastanislawska committed Dec 2, 2011
1 parent 055b88c commit 3924f83
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc-src/guide-i18n.html
Expand Up @@ -14,6 +14,8 @@
<span class="braces">{{ "{%" }}</span> <span class="keyword">endfor</span> <span class="braces">{{ "%}" }}</span><br /> <span class="braces">{{ "{%" }}</span> <span class="keyword">endfor</span> <span class="braces">{{ "%}" }}</span><br />
<span class="bracket">&lt;/<span class="name">ol</span>&gt;</span> <span class="bracket">&lt;/<span class="name">ol</span>&gt;</span>
</div> </div>
<p>If You have some strings in controller code or libraries which have to be translated, use boss_translator:trans(AppName, String, Locale). Language file generator will scan beam for calls to this function and include String in generated PO file.</p>
<p>Currently You have to use this call directly, do not define a precompiler macro</p>
<p><em>Step 2</em>: Now we need to create a language file. Visit /admin/lang on your development server. You should see a page like this:</p> <p><em>Step 2</em>: Now we need to create a language file. Visit /admin/lang on your development server. You should see a page like this:</p>
<img src="http://www.chicagoboss.org/images/translator-new.jpg" /> <img src="http://www.chicagoboss.org/images/translator-new.jpg" />
<p><em>Step 3</em>: Click "New language file"</p> <p><em>Step 3</em>: Click "New language file"</p>
Expand Down

0 comments on commit 3924f83

Please sign in to comment.