Giter VIP home page Giter VIP logo

fxa-content-server-l10n's Introduction

fxa-content-server-l10n

Build Status

This repo (abbreviated as "L10N" in this README) contains all translated/translatable strings for the fxa-content-server repo (abbreviated as "SOURCE"). It contains an exact copy of the locales/ directory from SOURCE, and nothing else (except for this README).

The moz-verbatim translation team works with this L10N repo, pushing changes into it any time they like.

On a regular basis, somebody on the SOURCE committers team copies everything from L10N into SOURCE/locale/, reviews the changes, then commits and pushes SOURCE. This makes the new translated strings available to SOURCE users, provides a clean (single-commit) revision history, and prevents non-locale/ changes from leaking from one repo to the other. The SOURCE repo contains a script (scripts/import_locale) to perform this update.

On a (different) regular basis, a SOURCE committer will update in the other direction. This starts with running the SOURCE repo's grunt "l10n-extract" task, which updates the *.pot files in SOURCE. The committer then copies the *.pot files from SOURCE into a checkout of L10N. Then they run ./scripts/merge_po.sh in L10N, which updates the *.po files in L10N. Then they should commit and push to L10N. That will update the set of translatable strings for the l10n team to work on.

Dependencies

brew install gettext
brew link gettext --force # brew does not link the tools into /usr/local. Force the link.

Ubuntu: sudo apt-get install gettext

The process to work with strings:

  • Make sure you installed the dependencies and msgfilter (from gettext) command is available in your shell.
  • Have the fxa-auth-mailer and fxa-content-server repos at the same directory level as fxa-content-server-l10n.
  • Have all the dependencies be up to date in the fxa-auth-mailer and fxa-content-server repos using npm install.

Locale Normalization

Before Release Build

Some locales need to be copied over into a different directory. Run this script a few hours before the production deploy:

./scripts/before_prod_deploy.sh --l10n-repo .

String extraction

After Production Deploy

Source strings are extracted from the fxa-content-server and fxa-auth-mailer repos. Make sure you to git pull the latest changes from master for both of those repositories.

  • cd into this project directory and run:
./scripts/extract_strings.sh --mailer-repo ../fxa-auth-mailer --content-repo ../fxa-content-server --l10n-repo . TRAIN_NUMBER

where TRAIN_NUMBER is the train you are cutting strings for.

This will create a new branch. Now run:

./scripts/before_prod_deploy.sh --l10n-repo .

Git commit the changes made by the script. Pull request that branch against master.

After that pull request is merged run:

./scripts/email-dev-l10n.sh

The script above will generate an email for the l10n mailing list. Read through the instructions in the script output to post to the l10n mailing list.

Submitting Translations

Please find your locale on Pontoon - Firefox Accounts or Verbatim - Firefox Accounts. Follow the instructions on those sites to submit your translations.

fxa-content-server-l10n's People

Contributors

aalam avatar andy-moz avatar artpoli avatar avelper avatar cesperanc avatar civas avatar fjoerfoks avatar gion-andri avatar kelemeng avatar kitsunenosarat avatar koehlermichael avatar kyoshino avatar mastizada avatar mathjazz avatar matjaz-connector avatar merike avatar mikkcz avatar milupo avatar mohamed7afezz avatar moz-verbatim avatar mozilla-pontoon avatar petercpg avatar selimsumlu avatar theochevalier avatar tonnesm avatar ujdhesa avatar unghost avatar vladikoff avatar yfdyh000 avatar zaach avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.