cirandas.net

ref: master

./INSTALL.locales.md


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Using custom locales
====================

Personalized translations go into the `config/custom_locales/` directory.
Custom locales can be identified by the rails environment, schema name in a
multitenancy setup or domain name until the first dot (e.g env1.coop.br for the
example below).

Currently, the only filename prefix for the localization file which is
processed is "environment". For instance, a POT file would be called
"environment.pot".

The structure of an environment named env1 with custom translations for both
Portuguese and Spanish and an environment named env2 with custom Russian
translation would be:

    config/
      custom_locales/
        env1/
          environment.pot
          pt/
            environment.po
          es/
            environment.po
        env2/
          environment.pot
          ru/
            environment.po