Confirmed users
920
edits
LesOrchard (talk | contribs) |
LesOrchard (talk | contribs) No edit summary |
||
Line 87: | Line 87: | ||
If an external media resource is necessary, such as a video or an image too large for use as a data: URI, it will need to be hosted somewhere that can handle the potential traffic of every Firefox user requesting the URL. This means using a CDN or other high-capacity web host. | If an external media resource is necessary, such as a video or an image too large for use as a data: URI, it will need to be hosted somewhere that can handle the potential traffic of every Firefox user requesting the URL. This means using a CDN or other high-capacity web host. | ||
==== Localization ==== | |||
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: | |||
* [https://bugzilla.mozilla.org/show_bug.cgi?id=636815 Bug 636815, with snippet translations in attachments] | |||
* [https://github.com/lmorchard/home-snippets-server/blob/master/imports/fx4-launch-import-bug-636815.json Import manifest to generate snippets from translations and product locales] | |||
* [https://github.com/lmorchard/home-snippets-server/blob/master/apps/homesnippets/management/commands/importfrombug.py Code that performs import, via `manage.py importfrombug imports/fx4-launch-import-bug-636815.json`] | |||
=== Client match rules === | === Client match rules === |