aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--client/src/app/+videos/+video-edit/shared/video-edit.component.ts4
-rw-r--r--server/initializers/constants.ts4
2 files changed, 6 insertions, 2 deletions
diff --git a/client/src/app/+videos/+video-edit/shared/video-edit.component.ts b/client/src/app/+videos/+video-edit/shared/video-edit.component.ts
index b4638c2df..39767f258 100644
--- a/client/src/app/+videos/+video-edit/shared/video-edit.component.ts
+++ b/client/src/app/+videos/+video-edit/shared/video-edit.component.ts
@@ -178,9 +178,11 @@ export class VideoEditComponent implements OnInit, OnDestroy {
178 .subscribe(res => { 178 .subscribe(res => {
179 this.videoLanguages = res.languages 179 this.videoLanguages = res.languages
180 .map(l => { 180 .map(l => {
181 if (l.id === 'zxx') return { ...l, group: $localize`Other`, groupOrder: 1 }
182
181 return res.about.instance.languages.includes(l.id) 183 return res.about.instance.languages.includes(l.id)
182 ? { ...l, group: $localize`Instance languages`, groupOrder: 0 } 184 ? { ...l, group: $localize`Instance languages`, groupOrder: 0 }
183 : { ...l, group: $localize`All languages`, groupOrder: 1 } 185 : { ...l, group: $localize`All languages`, groupOrder: 2 }
184 }) 186 })
185 .sort((a, b) => a.groupOrder - b.groupOrder) 187 .sort((a, b) => a.groupOrder - b.groupOrder)
186 }) 188 })
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index c61c01d62..70b8e3d27 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -1075,7 +1075,9 @@ function buildLanguages () {
1075 epo: true, // Esperanto 1075 epo: true, // Esperanto
1076 tlh: true, // Klingon 1076 tlh: true, // Klingon
1077 jbo: true, // Lojban 1077 jbo: true, // Lojban
1078 avk: true // Kotava 1078 avk: true, // Kotava
1079
1080 zxx: true // No linguistic content (ISO-639-2)
1079 } 1081 }
1080 1082
1081 // Only add ISO639-1 languages and some sign languages (ISO639-3) 1083 // Only add ISO639-1 languages and some sign languages (ISO639-3)