Ubuntu translations import queue management in Launchpad

Import queues

The auto-approver script

General rules when doing approvals

Checking package compatibility with language packs

There is nothing magic about language packs. In order to use the translations from language packs a package should read the .MO files from a predefined location specified at build time (/usr/share/locale-langpack/).

To check this functionality you will need to build the binary package:

$ apt-get source PACKAGE_NAME
$ find . -name "*.pot"
$ dpkg-source -x PACKAGE_NAME.dsc
$ cd PACKAGE_NAME
$ debuild -us -uc
$ find ./debian/PACKAGE_NAME -name "*.mo"

If debuild will complain about unmet build dependencies, please install them.

Now we have the following case:

No POT file

If the first "find" command will not reveal any POT file, this means there are no strings available for translations and there is no way you can use Launchpad Translation for translating this package.

If the source package is using a different format for handling the translation, please contact the package maintainer and see if the package can be converted to use gettext standards.

The only exceptions are firefox and openoffice, but we will exclude them, as they require special/extra care.

No MO file

If the second "find" will not show any "MO" files, again the package can not be used with language packs".

If the source package contains "POT" files, but the binary will not produce any "MO" files, this means that the translations are only used during the build phase, and not at runtime.

For now on, you can block the specific "POT" files in the import queue, and inform the package maintainer that those translations can only be translated upstream. Also the package maintainer must take care not to include specific Ubuntu string in those "POT" files, of if he need to, then ask him to request help/guidance from UTCs.

MO file in /usr/share/locale

If the binary package contains "MO" files in /usr/share/locale, then everything is OK and the "POT" template can be approved.

MO file in an arbitrary location

If the binary package contains "MO" files in arbitrary location and not at the "LOCALE" variable specified during build time, the package will not use the language packs.

Please contact the package maintainer and see if you can modify to source package to use the standard LOCALE location.

Operations

The next sections provide step-by-step guides on how to perform some common operations when acting on the imports queue entries.

Disabling templates

  1. Uncheck the "Accept translations" checkbox
  2. Uncheck the "Include translations for this template in language packs?" checkbox
  3. Save changes

Renaming templates

  1. Locate the old template
  2. Go to the old template and open the "Administrate" page
  3. Rename the old template name and translation domain to the new one. If necessary, change the source package entry to the new package (if the template has been moved).
    • TODO, check: possibly renaming the template is enough, as the translation domain will be extracted from the approved new "Needs review" entry in the import queue.
  4. Save the changes
  5. In the import queue approve the new template with the same template name and translation domain like the one you have just modified
  6. At this point the the new template and translations should be in the right place.

Notes:

Tips and tricks

mmv "about-kubuntu-*.po" "#1.po"


CategoryTranslations

UbuntuTranslationsCoordinators/Actions/ImportQueueManagement (last edited 2014-04-10 15:08:51 by timo-jyrinki)