Bug 1432338 - Introduce sync-brand.ftl. r?flod draft
authorZibi Braniecki <zbraniecki@mozilla.com>
Mon, 12 Feb 2018 11:29:13 -0800
changeset 760501 1ceb0f32325b2e8ba066a5d2faff9545a12a986c
parent 760371 b184be59874080e96903183176c0f88dcbfafe25
child 760502 6a1683f038a7d652c283c8f440da70dd06be59ea
child 760504 b6256c58770f67e26345a82217951795a892be11
push id100675
push userbmo:gandalf@aviary.pl
push dateTue, 27 Feb 2018 19:41:23 +0000
reviewersflod
bugs1432338
milestone60.0a1
Bug 1432338 - Introduce sync-brand.ftl. r?flod MozReview-Commit-ID: Hs48yFaCMPf
browser/locales/en-US/browser/branding/sync-brand.ftl
python/l10n/fluent_migrations/bug_1432338_sync_brand.py
new file mode 100644
--- /dev/null
+++ b/browser/locales/en-US/browser/branding/sync-brand.ftl
@@ -0,0 +1,9 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+-sync-brand-short-name = Sync
+
+# “Sync” can be localized, “Firefox” must be treated as a brand,
+# and kept in English.
+-sync-brand-name = Firefox Sync
new file mode 100644
--- /dev/null
+++ b/python/l10n/fluent_migrations/bug_1432338_sync_brand.py
@@ -0,0 +1,33 @@
+# coding=utf8
+
+# Any copyright is dedicated to the Public Domain.
+# http://creativecommons.org/publicdomain/zero/1.0/
+
+from __future__ import absolute_import
+import fluent.syntax.ast as FTL
+from fluent.migrate import COPY
+
+
+def migrate(ctx):
+    """Bug 1432338 - Introduce sync-brand.ftl, part {index}."""
+
+    ctx.add_transforms(
+        'browser/browser/branding/sync-brand.ftl',
+        'browser/locales/en-US/browser/branding/sync-brand.ftl',
+        [
+            FTL.Term(
+                id=FTL.Identifier('-sync-brand-short-name'),
+                value=COPY(
+                    'browser/chrome/browser/syncBrand.dtd',
+                    'syncBrand.shortName.label'
+                )
+            ),
+            FTL.Term(
+                id=FTL.Identifier('-sync-brand-name'),
+                value=COPY(
+                    'browser/chrome/browser/syncBrand.dtd',
+                    'syncBrand.fullName.label'
+                )
+            ),
+        ]
+    )