From 13a4d748b4b75c3a0e5b32ea3db5b0abb4a0cc82 Mon Sep 17 00:00:00 2001 From: Andrew Tavis McAllister Date: Sat, 22 Jun 2024 18:08:16 +0200 Subject: [PATCH] Update scripts with print output + usage examples + convert to xcstrings --- Scribe-i18n/Localizable.xcstrings | 553 ++++++++++++++---- ...rings.py => convert_jsons_to_xcstrings.py} | 14 +- ...rings.py => convert_xcstrings_to_jsons.py} | 10 +- 3 files changed, 471 insertions(+), 106 deletions(-) rename Scribe-i18n/Scripts/{convert_to_xcstrings.py => convert_jsons_to_xcstrings.py} (87%) rename Scribe-i18n/Scripts/{convert_from_xcstrings.py => convert_xcstrings_to_jsons.py} (82%) diff --git a/Scribe-i18n/Localizable.xcstrings b/Scribe-i18n/Localizable.xcstrings index 4678a2d..546df19 100644 --- a/Scribe-i18n/Localizable.xcstrings +++ b/Scribe-i18n/Localizable.xcstrings @@ -1,9 +1,151 @@ { "sourceLanguage" : "en", "strings" : { - "about.appHints" : { + "_global.french" : { "comment" : "", "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Französisch" + } + }, + "en" : { + "stringUnit" : { + "state" : "", + "value" : "French" + } + } + } + }, + "_global.german" : { + "comment" : "", + "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Deutsch" + } + }, + "en" : { + "stringUnit" : { + "state" : "", + "value" : "German" + } + } + } + }, + "_global.italian" : { + "comment" : "", + "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Italienisch" + } + }, + "en" : { + "stringUnit" : { + "state" : "", + "value" : "Italian" + } + } + } + }, + "_global.portuguese" : { + "comment" : "", + "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Portugiesisch" + } + }, + "en" : { + "stringUnit" : { + "state" : "", + "value" : "Portuguese" + } + } + } + }, + "_global.russian" : { + "comment" : "", + "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Russisch" + } + }, + "en" : { + "stringUnit" : { + "state" : "", + "value" : "Russian" + } + } + } + }, + "_global.spanish" : { + "comment" : "", + "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Spanisch" + } + }, + "en" : { + "stringUnit" : { + "state" : "", + "value" : "Spanish" + } + } + } + }, + "_global.swedish" : { + "comment" : "", + "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Schwedisch" + } + }, + "en" : { + "stringUnit" : { + "state" : "", + "value" : "Swedish" + } + } + } + }, + "app.about.appHint" : { + "comment" : "", + "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Hier kannst du mehr über Scribe und seine Community erfahren." + } + }, + "en" : { + "stringUnit" : { + "state" : "", + "value" : "Here's where you can learn more about Scribe and its community." + } + } + } + }, + "app.about.appHints" : { + "comment" : "", + "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "App-Hinweise zurücksetzen" + } + }, "en" : { "stringUnit" : { "state" : "", @@ -12,9 +154,15 @@ } } }, - "about.bugReport" : { + "app.about.bugReport" : { "comment" : "", "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Bug melden" + } + }, "en" : { "stringUnit" : { "state" : "", @@ -23,9 +171,15 @@ } } }, - "about.community" : { + "app.about.community" : { "comment" : "", "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Community" + } + }, "en" : { "stringUnit" : { "state" : "", @@ -34,9 +188,15 @@ } } }, - "about.email" : { + "app.about.email" : { "comment" : "", "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Schicke uns eine E-Mail" + } + }, "en" : { "stringUnit" : { "state" : "", @@ -45,9 +205,15 @@ } } }, - "about.feedback" : { + "app.about.feedback" : { "comment" : "", "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Feedback und Support" + } + }, "en" : { "stringUnit" : { "state" : "", @@ -56,9 +222,15 @@ } } }, - "about.github" : { + "app.about.github" : { "comment" : "", "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Den Code auf GitHub ansehen" + } + }, "en" : { "stringUnit" : { "state" : "", @@ -67,9 +239,15 @@ } } }, - "about.legal" : { + "app.about.legal" : { "comment" : "", "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Rechtliches" + } + }, "en" : { "stringUnit" : { "state" : "", @@ -78,9 +256,15 @@ } } }, - "about.matrix" : { + "app.about.matrix" : { "comment" : "", "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Chatte mit dem Team auf Matrix" + } + }, "en" : { "stringUnit" : { "state" : "", @@ -89,7 +273,7 @@ } } }, - "about.privacyPolicy" : { + "app.about.privacyPolicy" : { "comment" : "", "localizations" : { "de" : { @@ -106,24 +290,24 @@ } } }, - "about.privacyPolicy.body" : { + "app.about.privacyPolicy.body" : { "comment" : "", "localizations" : { "de" : { "stringUnit" : { "state" : "", - "value" : "Bitte beachten Sie, dass die englische Version dieser Richtlinie Vorrang vor allen anderen Versionen hat.\n\nDie Scribe-Entwickler (SCRIBE) haben die iOS-Applikation „Scribe – Language Keyboards“ (SERVICE) als Open-Source-Applikation entwickelt. Dieser SERVICE wird von SCRIBE kostenlos zur Verfügung gestellt und ist zur Verwendung so wie sie ist bestimmt.\n\nDiese Datenschutzrichtlinie (RICHTLINIE) wird verwendet, um den Leser über die Richtlinien für den Zugriff, die Verfolgung, die Erfassung, die Aufbewahrung, die Verwendung und die Offenlegung von persönlichen Informationen (BENUTZERINFORMATIONEN) und Nutzungsdaten (BENUTZERDATEN) für alle Personen zu informieren, die sie verwenden diesen SERVICE (BENUTZER).\n\nBENUTZERINFORMATIONEN sind insbesondere alle Informationen, die sich auf die BENUTZER selbst oder die Geräte beziehen, die sie für den Zugriff auf den SERVICE verwenden.\n\nBENUTZERDATEN sind speziell definiert als jeder Text, der eingegeben wird, oder Aktionen, die von den BENUTZERN während der Nutzung des SERVICE ausgeführt werden.\n\n1. Grundsatzerklärung\n\nDieser SERVICE greift nicht auf BENUTZERINFORMATIONEN oder BENUTZERDATEN zu, verfolgt, sammelt, speichert, verwendet oder gibt keine BENUTZERDATEN weiter.\n\n2. Nicht verfolgen\n\nBENUTZER, die SCRIBE kontaktieren, um zu verlangen, dass ihre BENUTZERINFORMATIONEN und BENUTZERDATEN nicht verfolgt werden, erhalten eine Kopie dieser RICHTLINIE sowie einen Link zu allen Quellcodes als Nachweis, dass sie nicht verfolgt werden.\n\n3. Daten von Drittanbietern\n\nDieser SERVICE verwendet Daten von Drittanbietern. Alle Daten, die bei der Erstellung dieses SERVICE verwendet werden, stammen aus Quellen, die ihre vollständige Nutzung in der vom SERVICE durchgeführten Weise ermöglichen. Insbesondere stammen die Daten für diesen SERVICE von Wikidata, Wikipedia und Unicode. Wikidata erklärt: „Alle strukturierten Daten in den Haupt-, Eigenschafts- und Lexem-Namespaces werden unter der Creative Commons CC0-Lizenz verfügbar gemacht; Text in anderen Namespaces wird unter der Creative Commons Attribution-Share Alike License verfügbar gemacht.“ Die Richtlinie zur detaillierten Verwendung von Wikidata-Daten finden Sie unter https://www.wikidata.org/wiki/Wikidata:Licensing. Wikipedia gibt an, dass Textdaten, die Art von Daten, die vom SERVICE verwendet werden, \"... unter den Bedingungen der Creative Commons Attribution Share-Alike-Lizenz verwendet werden können\". Die Richtlinie zur Nutzung von Wikipedia-Daten finden Sie unter https://en.wikipedia.org/wiki/Wikipedia:Reusing_Wikipedia_content. Unicode gewährt jeder Person, „... kostenlos, die Erlaubnis, eine Kopie der Unicode-Datendateien und der zugehörigen Dokumentation (die „Datendateien“) oder der Unicode-Software und der zugehörigen Dokumentation (die „Software“) zu erwerben, um damit zu handeln die Datendateien oder Software ohne Einschränkung...\" Die Richtlinie zur Nutzung von Unicode-Daten finden Sie unter https://www.unicode.org/license.txt.\n\n4. Quellcode von Drittanbietern\n\nDieser SERVICE basierte auf Code von Drittanbietern. Der gesamte Quellcode, der bei der Erstellung dieses SERVICE verwendet wird, stammt aus Quellen, die seine vollständige Nutzung in der vom SERVICE durchgeführten Weise ermöglichen. Grundlage dieses Projekts war insbesondere das Projekt CustomKeyboard von Ethan Sarif-Kattan. CustomKeyboard wurde unter einer MIT-Lizenz veröffentlicht, wobei diese Lizenz unter https://github.com/EthanSK/CustomKeyboard/blob/master/LICENSE verfügbar ist.\n\n5. Dienste von Drittanbietern\n\nDieser SERVICE nutzt Dienste von Drittanbietern, um einige der Daten von Drittanbietern zu manipulieren. Insbesondere wurden Daten unter Verwendung von Modellen von Hugging Face Transformers übersetzt. Dieser Dienst ist durch eine Apache-Lizenz 2.0 abgedeckt, die besagt, dass er für die kommerzielle Nutzung, Änderung, Verteilung, Patentnutzung und private Nutzung verfügbar ist. Die Lizenz für den oben genannten Dienst finden Sie unter https://github.com/huggingface/transformers/blob/master/LICENSE.\n\n6. Links zu Drittanbietern\n\nDieser SERVICE enthält Links zu externen Websites. Wenn BENUTZER auf einen Link eines Drittanbieters klicken, werden sie auf eine Website weitergeleitet. Beachten Sie, dass diese externen Websites nicht von diesem SERVICE betrieben werden. Daher wird BENUTZERN dringend empfohlen, die Datenschutzrichtlinie dieser Websites zu lesen. Dieser SERVICE hat keine Kontrolle über und übernimmt keine Verantwortung für die Inhalte, Datenschutzrichtlinien oder Praktiken von Websites oder Diensten Dritter.\n\n7. Bilder von Drittanbietern\n\nDieser SERVICE enthält Bilder, die von Dritten urheberrechtlich geschützt sind. Insbesondere enthält diese App eine Kopie der Logos von GitHub, Inc und Wikidata, Warenzeichen von Wikimedia Foundation, Inc. Die Bedingungen, unter denen das GitHub-Logo verwendet werden kann, finden Sie unter https://github.com/logos und die Bedingungen für das Wikidata-Logo finden Sie auf der folgenden Wikimedia-Seite: https://foundation.wikimedia.org/wiki/Policy:Trademark_policy. Dieser SERVICE verwendet die urheberrechtlich geschützten Bilder in einer Weise, die diesen Kriterien entspricht, wobei die einzige Abweichung eine Drehung des GitHub-Logos ist, die in der Open-Source-Community üblich ist, um anzuzeigen, dass es einen Link zur GitHub-Website gibt.\n\n8. Inhaltshinweis\n\nDieser SERVICE ermöglicht NUTZERN den Zugriff auf sprachliche Inhalte (INHALTE). Einige dieser INHALTE könnten für Kinder und Minderjährige als ungeeignet erachtet werden. Der Zugriff auf INHALTE über den DIENST erfolgt auf eine Weise, dass die Informationen nicht verfügbar sind, es sei denn, sie sind ausdrücklich bekannt. Insbesondere „können“ BENUTZER Wörter übersetzen, Verben konjugieren und auf andere grammatikalische Merkmale von INHALTEN zugreifen, die sexueller, gewalttätiger oder anderweitig unangemessener Natur sein können. BENUTZER „können“ keine Wörter übersetzen, Verben konjugieren und auf andere grammatikalische Merkmale von INHALTEN zugreifen, die sexueller, gewalttätiger oder anderweitig unangemessener Natur sein können, wenn sie nicht bereits über die Natur dieser INHALTE Bescheid wissen. SCRIBE übernimmt keine Verantwortung für den Zugriff auf solche INHALTE.\n\n9. Änderungen\n\nDiese RICHTLINIE kann sich ändern. Aktualisierungen dieser RICHTLINIE ersetzen alle vorherigen Instanzen, und wenn sie als wesentlich erachtet werden, werden sie in der nächsten anwendbaren Aktualisierung des SERVICE weiter deutlich angegeben. SCRIBE ermutigt BENUTZER, diese RICHTLINIE regelmäßig auf die neuesten Informationen zu unseren Datenschutzpraktiken zu überprüfen und sich mit etwaigen Änderungen vertraut zu machen.\n\n10. Kontakt\n\nWenn Sie Fragen, Bedenken oder Vorschläge zu dieser RICHTLINIE haben, zögern Sie nicht, https://github.com/scribe-org zu besuchen oder SCRIBE unter scribe.langauge@gmail.com zu kontaktieren. Verantwortlich für solche Anfragen ist Andrew Tavis McAllister.\n\n11. Datum des Inkrafttretens\n\nDiese RICHTLINIE tritt am 24. Mai 2022 in Kraft." + "value" : "Bitte beachten Sie, dass die englische Version dieser Richtlinie Vorrang vor allen anderen Versionen hat.\n\nDie Scribe-Entwickler (SCRIBE) haben die iOS-App „Scribe – Language Keyboards“ (SERVICE) als Open-Source-App entwickelt. Dieser DIENST wird von SCRIBE kostenlos zur Verfügung gestellt und ist zur Verwendung so wie er ist bestimmt.\n\nDiese Datenschutzrichtlinie (RICHTLINIE) dient dazu, den Leser über die Bedingungen für den Zugriff auf, sowie die Verfolgung, Erfassung, Aufbewahrung, Verwendung und Offenlegung von persönlichen Informationen (NUTZERINFORMATIONEN) und Nutzungsdaten (NUTZERDATEN) aller Benutzer (NUTZER) dieses DIENSTES aufzuklären.\n\nNUTZERINFORMATIONEN sind insbesondere alle Informationen, die sich auf die NUTZER selbst oder die Geräte beziehen, die sie für den Zugriff auf den DIENST verwenden.\n\nNUTZERDATEN sind definiert als eingegebener Text oder Aktionen, die von den NUTZERN während der Nutzung des DIENSTES ausgeführt werden.\n\n1. Grundsatzerklärung\n\nDieser DIENST greift nicht auf NUTZERINFORMATIONEN oder NUTZERDATEN zu und verfolgt, sammelt, speichert, verwendet und gibt keine NUTZERDATEN weiter.\n\n2. Do Not Track\n\nNUTZER, die SCRIBE kontaktieren, um zu verlangen, dass ihre NUTZERINFORMATIONEN und NUTZERDATEN nicht verfolgt werden, erhalten eine Kopie dieser RICHTLINIE sowie einen Link zu allen Quellcodes als Nachweis, dass sie nicht verfolgt werden.\n\n3. Daten von Drittanbietern\n\nDieser DIENST verwendet Daten von Drittanbietern. Alle Daten, die bei der Erstellung dieses DIENSTES verwendet werden, stammen aus Quellen, die ihre vollständige Nutzung in der vom DIENST durchgeführten Weise ermöglichen. Primär stammen die Daten für diesen DIENST von Wikidata, Wikipedia und Unicode. Wikidata erklärt: „Alle strukturierten Daten in den Haupt-, Eigenschafts- und Lexem-Namespaces werden unter der Creative Commons CC0-Lizenz verfügbar gemacht; Text in anderen Namespaces wird unter der Creative Commons Attribution Share-Alike Lizenz verfügbar gemacht.“ Die Wikidata-Richtlinie zur Verwendung von Daten ist unter https://www.wikidata.org/wiki/Wikidata:Licensing zu finden. Wikipedia gibt an, dass Texte, also die Daten, die vom DIENST verwendet werden, „… unter den Bedingungen der Creative Commons Attribution Share-Alike Lizenz verwendet werden können“. Die Wikipedia-Richtlinie zur Verwendung von Daten ist unter https://en.wikipedia.org/wiki/Wikipedia:Reusing_Wikipedia_content zu finden. Unicode gewährt die Erlaubnis, „… kostenlos, für alle Inhaber einer Kopie der Unicode-Daten und der zugehörigen Dokumentation (der „Data Files“) oder der Unicode-Software und der zugehörigen Dokumentation (der „Software“), die Data Files oder Software ohne Einschränkung zu verwenden …“ Die Unicode-Richtlinie zur Verwendung von Daten ist unter https://www.unicode.org/license.txt zu finden.\n\n4. Quellcode von Drittanbietern\n\nDieser DIENST basiert auf Code von Dritten. Der gesamte bei der Erstellung dieses DIENSTES verwendete Quellcode stammt von Quellen, die ihre Nutzung in der vom DIENST durchgeführten Weise gestatten. Grundlage dieses Projekts war im Besonderen das Projekt CustomKeyboard von Ethan Sarif-Kattan. CustomKeyboard wurde unter der MIT-Lizenz veröffentlicht, welche unter https://github.com/EthanSK/CustomKeyboard/blob/master/LICENSE abrufbar ist.\n\n5. Dienste von Drittanbietern\n\nDieser DIENST nutzt Drittanbieterdienste, um einige der Daten von Drittanbietern zu modifizieren. Namentlich wurden Daten unter Verwendung von Modellen von Hugging Face’ Transformers übersetzt. Dieser Dienst ist durch eine Apache 2.0 Lizenz abgedeckt, die besagt, dass er für die kommerzielle Nutzung, Änderung, Verteilung, Patent- und private Nutzung verfügbar ist. Die Lizenz für den oben genannten Dienst finden Sie unter https://github.com/huggingface/transformers/blob/master/LICENSE.\n\n6. Links zu Drittanbietern\n\nDieser DIENST enthält Links zu externen Webseiten. Wenn NUTZER auf einen Link eines Drittanbieters klicken, werden sie auf eine Webseite weitergeleitet. Beachten Sie, dass diese externen Websites nicht von diesem DIENST betrieben werden. Daher wird NUTZERN dringend empfohlen, die Datenschutzrichtlinie dieser Webseiten zu lesen. Dieser DIENST hat keine Kontrolle über und übernimmt keine Haftung für Inhalte, Datenschutzrichtlinien oder Praktiken von Webseiten oder Diensten Dritter.\n\n7. Bilder von Drittanbietern\n\nDieser SERVICE enthält Bilder, die von Dritten urheberrechtlich geschützt sind. Insbesondere enthält diese App eine Kopie der Logos von GitHub, Inc. und Wikidata, Warenzeichen von Wikimedia Foundation, Inc. Die Bedingungen, unter denen das GitHub-Logo verwendet werden kann, ist unter https://github.com/logo abrufbar. Die Bedingungen für das Wikidata-Logo ist zu finden auf der folgenden Wikimedia-Seite: https://foundation.wikimedia.org/wiki/Policy:Trademark_policy. Dieser DIENST verwendet die urheberrechtlich geschützten Bilder in einer Weise, die diesen Kriterien entspricht, wobei die einzige Abweichung eine rotierte Version des GitHub-Logos ist, was in der Open-Source-Community üblich ist, um einen Link zur GitHub-Website darzustellen.\n\n8. Inhaltshinweis\n\nDieser DIENST ermöglicht NUTZERN den Zugriff auf sprachliche Inhalte (INHALTE). Einige dieser INHALTE könnten für Kinder und Minderjährige als ungeeignet eingestuft werden. Der Zugriff auf INHALTE über den DIENST erfolgt auf eine Weise, in der die Informationen nur bekannt sind, wenn diese ausdrücklich angefragt werden. Speziell können NUTZER Wörter übersetzen, Verben konjugieren und auf andere grammatikalische Merkmale von INHALTEN zugreifen, die sexueller, gewalttätiger oder anderweitig nicht altersgerechter Natur sein können. NUTZER können keine Wörter übersetzen, Verben konjugieren und auf andere grammatikalische Merkmale von INHALTEN zugreifen, die sexueller, gewalttätiger oder anderweitig nicht altersgerechter Natur sein können, wenn sie nicht bereits über diese Art INHALTE Bescheid wissen. SCRIBE übernimmt keine Haftung für den Zugriff auf solche INHALTE.\n\n9. Änderungen\n\nDer DIENST behält sich Änderungen dieser RICHTLINIE vor. Aktualisierungen dieser RICHTLINIE ersetzen alle vorherigen Versionen, und werden, wenn sie als wesentlich erachtet werden, in der nächsten anwendbaren Aktualisierung des DIENSTES deutlich aufgeführt. SCRIBE animiert NUTZER dazu, diese RICHTLINIE regelmäßig auf die neuesten Informationen zu unseren Datenschutzpraktiken zu prüfen und sich mit etwaigen Änderungen vertraut zu machen.\n\n10. Kontakt\n\nWenn Sie Fragen, Bedenken oder Vorschläge zu dieser RICHTLINIE haben, zögern Sie nicht, https://github.com/scribe-org zu besuchen oder SCRIBE unter scribe.langauge@gmail.com zu kontaktieren. Verantwortlich für solche Anfragen ist Andrew Tavis McAllister.\n\n11. Datum des Inkrafttretens\n\nDiese RICHTLINIE tritt am 24. Mai 2022 in Kraft." } }, "en" : { "stringUnit" : { "state" : "", - "value" : "Please note that the English version of this policy takes precedence over all other versions.\n\nThe Scribe developers (SCRIBE) built the iOS application \"Scribe - Language Keyboards\" (SERVICE) as an open-source application. This SERVICE is provided by SCRIBE at no cost and is intended for use as is.\n\nThis privacy policy (POLICY) is used to inform the reader of the policies for the access, tracking, collection, retention, use, and disclosure of personal information (USER INFORMATION) and usage data (USER DATA) for all individuals who make use of this SERVICE (USERS).\n\nUSER INFORMATION is specifically defined as any information related to the USERS themselves or the devices they use to access the SERVICE.\n\nUSER DATA is specifically defined as any text that is typed or actions that are done by the USERS while using the SERVICE.\n\n1. Policy Statement\n\nThis SERVICE does not access, track, collect, retain, use, or disclose any USER INFORMATION or USER DATA.\n\n2. Do Not Track\n\nUSERS contacting SCRIBE to ask that their USER INFORMATION and USER DATA not be tracked will be provided with a copy of this POLICY as well as a link to all source codes as proof that they are not being tracked.\n\n3. Third-Party Data\n\nThis SERVICE makes use of third-party data. All data used in the creation of this SERVICE comes from sources that allow its full use in the manner done so by the SERVICE. Specifically, the data for this SERVICE comes from Wikidata, Wikipedia and Unicode. Wikidata states that, \"All structured data in the main, property and lexeme namespaces is made available under the Creative Commons CC0 License; text in other namespaces is made available under the Creative Commons Attribution-Share Alike License.\" The policy detailing Wikidata data usage can be found at https://www.wikidata.org/wiki/Wikidata:Licensing. Wikipedia states that text data, the type of data used by the SERVICE, \"... can be used under the terms of the Creative Commons Attribution Share-Alike license\". The policy detailing Wikipedia data usage can be found at https://en.wikipedia.org/wiki/Wikipedia:Reusing_Wikipedia_content. Unicode provides permission, \"... free of charge, to any person obtaining a copy of the Unicode data files and any associated documentation (the \"Data Files\") or Unicode software and any associated documentation (the \"Software\") to deal in the Data Files or Software without restriction...\" The policy detailing Unicode data usage can be found at https://www.unicode.org/license.txt.\n\n4. Third-Party Source Code\n\nThis SERVICE was based on third-party code. All source code used in the creation of this SERVICE comes from sources that allow its full use in the manner done so by the SERVICE. Specifically, the basis of this project was the project CustomKeyboard by Ethan Sarif-Kattan. CustomKeyboard was released under an MIT license, with this license being available at https://github.com/EthanSK/CustomKeyboard/blob/master/LICENSE.\n\n5. Third-Party Services\n\nThis SERVICE makes use of third-party services to manipulate some of the third-party data. Specifically, data has been translated using models from Hugging Face transformers. This service is covered by an Apache License 2.0, which states that it is available for commercial use, modification, distribution, patent use, and private use. The license for the aforementioned service can be found at https://github.com/huggingface/transformers/blob/master/LICENSE.\n\n6. Third-Party Links\n\nThis SERVICE contains links to external websites. If USERS click on a third-party link, they will be directed to a website. Note that these external websites are not operated by this SERVICE. Therefore, USERS are strongly advised to review the privacy policy of these websites. This SERVICE has no control over and assumes no responsibility for the content, privacy policies, or practices of any third-party sites or services.\n\n7. Third-Party Images\n\nThis SERVICE contains images that are copyrighted by third-parties. Specifically, this app includes a copy of the logos of GitHub, Inc and Wikidata, trademarked by Wikimedia Foundation, Inc. The terms by which the GitHub logo can be used are found on https://github.com/logos, and the terms for the Wikidata logo are found on the following Wikimedia page: https://foundation.wikimedia.org/wiki/Policy:Trademark_policy. This SERVICE uses the copyrighted images in a way that matches these criteria, with the only deviation being a rotation of the GitHub logo that is common in the open-source community to indicate that there is a link to the GitHub website.\n\n8. Content Notice\n\nThis SERVICE allows USERS to access linguistic content (CONTENT). Some of this CONTENT could be deemed inappropriate for children and legal minors. Accessing CONTENT using the SERVICE is done in a way that the information is unavailable unless explicitly known. Specifically, USERS \"can\" translate words, conjugate verbs, and access other grammatical features of CONTENT that may be sexual, violent, or otherwise inappropriate in nature. USERS \"cannot\" translate words, conjugate verbs, and access other grammatical features of CONTENT that may be sexual, violent, or otherwise inappropriate in nature if they do not already know about the nature of this CONTENT. SCRIBE takes no responsibility for the access of such CONTENT.\n\n9. Changes\n\nThis POLICY is subject to change. Updates to this POLICY will replace all prior instances, and if deemed material will further be clearly stated in the next applicable update to the SERVICE. SCRIBE encourages USERS to periodically review this POLICY for the latest information on our privacy practices and to familiarize themselves with any changes.\n\n10. Contact\n\nIf you have any questions, concerns, or suggestions about this POLICY, do not hesitate to visit https://github.com/scribe-org or contact SCRIBE at scribe.langauge@gmail.com. The person responsible for such inquiries is Andrew Tavis McAllister.\n\n11. Effective Date\n\nThis POLICY is effective as of the 24th of May, 2022." + "value" : "Please note that the English version of this policy takes precedence over all other versions.\n\nThe Scribe developers (SCRIBE) built the iOS application \"Scribe - Language Keyboards\" (SERVICE) as an open-source application. This SERVICE is provided by SCRIBE at no cost and is intended for use as is.\n\nThis privacy policy (POLICY) is used to inform the reader of the policies for the access, tracking, collection, retention, use, and disclosure of personal information (USER INFORMATION) and usage data (USER DATA) for all individuals who make use of this SERVICE (USERS).\n\nUSER INFORMATION is specifically defined as any information related to the USERS themselves or the devices they use to access the SERVICE.\n\nUSER DATA is specifically defined as any text that is typed or actions that are done by the USERS while using the SERVICE.\n\n1. Policy Statement\n\nThis SERVICE does not access, track, collect, retain, use, or disclose any USER INFORMATION or USER DATA.\n\n2. Do Not Track\n\nUSERS contacting SCRIBE to ask that their USER INFORMATION and USER DATA not be tracked will be provided with a copy of this POLICY as well as a link to all source codes as proof that they are not being tracked.\n\n3. Third-Party Data\n\nThis SERVICE makes use of third-party data. All data used in the creation of this SERVICE comes from sources that allow its full use in the manner done so by the SERVICE. Specifically, the data for this SERVICE comes from Wikidata, Wikipedia and Unicode. Wikidata states that, \"All structured data in the main, property and lexeme namespaces is made available under the Creative Commons CC0 License; text in other namespaces is made available under the Creative Commons Attribution-Share Alike License.\" The policy detailing Wikidata data usage can be found at https://www.wikidata.org/wiki/Wikidata:Licensing. Wikipedia states that text data, the type of data used by the SERVICE, \"… can be used under the terms of the Creative Commons Attribution Share-Alike license\". The policy detailing Wikipedia data usage can be found at https://en.wikipedia.org/wiki/Wikipedia:Reusing_Wikipedia_content. Unicode provides permission, \"… free of charge, to any person obtaining a copy of the Unicode data files and any associated documentation (the \"Data Files\") or Unicode software and any associated documentation (the \"Software\") to deal in the Data Files or Software without restriction…\" The policy detailing Unicode data usage can be found at https://www.unicode.org/license.txt.\n\n4. Third-Party Source Code\n\nThis SERVICE was based on third-party code. All source code used in the creation of this SERVICE comes from sources that allow its full use in the manner done so by the SERVICE. Specifically, the basis of this project was the project CustomKeyboard by Ethan Sarif-Kattan. CustomKeyboard was released under an MIT license, with this license being available at https://github.com/EthanSK/CustomKeyboard/blob/master/LICENSE.\n\n5. Third-Party Services\n\nThis SERVICE makes use of third-party services to manipulate some of the third-party data. Specifically, data has been translated using models from Hugging Face transformers. This service is covered by an Apache License 2.0, which states that it is available for commercial use, modification, distribution, patent use, and private use. The license for the aforementioned service can be found at https://github.com/huggingface/transformers/blob/master/LICENSE.\n\n6. Third-Party Links\n\nThis SERVICE contains links to external websites. If USERS click on a third-party link, they will be directed to a website. Note that these external websites are not operated by this SERVICE. Therefore, USERS are strongly advised to review the privacy policy of these websites. This SERVICE has no control over and assumes no responsibility for the content, privacy policies, or practices of any third-party sites or services.\n\n7. Third-Party Images\n\nThis SERVICE contains images that are copyrighted by third-parties. Specifically, this app includes a copy of the logos of GitHub, Inc and Wikidata, trademarked by Wikimedia Foundation, Inc. The terms by which the GitHub logo can be used are found on https://github.com/logos, and the terms for the Wikidata logo are found on the following Wikimedia page: https://foundation.wikimedia.org/wiki/Policy:Trademark_policy. This SERVICE uses the copyrighted images in a way that matches these criteria, with the only deviation being a rotation of the GitHub logo that is common in the open-source community to indicate that there is a link to the GitHub website.\n\n8. Content Notice\n\nThis SERVICE allows USERS to access linguistic content (CONTENT). Some of this CONTENT could be deemed inappropriate for children and legal minors. Accessing CONTENT using the SERVICE is done in a way that the information is unavailable unless explicitly known. Specifically, USERS \"can\" translate words, conjugate verbs, and access other grammatical features of CONTENT that may be sexual, violent, or otherwise inappropriate in nature. USERS \"cannot\" translate words, conjugate verbs, and access other grammatical features of CONTENT that may be sexual, violent, or otherwise inappropriate in nature if they do not already know about the nature of this CONTENT. SCRIBE takes no responsibility for the access of such CONTENT.\n\n9. Changes\n\nThis POLICY is subject to change. Updates to this POLICY will replace all prior instances, and if deemed material will further be clearly stated in the next applicable update to the SERVICE. SCRIBE encourages USERS to periodically review this POLICY for the latest information on our privacy practices and to familiarize themselves with any changes.\n\n10. Contact\n\nIf you have any questions, concerns, or suggestions about this POLICY, do not hesitate to visit https://github.com/scribe-org or contact SCRIBE at scribe.langauge@gmail.com. The person responsible for such inquiries is Andrew Tavis McAllister.\n\n11. Effective Date\n\nThis POLICY is effective as of the 24th of May, 2022." } } } }, - "about.privacyPolicy.caption" : { + "app.about.privacyPolicy.caption" : { "comment" : "", "localizations" : { "de" : { @@ -140,9 +324,15 @@ } } }, - "about.rate" : { + "app.about.rate" : { "comment" : "", "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Scribe bewerten" + } + }, "en" : { "stringUnit" : { "state" : "", @@ -151,9 +341,15 @@ } } }, - "about.scribe" : { + "app.about.scribe" : { "comment" : "", "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Alle Scribe Apps anzeigen" + } + }, "en" : { "stringUnit" : { "state" : "", @@ -162,9 +358,15 @@ } } }, - "about.share" : { + "app.about.share" : { "comment" : "", "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Scribe teilen" + } + }, "en" : { "stringUnit" : { "state" : "", @@ -173,9 +375,15 @@ } } }, - "about.thirdParty" : { + "app.about.thirdParty" : { "comment" : "", "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Lizenzen von Drittanbietern" + } + }, "en" : { "stringUnit" : { "state" : "", @@ -184,9 +392,15 @@ } } }, - "about.thirdParty.author" : { + "app.about.thirdParty.author" : { "comment" : "", "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Autor" + } + }, "en" : { "stringUnit" : { "state" : "", @@ -195,20 +409,32 @@ } } }, - "about.thirdParty.body" : { + "app.about.thirdParty.body" : { "comment" : "", "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Die iOS-App „Scribe - Language Keyboards“ (DIENST) wurde von den Scribe-Entwicklern (SCRIBE) unter Verwendung von Code von Dritten erstellt. Der gesamte bei der Erstellung dieses DIENSTES verwendete Quellcode stammt von Quellen, die ihre Nutzung in der vom DIENST durchgeführten Weise gestatten. Dieser Abschnitt enthält den Quellcode, auf dem der DIENST basiert, sowie die zugehörigen Lizenzen.\n\nIm Folgenden ist eine Liste des benutzten Quellcodes, des oder der jeweiligen Autor:innen und der Lizenz zur Zeit der Verwendung durch SCRIBE mit einem Link zu dieser zu finden.\n\n1. Custom Keyboard\n• Autor: EthanSK\n• Lizenz: MIT\n• Link: https://github.com/EthanSK/CustomKeyboard/blob/master/LICENSE" + } + }, "en" : { "stringUnit" : { "state" : "", - "value" : "The Scribe developers (SCRIBE) built\nthe iOS application \"Scribe - Language Keyboards\" (SERVICE) using third party code. All source code used in the creation of this SERVICE comes from sources that allow its full use in the manner done so by the SERVICE. This section lists the source code on which the SERVICE was based as well as the coinciding licenses of each.\n\nThe following is a list of all used source code, the main author or authors of the code, the license under which it was released at time of usage, and a link to the license.\n\n1. Custom Keyboard\n• Author: EthanSK\n• License: MIT\n• Link: https://github.com/EthanSK/CustomKeyboard/blob/master/LICENSE" + "value" : "The Scribe developers (SCRIBE) built the iOS application \"Scribe - Language Keyboards\" (SERVICE) using third party code. All source code used in the creation of this SERVICE comes from sources that allow its full use in the manner done so by the SERVICE. This section lists the source code on which the SERVICE was based as well as the coinciding licenses of each.\n\nThe following is a list of all used source code, the main author or authors of the code, the license under which it was released at time of usage, and a link to the license.\n\n1. Custom Keyboard\n• Author: EthanSK\n• License: MIT\n• Link: https://github.com/EthanSK/CustomKeyboard/blob/master/LICENSE" } } } }, - "about.thirdParty.caption" : { + "app.about.thirdParty.caption" : { "comment" : "", "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Der von uns verwendete Code" + } + }, "en" : { "stringUnit" : { "state" : "", @@ -217,9 +443,15 @@ } } }, - "about.thirdParty.license" : { + "app.about.thirdParty.license" : { "comment" : "", "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Lizenz" + } + }, "en" : { "stringUnit" : { "state" : "", @@ -228,9 +460,15 @@ } } }, - "about.thirdParty.link" : { + "app.about.thirdParty.link" : { "comment" : "", "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Link" + } + }, "en" : { "stringUnit" : { "state" : "", @@ -239,9 +477,15 @@ } } }, - "about.title" : { + "app.about.title" : { "comment" : "", "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Über uns" + } + }, "en" : { "stringUnit" : { "state" : "", @@ -250,9 +494,15 @@ } } }, - "about.wikimedia" : { + "app.about.wikimedia" : { "comment" : "", "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Wikimedia und Scribe" + } + }, "en" : { "stringUnit" : { "state" : "", @@ -261,9 +511,15 @@ } } }, - "about.wikimedia.caption" : { + "app.about.wikimedia.caption" : { "comment" : "", "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Wie wir zusammenarbeiten" + } + }, "en" : { "stringUnit" : { "state" : "", @@ -272,68 +528,58 @@ } } }, - "about.wikimedia.text1" : { + "app.about.wikimedia.text1" : { "comment" : "", "localizations" : { - "en" : { + "de" : { "stringUnit" : { "state" : "", - "value" : "Scribe would not be possible without countless contributions by Wikimedia contributors to the many projects that they support. Specifically Scribe makes use of data from the Wikidata Lexicographical data community, as well as data from Wikipedia for each language that Scribe supports." + "value" : "Scribe wäre ohne die etlichen Mitwirkungen von Wikimedia Mitwirkenden, den Projekten, die sie unterstützen, gegenüber, nicht möglich. Genauer benutzt Scribe Daten der Lexikografischen Datencommunity in Wikidata, sowie solche von Wikipedia für jede von Scribe unterstützte Sprache." } - } - } - }, - "about.wikimedia.text2" : { - "comment" : "", - "localizations" : { + }, "en" : { "stringUnit" : { "state" : "", - "value" : "Wikidata is a collaboratively edited multilingual knowledge graph hosted by the Wikimedia Foundation. It provides freely available data that anyone can use under a Creative Commons Public Domain license (CC0). Scribe uses language data from Wikidata to provide users with verb conjugations, noun-form annotations, noun plurals, and many other features." + "value" : "Scribe would not be possible without countless contributions by Wikimedia contributors to the many projects that they support. Specifically Scribe makes use of data from the Wikidata Lexicographical data community, as well as data from Wikipedia for each language that Scribe supports." } } } }, - "about.wikimedia.text3" : { + "app.about.wikimedia.text2" : { "comment" : "", "localizations" : { - "en" : { + "de" : { "stringUnit" : { "state" : "", - "value" : "Wikipedia is a multilingual free online encyclopedia written and maintained by a community of volunteers through open collaboration and a wiki-based editing system. Scribe uses data from Wikipedia to produce autosuggestions by deriving the most common words in a language as well as the most common words that follow them." + "value" : "Wikidata ist ein kollaborativ gestalteter, mehrsprachiger Wissensgraf, der von der Wikimedia Foundation gehostet wird. Sie stellt frei verfügbare Daten, die unter einer Creative Commons Public Domain Lizenz (CC0) stehen, zur Verfügung. Scribe benutzt Sprachdaten von Wikidata, um Nutzern Verbkonjugationen, Kasusannotationen, Plurale und viele andere Funktionen zu bieten." } - } - } - }, - "french" : { - "comment" : "", - "localizations" : { + }, "en" : { "stringUnit" : { "state" : "", - "value" : "French" + "value" : "Wikidata is a collaboratively edited multilingual knowledge graph hosted by the Wikimedia Foundation. It provides freely available data that anyone can use under a Creative Commons Public Domain license (CC0). Scribe uses language data from Wikidata to provide users with verb conjugations, noun-form annotations, noun plurals, and many other features." } } } }, - "german" : { + "app.about.wikimedia.text3" : { "comment" : "", "localizations" : { "de" : { "stringUnit" : { "state" : "", - "value" : "Deutsch" + "value" : "Wikipedia ist eine mehrsprachige, freie, Online-Enzyklopädie, die von einer Community an Freiwilligen durch offene Kollaboration und einem Wiki-basierten Bearbeitungssystem geschrieben und aufrechterhalten wird. Scribe nutzt Wikipedia-Daten, um automatische Empfehlungen zu erstellen, indem die häufigsten Wörter und Folgewörter einer Sprache erlangt werden." } }, "en" : { "stringUnit" : { "state" : "", - "value" : "German" + "value" : "Wikipedia is a multilingual free online encyclopedia written and maintained by a community of volunteers through open collaboration and a wiki-based editing system. Scribe uses data from Wikipedia to produce autosuggestions by deriving the most common words in a language as well as the most common words that follow them." } } } }, - "install" : { + "app.install" : { "comment" : "", "localizations" : { "de" : { @@ -350,9 +596,15 @@ } } }, - "installation.settingsLink" : { + "app.installation.settingsLink" : { "comment" : "", "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Scribe-Einstellungen öffnen" + } + }, "en" : { "stringUnit" : { "state" : "", @@ -361,9 +613,15 @@ } } }, - "installation.text" : { + "app.installation.text1" : { "comment" : "", "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Drücke auf" + } + }, "en" : { "stringUnit" : { "state" : "", @@ -372,20 +630,32 @@ } } }, - "installation.text2" : { + "app.installation.text2" : { "comment" : "", "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Wähle die Tastaturen aus, die du benutzen möchtest\n\n4. Drücke beim Tippen auf" + } + }, "en" : { "stringUnit" : { "state" : "", - "value" : "Activate keyboards that you want to use\n\n4. When typing press" + "value" : "Activate keyboards that you want to use\n\n4. When typing, press" } } } }, - "installation.text3" : { + "app.installation.text3" : { "comment" : "", "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "um Tastaturen auszuwählen" + } + }, "en" : { "stringUnit" : { "state" : "", @@ -394,9 +664,15 @@ } } }, - "installation.title" : { + "app.installation.title" : { "comment" : "", "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Tastaturinstallation" + } + }, "en" : { "stringUnit" : { "state" : "", @@ -405,20 +681,32 @@ } } }, - "italian" : { + "app.installation.appHint" : { "comment" : "", "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Folge den Anweisungen unten, um Scribe-Tastaturen auf deinem Gerät zu installieren." + } + }, "en" : { "stringUnit" : { "state" : "", - "value" : "Italian" + "value" : "Follow the directions below to install Scribe keyboards on your device." } } } }, - "keyboards" : { + "app.keyboards" : { "comment" : "", "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Tastaturen" + } + }, "en" : { "stringUnit" : { "state" : "", @@ -427,31 +715,32 @@ } } }, - "portuguese" : { + "app.settings.appHint" : { "comment" : "", "localizations" : { - "en" : { + "de" : { "stringUnit" : { "state" : "", - "value" : "Portuguese" + "value" : "Hier sind die Einstellungen der App und installierte Tastaturen zu finden." } - } - } - }, - "russian" : { - "comment" : "", - "localizations" : { + }, "en" : { "stringUnit" : { "state" : "", - "value" : "Russian" + "value" : "Settings for the app and installed language keyboards are found here." } } } }, - "settings.appSettings" : { + "app.settings.appSettings" : { "comment" : "", "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "App-Einstellungen" + } + }, "en" : { "stringUnit" : { "state" : "", @@ -460,9 +749,15 @@ } } }, - "settings.appSettings.appLanguage" : { + "app.settings.appSettings.appLanguage" : { "comment" : "", "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "App-Sprache" + } + }, "en" : { "stringUnit" : { "state" : "", @@ -471,9 +766,15 @@ } } }, - "settings.functionality" : { + "app.settings.functionality" : { "comment" : "", "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Funktionalität" + } + }, "en" : { "stringUnit" : { "state" : "", @@ -482,9 +783,15 @@ } } }, - "settings.functionality.autoSuggestEmoji" : { + "app.settings.functionality.autoSuggestEmoji" : { "comment" : "", "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Schlage Emojis vor" + } + }, "en" : { "stringUnit" : { "state" : "", @@ -493,9 +800,15 @@ } } }, - "settings.installedKeyboards" : { + "app.settings.installedKeyboards" : { "comment" : "", "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Wähle installierte Tastatur aus" + } + }, "en" : { "stringUnit" : { "state" : "", @@ -504,9 +817,15 @@ } } }, - "settings.layout" : { + "app.settings.layout" : { "comment" : "", "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Layout" + } + }, "en" : { "stringUnit" : { "state" : "", @@ -515,9 +834,15 @@ } } }, - "settings.layout.autoSuggestEmoji.description" : { + "app.settings.layout.autoSuggestEmoji.description" : { "comment" : "", "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Schlage für ausdrucksvolleres Schreiben Emojis vor." + } + }, "en" : { "stringUnit" : { "state" : "", @@ -526,9 +851,15 @@ } } }, - "settings.layout.disableAccentCharacters" : { + "app.settings.layout.disableAccentCharacters" : { "comment" : "", "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Buchstaben mit Akzent deaktivieren" + } + }, "en" : { "stringUnit" : { "state" : "", @@ -537,20 +868,32 @@ } } }, - "settings.layout.disableAccentCharacters.description" : { + "app.settings.layout.disableAccentCharacters.description" : { "comment" : "", "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Entscheide, ob Buchstaben mit Akzenten wie Umlaute auf der Haupttastatur angezeigt werden." + } + }, "en" : { "stringUnit" : { "state" : "", - "value" : "Include accented letter keys on the primary keyboard layout." + "value" : "Remove accented letter keys on the primary keyboard layout." } } } }, - "settings.layout.periodAndComma" : { + "app.settings.layout.periodAndComma" : { "comment" : "", "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Punkt und Komma auf ABC" + } + }, "en" : { "stringUnit" : { "state" : "", @@ -559,9 +902,15 @@ } } }, - "settings.layout.periodAndComma.description" : { + "app.settings.layout.periodAndComma.description" : { "comment" : "", "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Füge der Haupttastatur Punkt- und Komma-Tasten für bequemeres Schreiben hinzu." + } + }, "en" : { "stringUnit" : { "state" : "", @@ -570,7 +919,7 @@ } } }, - "settings.title" : { + "app.settings.title" : { "comment" : "", "localizations" : { "de" : { @@ -587,42 +936,32 @@ } } }, - "spanish" : { + "app.wikidataExplanation1" : { "comment" : "", "localizations" : { - "en" : { + "de" : { "stringUnit" : { "state" : "", - "value" : "Spanish" + "value" : "Wikidata ist ein kollaborativ gestalteter, mehrsprachiger Wissensgraf, der von der Wikimedia Foundation gehostet wird. Sie dient als Quelle für offene Daten für unzählige Projekte, beispielsweise Wikipedia." } - } - } - }, - "swedish" : { - "comment" : "", - "localizations" : { + }, "en" : { "stringUnit" : { "state" : "", - "value" : "Swedish" + "value" : "Wikidata is a collaboratively edited knowledge graph that's maintained by the Wikimedia Foundation. It serves as a source of open data for projects like Wikipedia and countless others." } } } }, - "wikidataExplanation1" : { + "app.wikidataExplanation2" : { "comment" : "", "localizations" : { - "en" : { + "de" : { "stringUnit" : { "state" : "", - "value" : "Wikidata is a collaboratively edited knowledge graph that's maintained by the Wikimedia Foundation. It serves as a source of open data for projects like Wikipedia and countless others." + "value" : "Scribe nutzt Sprachdaten von Wikidata für viele Kernfunktionen. Von dort erhalten wir Informationen wie Genera, Verbkonjugationen und viele mehr!" } - } - } - }, - "wikidataExplanation2" : { - "comment" : "", - "localizations" : { + }, "en" : { "stringUnit" : { "state" : "", @@ -631,9 +970,15 @@ } } }, - "wikidataExplanation3" : { + "app.wikidataExplanation3" : { "comment" : "", "localizations" : { + "de" : { + "stringUnit" : { + "state" : "", + "value" : "Du kannst auf wikidata.org einen Account erstellen, um der Community, die Scribe und viele andere Projekte unterstützt, beizutreten. Hilf uns dabei, der Welt freie Informationen zu geben!" + } + }, "en" : { "stringUnit" : { "state" : "", @@ -642,6 +987,6 @@ } } } - }, + }}, "version" : "1.0" -} +}} \ No newline at end of file diff --git a/Scribe-i18n/Scripts/convert_to_xcstrings.py b/Scribe-i18n/Scripts/convert_jsons_to_xcstrings.py similarity index 87% rename from Scribe-i18n/Scripts/convert_to_xcstrings.py rename to Scribe-i18n/Scripts/convert_jsons_to_xcstrings.py index efb3192..eb5d725 100644 --- a/Scribe-i18n/Scripts/convert_to_xcstrings.py +++ b/Scribe-i18n/Scripts/convert_jsons_to_xcstrings.py @@ -1,5 +1,9 @@ """ -Converts from JSON files to an xcstrings file. +Converts from Scribe-i18n localization JSON files to the Localizable.xcstrings file. + + +Usage: + python3 Scribe-i18n/Scripts/convert_jsons_to_xcstrings.py """ import json @@ -19,15 +23,18 @@ data += ( f' "{key}" : {{\n' f' "comment" : "",\n' f' "localizations" : {{\n' ) + for lang in languages: if lang != "en-US": lang_json = json.loads( open(os.path.join(directory, f"{lang}.json"), "r").read() ) + if key in lang_json: translation = lang_json[key].replace('"', '\\"').replace("\n", "\\n") else: translation = "" + if translation != "": data += ( f' "{lang}" : {{\n' @@ -50,5 +57,10 @@ ) data += " }\n" " },\n" if pos < len(file) else " }\n" " }\n" + data += " }},\n" ' "version" : "1.0"\n' "}}" open(os.path.join(directory, "Localizable.xcstrings"), "w").write(data) + +print( + "Scribe-i18n localization JSON files successfully converted to the Localizable.xcstrings file." +) diff --git a/Scribe-i18n/Scripts/convert_from_xcstrings.py b/Scribe-i18n/Scripts/convert_xcstrings_to_jsons.py similarity index 82% rename from Scribe-i18n/Scripts/convert_from_xcstrings.py rename to Scribe-i18n/Scripts/convert_xcstrings_to_jsons.py index 2d6afb4..3be6003 100644 --- a/Scribe-i18n/Scripts/convert_from_xcstrings.py +++ b/Scribe-i18n/Scripts/convert_xcstrings_to_jsons.py @@ -1,5 +1,8 @@ """ -Converts from an xcstrings file to JSON files. +Converts from the Scribe-i18n Localizable.xcstrings file to localization JSON files. + +Usage: + python3 Scribe-i18n/Scripts/convert_xcstrings_to_jsons.py """ import json @@ -34,9 +37,14 @@ .replace('"', '\\"') .replace("\n", "\\n") ) + data += f' "{key}" : "{translation}"' data += ",\n" if pos < len(json_file["strings"]) else "\n" data += "}\n" dest.write(data) + +print( + "Scribe-i18n Localizable.xcstrings file successfully converted to the localization JSON files." +)