duckduckgo / duckduckgo-locales

Translation files for duckduckgo.com
https://duckduckgo.com/
99 stars 165 forks source link
translations

duckduckgo-locales

Translation files for duckduckgo.com.

Professional translations for major languages

We're now using a professional service to translate languages in our major markets. This builds on the fantastic work of our translation community and will enable us to attain full coverage and consistency across languages.

The following languages will be affected:

We're very grateful for all the translation contributions that have helped support users around the world up to now, and we still welcome comments to help us improve translations. Please open an Issue and let us know what you think.

About PO files

PO files contain lists of tokens and translations. Tokens are stored in "msgid" values and translations in "msgstr" values, e.g.

msgid "%s blocked by safe search."
msgstr "%s wurde von der sicheren Suche blockiert."

An untranslated token has an empty msgstr:

msgid "%s blocked by safe search."
msgstr ""

PO editing software

While you can edit PO files in any text editor or directly on GitHub, there are some tools which can simplify the process (highlight untranslated tokens etc.)

Where to find the PO file for your language

Example: Deutsch (Deutschland)

Find the locale code for your language in the list below. The file can be found under locales/, e.g. locales/de_DE/LC_MESSAGES/duckduckgo.po

Currently supported locales (Please see issue #13 for discussion on this)

Import translations from Smartling

Note: This is only needed for DuckDuckGo employees. Community translators can ignore it 🙂.

To import translations from Smartling:

  1. Unzip the output file
  2. From this folder, run node ./adapt-translations-from-smartling.js
  3. The script will ask for the location of the translated files. On macOS you can drag-drop the folder you just unzipped from Finder right to the terminal window
  4. Hit enter
  5. Review and commit 🎉