thelia/translation-module

Installs: 107

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 7

Forks: 4

Open Issues: 1

Type:thelia-module

2.0.0 2021-10-07 14:47 UTC

This package is auto-updated.

Last update: 2024-10-20 21:17:57 UTC


README

This module allow you to export and import translations in .po or .xlf. If you need another format feel free to ask it in issues.

Installation

Manually

  • Copy the module into <thelia_root>/local/modules/ directory and be sure that the name of the module is Translation.
  • Activate it in your thelia administration panel

Composer

Add it in your main thelia composer.json file

composer require thelia/translation-module ~1.0.0

Usage

This module adds a new page in back office called Translations, on this new page you can select the format of your translations (.po or .xlf), then you can select which part of your translations you want to export or you can import the translations that you have modified.

For the import to work, you must send a zip file, and it is very important than you respect the folder architecture of the export like :

po
├── backOffice
│   └── bo.default
│       ├── messages.fr.po
│       ├── message.en.po
├── modules
│   ├── <module name>
│   │   ├── <domain name>
│   │   │   ├── messages.fr.po
│   │   │   ├── messages.en.po

... etc.

Once translations have been imported, they will completely replace the standard Thelia translations. To revert to the standard behaviour, delete the local/translations directory.