This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* First enable translation tracking (if it's disabled) by removing `collections.language.*` | |
* from /admin/config/development/configuration/ignore. | |
* After that, export all field translation .po files from the drupal7 site and save them | |
* in a directory in your project. | |
* The way the script is made requires some specifications: | |
* -The dir that the .po files are stored (e.g. /path/to/poFiles) | |
* -The dir that contains the language files (e.g. /path/to/config/sync/languages/) | |
* -The entities you want the translations from |