From 93b53ec15876988638dc4e275c686391230c848d Mon Sep 17 00:00:00 2001 From: xmflsct Date: Mon, 17 Apr 2023 23:21:00 +0200 Subject: [PATCH] Add Greek translation --- README.md | 4 ++-- fastlane/metadata/en-US/release_notes.txt | 3 +-- fastlane/metadata/zh-Hans/release_notes.txt | 4 +--- ios/el.lproj/InfoPlist.strings | 2 ++ ios/tooot.xcodeproj/project.pbxproj | 3 +++ src/i18n/el/index.ts | 18 ++++++++++++++++++ src/i18n/index.ts | 6 ++++++ src/i18n/locales.ts | 1 + 8 files changed, 34 insertions(+), 7 deletions(-) create mode 100644 ios/el.lproj/InfoPlist.strings create mode 100644 src/i18n/el/index.ts diff --git a/README.md b/README.md index fb8dc4df..89d1a492 100644 --- a/README.md +++ b/README.md @@ -8,14 +8,14 @@ Please **do not** create a pull request to update translation. tooot's translation is managed through [https://crowdin.tooot.app/](https://crowdin.tooot.app/) and Crowdin struggles to properly sync two ways. If there is a minor update and you do not want to register an account on Crowdin, please open an issue. - ## Special thanks - [@a_mento](https://crowdin.com/profile/a_mento) for Basques translation - [@dzmitry.zubialevich](https://crowdin.com/profile/dzmitry.zubialevich) for Belarusian translation - [@amrtf](https://crowdin.com/profile/amrtf) for Catalan and Spanish translation -- [@forenta](https://github.com/forenta) for German translation - [@pat](https://piaille.fr/@pat) for French translation +- [@forenta](https://github.com/forenta) for German translation +- [@heracl.es](https://heracl.es/) for Greek translation - [@andrigamerita](https://github.com/andrigamerita) for Italian translation - [@Hikaru](https://github.com/Hikali-47041) and [@la_la](https://mstdn.jp/@la_la_la) for Japanese translation - [@hellojaccc](https://github.com/hellojaccc) for Korean translation diff --git a/fastlane/metadata/en-US/release_notes.txt b/fastlane/metadata/en-US/release_notes.txt index bf034b53..4cacb69f 100644 --- a/fastlane/metadata/en-US/release_notes.txt +++ b/fastlane/metadata/en-US/release_notes.txt @@ -1,3 +1,2 @@ Enjoy toooting! This version includes following improvements and fixes: -- Added Basque language -- Added Polish language \ No newline at end of file +- Added Greek translation \ No newline at end of file diff --git a/fastlane/metadata/zh-Hans/release_notes.txt b/fastlane/metadata/zh-Hans/release_notes.txt index 40cc3d46..2fa814ec 100644 --- a/fastlane/metadata/zh-Hans/release_notes.txt +++ b/fastlane/metadata/zh-Hans/release_notes.txt @@ -1,4 +1,2 @@ toooting愉快!此版本包括以下改进和修复: -- 添加neodb.social书影音展示卡片 -- 新增巴斯克语 -- 新增波兰语 \ No newline at end of file +- 新增希腊语 \ No newline at end of file diff --git a/ios/el.lproj/InfoPlist.strings b/ios/el.lproj/InfoPlist.strings new file mode 100644 index 00000000..9324bf1e --- /dev/null +++ b/ios/el.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +"NSPhotoLibraryAddUsageDescription" = "Επιτρέψτε στο tooot να αποθηκεύει εικόνες στο ρολό της κάμερας"; +"NSPhotoLibraryUsageDescription" = "Επιτρέψτε στο tooot να αποθηκεύει εικόνες στο ρολό της κάμερας"; diff --git a/ios/tooot.xcodeproj/project.pbxproj b/ios/tooot.xcodeproj/project.pbxproj index ee7c7442..43a26986 100644 --- a/ios/tooot.xcodeproj/project.pbxproj +++ b/ios/tooot.xcodeproj/project.pbxproj @@ -77,6 +77,7 @@ E633A42F281EAF38000E540F /* ShareViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ShareViewController.swift; path = "../../node_modules/react-native-share-menu/ios/ShareViewController.swift"; sourceTree = ""; }; E633A431281EB55C000E540F /* ShareExtension-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ShareExtension-Bridging-Header.h"; sourceTree = ""; }; E63E7FF0292A828100C76FD4 /* sv */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = sv; path = sv.lproj/InfoPlist.strings; sourceTree = ""; }; + E65BA25629EDEF8C008E0BBC /* el */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = el; path = el.lproj/InfoPlist.strings; sourceTree = ""; }; E66C0842291F095800DFFF60 /* fr */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = fr; path = fr.lproj/InfoPlist.strings; sourceTree = ""; }; E671BDF8290EAFB800287BD0 /* zh-Hant */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hant"; path = "zh-Hant.lproj/InfoPlist.strings"; sourceTree = ""; }; E690907B29C1133000489554 /* eu */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = eu; path = eu.lproj/InfoPlist.strings; sourceTree = ""; }; @@ -308,6 +309,7 @@ be, eu, pl, + el, ); mainGroup = 83CBB9F61A601CBA00E9B192; productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; @@ -545,6 +547,7 @@ E6179D6E29B94551001930D5 /* be */, E690907B29C1133000489554 /* eu */, E6B76A1E29C1147B00187ABB /* pl */, + E65BA25629EDEF8C008E0BBC /* el */, ); name = InfoPlist.strings; sourceTree = ""; diff --git a/src/i18n/el/index.ts b/src/i18n/el/index.ts new file mode 100644 index 00000000..cfbbb0e7 --- /dev/null +++ b/src/i18n/el/index.ts @@ -0,0 +1,18 @@ +export default { + common: require('./common'), + + screens: require('./screens'), + screenAccountSelection: require('./screens/accountSelection.json'), + screenAnnouncements: require('./screens/announcements'), + screenCompose: require('./screens/compose'), + screenImageViewer: require('./screens/imageViewer'), + screenTabs: require('./screens/tabs'), + + componentContextMenu: require('./components/contextMenu'), + componentEmojis: require('./components/emojis'), + componentInstance: require('./components/instance'), + componentMediaSelector: require('./components/mediaSelector'), + componentParse: require('./components/parse'), + componentRelationship: require('./components/relationship'), + componentTimeline: require('./components/timeline') +} diff --git a/src/i18n/index.ts b/src/i18n/index.ts index 33efecba..72b1f640 100644 --- a/src/i18n/index.ts +++ b/src/i18n/index.ts @@ -5,6 +5,7 @@ import { initReactI18next } from 'react-i18next' import be from './be' import ca from './ca' import de from './de' +import el from './el' import en from './en' import es from './es' import eu from './eu' @@ -29,6 +30,7 @@ import '@formatjs/intl-pluralrules/polyfill' import '@formatjs/intl-pluralrules/locale-data/be' import '@formatjs/intl-pluralrules/locale-data/ca' import '@formatjs/intl-pluralrules/locale-data/de' +import '@formatjs/intl-pluralrules/locale-data/el' import '@formatjs/intl-pluralrules/locale-data/en' import '@formatjs/intl-pluralrules/locale-data/es' import '@formatjs/intl-pluralrules/locale-data/eu' @@ -49,6 +51,7 @@ import '@formatjs/intl-numberformat/polyfill' import '@formatjs/intl-numberformat/locale-data/be' import '@formatjs/intl-numberformat/locale-data/ca' import '@formatjs/intl-numberformat/locale-data/de' +import '@formatjs/intl-numberformat/locale-data/el' import '@formatjs/intl-numberformat/locale-data/en' import '@formatjs/intl-numberformat/locale-data/es' import '@formatjs/intl-numberformat/locale-data/eu' @@ -71,6 +74,7 @@ import '@formatjs/intl-datetimeformat/add-all-tz' import '@formatjs/intl-datetimeformat/locale-data/be' import '@formatjs/intl-datetimeformat/locale-data/ca' import '@formatjs/intl-datetimeformat/locale-data/de' +import '@formatjs/intl-datetimeformat/locale-data/el' import '@formatjs/intl-datetimeformat/locale-data/en' import '@formatjs/intl-datetimeformat/locale-data/es' import '@formatjs/intl-datetimeformat/locale-data/eu' @@ -92,6 +96,7 @@ import '@formatjs/intl-relativetimeformat/polyfill' import '@formatjs/intl-relativetimeformat/locale-data/be' import '@formatjs/intl-relativetimeformat/locale-data/ca' import '@formatjs/intl-relativetimeformat/locale-data/de' +import '@formatjs/intl-relativetimeformat/locale-data/el' import '@formatjs/intl-relativetimeformat/locale-data/en' import '@formatjs/intl-relativetimeformat/locale-data/es' import '@formatjs/intl-relativetimeformat/locale-data/eu' @@ -120,6 +125,7 @@ i18n.use(initReactI18next).init({ be, ca, de, + el, en, es, eu, diff --git a/src/i18n/locales.ts b/src/i18n/locales.ts index 29b1cfc3..c814ae38 100644 --- a/src/i18n/locales.ts +++ b/src/i18n/locales.ts @@ -2,6 +2,7 @@ const LOCALES = { be: 'Беларуская', ca: 'Català', de: 'Deutsch', + el: 'Ελληνικά', en: 'English', es: 'Español', eu: 'Euskara',