Browse files

short doc for controller translator.

  • Loading branch information...
1 parent 055b88c commit 3924f833583773f04abdfc401b1ad9f869f7ec1f Grzegorz Stanislawski committed Dec 2, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 doc-src/guide-i18n.html
@@ -14,6 +14,8 @@
<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>
+<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>
<img src="" />
<p><em>Step 3</em>: Click "New language file"</p>

0 comments on commit 3924f83

Please sign in to comment.