Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
torbutton
Commits
e486ef24
Commit
e486ef24
authored
Apr 15, 2020
by
Alex Catarineu
Browse files
Bug 40001: Generate tor-browser-brand.ftl when importing translations
parent
6a779b54
Changes
19
Hide whitespace changes
Inline
Side-by-side
chrome/locale/ar/branding/tor-browser-brand.ftl
View file @
e486ef24
...
...
@@ -7,6 +7,6 @@
-brand-full-name
=
متصفح تور
# This brand name can be used in messages where the product name needs to
# remain unchanged across different versions (Nightly, Beta, etc.).
-brand-product-name
=
متصفح
تور
-brand-product-name
=
متصفح
Tor
-vendor-short-name
=
مشروع تور
trademarkInfo
=
"تور" و "
شعار البصلة
"
علامات تجارية مسجلة باسم شركة مشروع تور المحدودة
trademarkInfo
=
'تور' و '
شعار البصلة
'
علامات تجارية مسجلة باسم شركة مشروع تور المحدودة
chrome/locale/cs/branding/tor-browser-brand.ftl
View file @
e486ef24
...
...
@@ -9,4 +9,4 @@
# remain unchanged across different versions (Nightly, Beta, etc.).
-brand-product-name
=
Prohlížeč Tor
-vendor-short-name
=
Tor Project
trademarkInfo
=
"Tor" a "Onion logo" jsou registrované
ochrann
é
známk
y
společnosti Tor Project, Inc.
trademarkInfo
=
Tor a logo Onion jsou
ochrann
ými
známk
ami
společnosti Tor Project, Inc.
chrome/locale/da/branding/tor-browser-brand.ftl
View file @
e486ef24
...
...
@@ -8,5 +8,5 @@
# This brand name can be used in messages where the product name needs to
# remain unchanged across different versions (Nightly, Beta, etc.).
-brand-product-name
=
Tor Browser
-vendor-short-name
=
Tor-projekt
et
trademarkInfo
=
"Tor" og "
løg-logoet
"
er registrerede varemærker tilhørende Tor Project, Inc.
-vendor-short-name
=
Tor-projekt
trademarkInfo
=
'Tor' og '
løg-logoet
'
er registrerede varemærker tilhørende Tor Project, Inc.
chrome/locale/es-ES/branding/tor-browser-brand.ftl
View file @
e486ef24
...
...
@@ -7,6 +7,6 @@
-brand-full-name
=
Tor Browser
# This brand name can be used in messages where the product name needs to
# remain unchanged across different versions (Nightly, Beta, etc.).
-brand-product-name
=
Tor Browse
r
-brand-product-name
=
Navegador To
r
-vendor-short-name
=
Proyecto Tor
trademarkInfo
=
'Tor' y el 'Onion Logo' (logo de la cebolla) son marcas registradas de la Tor Project, Inc.
chrome/locale/fa/branding/tor-browser-brand.ftl
View file @
e486ef24
...
...
@@ -2,11 +2,11 @@
# that is used by Firefox) to avoid picking up the -brand-short-name values
# that Mozilla includes in the Firefox language packs.
-brand-shorter-name
=
مرورگر
تور
-brand-short-name
=
مرورگر
تور
-brand-full-name
=
مرورگر
تور
-brand-shorter-name
=
مرورگر
Tor
-brand-short-name
=
مرورگر
Tor
-brand-full-name
=
مرورگر
Tor
# This brand name can be used in messages where the product name needs to
# remain unchanged across different versions (Nightly, Beta, etc.).
-brand-product-name
=
مرورگر تور
-vendor-short-name
=
پروژه
ٔ تور
-vendor-short-name
=
پروژه
Tor
trademarkInfo
=
'Tor' و 'Onion Logo' علامت های تجاری ثبت شده از پروژه Tor هستند
chrome/locale/fr/branding/tor-browser-brand.ftl
View file @
e486ef24
...
...
@@ -7,6 +7,6 @@
-brand-full-name
=
Le Navigateur Tor
# This brand name can be used in messages where the product name needs to
# remain unchanged across different versions (Nightly, Beta, etc.).
-brand-product-name
=
Le
Navigateur Tor
-brand-product-name
=
Navigateur Tor
-vendor-short-name
=
Le Projet Tor
trademarkInfo
=
« Tor » et le « logo Onion » sont des marques de commerce de « The Projet Tor, Inc. »
chrome/locale/hu/branding/tor-browser-brand.ftl
View file @
e486ef24
...
...
@@ -2,11 +2,11 @@
# that is used by Firefox) to avoid picking up the -brand-short-name values
# that Mozilla includes in the Firefox language packs.
-brand-shorter-name
=
Tor B
rowser
-brand-short-name
=
Tor B
rowser
-brand-full-name
=
Tor B
rowser
-brand-shorter-name
=
Tor B
öngésző
-brand-short-name
=
Tor B
öngésző
-brand-full-name
=
Tor B
öngésző
# This brand name can be used in messages where the product name needs to
# remain unchanged across different versions (Nightly, Beta, etc.).
-brand-product-name
=
Tor B
rowser
-brand-product-name
=
Tor B
öngésző
-vendor-short-name
=
Tor Project
trademarkInfo
=
A 'Tor' és az 'Onion Logo' a Tor Project, Inc. bejegyzett védjegyei.
chrome/locale/id/branding/tor-browser-brand.ftl
View file @
e486ef24
...
...
@@ -7,6 +7,6 @@
-brand-full-name
=
Tor Browser
# This brand name can be used in messages where the product name needs to
# remain unchanged across different versions (Nightly, Beta, etc.).
-brand-product-name
=
Tor Browse
r
-brand-product-name
=
Peramban To
r
-vendor-short-name
=
Proyek Tor
trademarkInfo
=
'Tor' dan 'Logo Onion' adalah merek dagang terdaftar Tor Project, Inc.
chrome/locale/lt/branding/tor-browser-brand.ftl
View file @
e486ef24
...
...
@@ -2,11 +2,11 @@
# that is used by Firefox) to avoid picking up the -brand-short-name values
# that Mozilla includes in the Firefox language packs.
-brand-shorter-name
=
Tor
Browser
-brand-short-name
=
Tor
Browser
-brand-full-name
=
Tor
Browser
-brand-shorter-name
=
Tor
Naršyklė
-brand-short-name
=
Tor
Naršyklė
-brand-full-name
=
Tor
Naršyklė
# This brand name can be used in messages where the product name needs to
# remain unchanged across different versions (Nightly, Beta, etc.).
-brand-product-name
=
Tor
Browser
-vendor-short-name
=
Tor
P
roje
ct
trademarkInfo
=
'Tor'
and the
'Onion
L
ogo
' are registered trademarks of the
Tor Project, Inc.
-brand-product-name
=
Tor
Naršyklė
-vendor-short-name
=
Tor
p
roje
ktas
trademarkInfo
=
'Tor'
ir
'Onion
l
ogo
tipas' yra registruoti
Tor Project, Inc.
prekių ženklai.
chrome/locale/ms/branding/tor-browser-brand.ftl
View file @
e486ef24
...
...
@@ -2,11 +2,11 @@
# that is used by Firefox) to avoid picking up the -brand-short-name values
# that Mozilla includes in the Firefox language packs.
-brand-shorter-name
=
Tor Browse
r
-brand-short-name
=
Tor Browse
r
-brand-full-name
=
Tor Browse
r
-brand-shorter-name
=
Pelayar To
r
-brand-short-name
=
Pelayar To
r
-brand-full-name
=
Pelayar To
r
# This brand name can be used in messages where the product name needs to
# remain unchanged across different versions (Nightly, Beta, etc.).
-brand-product-name
=
Tor Browse
r
-vendor-short-name
=
Tor
Proje
ct
trademarkInfo
=
'Tor' an
d the 'Onion Logo' are registered trademarks of the Tor Project
, Inc.
-brand-product-name
=
Pelayar To
r
-vendor-short-name
=
Proje
k Tor
trademarkInfo
=
'Tor'
d
an
'Logo Onion' adalah cap dagangan berdaftar bagi Projek Tor
, Inc.
chrome/locale/nb-NO/branding/tor-browser-brand.ftl
View file @
e486ef24
...
...
@@ -7,6 +7,6 @@
-brand-full-name
=
Tor-nettleseren
# This brand name can be used in messages where the product name needs to
# remain unchanged across different versions (Nightly, Beta, etc.).
-brand-product-name
=
Tor
-nettle
ser
en
-brand-product-name
=
Tor
Brow
ser
-vendor-short-name
=
Tor Project
trademarkInfo
=
"Tor" og "
Løk-logoen
"
er registrerte varemerker tilhørende the Tor Project, Inc.
trademarkInfo
=
'Tor' og '
Løk-logoen
'
er registrerte varemerker tilhørende the Tor Project, Inc.
chrome/locale/nl/branding/tor-browser-brand.ftl
View file @
e486ef24
...
...
@@ -2,11 +2,11 @@
# that is used by Firefox) to avoid picking up the -brand-short-name values
# that Mozilla includes in the Firefox language packs.
-brand-shorter-name
=
Tor
B
rowser
-brand-short-name
=
Tor
B
rowser
-brand-full-name
=
Tor
B
rowser
-brand-shorter-name
=
Tor
-b
rowser
-brand-short-name
=
Tor
-b
rowser
-brand-full-name
=
Tor
-b
rowser
# This brand name can be used in messages where the product name needs to
# remain unchanged across different versions (Nightly, Beta, etc.).
-brand-product-name
=
Tor Browser
-vendor-short-name
=
Tor
P
roject
trademarkInfo
=
‘Tor’ en het ‘Onion-logo’ zijn geregistreerde handelsmerken van
het
Tor Project, Inc.
-vendor-short-name
=
Tor
-p
roject
trademarkInfo
=
‘Tor’ en het ‘Onion-logo’ zijn geregistreerde handelsmerken van Tor Project, Inc.
chrome/locale/ru/branding/tor-browser-brand.ftl
View file @
e486ef24
...
...
@@ -8,5 +8,5 @@
# This brand name can be used in messages where the product name needs to
# remain unchanged across different versions (Nightly, Beta, etc.).
-brand-product-name
=
Tor Browser
-vendor-short-name
=
Проект Tor
-vendor-short-name
=
Tor Project
trademarkInfo
=
'Tor' и логотип 'Onion' являются зарегистрированными торговыми марками Tor Project, Inc.
chrome/locale/sv-SE/branding/tor-browser-brand.ftl
View file @
e486ef24
...
...
@@ -9,4 +9,4 @@
# remain unchanged across different versions (Nightly, Beta, etc.).
-brand-product-name
=
Tor Browser
-vendor-short-name
=
Tor-projektet
trademarkInfo
=
'Tor' och 'Onion
L
ogotypen' är registerade varumärken av Tor Project, Inc.
trademarkInfo
=
'Tor' och 'Onion
-l
ogotypen' är registerade varumärken av Tor Project, Inc.
chrome/locale/th/branding/tor-browser-brand.ftl
View file @
e486ef24
...
...
@@ -8,5 +8,5 @@
# This brand name can be used in messages where the product name needs to
# remain unchanged across different versions (Nightly, Beta, etc.).
-brand-product-name
=
Tor Browser
-vendor-short-name
=
Tor Project
trademarkInfo
=
'Tor
' and the 'Onion Logo' are registered trademarks of the
Tor Project, Inc.
-vendor-short-name
=
โครงการ Tor
trademarkInfo
=
'Tor
'และ' Onion Logo 'เป็นเครื่องหมายการค้าจดทะเบียนของโครงการ
Tor Project, Inc.
chrome/locale/tr/branding/tor-browser-brand.ftl
View file @
e486ef24
...
...
@@ -9,4 +9,4 @@
# remain unchanged across different versions (Nightly, Beta, etc.).
-brand-product-name
=
Tor Browser
-vendor-short-name
=
Tor Projesi
trademarkInfo
=
'Tor' ve 'Onion Logo' Tor Project, Inc. tarafından tescil
len
miş markalardır.
trademarkInfo
=
'Tor' ve 'Onion Logo' Tor Project, Inc. tarafından tescil
edil
miş markalardır.
chrome/locale/zh-CN/branding/tor-browser-brand.ftl
View file @
e486ef24
...
...
@@ -2,11 +2,11 @@
# that is used by Firefox) to avoid picking up the -brand-short-name values
# that Mozilla includes in the Firefox language packs.
-brand-shorter-name
=
Tor
Browser
-brand-short-name
=
Tor
Browser
-brand-full-name
=
Tor
Browser
-brand-shorter-name
=
Tor
浏览器
-brand-short-name
=
Tor
浏览器
-brand-full-name
=
Tor
浏览器
# This brand name can be used in messages where the product name needs to
# remain unchanged across different versions (Nightly, Beta, etc.).
-brand-product-name
=
Tor
Browser
-brand-product-name
=
Tor
浏览器
-vendor-short-name
=
Tor Project
trademarkInfo
=
“Tor”和“Onion Logo”是 Tor Project, Inc 的注册商标。
chrome/locale/zh-TW/branding/tor-browser-brand.ftl
View file @
e486ef24
...
...
@@ -7,6 +7,6 @@
-brand-full-name
=
洋蔥路由瀏覽器
# This brand name can be used in messages where the product name needs to
# remain unchanged across different versions (Nightly, Beta, etc.).
-brand-product-name
=
洋蔥路由
瀏覽器
-vendor-short-name
=
洋蔥路由專案
-brand-product-name
=
Tor
瀏覽器
-vendor-short-name
=
Tor 計畫
trademarkInfo
=
「Tor」和「Onion Logo」皆是 Tor Project, Inc 的註冊商標。
import-translations.sh
View file @
e486ef24
...
...
@@ -64,6 +64,7 @@ else
fi
# Update each translated file for each locale.
(
echo
"Locales:
$BUNDLE_LOCALES
"
cd
translation
for
KEYVAL
in
"
${
FILEMAP
[@]
}
"
;
do
...
...
@@ -87,3 +88,39 @@ for KEYVAL in "${FILEMAP[@]}"; do
$i
/
"
$SRCFILE
"
>
../
$LOCALE_DIR
/
$i
/
"
$DEST_FILE
"
done
done
)
# Autogenerate tor-browser-brand.ftl based on brand.properties
# and brand.dtd.
REGEX_ENTITY
=
'<!ENTITY +([^" ]+) +"(.+)">'
;
for
LOCALE
in
$BUNDLE_LOCALES
;
do
BRAND_PATH
=
"
$LOCALE_DIR
/
$LOCALE
/brand.properties"
BRAND_DTD_PATH
=
"
$LOCALE_DIR
/
$LOCALE
/brand.dtd"
TOR_BRAND_PATH
=
"
$(
dirname
"
$BRAND_PATH
"
)
/branding/tor-browser-brand.ftl"
BRAND_SHORTER_NAME
=
"
$(
sed
-n
-e
'/^brandShorterName/p'
$BRAND_PATH
|
cut
-d
=
-f2
)
"
BRAND_SHORT_NAME
=
"
$(
sed
-n
-e
'/^brandShortName/p'
$BRAND_PATH
|
cut
-d
=
-f2
)
"
BRAND_FULL_NAME
=
"
$(
sed
-n
-e
'/^brandFullName/p'
$BRAND_PATH
|
cut
-d
=
-f2
)
"
BRAND_PRODUCT_NAME
=
"
$(
sed
-n
-e
'/^brandProductName/p'
$BRAND_PATH
|
cut
-d
=
-f2
)
"
VENDOR_SHORT_NAME
=
"
$(
sed
-n
-e
'/^vendorShortName/p'
$BRAND_PATH
|
cut
-d
=
-f2
)
"
TRADEMARK_INFO
=
'{ " " }'
if
[[
"
$(
sed
-n
-e
'/trademarkInfo/p'
$BRAND_DTD_PATH
)
"
=
~
$REGEX_ENTITY
]]
then
# Replace some HTML entities (now just ") for tor-browser-brand.ftl.
TRADEMARK_INFO
=
"
${
BASH_REMATCH
[2]//"/\
'}"
fi
echo "# For Tor Browser, we use a new file (different than the brand.ftl file" > $TOR_BRAND_PATH
echo "# that is used by Firefox) to avoid picking up the -brand-short-name values" >> $TOR_BRAND_PATH
echo "# that Mozilla includes in the Firefox language packs." >> $TOR_BRAND_PATH
echo "" >> $TOR_BRAND_PATH
echo "-brand-shorter-name = $BRAND_SHORTER_NAME" >> $TOR_BRAND_PATH
echo "-brand-short-name = $BRAND_SHORT_NAME" >> $TOR_BRAND_PATH
echo "-brand-full-name = $BRAND_FULL_NAME" >> $TOR_BRAND_PATH
echo "# This brand name can be used in messages where the product name needs to" >> $TOR_BRAND_PATH
echo "# remain unchanged across different versions (Nightly, Beta, etc.)." >> $TOR_BRAND_PATH
echo "-brand-product-name = $BRAND_PRODUCT_NAME" >> $TOR_BRAND_PATH
echo "-vendor-short-name = $VENDOR_SHORT_NAME" >> $TOR_BRAND_PATH
echo "trademarkInfo = $TRADEMARK_INFO" >> $TOR_BRAND_PATH
done
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment