L10n:Driving: Difference between revisions

Jump to navigation Jump to search
Line 41: Line 41:
* For easier access to strings, link them to your home directory:
* For easier access to strings, link them to your home directory:
     ln -s /data/www/localize.mozilla.org/verbatim/pootle_env/Pootle/repos repos
     ln -s /data/www/localize.mozilla.org/verbatim/pootle_env/Pootle/repos repos
* When working with SVN, switch to "verbatim" user:
    sudo su verbatim
* To add a locale to a Verbatim project:
    1. Add it through Administrate tab in Verbatim (check "Update against templates" box).
    2. [ONLY SVN REPOS] SVN commit the new locale folder in the repos/ folder.
    3. [ONLY SVN REPOS] Click Update all from VCS on the locale page in Verbatim.
* To avoid committing all uncommitted translations from Verbatim DB to SVN, make sure you commit only what you need, e.g.:
    svn ci sl -m "Adding Slovenian for browserid"
* To update all locales at once:
    sudo su verbatim
    cd /data/www/localize.mozilla.org/verbatim/pootle_env/Pootle
    POOTLE_SETTINGS=localsettings.py python2.6 manage.py update_from_vcs --project=PROJECTNAME -v 2
* Other [https://github.com/translate/pootle/tree/master/pootle/apps/pootle_app/management/commands commands] like update_against_templates and commit_to_vcs --user=USER are also supported.


* To add a SVN project to Verbatim:
* To add a SVN project to Verbatim:
Line 77: Line 59:
     cp PROJECT -R ../po
     cp PROJECT -R ../po
     Add project in the [https://localize.mozilla.org/admin/projects.html Verbatim Administration Dashboard].
     Add project in the [https://localize.mozilla.org/admin/projects.html Verbatim Administration Dashboard].
* To add a locale to a Verbatim project:
    1. Add it through Administrate tab in Verbatim (check "Update against templates" box).
    2. [ONLY SVN REPOS] SVN commit the new locale folder in the repos/ folder.
    3. [ONLY SVN REPOS] Click Update all from VCS on the locale page in Verbatim.
* To avoid committing all uncommitted translations from Verbatim DB to SVN, make sure you commit only what you need, e.g.:
    svn ci sl -m "Adding Slovenian for browserid"
* To update all locales at once:
    sudo su verbatim
    cd /data/www/localize.mozilla.org/verbatim/pootle_env/Pootle
    POOTLE_SETTINGS=localsettings.py python2.6 manage.py update_from_vcs --project=PROJECTNAME -v 2
* Other [https://github.com/translate/pootle/tree/master/pootle/apps/pootle_app/management/commands commands] like update_against_templates and commit_to_vcs --user=USER are also supported.
Confirmed users
1,276

edits

Navigation menu