Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Crowdin in context translations #1738

Open
Tracked by #5528
teolemon opened this issue Apr 15, 2019 · 1 comment
Open
Tracked by #5528

Enable Crowdin in context translations #1738

teolemon opened this issue Apr 15, 2019 · 1 comment
Labels
🌐 i18n Regarding software localization pull-request-available Translations We use a non-standard version of GetText, lack language variants support translate.openfoodfacts.org

Comments

@teolemon
Copy link
Member

teolemon commented Apr 15, 2019

When the Crowdin In-Context tool is enabled, the archive with your project translation will include one additional language. It is required to store operational data about localization strings. Integrate this pseudo-language to your app along with other languages you translate to. You will have to switch your application to this language as one of the requirements to enable In-Context localization.
lol/common.po

<script type="text/javascript">
  var _jipt = [];
  _jipt.push(['project', 'openfoodfacts']);
</script>
<script type="text/javascript" src="//cdn.crowdin.com/jipt/jipt.js"></script>

It's important to add the Crowdin In-Context script before any other scripts, at the section of your document. Make sure this script is included on every page with localizable text. Optionally, you can include this JavaScript snippet only when the pseudo-language is active.

Part of

@teolemon teolemon added the 🌐 i18n Regarding software localization label Apr 15, 2019
@teolemon
Copy link
Member Author

teolemon commented Jan 10, 2020

Pull request available #2421

@teolemon teolemon added the Translations We use a non-standard version of GetText, lack language variants support translate.openfoodfacts.org label Sep 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌐 i18n Regarding software localization pull-request-available Translations We use a non-standard version of GetText, lack language variants support translate.openfoodfacts.org
Projects
Status: To discuss and validate
Development

No branches or pull requests

1 participant