aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-04-06 14:29:11 +0200
committerChocobozzz <me@florianbigard.com>2020-04-06 14:37:26 +0200
commit8323c435c19ac6ed1656ee8436b175bce7bd2c82 (patch)
treea7f0bfc9f51c42745a51998c5b09f54a458e6625
parentb9177868b3dc2badd27e0d1b6dfeb2930e878e20 (diff)
downloadPeerTube-8323c435c19ac6ed1656ee8436b175bce7bd2c82.tar.gz
PeerTube-8323c435c19ac6ed1656ee8436b175bce7bd2c82.tar.zst
PeerTube-8323c435c19ac6ed1656ee8436b175bce7bd2c82.zip
Remove oc locale support
It does not work since many releases, and nobody created an issue so we don't consider it much use It does not work because Angular does not know this locale: https://github.com/angular/angular/tree/master/packages/common/locales
-rw-r--r--client/angular.json7
-rwxr-xr-xscripts/build/client.sh3
-rw-r--r--shared/models/i18n/i18n.ts1
3 files changed, 0 insertions, 11 deletions
diff --git a/client/angular.json b/client/angular.json
index 44749d6b1..a64596a08 100644
--- a/client/angular.json
+++ b/client/angular.json
@@ -41,10 +41,6 @@
41 "translation": "src/locale/angular.es-ES.xlf", 41 "translation": "src/locale/angular.es-ES.xlf",
42 "baseHref": "/client/es-ES/" 42 "baseHref": "/client/es-ES/"
43 }, 43 },
44 "oc": {
45 "translation": "src/locale/angular.oc.xlf",
46 "baseHref": "/client/oc/"
47 },
48 "pt": { 44 "pt": {
49 "translation": "src/locale/angular.pt-BR.xlf", 45 "translation": "src/locale/angular.pt-BR.xlf",
50 "baseHref": "/client/pt-BR/" 46 "baseHref": "/client/pt-BR/"
@@ -212,9 +208,6 @@
212 "es-ES": { 208 "es-ES": {
213 "localize": [ "es" ] 209 "localize": [ "es" ]
214 }, 210 },
215 "oc": {
216 "localize": [ "oc" ]
217 },
218 "pt-BR": { 211 "pt-BR": {
219 "localize": [ "pt" ] 212 "localize": [ "pt" ]
220 }, 213 },
diff --git a/scripts/build/client.sh b/scripts/build/client.sh
index e7475f56c..05c40b5bb 100755
--- a/scripts/build/client.sh
+++ b/scripts/build/client.sh
@@ -53,8 +53,6 @@ if [ -z ${1+x} ] || [ "$1" != "--light" ]; then
53 languages=(["el"]="el-GR") 53 languages=(["el"]="el-GR")
54 elif [ ! -z ${1+x} ] && [ "$1" == "--light-es" ]; then 54 elif [ ! -z ${1+x} ] && [ "$1" == "--light-es" ]; then
55 languages=(["es"]="es-ES") 55 languages=(["es"]="es-ES")
56 elif [ ! -z ${1+x} ] && [ "$1" == "--light-oc" ]; then
57 languages=(["oc"]="oc")
58 elif [ ! -z ${1+x} ] && [ "$1" == "--light-pt" ]; then 56 elif [ ! -z ${1+x} ] && [ "$1" == "--light-pt" ]; then
59 languages=(["pt"]="pt-BR") 57 languages=(["pt"]="pt-BR")
60 elif [ ! -z ${1+x} ] && [ "$1" == "--light-pt-PT" ]; then 58 elif [ ! -z ${1+x} ] && [ "$1" == "--light-pt-PT" ]; then
@@ -95,7 +93,6 @@ if [ -z ${1+x} ] || [ "$1" != "--light" ]; then
95 ["gd"]="gd" 93 ["gd"]="gd"
96 ["el"]="el-GR" 94 ["el"]="el-GR"
97 ["es"]="es-ES" 95 ["es"]="es-ES"
98 ["oc"]="oc"
99 ["pt"]="pt-BR" 96 ["pt"]="pt-BR"
100 ["pt-PT"]="pt-PT" 97 ["pt-PT"]="pt-PT"
101 ["sv"]="sv-SE" 98 ["sv"]="sv-SE"
diff --git a/shared/models/i18n/i18n.ts b/shared/models/i18n/i18n.ts
index 9a5ea27dc..46940772f 100644
--- a/shared/models/i18n/i18n.ts
+++ b/shared/models/i18n/i18n.ts
@@ -18,7 +18,6 @@ export const I18N_LOCALES = {
18 'it-IT': 'Italiano', 18 'it-IT': 'Italiano',
19 'ja-JP': '日本語', 19 'ja-JP': '日本語',
20 'nl-NL': 'Nederlands', 20 'nl-NL': 'Nederlands',
21 'oc': 'Occitan',
22 'pl-PL': 'Polski', 21 'pl-PL': 'Polski',
23 'pt-BR': 'Português (Brasil)', 22 'pt-BR': 'Português (Brasil)',
24 'pt-PT': 'Português (Portugal)', 23 'pt-PT': 'Português (Portugal)',