Details
-
New Feature
-
Resolution: Fixed
-
Major
-
None
-
Unknown
-
N/A
-
N/A
-
Description
The script should allow us to migrate a set of translation key from one base translation file to another. It should also create the missing translation files if needed.
Input:
- source_file Source base translation file
- destination_file Destination base translation file
- key_list List of keys to migrate
Example:
source_file: xwiki-platform/xwiki-platform-core/xwiki-platform-oldcore/src/main/resources/ApplicationResources.properties
destination_file: xwiki-platform/xwiki-platform-appwithinminutes/xwiki-platform-appwithinminutes-ui/src/main/resources/AppWithinMinutes/Translations.xml
key_list: key_list.txt
where key_list.txt could be:
webprefs
xwikiprefs
attach
attachments
webdaveditattachment
save
delete
preview
copy
login
logout
homepage
This would move the keys of source_file into destination_file and for each translations available (missing translations of the destination should be created).