diff --git a/CHANGELOG.md b/CHANGELOG.md index f78309f8..50f43233 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## ??? (Unreleased yet) + +### Minor changes and fixes + +* Translations are now made using Weblate. This requires some technical changes, but there is no functional differences. + +TODO: update the documentation + ## 7.0.2 * Fix: Letsencrypt certificate import procedure was not working on server that had never installed Prosody. Adding `prosody_user` in the Prosody configuration file to fix this. Updating the procedure: the `chown` is no more needed in `/etc/letsencrypt/renewal-hooks/deploy/prosody.sh`. diff --git a/build-languages.js b/build-languages.js index 26e31364..63fdf78a 100644 --- a/build-languages.js +++ b/build-languages.js @@ -17,7 +17,7 @@ class BuildLanguages { destinationDir = null langs = [] translationsStrings = {} - monoLingualReferences = {} + monoLingualReferences = null constructor () { this.destinationDir = path.resolve(__dirname, 'dist', 'languages') @@ -26,8 +26,7 @@ class BuildLanguages { async generateFiles () { await this.loadLangs() await this.initTranslationStrings() - await this.readJSONTranslations() - await this.readSettingsTranslations() + await this.readYamlTranslations() await this.ensureDestinationDir() await this.writeJSONTranslations() @@ -51,43 +50,23 @@ class BuildLanguages { } this.translationsStrings = translationsStrings } - - async readJSONTranslations () { - console.log('Reading standard JSON translation strings...') - const translationsStrings = this.translationsStrings - for (const l of this.langs) { - const filePath = path.resolve(__dirname, 'languages', l + '.json') - if (!fs.existsSync(filePath)) { - console.warn(`File ${filePath} missing, ignoring.`) - continue - } - const t = require(filePath) - for (const k in t) { - const v = t[k] - if (k in translationsStrings[l]) { - throw new Error(`Duplicate translation for key ${k} in lang ${l}.`) - } - if ((typeof v) !== 'string') { - // ignoring untranslated strings. - continue - } - translationsStrings[l][k] = v - } - } - } - async readSettingsTranslations () { - console.log('Reading Settings Yaml translation strings...') + async readYamlTranslations () { + console.log('Reading Yaml translation strings...') // First we must get the english reference file, // that will give us the keys to use in final JSON. - const reference = await this.getYmlFileContent(path.resolve(__dirname, 'languages', 'settings', 'en.yml')) - this.monoLingualReferences['settings'] = reference + const reference = await this.getYmlFileContent(path.resolve(__dirname, 'languages', 'en.yml')) + this.monoLingualReferences = reference const translationsStrings = this.translationsStrings for (const l of this.langs) { - const filePath = path.resolve(__dirname, 'languages', 'settings', l + '.yml') + if (l === 'en') { + console.log('Skipping english, because it is the reference language.') + continue + } + const filePath = path.resolve(__dirname, 'languages', l + '.yml') const o = await this.getYmlFileContent(filePath) for (const k in o) { @@ -148,10 +127,11 @@ class BuildLanguages { async writeMonoLingualReferences () { console.log('Writing JSON reference files...') - for (const name in this.monoLingualReferences) { - const filePath = path.resolve(this.destinationDir, name + '.reference.json') - await fs.promises.writeFile(filePath, JSON.stringify(this.monoLingualReferences[name])) + if (!this.monoLingualReferences) { + throw new Error('Missing monolingual reference content!') } + const filePath = path.resolve(this.destinationDir, 'en.reference.json') + await fs.promises.writeFile(filePath, JSON.stringify(this.monoLingualReferences)) } } diff --git a/languages/ca.json b/languages/ca.json deleted file mode 100644 index ab778f70..00000000 --- a/languages/ca.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "Open chat": "Obre el xat", - "Open chat in a new window": "Obre el xat en una finestra nova", - "Close chat": "Tanca el xat", - "Use chat": false, - "If enabled, there will be a chat next to the video.": false, - "Share chat link": false, - "Read-only": false, - "Show the scrollbar": false, - "Transparent background (for stream integration, with OBS for example)": false, - "Tips for streamers: To add the chat to your OBS, generate a read-only link and use it as a browser source.": false, - "Copy": false, - "Link copied": false, - "Error": false, - "Open": false, - "Use current theme colors": false, - "Generate an iframe to embed the chat in a website": false, - "Chat for live stream": false, - "Room name": false, - "Room description": false, - "Not found": false, - "Video": false, - "Channel": false, - "Last activity": false, - "Web": false, - "Connect using XMPP": false, - "You can connect to the room using an external XMPP account, and your favorite XMPP client.": false -} diff --git a/languages/ca.yml b/languages/ca.yml new file mode 100644 index 00000000..bc9c1fcd --- /dev/null +++ b/languages/ca.yml @@ -0,0 +1,3 @@ +open_chat: Obre el xat +open_chat_new_window: Obre el xat en una finestra nova +close_chat: Tanca el xat diff --git a/languages/de.json b/languages/de.json deleted file mode 100644 index ad522ab6..00000000 --- a/languages/de.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "Open chat": "Chat öffnen", - "Open chat in a new window": "Chat in neuem Fenster öffnen", - "Close chat": "Chat schließen", - "Use chat": "Chat nutzen", - "If enabled, there will be a chat next to the video.": "Wenn aktiviert, wird ein Chat neben dem Video sein.", - "Share chat link": "Chat Link teilen", - "Read-only": "Nur-Lesen", - "Show the scrollbar": "Zeige die Scrollleiste", - "Transparent background (for stream integration, with OBS for example)": "Transpatenter Hintergrund (zum Beispiel für die Streamintegration mit OBS)", - "Tips for streamers: To add the chat to your OBS, generate a read-only link and use it as a browser source.": "Tipps für Streamer: Um den Chat zu OBS hinzuzufügen, einen Nur-Lesen Link erstellen und ihn als browser source in OBS nutzen", - "Copy": "Kopieren", - "Link copied": "Link kopiert", - "Error": "Fehler", - "Open": "Öffnen", - "Use current theme colors": "Die derzeitigen Themenfarben nutzen", - "Generate an iframe to embed the chat in a website": "IFrame-Element erstellen, um den Chat in eine Webseite zu integrieren", - "Chat for live stream": "Chat für den Livestream", - "Room name": false, - "Room description": false, - "Not found": false, - "Video": false, - "Channel": false, - "Last activity": false, - "Web": false, - "Connect using XMPP": false, - "You can connect to the room using an external XMPP account, and your favorite XMPP client.": false -} diff --git a/languages/settings/de.yml b/languages/de.yml similarity index 93% rename from languages/settings/de.yml rename to languages/de.yml index 2fdb26bd..b3c4d2dd 100644 --- a/languages/settings/de.yml +++ b/languages/de.yml @@ -1,3 +1,21 @@ +open_chat: Chat öffnen +open_chat_new_window: Chat in neuem Fenster öffnen +close_chat: Chat schließen +use_chat: Chat nutzen +use_chat_help: Wenn aktiviert, wird ein Chat neben dem Video sein. +share_chat_link: Chat Link teilen +read_only: Nur-Lesen +show_scrollbarr: Zeige die Scrollleiste +transparent_background: Transpatenter Hintergrund (zum Beispiel für die Streamintegration mit OBS) +tips_for_streamers: "Tipps für Streamer: Um den Chat zu OBS hinzuzufügen, einen + Nur-Lesen Link erstellen und ihn als browser source in OBS nutzen" +copy: Kopieren +link_copied: Link kopiert +error: Fehler +open: Öffnen +use_current_theme_color: Die derzeitigen Themenfarben nutzen +generate_iframe: IFrame-Element erstellen, um den Chat in eine Webseite zu integrieren + important_note_title: "

