46 lines
1.1 KiB
Plaintext
46 lines
1.1 KiB
Plaintext
I18n rake tasks
|
|
------------------------
|
|
|
|
There are several rake tasks, see in lib/tasks/i18n.rb
|
|
|
|
To get an overview run:
|
|
$ rake cg:i18n:bundle
|
|
$ rake cg:i18n:report
|
|
|
|
In order to download translations, you need a config/transifex.netrc file.
|
|
For example:
|
|
machine www.transifex.com login crabgrass password xxxxxxxxxxxxxxxxx
|
|
|
|
|
|
TRANSIFEX
|
|
------------------------
|
|
To handle translations, we are using a system called Transifex. On transifex,
|
|
the crabgrass home page is here:
|
|
https://www.transifex.com/riseuplabs/crabgrass.
|
|
Translators see the value from the english source file.
|
|
|
|
There is more transifex documentation at https://docs.transifex.com/.
|
|
|
|
USING THE TRANSIFEX CLIENT
|
|
------------------------
|
|
|
|
The transifex client allows you to pull translations and update source files
|
|
from your console \o/.
|
|
https://docs.transifex.com/client/introduction
|
|
|
|
Installing the client:
|
|
https://docs.transifex.com/client/installing-the-client
|
|
|
|
Configuring the client:
|
|
https://docs.transifex.com/client/client-configuration
|
|
|
|
Command list:
|
|
--------------
|
|
$ tx status
|
|
|
|
Updating source files to transifex:
|
|
$ tx push --source
|
|
|
|
Downloading and overwriting local translation files:
|
|
$ tx pull -a
|