L10n:Driving: Difference between revisions

Jump to navigation Jump to search
2,268 bytes removed ,  2 April 2014
Line 33: Line 33:
#* In Verbatim, a [https://etherpad.mozilla.org/l10n-get-finished-locales script] can be used to get the list of fully localized locales.
#* In Verbatim, a [https://etherpad.mozilla.org/l10n-get-finished-locales script] can be used to get the list of fully localized locales.
#* In Verbatim, some locales might be at 100%, but they forget to commit to VCS. Identify such locales with the help of a [https://github.com/mozilla/browserid/blob/dev/scripts/check_po.sh script].
#* In Verbatim, some locales might be at 100%, but they forget to commit to VCS. Identify such locales with the help of a [https://github.com/mozilla/browserid/blob/dev/scripts/check_po.sh script].
== Working with Verbatim box ==
If the project uses Verbatim, [https://localize.mozilla.org/admin Verbatim Administration Dashboard] allows you to perform most of the tasks. But some operations (e.g. adding new locales to projects) require access to the Verbatim box. Check out the official Pootle docs for [http://docs.translatehouse.org/projects/pootle/en/latest/features/version_control.html working with Version Control Systems].
* You can only ssh to sm-verbatim01 while connected to Mozilla-MPT VPN network.
* For easier access to strings, link them to your home directory:
    ln -s /data/www/localize.mozilla.org/verbatim/pootle_env/Pootle/repos repos
* To add a SVN project to Verbatim:
    sudo su verbatim
    cd repos
    svn co svn+ssh://PROJECT_REPO_URL/locale/
    mv locale PROJECT
    cp PROJECT -R ../po
    Add project in the Verbatim Administration Dashboard.
* To add a GitHub project to Verbatim:
** NOTE: Use _ instead of - for all folder/project names
    sudo su verbatim
    cd /data/www/localize.mozilla.org/verbatim/pootle_env/Pootle/l10n_github_repos
    git clone git@github.com:USER/PROJECT.git
    cd ../repos
    ln -s /data/www/localize.mozilla.org/verbatim/pootle_env/Pootle/l10n_github_repos/PROJECT/locale PROJECT
    cp PROJECT -R ../po
    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