Wichtige Hinweise

" important_note_text: | Sie können die Dokumentation hier finden: diff --git a/languages/settings/en.yml b/languages/en.yml similarity index 92% rename from languages/settings/en.yml rename to languages/en.yml index af681207..4de8cbcd 100644 --- a/languages/settings/en.yml +++ b/languages/en.yml @@ -1,3 +1,30 @@ +open_chat: "Open chat" +open_chat_new_window: "Open chat in a new window" +close_chat: "Close chat" +use_chat: "Use chat" +use_chat_help: "If enabled, there will be a chat next to the video." +share_chat_link: "Share chat link" +read_only: "Read-only" +show_scrollbarr: "Show the scrollbar" +transparent_background: "Transparent background (for stream integration, with OBS for example)" +tips_for_streamers: "Tips for streamers: To add the chat to your OBS, generate a read-only link and use it as a browser source." +copy: "Copy" +link_copied: "Link copied" +error: "Error" +open: "Open" +use_current_theme_color: "Use current theme colors" +generate_iframe: "Generate an iframe to embed the chat in a website" +chat_for_live_stream: "Chat for live stream:" +room_name: "Room name" +room_description: "Room description" +not_found: "Not found" +video: "Video" +channel: "Channel" +last_activity: "Last activity" +web: "Web" +connect_using_xmpp: "Connect using XMPP" +connect_using_xmpp_help: "You can connect to the room using an external XMPP account, and your favorite XMPP client." + important_note_title: "

