Skip to content

Commit

Permalink
Merge pull request #864 from /issues/863
Browse files Browse the repository at this point in the history
Change way adding nav entry to allow l10n
  • Loading branch information
Jan authored Dec 22, 2021
2 parents 8cdf1fe + b7fd169 commit 9ce0644
Show file tree
Hide file tree
Showing 88 changed files with 4,398 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
/l10n/locale/
.php_cs.cache
.php-cs-fixer.cache
*.po
*.pl

# Composer
vendor/
Expand Down
2 changes: 1 addition & 1 deletion l10n/.tx/config
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ host = https://www.transifex.com
lang_map = ja_JP: ja

[owncloud.market]
file_filter = locale/<lang>/market.po
file_filter = <lang>/market.po
source_file = template.pot
source_lang = en
type = PO
Expand Down
18 changes: 14 additions & 4 deletions l10n/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ NODE_BINDIR = ../node_modules/.bin
export PATH := $(NODE_BINDIR):$(PATH)

# Available locales for the app.
LOCALES = af_ZA bg_BG ca cs_CZ da de de_DE el en_GB es et_EE fi_FI fr he hu_HU is it ja ko lt_LT nb_NO nl oc pl pt_BR pt_PT ru sl sq sv th_TH tr uk zh_CN
LOCALES = af_ZA bg_BG ca cs_CZ da de de_DE el en_GB es et_EE fi_FI fr he hu_HU is it ja ko lt_LT nb_NO nl pl pt_BR pt_PT ru sl sq sv th_TH tr uk zh_CN


# Name of the generated .po files for each available locale.
LOCALE_FILES ?= $(patsubst %,locale/%/market.po,$(LOCALES))
LOCALE_FILES ?= $(patsubst %,%/market.po,$(LOCALES))

GETTEXT_JS_SOURCES = $(shell find ../src -name '*.vue' -o -name '*.js')
GETTEXT_PHP_SOURCES = $(shell find .. -name '*.php')
Expand All @@ -15,7 +15,10 @@ GETTEXT_PHP_SOURCES = $(shell find .. -name '*.php')
.PHONY: clean makemessages translations push pull

clean:
rm -rf template.pot translations.json locale
rm -rf l10n/l10n.pl
find l10n -type f -name \*.po -or -name \*.pot | xargs rm -f
find l10n -type f -name uz.\* -or -name yo.\* -or -name ne.\* -or -name or_IN.\* | xargs git rm -f || true
rm -rf template.pot translations.json

makemessages:
touch template.pot
Expand All @@ -38,4 +41,11 @@ push:
pull:
tx -d pull -a --minimum-perc=15

transifex-sync: clean makemessages push pull translations
transifex-sync: clean makemessages push pull translations write

.PHONY: write
write: l10n.pl
perl l10n.pl market write

