launchpad translations doesn't understand the flutter format (arb)

Bug #1990284 reported by Sebastien Bacher
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
High
Unassigned

Bug Description

Flutter has its own translations format (arb) which is currently not supported by launchpad

Some of our projects opted it to do their translation on weblate, example
https://hosted.weblate.org/projects/ubuntu-desktop-installer/

it would be nice to have the option to use launchpad for flutter projects though

The format is described on https://github.com/google/app-resource-bundle/wiki/ApplicationResourceBundleSpecification

Example of the translations files for the new installer
https://github.com/canonical/ubuntu-desktop-installer/tree/main/packages/ubuntu_desktop_installer/lib/l10n

Revision history for this message
Colin Watson (cjwatson) wrote (last edit ):

I suspect it would be a relatively straightforward task to write an importer and exporter for this in `lib/lp/translations/utilities/` to go with the others that are already there. https://pypi.org/project/strings2pot/ only works on Python 2 so we can't use it directly, but it might at least provide ideas (its `strings2pot/extractors/arb.py` is only 134 lines of code, so pretty digestible).

tags: added: feature lp-translations
Changed in launchpad:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Adolfo Jayme Barrientos (fitojb) wrote :

Or, y’know, let us translators just use Weblate (which has a much better UX) and be done with the NIH syndrome.

Revision history for this message
Sebastien Bacher (seb128) wrote :

@Adolfo, you are free to use weblate if you wish, the request is to add flutter support to launchpad so those we decide to host a flutter project on it could benefit from translations.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.