Important notes

" important_note_text: | You can find the plugin documentation here: diff --git a/languages/eo.json b/languages/eo.json deleted file mode 100644 index 6852748b..00000000 --- a/languages/eo.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "Open chat": "Malfermi la babilejon", - "Open chat in a new window": "Malfermi la babilejon en nova fenestro", - "Close chat": "Fermi la babilejon", - "Use chat": "Uzi babilejon", - "If enabled, there will be a chat next to the video.": "Kiam ŝaltita, babilejo aperos apud la video.", - "Share chat link": "Kunhavigi ligilon de babilejo", - "Read-only": "Nurlega", - "Show the scrollbar": "Montri la ŝovregilon", - "Transparent background (for stream integration, with OBS for example)": "Travidebla fono (por elsenda integrado, ekzemple per OBS)", - "Tips for streamers: To add the chat to your OBS, generate a read-only link and use it as a browser source.": "Sugestoj por elsendofluistoj: por aldoni la babilejon en OBS, kreu nurlegan ligilon kaj uzu ĝin kiel retumilan fonton.", - "Copy": "Kopii", - "Link copied": "Ligilo kopiata", - "Error": "Eraro", - "Open": "Malfermi", - "Use current theme colors": "Uzi koloroj el la nuna etoso", - "Generate an iframe to embed the chat in a website": false, - "Chat for live stream": false, - "Room name": false, - "Room description": false, - "Not found": false, - "Video": false, - "Channel": false, - "Last activity": false, - "Web": false, - "Connect using XMPP": false, - "You can connect to the room using an external XMPP account, and your favorite XMPP client.": false -} diff --git a/languages/eo.yml b/languages/eo.yml new file mode 100644 index 00000000..5d98f2c8 --- /dev/null +++ b/languages/eo.yml @@ -0,0 +1,16 @@ +open_chat: Malfermi la babilejon +open_chat_new_window: Malfermi la babilejon en nova fenestro +close_chat: Fermi la babilejon +use_chat: Uzi babilejon +use_chat_help: Kiam ŝaltita, babilejo aperos apud la video. +share_chat_link: Kunhavigi ligilon de babilejo +read_only: Nurlega +show_scrollbarr: Montri la ŝovregilon +transparent_background: Travidebla fono (por elsenda integrado, ekzemple per OBS) +tips_for_streamers: "Sugestoj por elsendofluistoj: por aldoni la babilejon en + OBS, kreu nurlegan ligilon kaj uzu ĝin kiel retumilan fonton." +copy: Kopii +link_copied: Ligilo kopiata +error: Eraro +open: Malfermi +use_current_theme_color: Uzi koloroj el la nuna etoso diff --git a/languages/es.json b/languages/es.json deleted file mode 100644 index 96a94bf4..00000000 --- a/languages/es.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "Open chat": "Abrir el chat", - "Open chat in a new window": "Abrir el chat en otra ventana", - "Close chat": "Cerrar el chat", - "Use chat": "Habilitar el chat", - "If enabled, there will be a chat next to the video.": "Activado, abre el chat junto al vídeo", - "Share chat link": "Compartir el enlace de esta sala de chat", - "Read-only": "Sólo lectura", - "Show the scrollbar": "Mostrar la barra de desplazamiento", - "Transparent background (for stream integration, with OBS for example)": "Fondo transparente (para la integración en directos, por ejemplo con OBS)", - "Tips for streamers: To add the chat to your OBS, generate a read-only link and use it as a browser source.": "Sugerencias para los streamers: para agregar el chat a su OBS, genere un enlace de «solo lectura» y utilícelo como «fuente o canal web».", - "Copy": "Copiar", - "Link copied": "Enlace copiado", - "Error": "Error", - "Open": "Abrir", - "Use current theme colors": "Utilizar los colores del tema actual", - "Generate an iframe to embed the chat in a website": false, - "Chat for live stream": false, - "Room name": false, - "Room description": false, - "Not found": false, - "Video": false, - "Channel": false, - "Last activity": false, - "Web": false, - "Connect using XMPP": false, - "You can connect to the room using an external XMPP account, and your favorite XMPP client.": false -} diff --git a/languages/eu.json b/languages/eu.json deleted file mode 100644 index a26c27f0..00000000 --- a/languages/eu.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "Open chat": "Ireki txata", - "Open chat in a new window": "Ireki txata leiho berri batean", - "Close chat": "Itxi txata", - "Use chat": "Erabili txata", - "If enabled, there will be a chat next to the video.": "Gaituta badago, txat bat agertuko da bideoaren ondoan.", - "Share chat link": "Partekatu txataren esteka", - "Read-only": "Irakurtzeko soilik", - "Show the scrollbar": "Erakutsi korritze-barra", - "Transparent background (for stream integration, with OBS for example)": "Atzealde gardena (zuzenekoekin integratzeko, OBSrekin kasu)", - "Tips for streamers: To add the chat to your OBS, generate a read-only link and use it as a browser source.": "Zuzeneko bideogileentzako aholkuak: txata OBSn gehitzeko, sortu irakurtzeko soilik den esteka bat eta erabili nabigatzaileko iturburu gisa.", - "Copy": "Kopiatu", - "Link copied": "Esteka kopiatu da", - "Error": "Errorea", - "Open": "Ireki", - "Use current theme colors": "Erabili uneko itxuraren koloreak", - "Generate an iframe to embed the chat in a website": false, - "Chat for live stream": false, - "Room name": false, - "Room description": false, - "Not found": false, - "Video": false, - "Channel": false, - "Last activity": false, - "Web": false, - "Connect using XMPP": false, - "You can connect to the room using an external XMPP account, and your favorite XMPP client.": false -} diff --git a/languages/eu.yml b/languages/eu.yml new file mode 100644 index 00000000..f5450587 --- /dev/null +++ b/languages/eu.yml @@ -0,0 +1,17 @@ +open_chat: Ireki txata +open_chat_new_window: Ireki txata leiho berri batean +close_chat: Itxi txata +use_chat: Erabili txata +use_chat_help: Gaituta badago, txat bat agertuko da bideoaren ondoan. +share_chat_link: Partekatu txataren esteka +read_only: Irakurtzeko soilik +show_scrollbarr: Erakutsi korritze-barra +transparent_background: Atzealde gardena (zuzenekoekin integratzeko, OBSrekin kasu) +tips_for_streamers: "Zuzeneko bideogileentzako aholkuak: txata OBSn gehitzeko, + sortu irakurtzeko soilik den esteka bat eta erabili nabigatzaileko iturburu + gisa." +copy: Kopiatu +link_copied: Esteka kopiatu da +error: Errorea +open: Ireki +use_current_theme_color: Erabili uneko itxuraren koloreak diff --git a/languages/fr.json b/languages/fr.json deleted file mode 100644 index 744adb8b..00000000 --- a/languages/fr.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "Open chat": "Ouvrir le salon de discussion", - "Open chat in a new window": "Ouvrir le salon de discussion dans une nouvelle fenêtre", - "Close chat": "Fermer le salon de discussion", - "Use chat": "Activer le salon de discussion", - "If enabled, there will be a chat next to the video.": "Si activé, un salon de discussion sera affiché à coté de la vidéo.", - "Share chat link": "Partager le lien du salon de discussion", - "Read-only": "Lecture seule", - "Show the scrollbar": "Afficher la barre de défilement", - "Transparent background (for stream integration, with OBS for example)": "Arrière plan transparent (pour l'intégration dans le stream, avec OBS par exemple)", - "Tips for streamers: To add the chat to your OBS, generate a read-only link and use it as a browser source.": "Astuce pour les streamers et streameuses : pour ajouter le tchat à votre OBS, générez un lien «lecture seule» et utilisez le comme «source navigateur web».", - "Copy": "Copier", - "Link copied": "Lien copié", - "Error": "Erreur", - "Open": "Ouvrir", - "Use current theme colors": "Utiliser les couleurs du thème courant", - "Generate an iframe to embed the chat in a website": "Générer une iframe pour intégrer le tchat dans un site web", - "Chat for live stream:": "Tchat pour le direct :", - "Room name": "Nom du salon", - "Room description": "Description du salon", - "Not found": "Non trouvé", - "Video": "Vidéo", - "Channel": "Chaîne", - "Last activity": "Dernière activité", - "Web": "Web", - "Connect using XMPP": "Connexion avec un client XMPP", - "You can connect to the room using an external XMPP account, and your favorite XMPP client.": "Vous pouvez vous connecter au salon en utilisant un compte XMPP externe, et votre client XMPP favori." -} diff --git a/languages/settings/fr.yml b/languages/fr.yml similarity index 91% rename from languages/settings/fr.yml rename to languages/fr.yml index 18687acd..7e200900 100644 --- a/languages/settings/fr.yml +++ b/languages/fr.yml @@ -1,3 +1,34 @@ +open_chat: Ouvrir le salon de discussion +open_chat_new_window: Ouvrir le salon de discussion dans une nouvelle fenêtre +close_chat: Fermer le salon de discussion +use_chat: Activer le salon de discussion +use_chat_help: Si activé, un salon de discussion sera affiché à coté de la vidéo. +share_chat_link: Partager le lien du salon de discussion +read_only: Lecture seule +show_scrollbarr: Afficher la barre de défilement +transparent_background: Arrière plan transparent (pour l'intégration dans le + stream, avec OBS par exemple) +tips_for_streamers: "Astuce pour les streamers et streameuses : pour ajouter le + tchat à votre OBS, générez un lien «lecture seule» et utilisez le comme + «source navigateur web»." +copy: Copier +link_copied: Lien copié +error: Erreur +open: Ouvrir +use_current_theme_color: Utiliser les couleurs du thème courant +generate_iframe: Générer une iframe pour intégrer le tchat dans un site web +chat_for_live_stream: "Tchat pour le direct :" +room_name: Nom du salon +room_description: Description du salon +not_found: Non trouvé +video: Vidéo +channel: Chaîne +last_activity: Dernière activité +web: Web +connect_using_xmpp: Connexion avec un client XMPP +connect_using_xmpp_help: Vous pouvez vous connecter au salon en utilisant un + compte XMPP externe, et votre client XMPP favori. + important_note_title: "

