Update iso639 translations for french and deutch
authorChocobozzz <me@florianbigard.com>
Tue, 19 Jun 2018 12:02:57 +0000 (14:02 +0200)
committerChocobozzz <me@florianbigard.com>
Tue, 19 Jun 2018 12:02:57 +0000 (14:02 +0200)
.gitignore
client/src/app/core/server/server.service.ts
client/src/app/videos/+video-edit/shared/video-edit.component.ts
client/src/locale/target/player_es_ES.xml
client/src/locale/target/server_es_ES.xml
client/src/locale/target/server_fr_FR.json
scripts/i18n/pull-hook.sh
scripts/i18n/xliff2json.ts
server/models/account/user.ts
shared/models/i18n/i18n.ts

index 92af7631045a74ea0effd33818e4782f98e7452e..f31b67690fc66a1f6d33cc5ef54492292484a4dd 100644 (file)
@@ -26,3 +26,4 @@
 /server/tools/import-mediacore.ts
 /docker-volume/
 /.zanata-cache
+/scripts/i18n/generate-iso639-target.ts
index 6323a7edf9b65e552a69e6b34b369048ea1655a8..74363e6a1bac7eedeb7627c3319ae7d3f977d147 100644 (file)
@@ -141,7 +141,6 @@ export class ServerService {
         )
         .subscribe(({ data, translations }) => {
           Object.keys(data)
-                .map(dataKey => parseInt(dataKey, 10))
                 .forEach(dataKey => {
                   const label = data[ dataKey ]
 
index 66eb6611a78096869805da41574ba0748a335953..35d406ee3371813cdacd34ce9f6b157ca54faf53 100644 (file)
@@ -101,6 +101,7 @@ export class VideoEditComponent implements OnInit {
     this.videoCategories = this.serverService.getVideoCategories()
     this.videoLicences = this.serverService.getVideoLicences()
     this.videoLanguages = this.serverService.getVideoLanguages()
+  console.log(this.videoLanguages)
 
     setTimeout(() => this.minScheduledDate = new Date(), 1000 * 60) // Update every minute
   }
index fadc5c52edf860f54f1801bd0df505b656d2efb7..884763beea8b68ebdd128d49d6333d75bd808d49 100644 (file)
@@ -3,6 +3,14 @@
 <xliff xmlns="urn:oasis:names:tc:xliff:document:1.1" xmlns:xyz="urn:appInfo:Items" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.1 http://www.oasis-open.org/committees/xliff/documents/xliff-core-1.1.xsd" version="1.1">
   <file source-language="en-US" datatype="plaintext" original="" target-language="es-ES">
     <body>
+      <trans-unit id="Audio Player">
+        <source>Audio Player</source>
+        <target>Reproductor de audio</target>
+      </trans-unit>
+      <trans-unit id="Video Player">
+        <source>Video Player</source>
+        <target>Reproductor de video</target>
+      </trans-unit>
       <trans-unit id="Play">
         <source>Play</source>
         <target>Reproducir</target>
         <source>Replay</source>
         <target>Ver de nuevo</target>
       </trans-unit>
+      <trans-unit id="Duration">
+        <source>Duration</source>
+        <target>Duración</target>
+      </trans-unit>
+      <trans-unit id="Remaining Time">
+        <source>Remaining Time</source>
+        <target>Tiempo restante</target>
+      </trans-unit>
+      <trans-unit id="LIVE">
+        <source>LIVE</source>
+        <target>EN DIRECTO</target>
+      </trans-unit>
+      <trans-unit id="Loaded">
+        <source>Loaded</source>
+        <target>Cargado</target>
+      </trans-unit>
+      <trans-unit id="Progress">
+        <source>Progress</source>
+        <target>Progreso</target>
+      </trans-unit>
+      <trans-unit id="Progress Bar">
+        <source>Progress Bar</source>
+        <target>Barra de progreso</target>
+      </trans-unit>
+      <trans-unit id="progress bar timing: currentTime={1} duration={2}">
+        <source>{1} of {2}</source>
+        <target>{1} de {2}</target>
+      </trans-unit>
       <trans-unit id="Fullscreen">
         <source>Fullscreen</source>
         <target>Pantalla completa</target>
       </trans-unit>
+      <trans-unit id="Non-Fullscreen">
+        <source>Non-Fullscreen</source>
+        <target>Salir de pantalla completa</target>
+      </trans-unit>
       <trans-unit id="Mute">
         <source>Mute</source>
         <target>Silenciar</target>
         <source>Unmute</source>
         <target>Activar sonido</target>
       </trans-unit>
+      <trans-unit id="Playback Rate">
+        <source>Playback Rate</source>
+        <target>Velocidad de reproducción</target>
+      </trans-unit>
       <trans-unit id="Subtitles">
         <source>Subtitles</source>
         <target>Subtitulos</target>
index 13618f3f6432f306f3757bbd0e4330936137e913..a04fbbb98bbe4a725dc85d11b60e8036b2637968 100644 (file)
@@ -76,5 +76,9 @@
         <source>Food</source>
         <target>Cocina</target>
       </trans-unit>
+      <trans-unit id="Attribution">
+        <source>Attribution</source>
+        <target>Asignación</target>
+      </trans-unit>
     </body>
   </file></xliff>
\ No newline at end of file
index 72f6e322dc7fa29484aeff3a76ee36ecbd9ff865..a3c83dbcf76b50b9bed6e9d8cad6e25c1a6c3556 100644 (file)
@@ -1 +1 @@
-{"Music":"Musiques","Films":"Films","Vehicles":"Transport","Art":"Art","Sports":"Sports","Travels":"Voyages","Gaming":"Jeux vidéos","People":"Personnalités","Comedy":"Humour","Entertainment":"Divertissement","News":"Actualités","How To":"Tutoriels","Education":"Éducation","Activism":"Militantisme","Science & Technology":"Science & Technologie","Animals":"Animaux","Kids":"Enfants","Food":"Cuisine","Attribution":"Attribution","Attribution - Share Alike":"Attribution - Partage dans les mêmes conditions","Attribution - No Derivatives":"Attribution - Pas d'oeuvre dérivée","Attribution - Non Commercial":"Attribution - Utilisation non commerciale","Attribution - Non Commercial - Share Alike":"Attribution - Utilisation non commerciale - Partage dans les mêmes conditions","Attribution - Non Commercial - No Derivatives":"Attribution - Utilisation non commerciale - Pas d'oeuvre dérivée","Public Domain Dedication":"Domaine public","Public":"Publique","Unlisted":"Non listée","Private":"Privée","Misc":"Divers","Unknown":"Inconnu","Arabic":"Arabe"}
\ No newline at end of file
+{"Music":"Musiques","Films":"Films","Vehicles":"Transport","Art":"Art","Sports":"Sports","Travels":"Voyages","Gaming":"Jeux vidéos","People":"Personnalités","Comedy":"Humour","Entertainment":"Divertissement","News":"Actualités","How To":"Tutoriels","Education":"Éducation","Activism":"Militantisme","Science & Technology":"Science & Technologie","Animals":"Animaux","Kids":"Enfants","Food":"Cuisine","Attribution":"Attribution","Attribution - Share Alike":"Attribution - Partage dans les mêmes conditions","Attribution - No Derivatives":"Attribution - Pas d'oeuvre dérivée","Attribution - Non Commercial":"Attribution - Utilisation non commerciale","Attribution - Non Commercial - Share Alike":"Attribution - Utilisation non commerciale - Partage dans les mêmes conditions","Attribution - Non Commercial - No Derivatives":"Attribution - Utilisation non commerciale - Pas d'oeuvre dérivée","Public Domain Dedication":"Domaine public","Public":"Publique","Unlisted":"Non listée","Private":"Privée","Misc":"Divers","Unknown":"Inconnu","Afar":"Afar","Abkhazian":"Abkhaze","Afrikaans":"Afrikaans","Akan":"Akan","Amharic":"Amharique","Arabic":"Arabe","Aragonese":"Aragonais","Assamese":"Assamais","Avaric":"Avar","Aymara":"Aymara","Azerbaijani":"Azéri","Bashkir":"Bachkir","Bambara":"Bambara","Belarusian":"Biélorusse","Bengali":"Bengali","Bislama":"Bichlamar","Tibetan":"Tibétain","Bosnian":"Bosniaque","Breton":"Breton","Bulgarian":"Bulgare","Catalan":"Catalan","Czech":"Tchèque","Chamorro":"Chamorro","Chechen":"Tchétchène","Chuvash":"Tchouvache","Cornish":"Cornique","Corsican":"Corse","Cree":"Cree","Welsh":"Gallois","Danish":"Danois","German":"Allemand","Dhivehi":"Maldivien","Dzongkha":"Dzongkha","Modern Greek (1453-)":"Grec moderne (après 1453)","English":"Anglais","Estonian":"Estonien","Basque":"Basque","Ewe":"Éwé","Faroese":"Féroïen","Persian":"Persan","Fijian":"Fidjien","Finnish":"Finnois","French":"Français","Western Frisian":"Frison occidental","Fulah":"Peul","Scottish Gaelic":"Gaélique","Irish":"Irlandais","Galician":"Galicien","Manx":"Manx","Guarani":"Guarani","Gujarati":"Goudjrati","Haitian":"Haïtien","Hausa":"Haoussa","Hebrew":"Hébreu","Herero":"Herero","Hindi":"Hindi","Hiri Motu":"Hiri motu","Croatian":"Croate","Hungarian":"Hongrois","Armenian":"Arménien","Igbo":"Igbo","Sichuan Yi":"Yi de Sichuan","Inuktitut":"Inuktitut","Indonesian":"Indonésien","Inupiaq":"Inupiaq","Icelandic":"Islandais","Italian":"Italien","Javanese":"Javanais","Japanese":"Japonais","Kalaallisut":"Groenlandais","Kannada":"Kannada","Kashmiri":"Kashmiri","Georgian":"Géorgien","Kanuri":"Kanouri","Kazakh":"Kazakh","Khmer":"Khmer central","Kikuyu":"Kikuyu","Kinyarwanda":"Rwanda","Kirghiz":"Kirghiz","Komi":"Kom","Kongo":"Kongo","Korean":"Coréen","Kuanyama":"Kuanyama","Kurdish":"Kurde","Lao":"Lao","Latvian":"Letton","Limburgan":"Limbourgeois","Lingala":"Lingala","Lithuanian":"Lituanien","Luxembourgish":"Luxembourgeois","Luba-Katanga":"Luba-katanga","Ganda":"Ganda","Marshallese":"Marshall","Malayalam":"Malayalam","Marathi":"Marathe","Macedonian":"Macédonien","Malagasy":"Malgache","Maltese":"Maltais","Mongolian":"Mongol","Maori":"Maori","Malay (macrolanguage)":"Malais","Burmese":"Birman","Nauru":"Nauruan","Navajo":"Navaho","South Ndebele":"Ndébélé du Sud","North Ndebele":"Ndébélé du Nord","Ndonga":"Ndonga","Nepali (macrolanguage)":"Népalais","Dutch":"Néerlandais","Norwegian Nynorsk":"Norvégien nynorsk","Norwegian Bokmål":"Norvégien bokmål","Norwegian":"Norvégien","Nyanja":"Chichewa","Occitan (post 1500)":"Occitan (après 1500)","Ojibwa":"Ojibwa","Oriya (macrolanguage)":"Oriya","Oromo":"Galla","Ossetian":"Ossète","Panjabi":"Pendjabi","Polish":"Polonais","Portuguese":"Portugais","Pushto":"Pachto","Quechua":"Quechua","Romansh":"Romanche","Romanian":"Roumain","Rundi":"Rundi","Russian":"Russe","Sango":"Sango","Sinhala":"Singhalais","Slovak":"Slovaque","Slovenian":"Slovène","Northern Sami":"Sami du Nord","Samoan":"Samoan","Shona":"Shona","Sindhi":"Sindhi","Somali":"Somali","Southern Sotho":"Sotho du Sud","Spanish":"Espagnol","Albanian":"Albanais","Sardinian":"Sarde","Serbian":"Serbe","Swati":"Swati","Sundanese":"Soundanais","Swahili (macrolanguage)":"Swahili","Swedish":"Suédois","Tahitian":"Tahitien","Tamil":"Tamoul","Tatar":"Tatar","Telugu":"Télougou","Tajik":"Tadjik","Tagalog":"Tagalog","Thai":"Thaï","Tigrinya":"Tigrigna","Tonga (Tonga Islands)":"Tongan (Îles Tonga)","Tswana":"Tswana","Tsonga":"Tsonga","Turkmen":"Turkmène","Turkish":"Turc","Twi":"Twi","Uighur":"Ouïgour","Ukrainian":"Ukrainien","Urdu":"Ourdou","Uzbek":"Ouszbek","Venda":"Venda","Vietnamese":"Vietnamien","Walloon":"Wallon","Wolof":"Wolof","Xhosa":"Xhosa","Yiddish":"Yiddish","Yoruba":"Yoruba","Zhuang":"Zhuang","Chinese":"Chinois","Zulu":"Zoulou"}
\ No newline at end of file
index 3d57040cc0b6281ae19de8da558b525f4c1acc0b..3a83941102bee5b74045af9a753ed2d9bde0eb77 100755 (executable)
@@ -9,4 +9,5 @@ for i in 1 2 3; do
     perl -pi -e 's|&lt;x id=(.+?)/&gt;([^"])|<x id=\1/>\2|g' client/src/locale/target/*.xml
 done
 
-npm run i18n:xliff2json
\ No newline at end of file
+npm run i18n:xliff2json
+
index 17c73181beb6dd77621814cf23f3b0ab5210902a..ed6854514c560d5fb58ef28aa7f617cef22c5759 100755 (executable)
@@ -1,5 +1,5 @@
 import * as xliff12ToJs from 'xliff/xliff12ToJs'
-import { readFile, readFileSync, unlink, writeFile } from 'fs'
+import { readFileSync, unlink, writeFile } from 'fs'
 import { join } from 'path'
 import { buildFileLocale, I18N_LOCALES, isDefaultLocale } from '../../shared/models/i18n/i18n'
 import { eachSeries } from 'async'
index 56af2f30a979605248dfa3d8de08dce2cb328ae7..1165285ea318195200f818f4cf58af0b571eeb4a 100644 (file)
@@ -36,6 +36,10 @@ import { NSFWPolicyType } from '../../../shared/models/videos/nsfw-policy.type'
 import { values } from 'lodash'
 import { NSFW_POLICY_TYPES } from '../../initializers'
 
+enum ScopeNames {
+  WITH_VIDEO_CHANNEL = 'WITH_VIDEO_CHANNEL'
+}
+
 @DefaultScope({
   include: [
     {
@@ -45,7 +49,7 @@ import { NSFW_POLICY_TYPES } from '../../initializers'
   ]
 })
 @Scopes({
-  withVideoChannel: {
+  [ScopeNames.WITH_VIDEO_CHANNEL]: {
     include: [
       {
         model: () => AccountModel,
@@ -199,7 +203,7 @@ export class UserModel extends Model<UserModel> {
       }
     }
 
-    return UserModel.scope('withVideoChannel').findOne(query)
+    return UserModel.scope(ScopeNames.WITH_VIDEO_CHANNEL).findOne(query)
   }
 
   static loadByEmail (email: string) {
index e0e5982f9e92f7bcd59d44e4046d2c6c762fe295..e2b4409008cebb5e4d62cba366e2fea0a1a99158 100644 (file)
@@ -2,7 +2,7 @@ export const LOCALE_FILES = [ 'player', 'server' ]
 
 export const I18N_LOCALES = {
   'en-US': 'English (US)',
-  'fr-FR': 'French (France)'
+  'fr-FR': 'Français (France)'
 }
 
 const I18N_LOCALE_ALIAS = {