Blame view

INSTALL.locales.md 861 Bytes
ece6c563   Larissa Reis   Documentation for...
1
2
3
Using custom locales
====================

b6108f3c   Larissa Reis   Moves custom_loca...
4
5
Personalized translations go into the `config/custom_locales/` directory.
Custom locales can be identified by the rails environment, schema name in a
ece6c563   Larissa Reis   Documentation for...
6
7
8
9
10
11
12
13
14
15
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:
b6108f3c   Larissa Reis   Moves custom_loca...
16
17
18
19
20
21
22
23
24
25
26
27
28

    config/
      custom_locales/
        env1/
          environment.pot
          pt/
            environment.po
          es/
            environment.po
        env2/
          environment.pot
          ru/
            environment.po
ece6c563   Larissa Reis   Documentation for...