Uploaded image for project: 'XWiki Infrastructure'
  1. XWiki Infrastructure
  2. XINFRA-263

Create a translation key migration script

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Fixed
    • Major
    • l10n.xwiki.org
    • 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).

      Attachments

        Activity

          People

            atallahade Adel Atallah
            atallahade Adel Atallah
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: