Hey,
to explain my situation, the actual folder-listing of my project is:
|-locales
|--en.yml
|--cz.yml
|--etc.yml
|-source
|--localizable
|---en
|----page1.html.markdown
|----page2.html.markdown
|---cz
|----page1.html.markdown
|----page2.html.markdown
|---etc
|----page1.html.markdown
|----page2.html.markdown
the config file for i18n contains:
activate :i18n,
:mount_at_root => 'en',
:lang_map => { :'en' => 'en',
:'cz' => 'cz'
},
:path => '/'
now, i tried to create a navigation with, but nor
<li><a href='<%= "../#{I18n.locale}/index.html" %>'>somepage</a></li>
neither
<li><a href='<%= "../#{t(:loc)}/index.html" %> '>somepage</a></li>
(loc is the actual tld (en, cz,…) saved in the locales/en.yml
file (ofc different for different .yml files deppending on the language)
but every time, only the default locale is put on the pages, so for example pages generated in the cz/ folder still take their “translations” from the en.yml
file…
is there some workaround (even if it would mean creating new helper in config.rb or whatever else) to work this right so pages in localizable/tld
would use the locales from the right tld.yml
file?