From c9b9fe4ee893de9a1df7f8269c39d08a90d205d6 Mon Sep 17 00:00:00 2001 From: Yassine Doghri <yassine@doghri.fr> Date: Tue, 5 Apr 2022 16:23:47 +0000 Subject: [PATCH] feat(i18n): add support for German and Brazilian Portuguese languages rename pt to pt-BR for brazilian portuguese --- app/Config/App.php | 2 +- app/Language/.rsync-filter | 2 ++ app/Language/{pt => pt-BR}/Comment.php | 0 app/Language/{pt => pt-BR}/Common.php | 0 app/Language/{pt => pt-BR}/Episode.php | 0 app/Language/{pt => pt-BR}/Fediverse.php | 0 app/Language/{pt => pt-BR}/Home.php | 0 app/Language/{pt => pt-BR}/Page.php | 0 app/Language/{pt => pt-BR}/Podcast.php | 0 app/Language/{pt => pt-BR}/Post.php | 0 modules/Admin/Language/.rsync-filter | 2 ++ modules/Admin/Language/{pt => pt-BR}/Admin.php | 0 modules/Admin/Language/{pt => pt-BR}/Breadcrumb.php | 0 modules/Admin/Language/{pt => pt-BR}/Charts.php | 0 modules/Admin/Language/{pt => pt-BR}/Common.php | 0 modules/Admin/Language/{pt => pt-BR}/Contributor.php | 0 modules/Admin/Language/{pt => pt-BR}/Countries.php | 0 modules/Admin/Language/{pt => pt-BR}/Episode.php | 0 modules/Admin/Language/{pt => pt-BR}/EpisodeNavigation.php | 0 modules/Admin/Language/{pt => pt-BR}/Fediverse.php | 0 modules/Admin/Language/{pt => pt-BR}/Home.php | 0 modules/Admin/Language/{pt => pt-BR}/Install.php | 0 modules/Admin/Language/{pt => pt-BR}/MyAccount.php | 0 modules/Admin/Language/{pt => pt-BR}/Navigation.php | 0 modules/Admin/Language/{pt => pt-BR}/Page.php | 0 modules/Admin/Language/{pt => pt-BR}/Pager.php | 0 modules/Admin/Language/{pt => pt-BR}/Person.php | 0 modules/Admin/Language/{pt => pt-BR}/Platforms.php | 0 modules/Admin/Language/{pt => pt-BR}/Podcast.php | 0 modules/Admin/Language/{pt => pt-BR}/PodcastImport.php | 0 modules/Admin/Language/{pt => pt-BR}/PodcastNavigation.php | 0 modules/Admin/Language/{pt => pt-BR}/Settings.php | 0 modules/Admin/Language/{pt => pt-BR}/Soundbite.php | 0 modules/Admin/Language/{pt => pt-BR}/User.php | 0 modules/Admin/Language/{pt => pt-BR}/Validation.php | 0 modules/Admin/Language/{pt => pt-BR}/VideoClip.php | 0 modules/Install/Language/.rsync-filter | 2 ++ modules/Install/Language/{pt => pt-BR}/Install.php | 0 38 files changed, 7 insertions(+), 1 deletion(-) rename app/Language/{pt => pt-BR}/Comment.php (100%) rename app/Language/{pt => pt-BR}/Common.php (100%) rename app/Language/{pt => pt-BR}/Episode.php (100%) rename app/Language/{pt => pt-BR}/Fediverse.php (100%) rename app/Language/{pt => pt-BR}/Home.php (100%) rename app/Language/{pt => pt-BR}/Page.php (100%) rename app/Language/{pt => pt-BR}/Podcast.php (100%) rename app/Language/{pt => pt-BR}/Post.php (100%) rename modules/Admin/Language/{pt => pt-BR}/Admin.php (100%) rename modules/Admin/Language/{pt => pt-BR}/Breadcrumb.php (100%) rename modules/Admin/Language/{pt => pt-BR}/Charts.php (100%) rename modules/Admin/Language/{pt => pt-BR}/Common.php (100%) rename modules/Admin/Language/{pt => pt-BR}/Contributor.php (100%) rename modules/Admin/Language/{pt => pt-BR}/Countries.php (100%) rename modules/Admin/Language/{pt => pt-BR}/Episode.php (100%) rename modules/Admin/Language/{pt => pt-BR}/EpisodeNavigation.php (100%) rename modules/Admin/Language/{pt => pt-BR}/Fediverse.php (100%) rename modules/Admin/Language/{pt => pt-BR}/Home.php (100%) rename modules/Admin/Language/{pt => pt-BR}/Install.php (100%) rename modules/Admin/Language/{pt => pt-BR}/MyAccount.php (100%) rename modules/Admin/Language/{pt => pt-BR}/Navigation.php (100%) rename modules/Admin/Language/{pt => pt-BR}/Page.php (100%) rename modules/Admin/Language/{pt => pt-BR}/Pager.php (100%) rename modules/Admin/Language/{pt => pt-BR}/Person.php (100%) rename modules/Admin/Language/{pt => pt-BR}/Platforms.php (100%) rename modules/Admin/Language/{pt => pt-BR}/Podcast.php (100%) rename modules/Admin/Language/{pt => pt-BR}/PodcastImport.php (100%) rename modules/Admin/Language/{pt => pt-BR}/PodcastNavigation.php (100%) rename modules/Admin/Language/{pt => pt-BR}/Settings.php (100%) rename modules/Admin/Language/{pt => pt-BR}/Soundbite.php (100%) rename modules/Admin/Language/{pt => pt-BR}/User.php (100%) rename modules/Admin/Language/{pt => pt-BR}/Validation.php (100%) rename modules/Admin/Language/{pt => pt-BR}/VideoClip.php (100%) rename modules/Install/Language/{pt => pt-BR}/Install.php (100%) diff --git a/app/Config/App.php b/app/Config/App.php index c52f4d3e2b..ba39cd3490 100644 --- a/app/Config/App.php +++ b/app/Config/App.php @@ -101,7 +101,7 @@ class App extends BaseConfig * * @var string[] */ - public array $supportedLocales = ['en', 'fr', 'pl']; + public array $supportedLocales = ['en', 'fr', 'pl', 'de', 'pt-BR']; /** * -------------------------------------------------------------------------- diff --git a/app/Language/.rsync-filter b/app/Language/.rsync-filter index 51c63c729e..e3c3176383 100644 --- a/app/Language/.rsync-filter +++ b/app/Language/.rsync-filter @@ -1,4 +1,6 @@ + en/*** + fr/*** + pl/*** ++ de/*** ++ pt-BR/*** - ** diff --git a/app/Language/pt/Comment.php b/app/Language/pt-BR/Comment.php similarity index 100% rename from app/Language/pt/Comment.php rename to app/Language/pt-BR/Comment.php diff --git a/app/Language/pt/Common.php b/app/Language/pt-BR/Common.php similarity index 100% rename from app/Language/pt/Common.php rename to app/Language/pt-BR/Common.php diff --git a/app/Language/pt/Episode.php b/app/Language/pt-BR/Episode.php similarity index 100% rename from app/Language/pt/Episode.php rename to app/Language/pt-BR/Episode.php diff --git a/app/Language/pt/Fediverse.php b/app/Language/pt-BR/Fediverse.php similarity index 100% rename from app/Language/pt/Fediverse.php rename to app/Language/pt-BR/Fediverse.php diff --git a/app/Language/pt/Home.php b/app/Language/pt-BR/Home.php similarity index 100% rename from app/Language/pt/Home.php rename to app/Language/pt-BR/Home.php diff --git a/app/Language/pt/Page.php b/app/Language/pt-BR/Page.php similarity index 100% rename from app/Language/pt/Page.php rename to app/Language/pt-BR/Page.php diff --git a/app/Language/pt/Podcast.php b/app/Language/pt-BR/Podcast.php similarity index 100% rename from app/Language/pt/Podcast.php rename to app/Language/pt-BR/Podcast.php diff --git a/app/Language/pt/Post.php b/app/Language/pt-BR/Post.php similarity index 100% rename from app/Language/pt/Post.php rename to app/Language/pt-BR/Post.php diff --git a/modules/Admin/Language/.rsync-filter b/modules/Admin/Language/.rsync-filter index 51c63c729e..e3c3176383 100644 --- a/modules/Admin/Language/.rsync-filter +++ b/modules/Admin/Language/.rsync-filter @@ -1,4 +1,6 @@ + en/*** + fr/*** + pl/*** ++ de/*** ++ pt-BR/*** - ** diff --git a/modules/Admin/Language/pt/Admin.php b/modules/Admin/Language/pt-BR/Admin.php similarity index 100% rename from modules/Admin/Language/pt/Admin.php rename to modules/Admin/Language/pt-BR/Admin.php diff --git a/modules/Admin/Language/pt/Breadcrumb.php b/modules/Admin/Language/pt-BR/Breadcrumb.php similarity index 100% rename from modules/Admin/Language/pt/Breadcrumb.php rename to modules/Admin/Language/pt-BR/Breadcrumb.php diff --git a/modules/Admin/Language/pt/Charts.php b/modules/Admin/Language/pt-BR/Charts.php similarity index 100% rename from modules/Admin/Language/pt/Charts.php rename to modules/Admin/Language/pt-BR/Charts.php diff --git a/modules/Admin/Language/pt/Common.php b/modules/Admin/Language/pt-BR/Common.php similarity index 100% rename from modules/Admin/Language/pt/Common.php rename to modules/Admin/Language/pt-BR/Common.php diff --git a/modules/Admin/Language/pt/Contributor.php b/modules/Admin/Language/pt-BR/Contributor.php similarity index 100% rename from modules/Admin/Language/pt/Contributor.php rename to modules/Admin/Language/pt-BR/Contributor.php diff --git a/modules/Admin/Language/pt/Countries.php b/modules/Admin/Language/pt-BR/Countries.php similarity index 100% rename from modules/Admin/Language/pt/Countries.php rename to modules/Admin/Language/pt-BR/Countries.php diff --git a/modules/Admin/Language/pt/Episode.php b/modules/Admin/Language/pt-BR/Episode.php similarity index 100% rename from modules/Admin/Language/pt/Episode.php rename to modules/Admin/Language/pt-BR/Episode.php diff --git a/modules/Admin/Language/pt/EpisodeNavigation.php b/modules/Admin/Language/pt-BR/EpisodeNavigation.php similarity index 100% rename from modules/Admin/Language/pt/EpisodeNavigation.php rename to modules/Admin/Language/pt-BR/EpisodeNavigation.php diff --git a/modules/Admin/Language/pt/Fediverse.php b/modules/Admin/Language/pt-BR/Fediverse.php similarity index 100% rename from modules/Admin/Language/pt/Fediverse.php rename to modules/Admin/Language/pt-BR/Fediverse.php diff --git a/modules/Admin/Language/pt/Home.php b/modules/Admin/Language/pt-BR/Home.php similarity index 100% rename from modules/Admin/Language/pt/Home.php rename to modules/Admin/Language/pt-BR/Home.php diff --git a/modules/Admin/Language/pt/Install.php b/modules/Admin/Language/pt-BR/Install.php similarity index 100% rename from modules/Admin/Language/pt/Install.php rename to modules/Admin/Language/pt-BR/Install.php diff --git a/modules/Admin/Language/pt/MyAccount.php b/modules/Admin/Language/pt-BR/MyAccount.php similarity index 100% rename from modules/Admin/Language/pt/MyAccount.php rename to modules/Admin/Language/pt-BR/MyAccount.php diff --git a/modules/Admin/Language/pt/Navigation.php b/modules/Admin/Language/pt-BR/Navigation.php similarity index 100% rename from modules/Admin/Language/pt/Navigation.php rename to modules/Admin/Language/pt-BR/Navigation.php diff --git a/modules/Admin/Language/pt/Page.php b/modules/Admin/Language/pt-BR/Page.php similarity index 100% rename from modules/Admin/Language/pt/Page.php rename to modules/Admin/Language/pt-BR/Page.php diff --git a/modules/Admin/Language/pt/Pager.php b/modules/Admin/Language/pt-BR/Pager.php similarity index 100% rename from modules/Admin/Language/pt/Pager.php rename to modules/Admin/Language/pt-BR/Pager.php diff --git a/modules/Admin/Language/pt/Person.php b/modules/Admin/Language/pt-BR/Person.php similarity index 100% rename from modules/Admin/Language/pt/Person.php rename to modules/Admin/Language/pt-BR/Person.php diff --git a/modules/Admin/Language/pt/Platforms.php b/modules/Admin/Language/pt-BR/Platforms.php similarity index 100% rename from modules/Admin/Language/pt/Platforms.php rename to modules/Admin/Language/pt-BR/Platforms.php diff --git a/modules/Admin/Language/pt/Podcast.php b/modules/Admin/Language/pt-BR/Podcast.php similarity index 100% rename from modules/Admin/Language/pt/Podcast.php rename to modules/Admin/Language/pt-BR/Podcast.php diff --git a/modules/Admin/Language/pt/PodcastImport.php b/modules/Admin/Language/pt-BR/PodcastImport.php similarity index 100% rename from modules/Admin/Language/pt/PodcastImport.php rename to modules/Admin/Language/pt-BR/PodcastImport.php diff --git a/modules/Admin/Language/pt/PodcastNavigation.php b/modules/Admin/Language/pt-BR/PodcastNavigation.php similarity index 100% rename from modules/Admin/Language/pt/PodcastNavigation.php rename to modules/Admin/Language/pt-BR/PodcastNavigation.php diff --git a/modules/Admin/Language/pt/Settings.php b/modules/Admin/Language/pt-BR/Settings.php similarity index 100% rename from modules/Admin/Language/pt/Settings.php rename to modules/Admin/Language/pt-BR/Settings.php diff --git a/modules/Admin/Language/pt/Soundbite.php b/modules/Admin/Language/pt-BR/Soundbite.php similarity index 100% rename from modules/Admin/Language/pt/Soundbite.php rename to modules/Admin/Language/pt-BR/Soundbite.php diff --git a/modules/Admin/Language/pt/User.php b/modules/Admin/Language/pt-BR/User.php similarity index 100% rename from modules/Admin/Language/pt/User.php rename to modules/Admin/Language/pt-BR/User.php diff --git a/modules/Admin/Language/pt/Validation.php b/modules/Admin/Language/pt-BR/Validation.php similarity index 100% rename from modules/Admin/Language/pt/Validation.php rename to modules/Admin/Language/pt-BR/Validation.php diff --git a/modules/Admin/Language/pt/VideoClip.php b/modules/Admin/Language/pt-BR/VideoClip.php similarity index 100% rename from modules/Admin/Language/pt/VideoClip.php rename to modules/Admin/Language/pt-BR/VideoClip.php diff --git a/modules/Install/Language/.rsync-filter b/modules/Install/Language/.rsync-filter index 51c63c729e..e3c3176383 100644 --- a/modules/Install/Language/.rsync-filter +++ b/modules/Install/Language/.rsync-filter @@ -1,4 +1,6 @@ + en/*** + fr/*** + pl/*** ++ de/*** ++ pt-BR/*** - ** diff --git a/modules/Install/Language/pt/Install.php b/modules/Install/Language/pt-BR/Install.php similarity index 100% rename from modules/Install/Language/pt/Install.php rename to modules/Install/Language/pt-BR/Install.php -- GitLab