Confirmed users
920
edits
LesOrchard (talk | contribs) No edit summary |
LesOrchard (talk | contribs) |
||
| Line 92: | Line 92: | ||
At present, localized snippets have no special handling in the service. They are just snippets with locale-specific client match rules. More work needs to be done here for bulk handling and grouping with an eye for l10n. | At present, localized snippets have no special handling in the service. They are just snippets with locale-specific client match rules. More work needs to be done here for bulk handling and grouping with an eye for l10n. | ||
There are some undocumented tools available to help generate localized snippets and associated rules from an import manifest and translations attached to a bug. Here are some raw pointers to code and examples: | There are some undocumented tools available to help generate localized snippets and associated rules from an import manifest and translations attached to a bug. | ||
The easiest way to do this right now is to: | |||
* run a local copy of the snippet service; | |||
* collect translations in text files as attachments on a bug; | |||
* create an import manifest (no docs or spec on this yet); | |||
* run `manage.py importfrombug` against the import manifest to generate snippets and rules in a local database; | |||
* verify snippets were created as expected, export snippets (and rules) as JSON, upload the JSON to staging | |||
Here are some raw pointers to code and examples of a recent import job: | |||
* [https://bugzilla.mozilla.org/show_bug.cgi?id=636815 Bug 636815, with snippet translations in attachments] | * [https://bugzilla.mozilla.org/show_bug.cgi?id=636815 Bug 636815, with snippet translations in attachments] | ||