Skip to content

Commit

Permalink
Add localization script, strings
Browse files Browse the repository at this point in the history
  • Loading branch information
joewalsh committed Feb 29, 2020
1 parent 009c2a1 commit 5fbe12c
Show file tree
Hide file tree
Showing 111 changed files with 1,558 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@
argument = "$SRCROOT"
isEnabled = "YES">
</CommandLineArgument>
<CommandLineArgument
argument = "pcs"
isEnabled = "YES">
</CommandLineArgument>
<CommandLineArgument
argument = "import"
isEnabled = "YES">
Expand Down
5 changes: 5 additions & 0 deletions localization/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ guard count > 1 else {
}

let path = CommandLine.arguments[1]

Process.launchedProcess(launchPath: "\(path)/scripts/localization_extract", arguments: [path]).waitUntilExit()
exportLocalizationsFromSourceCode(path)
importLocalizationsFromTWN(path)

if CommandLine.arguments.contains("pcs") {
try? exportPageContentServiceStrings(path)
}
2 changes: 2 additions & 0 deletions pcs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
### Why is there a pcs folder in the iOS repo?
Previously, the apps would have to send strings to the PCS mobile-html endpoint for it to be localized. Now, the pcs endpoint itself is being localized. Until the translatewiki.net project for pcs gets off the ground, we will export the already-translated iOS strings for PCS to use. These can be updated by running the localization target in xcode.
7 changes: 7 additions & 0 deletions pcs/i18n/ab.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"article-about-title" : "Ари астатиа иазкны",
"info-box-close-text" : "Иарктәуп",
"page-similar-titles" : "Еиҧшу адаҟьақәа",
"license-footer-name" : "CC BY-SA 3.0",
"page-issues" : "Адаҟьазы азҵаарақәа"
}
14 changes: 14 additions & 0 deletions pcs/i18n/af.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"article-read-more-title" : "Lees meer",
"table-title-other" : "Meer inligting",
"info-box-close-text" : "Sluit",
"page-last-edited" : "$1 dae gelede gewysig",
"info-box-title" : "Kitsfeite",
"page-location" : "Bekyk op ’n kaart",
"page-similar-titles" : "Soortgelyke bladsye",
"article-about-title" : "Oor hierdie artikel",
"license-footer-name" : "CC BY-SA 3.0",
"page-issues" : "Bladprobleme",
"license-footer-text" : "Inhoud is beskikbaar onder $1-lisensie tensy anders vermeld.",
"page-read-in-other-languages" : "Beskikbaar in nog $1 tale"
}
18 changes: 18 additions & 0 deletions pcs/i18n/ar.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"license-footer-text" : "المحتوى متاح بموجب رخصة $1 إلا في حالة ذكر خلاف ذلك.",
"article-read-more-title" : "قراءة المزيد",
"table-title-other" : "مزيد من المعلومات",
"page-edit-history" : "تاريخ التعديل الكامل",
"info-box-close-text" : "إغلاق",
"page-talk-page" : "اعرض صفحة النقاش",
"page-last-edited" : "عُدِّلت {{PLURAL:$1|0=اليوم|1=أمس|قبل $1 أيام}}",
"info-box-title" : "معلومات سريعة",
"page-location" : "شاهده على خريطة",
"page-similar-titles" : "صفحات مشابهة",
"view-in-browser-footer-link" : "اعرض المقالة في المتصفح",
"license-footer-name" : "CC BY-SA 3.0",
"page-issues" : "مشاكل في الصفحة",
"article-about-title" : "حول المقال",
"description-add-link-title" : "إضافة وصف للعنوان",
"page-read-in-other-languages" : "متاحة {{PLURAL:$1|بـ$1 لغة أخرى|بـ$1 لغات أخرى}}"
}
11 changes: 11 additions & 0 deletions pcs/i18n/as.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"article-read-more-title" : "আৰু পঢ়ক",
"table-title-other" : "অধিক তথ্য",
"info-box-close-text" : "বন্ধ কৰক",
"article-about-title" : "এই প্ৰবন্ধ সম্পৰ্কে",
"info-box-title" : "ক্ষিপ্ৰ তথ্য",
"license-footer-text" : "সমল $1ৰ আওতাত উপলব্ধ",
"license-footer-name" : "CC BY-SA 3.0",
"page-issues" : "পৃষ্ঠা সমস্যা",
"page-similar-titles" : "একে ধৰণৰ পৃষ্ঠা"
}
18 changes: 18 additions & 0 deletions pcs/i18n/ast.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"license-footer-text" : "El conteníu ta disponible baxo llicencia $1 si nun s'indica otra cosa.",
"article-read-more-title" : "Lleer más",
"table-title-other" : "Más información",
"page-edit-history" : "Historial d'edición completu",
"info-box-close-text" : "Zarrar",
"page-talk-page" : "Ver la páxina d'alderique",
"page-last-edited" : "{{PLURAL:$1|0=Editáu güei|1=Editáu ayeri|Editáu hai $1 díes}}",
"info-box-title" : "Datos rápidos",
"page-location" : "Ver nun mapa",
"view-in-browser-footer-link" : "Ver artículu nel navegador",
"page-similar-titles" : "Páxines asemeyaes",
"license-footer-name" : "CC-BY-SA 3.0",
"page-issues" : "Problemes de la páxina",
"article-about-title" : "Tocante a esti artículu",
"description-add-link-title" : "Amestar una descripción del títulu",
"page-read-in-other-languages" : "Disponible'n {{PLURAL:$1|$1 idioma más|$1 idiomes más}}"
}
6 changes: 6 additions & 0 deletions pcs/i18n/azb.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"table-title-other" : "آرتیق بیلگیلر",
"info-box-close-text" : "باغلا",
"article-read-more-title" : "داها چوْخ اوْخویون",
"article-about-title" : "بۇ مقاله‌یه گؤره"
}
14 changes: 14 additions & 0 deletions pcs/i18n/ba.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"article-read-more-title" : "Тулыраҡ уҡырға",
"table-title-other" : "Тулыраҡ",
"page-edit-history" : "Мөхәррирләүҙең тулы тарихы",
"info-box-close-text" : "Ябырға",
"page-last-edited" : "$1 көн элек мөхәррирләнгән",
"info-box-title" : "Ҡыҫҡа факттар",
"page-similar-titles" : "Оҡшаш биттәр",
"article-about-title" : "Был мәҡәлә тураһында",
"license-footer-name" : "CC-BY-SA 3.0",
"page-issues" : "Бит буйынса һорауҙар",
"license-footer-text" : "$1 лицензияһына ярашлы, эстәлеге менән һәр кем файҙалана ала (башҡаһы күрһәтелмәһә)",
"page-read-in-other-languages" : "$1 телдәргә аңлайышлы"
}
14 changes: 14 additions & 0 deletions pcs/i18n/be-tarask.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"article-read-more-title" : "Даведацца болей",
"table-title-other" : "Болей зьвестак",
"page-edit-history" : "Уся гісторыя рэдагаваньняў",
"info-box-close-text" : "Закрыць",
"page-last-edited" : "Рэдагаваны $1 дзён таму",
"info-box-title" : "Хуткія факты",
"page-similar-titles" : "Падобныя старонкі",
"article-about-title" : "Пра гэты артыкул",
"license-footer-name" : "CC BY-SA 3.0",
"page-issues" : "Хібы старонкі",
"license-footer-text" : "Зьмест даступны на ўмовах $1, калі не пазначанае іншае.",
"page-read-in-other-languages" : "Чытаць на $1 іншых мовах"
}
3 changes: 3 additions & 0 deletions pcs/i18n/bgn.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{

}
17 changes: 17 additions & 0 deletions pcs/i18n/bn.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"article-read-more-title" : "আরো পড়ুন",
"table-title-other" : "আরও তথ্য",
"page-edit-history" : "সম্পূর্ণ সম্পাদনা ইতিহাস",
"info-box-close-text" : "বন্ধ",
"page-last-edited" : "$1 দিন আগে সম্পাদিত",
"page-talk-page" : "আলাপ পাতা দেখুন",
"view-in-browser-footer-link" : "ব্রাউজারে নিবন্ধ দেখুন",
"page-similar-titles" : "অনুরূপ পাতাগুলি",
"info-box-title" : "দ্রুত তথ্য",
"page-location" : "একটি মানচিত্রে দেখুন",
"article-about-title" : "এই নিবন্ধ সম্পর্কে",
"page-issues" : "পাতার সমস্যা",
"license-footer-name" : "সিসি বাই-এসএ ৩.০",
"license-footer-text" : "বিষয়বস্তু $1-এর আওতায় প্রকাশিত যদি না অন্য কিছু নির্ধারিত থাকে।",
"page-read-in-other-languages" : "আরো $1টি ভাষায় উপলব্ধ"
}
17 changes: 17 additions & 0 deletions pcs/i18n/br.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"description-add-link-title" : "Ouzhpennañ deskvrivadur an titl",
"article-read-more-title" : "Lenn muioc'h",
"table-title-other" : "Muioc'h a ditouroù",
"page-edit-history" : "Istor klok ar c'hemmoù",
"info-box-close-text" : "Serriñ",
"page-last-edited" : "Kemmet $1 deiz zo",
"info-box-title" : "Fedoù berr-ha-berr",
"page-talk-page" : "Gwelet ar bajenn gaozeal",
"page-similar-titles" : "Pajennoù damheñvel",
"page-location" : "Diskwel war ur gartenn",
"article-about-title" : "Diwar-benn ar pennad-mañ",
"license-footer-name" : "CC-BY-SA 3.0",
"page-issues" : "Kudennoù war ar bajenn",
"license-footer-text" : "An endalc'had a c'haller kavout dindan $1, nemet e vefe spisaet ar c'hontrol.",
"page-read-in-other-languages" : "A c'haller kaout e $1 yezh all"
}
15 changes: 15 additions & 0 deletions pcs/i18n/bs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"article-read-more-title" : "Također pogledajte",
"table-title-other" : "Više informacija",
"page-edit-history" : "Cjelokupna historija izmjena",
"info-box-close-text" : "Zatvori",
"page-last-edited" : "Izmijenjeno prije $1 dana",
"info-box-title" : "Kratke činjenice",
"page-similar-titles" : "Slične stranice",
"page-location" : "Pogledaj na karti",
"article-about-title" : "O ovom članku",
"page-issues" : "Problemi sa sadržajem",
"license-footer-name" : "CC BY-SA 3.0",
"license-footer-text" : "Sadržaj je dostupan pod $1 osim ako je drukčije navedeno.",
"page-read-in-other-languages" : "Dostupno na još $1 jezika"
}
19 changes: 19 additions & 0 deletions pcs/i18n/ca.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"page-read-in-other-languages" : "Disponible en {{PLURAL:$1|$1 altra llengua|$1 altres llengües}}",
"article-read-more-title" : "Més informació",
"table-title-other" : "Més informació",
"page-edit-history" : "Historial complet",
"info-box-close-text" : "Tanca",
"page-last-edited" : "{{PLURAL:$1|0=S'ha modificat avui|1=S'ha modificat ahir|S'ha modificat fa $1 dies}}",
"page-last-edited-unknown" : "S'ha modificat fa un temps",
"view-in-browser-footer-link" : "Mostra l'article al navegador",
"page-talk-page" : "Mostra la pàgina de discussió",
"page-similar-titles" : "Pàgines similars",
"info-box-title" : "Dades ràpides",
"page-location" : "Mostra en un mapa",
"article-about-title" : "Sobre aquest article",
"page-issues" : "Problemes de la pàgina",
"license-footer-name" : "CC-BY-SA 3.0",
"description-add-link-title" : "Afegeix una descripció del títol",
"license-footer-text" : "Contingut disponible sota $1 a menys que s'indiqui el contrari."
}
4 changes: 4 additions & 0 deletions pcs/i18n/ce.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"info-box-close-text" : "ДӀачӀагӀа",
"license-footer-name" : "CC-BY-SA 3.0"
}
17 changes: 17 additions & 0 deletions pcs/i18n/ckb.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"table-title-other" : "زانیاریی زیاتر",
"article-read-more-title" : "زیاتر بخوێنەوە",
"page-edit-history" : "مێژووی دەستکاری تەواو",
"info-box-close-text" : "دایخە",
"page-talk-page" : "پیشاندانی پەڕەی وتووێژ",
"info-box-title" : "زانیاریی خێرا",
"view-in-browser-footer-link" : "پیشاندانی وتار لە بڕاوسەرەکەدا",
"page-similar-titles" : "پەڕە لێکچووەکان",
"page-last-edited" : "$1 لەمەوپێش دەستکاری کراوە",
"page-location" : "بینین لەسەر نەخشە",
"article-about-title" : "دەربارەی ئەم وتارە",
"license-footer-name" : "CC BY-SA 3.0",
"page-issues" : "گرفتەکانی پەڕە",
"license-footer-text" : "ناوەڕۆک بەردەستە لەژێر $1 مەگەر بە پێچەوانەوە وترابێت.",
"page-read-in-other-languages" : "بە $1 زمان بەردەستە"
}
10 changes: 10 additions & 0 deletions pcs/i18n/cnh.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"article-read-more-title" : "Tamdeuh in relnak",
"table-title-other" : "Konglam tamdeuh",
"info-box-close-text" : "Chuak",
"info-box-title" : "Cinkenawk tete",
"license-footer-text" : "$1 tangah chungum pawl zoh khawh a si.",
"page-similar-titles" : "Cahmai khatmi pawl",
"license-footer-name" : "CC BY-SA 3.0",
"page-issues" : "Cahmai nambar"
}
19 changes: 19 additions & 0 deletions pcs/i18n/cs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"license-footer-text" : "Obsah je dostupný pod $1, pokud není uvedeno jinak.",
"article-read-more-title" : "Číst dál",
"table-title-other" : "Další informace",
"page-edit-history" : "Celá historie editací",
"info-box-close-text" : "Zavřít",
"page-talk-page" : "Zobrazit diskusní stránku",
"page-last-edited" : "{{PLURAL:$1|0=Editováno dnes|1=Editováno včera|2=Editováno předevčírem|Editováno před $1 dny}}",
"info-box-title" : "Stručná fakta",
"page-location" : "Zobrazit na mapě",
"view-in-browser-footer-link" : "Zobrazit článek v prohlížeči",
"page-last-edited-unknown" : "Editováno před nějakou dobou",
"page-similar-titles" : "Podobné stránky",
"license-footer-name" : "CC BY-SA 3.0",
"page-issues" : "Nedostatky stránky",
"article-about-title" : "O tomto článku",
"description-add-link-title" : "Přidat popis článku",
"page-read-in-other-languages" : "Dostupné v {{PLURAL:$1|$1 dalším jazyce|$1 dalších jazycích}}"
}
7 changes: 7 additions & 0 deletions pcs/i18n/cy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"info-box-title" : "Ffeithiau sydyn",
"table-title-other" : "Rhagor o wybodaeth",
"info-box-close-text" : "Cau",
"article-read-more-title" : "Darllen rhagor",
"article-about-title" : "Ynglŷn â'r erthygl hon"
}
18 changes: 18 additions & 0 deletions pcs/i18n/da.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"license-footer-text" : "Indholdet er udgivet under $1 medmindre andet er angivet.",
"article-read-more-title" : "Læs mere",
"table-title-other" : "Flere oplysninger",
"page-edit-history" : "Fuld redigeringshistorik",
"info-box-close-text" : "Luk",
"page-talk-page" : "Vis diskussionsside",
"page-last-edited" : "{{PLURAL:$1|0=Redigeret i dag|1=Redigeret i går|Redigeret for $1 dage siden}}",
"info-box-title" : "Hurtige fakta",
"page-location" : "Vis på et kort",
"view-in-browser-footer-link" : "Vis artikel i browser",
"page-similar-titles" : "Lignende sider",
"license-footer-name" : "CC BY-SA 3.0",
"page-issues" : "Problemer med siden",
"article-about-title" : "Om denne artikel",
"description-add-link-title" : "Tilføj titelbeskrivelse",
"page-read-in-other-languages" : "Tilgængelig på {{PLURAL:$1|$1 andet sprog|$1 andre sprog}}"
}
18 changes: 18 additions & 0 deletions pcs/i18n/de.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"license-footer-text" : "Der Inhalt ist verfügbar unter $1, sofern nicht anders angegeben.",
"table-title-other" : "Weitere Informationen",
"article-read-more-title" : "Mehr lesen",
"page-edit-history" : "Vollständige Versionsgeschichte",
"info-box-close-text" : "Schließen",
"page-last-edited" : "{{PLURAL:$1|0=Heute|1=Gestern|Vor $1 Tagen}} bearbeitet",
"info-box-title" : "Schnelle Fakten",
"page-talk-page" : "Diskussionsseite ansehen",
"view-in-browser-footer-link" : "Artikel im Browser ansehen",
"page-similar-titles" : "Ähnliche Seiten",
"page-location" : "Auf einer Karte ansehen",
"article-about-title" : "Über diesen Artikel",
"license-footer-name" : "CC-BY-SA 3.0",
"page-issues" : "Seitenprobleme",
"description-add-link-title" : "Titelbeschreibung hinzufügen",
"page-read-in-other-languages" : "In {{PLURAL:$1|einer weiteren Sprache|$1 weiteren Sprachen}} verfügbar"
}
7 changes: 7 additions & 0 deletions pcs/i18n/diq.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"info-box-title" : "Pratik zanage",
"article-about-title" : "Heqa na wesiqa",
"info-box-close-text" : "Racın",
"article-read-more-title" : "Vêşi bıwane",
"table-title-other" : "Dehana vêşi melumat"
}
17 changes: 17 additions & 0 deletions pcs/i18n/el.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"table-title-other" : "Περισσότερες πληροφορίες",
"article-read-more-title" : "Διαβάστε περισσότερα",
"page-edit-history" : "Πλήρες ιστορικό επεξεργασίας",
"info-box-close-text" : "Κλείσιμο",
"page-last-edited" : "Επεξεργάστηκε $1 ημέρες πριν",
"info-box-title" : "Γρήγορες Πληροφορίες",
"page-talk-page" : "Προβολή σελίδας συζήτησης",
"view-in-browser-footer-link" : "Προβολή άρθρου στο φυλλομετρητή",
"page-similar-titles" : "Παρόμοιες σελίδες",
"page-location" : "Προβολή σε έναν χάρτη",
"article-about-title" : "Σχετικά με αυτό το άρθρο",
"page-issues" : "Ζητήματα με τη σελίδα",
"license-footer-name" : "CC BY-SA 3.0",
"license-footer-text" : "Το περιεχόμενο είναι διαθέσιμο σύμφωνα με την $1 εκτός αν αναφέρεται διαφορετικά.",
"page-read-in-other-languages" : "Διαθέσιμο σε $1 άλλες γλώσσες"
}
19 changes: 19 additions & 0 deletions pcs/i18n/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"license-footer-text" : "Content is available under $1 unless otherwise noted.",
"article-read-more-title" : "Read more",
"table-title-other" : "More information",
"page-edit-history" : "Full edit history",
"info-box-close-text" : "Close",
"page-talk-page" : "View talk page",
"page-last-edited-unknown" : "Edited some time ago",
"info-box-title" : "Quick Facts",
"page-location" : "View on a map",
"page-similar-titles" : "Similar pages",
"page-last-edited" : "{{PLURAL:$1|0=Edited today|1=Edited yesterday|Edited $1 days ago}}",
"view-in-browser-footer-link" : "View article in browser",
"article-about-title" : "About this article",
"license-footer-name" : "CC BY-SA 3.0",
"page-issues" : "Page issues",
"description-add-link-title" : "Add title description",
"page-read-in-other-languages" : "Available in {{PLURAL:$1|$1 other language|$1 other languages}}"
}
Loading

0 comments on commit 5fbe12c

Please sign in to comment.