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

Add tutorial for creating automatically xlf translation file - Update new-system.md #1720

Merged
merged 5 commits into from
Aug 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions modules/creation/module-translation/new-system.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,16 @@ You can distribute the downloaded dictionaries by placing the extracted files in
Note that these files will only work with PrestaShop 1.7.8 and over. If you need to ensure compatibility with previous versions, read below.
{{% /notice %}}

### Recommended practice for creating module translations

For module developers, if you want to incorporate your final translations into your module without creating the xlf file by hand, the recommended practice is to:

1. Prepare your translations (see "[Making your wordings appear in the translation interface]({{<relref "#making-your-wordings-appear-in-the-translation-interface">}})").
2. Translate them manually in the back office.
3. Export the translations (see "[Exporting translations]({{<relref "#exporting-translations">}})") and add them to your module translations folder.

These translations will be set up in PrestaShop during the module's installation.

### Before 1.7.8

If you need to distribute backward-compatible translations, you can either [write classic dictionary files manually]({{< ref "classic-system#editing-a-dictionary-file-manually" >}}), or export your module's wordings from the database into a file, then import it during the module's install process.
Expand Down
Loading