l10n.pl:
wget -qO l10n.pl https://raw.githubusercontent.com/owncloud-ci/transifex/d1c63674d791fe8812216b29da9d8f2f26e7e138/rootfs/usr/bin/l10n
49 changes: 49 additions & 0 deletions l10n/af_ZA.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
OC.L10N.register(
"market",
{
"No Bundles" : "Geen Bondels",
"Developer" : "Ontwikkelaar",
"Version" : "Weergawe",
"License" : "Lisensie",
"loading" : "laai tans",
"view in marketplace" : "bekyk in markplein",
"install" : "installeer",
"uninstall" : "deïnstalleer",
"update" : "werk by",
"Are you sure you want to remove <strong>%{appName}</strong> from your system?" : "Is u seker u wil <strong>%{appName}</strong> van u stelsel af verwyder?",
"Update available" : "Bywerking beskikbaar",
"Installed" : "Geïnstalleer",
"Market" : "Mark",
"Show all" : "Toon alle",
"App Bundles" : "Toepbondels",
"Categories" : "Kategorieë",
"Updates" : "Bywerkings",
"Settings" : "Instellings",
"Clear cache" : "Wis kasgeheue",
"App" : "Toep",
"Info" : "Inligting",
"installed" : "geïnstalleer",
"install bundle" : "installeer bondel",
"No apps in %{category}" : "Geen toeps in %{category}",
"Update Info" : "Werk Inligting By",
"updating" : "werk tans by",
"All apps are up to date" : "Alle toeps is opdatum",
"Please enter a license-key in to config.php" : "Voer asb. ’n lisensiesleutel vir config.php in",
"Please install and enable the enterprise_key app and enter a license-key in config.php first." : "Installeer en aktiveer eers die enterprise_key-toep en voer ’n lisensiesleutel by config.php in.",
"Your license-key is not valid." : "U lisensiesleutel is ongeldig.",
"App %s is already installed" : "Toep %s is reeds geïnstalleer",
"Shipped apps cannot be uninstalled" : "Ingeboude toeps kan nie gedeïnstalleer word nie",
"App (%s) could not be uninstalled. Please check the server logs." : "Toep (%s) kon nie gedeïnstalleer word nie. Gaan die bedienerlog na.",
"App (%s) is not installed" : "Toep (%s) is nie geïnstalleer nie",
"App (%s) is not known at the marketplace." : "Toep (%s) is nie bekend in die markplein nie.",
"Unknown app (%s)" : "Onbekende toep (%s)",
"No compatible version for %s" : "Geen versoenbare weergawe vir %s",
"App %s installed successfully" : "Toep %s suksesvol geïnstalleer",
"The api key is not valid." : "die api-sleutel is ongeldig.",
"Can not change api key because it is configured in config.php" : "Kan nie api-sleutel verander nie omdat dit in config.php opgestel is",
"App %s uninstalled successfully" : "Toep %s suksesvol gedeïnstalleer",
"App %s updated successfully" : "Toep %s suksesvol bygewerk",
"Update for %1$s to version %2$s is available." : "Bywerking vir %1$s na weergawe %2$s is beskikbaar.",
"The Internet connection is disabled." : "Die Internetverbinding is afgeskakel."
},
"nplurals=2; plural=(n != 1);");
47 changes: 47 additions & 0 deletions l10n/af_ZA.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{ "translations": {
"No Bundles" : "Geen Bondels",
"Developer" : "Ontwikkelaar",
"Version" : "Weergawe",
"License" : "Lisensie",
"loading" : "laai tans",
"view in marketplace" : "bekyk in markplein",
"install" : "installeer",
"uninstall" : "deïnstalleer",
"update" : "werk by",
"Are you sure you want to remove <strong>%{appName}</strong> from your system?" : "Is u seker u wil <strong>%{appName}</strong> van u stelsel af verwyder?",
"Update available" : "Bywerking beskikbaar",
"Installed" : "Geïnstalleer",
"Market" : "Mark",
"Show all" : "Toon alle",
"App Bundles" : "Toepbondels",
"Categories" : "Kategorieë",
"Updates" : "Bywerkings",
"Settings" : "Instellings",
"Clear cache" : "Wis kasgeheue",
"App" : "Toep",
"Info" : "Inligting",
"installed" : "geïnstalleer",
"install bundle" : "installeer bondel",
"No apps in %{category}" : "Geen toeps in %{category}",
"Update Info" : "Werk Inligting By",
"updating" : "werk tans by",
"All apps are up to date" : "Alle toeps is opdatum",
"Please enter a license-key in to config.php" : "Voer asb. ’n lisensiesleutel vir config.php in",
"Please install and enable the enterprise_key app and enter a license-key in config.php first." : "Installeer en aktiveer eers die enterprise_key-toep en voer ’n lisensiesleutel by config.php in.",
"Your license-key is not valid." : "U lisensiesleutel is ongeldig.",
"App %s is already installed" : "Toep %s is reeds geïnstalleer",
"Shipped apps cannot be uninstalled" : "Ingeboude toeps kan nie gedeïnstalleer word nie",
"App (%s) could not be uninstalled. Please check the server logs." : "Toep (%s) kon nie gedeïnstalleer word nie. Gaan die bedienerlog na.",
"App (%s) is not installed" : "Toep (%s) is nie geïnstalleer nie",
"App (%s) is not known at the marketplace." : "Toep (%s) is nie bekend in die markplein nie.",
"Unknown app (%s)" : "Onbekende toep (%s)",
"No compatible version for %s" : "Geen versoenbare weergawe vir %s",
"App %s installed successfully" : "Toep %s suksesvol geïnstalleer",
"The api key is not valid." : "die api-sleutel is ongeldig.",
"Can not change api key because it is configured in config.php" : "Kan nie api-sleutel verander nie omdat dit in config.php opgestel is",
"App %s uninstalled successfully" : "Toep %s suksesvol gedeïnstalleer",
"App %s updated successfully" : "Toep %s suksesvol bygewerk",
"Update for %1$s to version %2$s is available." : "Bywerking vir %1$s na weergawe %2$s is beskikbaar.",
"The Internet connection is disabled." : "Die Internetverbinding is afgeskakel."
},"pluralForm" :"nplurals=2; plural=(n != 1);"
}
68 changes: 68 additions & 0 deletions l10n/ar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
OC.L10N.register(
"market",
{
"Installing and updating Apps is not supported!" : "تثبيت التطبيقات وتحديثها غير مدعوم!",
"This is a clustered setup or the web server has no permissions to write to the apps folder." : "إنه إعداد نظام المجموعة أو أن خادم الويب ليس لديه أي إذن للكتابة على مجلد التطبيقات.",
"Edit API Key" : "تحرير مفتاح واجهة برمجة التطبيقات",
"Add API Key" : "إضافة مفتاح واجهة برمجة التطبيقات",
"No Bundles" : "لا توجد حزمات",
"Developer" : "مطور",
"Version" : "إصدار",
"Release date" : "تاريخ الإصدار",
"License" : "ترخيص",
"Version %{version} available" : "الإصدار %{version} متوفر",
"published on " : "تم النشر في ",
"Get more info" : "الحصول على مزيد من المعلومات",
"loading" : "تحميل",
"view in marketplace" : "عرض في السوق",
"install" : "تثبيت",
"uninstall" : "إلغاء التثبيت",
"update" : "تحديث",
"Are you sure you want to remove <strong>%{appName}</strong> from your system?" : "هل أنت متأكد من رغبتك في إزالة <strong>%{appName}</strong> من نظامك؟",
"Update available" : "تحديث متوفر",
"Installed" : "تم التثبيت",
"Market" : "سوق",
"Show all" : "عرض الكل",
"App Bundles" : "حِزَم التطبيقات",
"Categories" : "الفئات",
"Updates" : "التحديثات",
"Settings" : "الإعدادات",
"Clear cache" : "مسح ذاكرة التخزين المؤقتة",
"App" : "تطبيق",
"Info" : "معلومات",
"installed" : "تم التثبيت",
"install bundle" : "تثبيت الحزمة",
"enterprise_key installation failed!" : "فشل تثبيت enterprise_key!",
"No apps in %{category}" : "لا توجد تطبيقات في %{category}",
"Update Info" : "معلومات التحديث",
"updating" : "تحديث",
"All apps are up to date" : "جميع التطبيقات مُحدثة",
"Market notifications" : "إشعارات السوق",
"Please enter a license-key in to config.php" : "يُرجى إدخال مفتاح ترخيص في config.php",
"Please install and enable the enterprise_key app and enter a license-key in config.php first." : "يُرجى تثبيت تطبيق enterprise_key وتفعيله وإدخال مفتاح الترخيص في config.php أولًا.",
"Your license-key is not valid." : "مفتاح الترخيص غير صالح.",
"App %s is already installed" : "تم تثبيت التطبيق %s بالفعل",
"Shipped apps cannot be uninstalled" : "لا يمكن إلغاء تثبيت التطبيقات المنقولة",
"App (%s) could not be uninstalled. Please check the server logs." : "لا يمكن إلغاء تثبيت التطبيق (%s). يُرجى فحص سجلات الخادم.",
"App (%s) is not installed" : "لم يتم تثبيت التطبيق (%s)",
"App (%s) is not known at the marketplace." : "التطبيق (%s) غير معروف في السوق.",
"Unknown app (%s)" : "تطبيق مجهول (%s)",
"No compatible version for %s" : "لا يوجد إصدار متوافق لـ %s",
"App %s installed successfully" : "تم تثبيت التطبيق %s بنجاح",
"The api key is not valid." : "مفتاح واجهة برمجة التطبيقات غير صالح.",
"Can not change api key because it is configured in config.php" : "لا يمكن تغيير مفتاح واجهة برمجة التطبيقات لأنه مُكوَّن في config.php",
"App %s uninstalled successfully" : "تم إلغاء تثبيت التطبيق %s بنجاح",
"App %s updated successfully" : "تم تحديث التطبيق %s بنجاح",
"License key available." : "مفتاح الترخيص متوفر.",
"No license key configured." : "لم يتم تكوين أي مفتاح ترخيص.",
"Demo license key successfully fetched from the marketplace." : "تم إحضار مفتاح ترخيص الإصدار التجريبي من السوق بنجاح.",
"A license key is already configured." : "تم تكوين مفتاح ترخيص بالفعل.",
"Could not request the license key." : "لا يمكن طلب مفتاح الترخيص.",
"Cache cleared." : "تم مسح ذاكرة التخزين المؤقت.",
"Update for %1$s to version %2$s is available." : "يتوفر تحديث %1$s للإصدار %2$s.",
"The Internet connection is disabled." : "تم تعطيل الاتصال بالإنترنت.",
"Invalid marketplace API key provided" : "مفتاح واجهة برمجة تطبيقات السوق الموفر غير صالح",
"Marketplace API key missing" : "مفتاح واجهة برمجة تطبيقات السوق مفقود",
"Active subscription on marketplace required" : "تنشيط الاشتراك في السوق مطلوب"
},
"nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;");
66 changes: 66 additions & 0 deletions l10n/ar.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{ "translations": {
"Installing and updating Apps is not supported!" : "تثبيت التطبيقات وتحديثها غير مدعوم!",
"This is a clustered setup or the web server has no permissions to write to the apps folder." : "إنه إعداد نظام المجموعة أو أن خادم الويب ليس لديه أي إذن للكتابة على مجلد التطبيقات.",
"Edit API Key" : "تحرير مفتاح واجهة برمجة التطبيقات",
"Add API Key" : "إضافة مفتاح واجهة برمجة التطبيقات",
"No Bundles" : "لا توجد حزمات",
"Developer" : "مطور",
"Version" : "إصدار",
"Release date" : "تاريخ الإصدار",
"License" : "ترخيص",
"Version %{version} available" : "الإصدار %{version} متوفر",
"published on " : "تم النشر في ",
"Get more info" : "الحصول على مزيد من المعلومات",
"loading" : "تحميل",
"view in marketplace" : "عرض في السوق",
"install" : "تثبيت",
"uninstall" : "إلغاء التثبيت",
"update" : "تحديث",
"Are you sure you want to remove <strong>%{appName}</strong> from your system?" : "هل أنت متأكد من رغبتك في إزالة <strong>%{appName}</strong> من نظامك؟",
"Update available" : "تحديث متوفر",
"Installed" : "تم التثبيت",
"Market" : "سوق",
"Show all" : "عرض الكل",
"App Bundles" : "حِزَم التطبيقات",
"Categories" : "الفئات",
"Updates" : "التحديثات",
"Settings" : "الإعدادات",
"Clear cache" : "مسح ذاكرة التخزين المؤقتة",
"App" : "تطبيق",
"Info" : "معلومات",
"installed" : "تم التثبيت",
"install bundle" : "تثبيت الحزمة",
"enterprise_key installation failed!" : "فشل تثبيت enterprise_key!",
"No apps in %{category}" : "لا توجد تطبيقات في %{category}",
"Update Info" : "معلومات التحديث",
"updating" : "تحديث",
"All apps are up to date" : "جميع التطبيقات مُحدثة",
"Market notifications" : "إشعارات السوق",
"Please enter a license-key in to config.php" : "يُرجى إدخال مفتاح ترخيص في config.php",
"Please install and enable the enterprise_key app and enter a license-key in config.php first." : "يُرجى تثبيت تطبيق enterprise_key وتفعيله وإدخال مفتاح الترخيص في config.php أولًا.",
"Your license-key is not valid." : "مفتاح الترخيص غير صالح.",
"App %s is already installed" : "تم تثبيت التطبيق %s بالفعل",
"Shipped apps cannot be uninstalled" : "لا يمكن إلغاء تثبيت التطبيقات المنقولة",
"App (%s) could not be uninstalled. Please check the server logs." : "لا يمكن إلغاء تثبيت التطبيق (%s). يُرجى فحص سجلات الخادم.",
"App (%s) is not installed" : "لم يتم تثبيت التطبيق (%s)",
"App (%s) is not known at the marketplace." : "التطبيق (%s) غير معروف في السوق.",
"Unknown app (%s)" : "تطبيق مجهول (%s)",
"No compatible version for %s" : "لا يوجد إصدار متوافق لـ %s",
"App %s installed successfully" : "تم تثبيت التطبيق %s بنجاح",
"The api key is not valid." : "مفتاح واجهة برمجة التطبيقات غير صالح.",
"Can not change api key because it is configured in config.php" : "لا يمكن تغيير مفتاح واجهة برمجة التطبيقات لأنه مُكوَّن في config.php",
"App %s uninstalled successfully" : "تم إلغاء تثبيت التطبيق %s بنجاح",
"App %s updated successfully" : "تم تحديث التطبيق %s بنجاح",
"License key available." : "مفتاح الترخيص متوفر.",
"No license key configured." : "لم يتم تكوين أي مفتاح ترخيص.",
"Demo license key successfully fetched from the marketplace." : "تم إحضار مفتاح ترخيص الإصدار التجريبي من السوق بنجاح.",
"A license key is already configured." : "تم تكوين مفتاح ترخيص بالفعل.",
"Could not request the license key." : "لا يمكن طلب مفتاح الترخيص.",
"Cache cleared." : "تم مسح ذاكرة التخزين المؤقت.",
"Update for %1$s to version %2$s is available." : "يتوفر تحديث %1$s للإصدار %2$s.",
"The Internet connection is disabled." : "تم تعطيل الاتصال بالإنترنت.",
"Invalid marketplace API key provided" : "مفتاح واجهة برمجة تطبيقات السوق الموفر غير صالح",
"Marketplace API key missing" : "مفتاح واجهة برمجة تطبيقات السوق مفقود",
"Active subscription on marketplace required" : "تنشيط الاشتراك في السوق مطلوب"
},"pluralForm" :"nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;"
}
Loading

0 comments on commit 9ce0644

Please sign in to comment.