<?xml version="1.0" encoding="UTF-8"?>
<wiki-page>
  <author>Dimitrij Denissenko</author>
  <content>h1. File locations

* @locales/@&lt;br/&gt;
  _The root folder for all core translations_
** @locales/app@ ("Example":http://retrospectiva.org/browse/locales/app/de-DE.yml)&lt;br/&gt;
   _Translations of Application strings_   
** @locales/settings@ ("Example":http://retrospectiva.org/browse/locales/settings/en-GB.yml)&lt;br/&gt;
   _Translations of Retrospectiva settings in Admin/Setup_   
** @locales/system@ ("Example":http://retrospectiva.org/browse/locales/system/de-DE.yml)&lt;br/&gt;
   _Rails' specific translations, e.g. models/error messages/etc._
   

* @extensions/EXTENSION_NAME/locales/@ &lt;br/&gt;
  _Each extension can have its own translations_
** @extensions/EXTENSION_NAME/locales/app@ ("Example":http://retrospectiva.org/browse/extensions/retro_wiki/locales/app/de-DE.yml)  
** @extensions/EXTENSION_NAME/locales/settings@
** @extensions/EXTENSION_NAME/locales/system@

h1. Updating existing translations

Before you start, always call (in your Retrospectiva directory)
{{{
ruby script/translations/refresh.rb
}}}

This will update all existing translation patterns and their references.

h1. Adding more languages

Open @config/initializers/a.defaults/i18n.rb@ with an editor and add your locale at the bottom.
To create skeleton files for your locale, call:
{{{
ruby script/translations/refresh.rb
}}}

h1. Debugging

In _production_ mode, missing translations are not highlighted as such. Instead, Retrospectiva gracefully falls-back on the default locale. Missing translations are only indicated in _development_ mode. 

If you would like turn-off the graceful mode in _production_, open (or create) a @config/runtime/custom.rb@ file and add the following lines:
{{{
Rails.configuration.after_initialize do
  RetroI18n.graceful = false
end
}}}
</content>
  <created-at type="datetime">2009-03-08T13:16:08+00:00</created-at>
  <title>Translations</title>
  <updated-at type="datetime">2009-12-03T09:08:46+00:00</updated-at>
  <version type="integer">4</version>
</wiki-page>