Note importante

" important_note_text: | Vous pouvez trouver la documentation du plugin ici: diff --git a/languages/it.json b/languages/it.json deleted file mode 100644 index 16961c84..00000000 --- a/languages/it.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "Open chat": "Apri la chat", - "Open chat in a new window": "Apri la chat in un nuova finestra", - "Close chat": "Chiudi la chat", - "Use chat": "Attiva la chat", - "If enabled, there will be a chat next to the video.": "Se abilitato, ci sarà una chat accanto al video.", - "Share chat link": "Condividi il link della chat", - "Read-only": "In sola lettura", - "Show the scrollbar": "Mostra la barra di scorrimento", - "Transparent background (for stream integration, with OBS for example)": "Sfondo trasparente (per l'integrazione delle dirette con OBS, ad esempio)", - "Tips for streamers: To add the chat to your OBS, generate a read-only link and use it as a browser source.": "Suggerimenti per gli streamer: per aggiungere la chat al proprio OBS, genera un link della chat in sola lettura e usalo in quanto fonte “browser”.", - "Copy": "Copia", - "Link copied": "Link copiato", - "Error": "Errore", - "Open": "Apri", - "Use current theme colors": "Utilizza i colori del tema corrente", - "Generate an iframe to embed the chat in a website": "Genera un iframe per incorporare la chat in un sito web", - "Chat for live stream": "Chat per lo streaming in diretta", - "Room name": "Nome della chat room", - "Room description": "Descrizione della chat room", - "Not found": "Non trovato", - "Video": "Video", - "Channel": "Canale", - "Last activity": "Ultima attività", - "Web": false, - "Connect using XMPP": false, - "You can connect to the room using an external XMPP account, and your favorite XMPP client.": false -} diff --git a/languages/settings/it.yml b/languages/it.yml similarity index 92% rename from languages/settings/it.yml rename to languages/it.yml index fda80dac..d8859ff6 100644 --- a/languages/settings/it.yml +++ b/languages/it.yml @@ -1,3 +1,28 @@ +open_chat: Apri la chat +open_chat_new_window: Apri la chat in un nuova finestra +close_chat: Chiudi la chat +use_chat: Attiva la chat +use_chat_help: Se abilitato, ci sarà una chat accanto al video. +share_chat_link: Condividi il link della chat +read_only: In sola lettura +show_scrollbarr: Mostra la barra di scorrimento +transparent_background: Sfondo trasparente (per l'integrazione delle dirette con OBS, ad esempio) +tips_for_streamers: "Suggerimenti per gli streamer: per aggiungere la chat al + proprio OBS, genera un link della chat in sola lettura e usalo in quanto fonte + “browser”." +copy: Copia +link_copied: Link copiato +error: Errore +open: Apri +use_current_theme_color: Utilizza i colori del tema corrente +generate_iframe: Genera un iframe per incorporare la chat in un sito web +room_name: Nome della chat room +room_description: Descrizione della chat room +not_found: Non trovato +video: Video +channel: Canale +last_activity: Ultima attività + important_note_title: "

Note importanti

" important_note_text: | La documentazione del plugin si trova qui: diff --git a/languages/ja.json b/languages/ja.json deleted file mode 100644 index f9bd8afa..00000000 --- a/languages/ja.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "Open chat": "チャットを開く", - "Open chat in a new window": "新規ウィンドウでチャットを開く", - "Close chat": "チャットを閉じる", - "Use chat": "チャットを使用する", - "If enabled, there will be a chat next to the video.": "有効にしている場合、動画の横にチャットを表示します。", - "Share chat link": "チャットリンクを共有", - "Read-only": "読み取り専用にする", - "Show the scrollbar": "スクロールバーを表示する", - "Transparent background (for stream integration, with OBS for example)": "透過型背景にする (OBSなどを使用したストリーミング連携に最適)", - "Tips for streamers: To add the chat to your OBS, generate a read-only link and use it as a browser source.": "ストリーマーの方へ: OBSにチャットを追加する場合は、読み取り専用のチャットリンクを生成し、ブラウザソースで読み込んでください。", - "Copy": "コピー", - "Link copied": "リンクをコピーしました", - "Error": "エラー", - "Open": "開く", - "Use current theme colors": "現在のテーマカラーを使用する", - "Generate an iframe to embed the chat in a website": false, - "Chat for live stream": false, - "Room name": false, - "Room description": false, - "Not found": false, - "Video": false, - "Channel": false, - "Last activity": false, - "Web": false, - "Connect using XMPP": false, - "You can connect to the room using an external XMPP account, and your favorite XMPP client.": false -} diff --git a/languages/ja.yml b/languages/ja.yml new file mode 100644 index 00000000..a9abd43e --- /dev/null +++ b/languages/ja.yml @@ -0,0 +1,15 @@ +open_chat: チャットを開く +open_chat_new_window: 新規ウィンドウでチャットを開く +close_chat: チャットを閉じる +use_chat: チャットを使用する +use_chat_help: 有効にしている場合、動画の横にチャットを表示します。 +share_chat_link: チャットリンクを共有 +read_only: 読み取り専用にする +show_scrollbarr: スクロールバーを表示する +transparent_background: 透過型背景にする (OBSなどを使用したストリーミング連携に最適) +tips_for_streamers: "ストリーマーの方へ: OBSにチャットを追加する場合は、読み取り専用のチャットリンクを生成し、ブラウザソースで読み込んでください。" +copy: コピー +link_copied: リンクをコピーしました +error: エラー +open: 開く +use_current_theme_color: 現在のテーマカラーを使用する diff --git a/languages/oc.json b/languages/oc.json deleted file mode 100644 index 1e2d8b84..00000000 --- a/languages/oc.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "Open chat": "Dobrir la messatjariá", - "Open chat in a new window": "Dobrir la messatjariá dins una fenèstra novèla", - "Close chat": "Tancar la messatjariá", - "Use chat": "Activar la messatjariá", - "If enabled, there will be a chat next to the video.": "Se activat la messatjariá serà a costat de la vidèo.", - "Share chat link": "Partejar lo ligam de la discussion", - "Read-only": "Lectura sola", - "Show the scrollbar": "Afichar la barra de desfilament", - "Transparent background (for stream integration, with OBS for example)": "Rèireplan transparent (per l’integracion del flux, amb OBS per exemple)", - "Tips for streamers: To add the chat to your OBS, generate a read-only link and use it as a browser source.": "Astúcia pels difusors : per apondre la messatjariá a vòstre OBS, generatz un ligam « lectura sola» e utilizatz-lo coma « font navegador web ».", - "Copy": "Copiar", - "Link copied": "Ligam copiat", - "Error": "Error", - "Open": "Dobrir", - "Use current theme colors": "Utilizar las colors del tèma actual" , - "Generate an iframe to embed the chat in a website": false, - "Chat for live stream": false, - "Room name": false, - "Room description": false, - "Not found": false, - "Video": false, - "Channel": false, - "Last activity": false, - "Web": false, - "Connect using XMPP": false, - "You can connect to the room using an external XMPP account, and your favorite XMPP client.": false -} diff --git a/languages/oc.yml b/languages/oc.yml new file mode 100644 index 00000000..2f53ec79 --- /dev/null +++ b/languages/oc.yml @@ -0,0 +1,17 @@ +open_chat: Dobrir la messatjariá +open_chat_new_window: Dobrir la messatjariá dins una fenèstra novèla +close_chat: Tancar la messatjariá +use_chat: Activar la messatjariá +use_chat_help: Se activat la messatjariá serà a costat de la vidèo. +share_chat_link: Partejar lo ligam de la discussion +read_only: Lectura sola +show_scrollbarr: Afichar la barra de desfilament +transparent_background: Rèireplan transparent (per l’integracion del flux, amb OBS per exemple) +tips_for_streamers: "Astúcia pels difusors : per apondre la messatjariá a + vòstre OBS, generatz un ligam « lectura sola» e utilizatz-lo coma « font + navegador web »." +copy: Copiar +link_copied: Ligam copiat +error: Error +open: Dobrir +use_current_theme_color: Utilizar las colors del tèma actual diff --git a/languages/pl.json b/languages/pl.json deleted file mode 100644 index 23bc819e..00000000 --- a/languages/pl.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "Open chat": "Otwórz czat", - "Open chat in a new window": "Otwórz czat w nowym oknie", - "Close chat": "Zamknij czat", - "Use chat": "Użyj czatu", - "If enabled, there will be a chat next to the video.": "Jeśli włączono, czat pojawi się po lewej stronie filmu.", - "Share chat link": false, - "Read-only": false, - "Show the scrollbar": false, - "Transparent background (for stream integration, with OBS for example)": false, - "Tips for streamers: To add the chat to your OBS, generate a read-only link and use it as a browser source.": false, - "Copy": false, - "Link copied": false, - "Error": false, - "Open": false, - "Use current theme colors": false, - "Generate an iframe to embed the chat in a website": false, - "Chat for live stream": false, - "Room name": false, - "Room description": false, - "Not found": false, - "Video": false, - "Channel": false, - "Last activity": false, - "Web": false, - "Connect using XMPP": false, - "You can connect to the room using an external XMPP account, and your favorite XMPP client.": false -} diff --git a/languages/pl.yml b/languages/pl.yml new file mode 100644 index 00000000..c8b18d62 --- /dev/null +++ b/languages/pl.yml @@ -0,0 +1,5 @@ +open_chat: Otwórz czat +open_chat_new_window: Otwórz czat w nowym oknie +close_chat: Zamknij czat +use_chat: Użyj czatu +use_chat_help: Jeśli włączono, czat pojawi się po lewej stronie filmu. diff --git a/server/lib/settings.ts b/server/lib/settings.ts index 3f1d2c27..f50e3462 100644 --- a/server/lib/settings.ts +++ b/server/lib/settings.ts @@ -23,7 +23,7 @@ function loc (key: string): string { } async function loadLoc (): Promise { - const filePath = resolve(__dirname, '..', '..', 'languages', 'settings.reference.json') + const filePath = resolve(__dirname, '..', '..', 'languages', 'en.reference.json') if (!existsSync(filePath)) { throw new Error(`File ${filePath} missing, can't load plugin settings`) }