From 9663c335631ef0fa6eb4599aa3a48c94dc02c0b6 Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Thu, 10 Oct 2024 05:33:01 +0200 Subject: [PATCH] Improving MJS lupdate hacky script to take private fields into account. --- assets/i18n/lp_de.ts | 36 ++++++++++++++++++------------------ assets/i18n/lp_en.ts | 36 ++++++++++++++++++------------------ assets/i18n/lp_es.ts | 36 ++++++++++++++++++------------------ assets/i18n/lp_fr.ts | 36 ++++++++++++++++++------------------ assets/i18n/lp_hu.ts | 36 ++++++++++++++++++------------------ assets/i18n/lp_nb_NO.ts | 36 ++++++++++++++++++------------------ assets/i18n/lp_template.ts | 36 ++++++++++++++++++------------------ assets/i18n/update.sh | 6 +++++- 8 files changed, 131 insertions(+), 127 deletions(-) diff --git a/assets/i18n/lp_de.ts b/assets/i18n/lp_de.ts index 59980da..4876e02 100644 --- a/assets/i18n/lp_de.ts +++ b/assets/i18n/lp_de.ts @@ -1308,27 +1308,27 @@ Ausdruck analysiert: %3 Verlauf - + Saved plot to '%1'. Gespeicherte Grafik auf '%1'. - + Loading file '%1'. Laden der Datei '%1'. - + Unknown object type: %1. Unbekannter Objekttyp: %1. - + Invalid file provided. Ungültige Datei angegeben. - + Could not load file: Datei konnte nicht geladen werden: @@ -1337,7 +1337,7 @@ Ausdruck analysiert: %3 Die Datei konnte nicht gespeichert werden: - + Loaded file '%1'. Geladene Datei '%1'. @@ -1759,17 +1759,17 @@ Bitte vergewissern Sie sich, dass Ihre LaTeX-Installation korrekt ist, und melde settingCategory - + default Standardeinstellungen - + general Allgemeine - + editor Ausdruckseditor @@ -1827,22 +1827,22 @@ Bitte vergewissern Sie sich, dass Ihre LaTeX-Installation korrekt ist, und melde usage - + integral(<from: number>, <to: number>, <f: ExecutableObject>) integral(<von: Zahl>, <bis: Zahl>, <f: Funktionsähnliches Objekt>) - - + + Usage: %1 Verwendung: %1 - - - + + + Usage: %1 %2 @@ -1851,17 +1851,17 @@ Bitte vergewissern Sie sich, dass Ihre LaTeX-Installation korrekt ist, und melde %2 - + integral(<from: number>, <to: number>, <f: string>, <variable: string>) integral(<von: Zahl>, <bis: Zahl>, <f: String>, <Variablen: String>) - + derivative(<f: ExecutableObject>, <x: number>) derivative(<f: Funktionsähnliches Objekt>, <x: Zahl>) - + derivative(<f: string>, <variable: string>, <x: number>) derivative(<f: String>, <Variablen: String>, <x: Zahl>) diff --git a/assets/i18n/lp_en.ts b/assets/i18n/lp_en.ts index ab62387..b2dfaff 100644 --- a/assets/i18n/lp_en.ts +++ b/assets/i18n/lp_en.ts @@ -1308,27 +1308,27 @@ Evaluated expression: %3 History - + Saved plot to '%1'. Saved plot to '%1'. - + Loading file '%1'. Loading file '%1'. - + Unknown object type: %1. Unknown object type: %1. - + Invalid file provided. Invalid file provided. - + Could not load file: Could not load file: @@ -1337,7 +1337,7 @@ Evaluated expression: %3 Could not save file: - + Loaded file '%1'. Loaded file '%1'. @@ -1759,17 +1759,17 @@ Please make sure your LaTeX installation is correct and report a bug if so. settingCategory - + general General - + editor Expression Editor - + default Default settings @@ -1827,22 +1827,22 @@ Please make sure your LaTeX installation is correct and report a bug if so. usage - + integral(<from: number>, <to: number>, <f: ExecutableObject>) integral(<from: number>, <to: number>, <f: Function-like object>) - - + + Usage: %1 Usage: %1 - - - + + + Usage: %1 %2 @@ -1851,17 +1851,17 @@ Please make sure your LaTeX installation is correct and report a bug if so. - + integral(<from: number>, <to: number>, <f: string>, <variable: string>) integral(<from: number>, <to: number>, <f: string>, <variable: string>) - + derivative(<f: ExecutableObject>, <x: number>) derivative(<f: Function-like object>, <x: number>) - + derivative(<f: string>, <variable: string>, <x: number>) derivative(<f: string>, <variable: string>, <x: number>) diff --git a/assets/i18n/lp_es.ts b/assets/i18n/lp_es.ts index f5e3d12..14dd724 100644 --- a/assets/i18n/lp_es.ts +++ b/assets/i18n/lp_es.ts @@ -1320,27 +1320,27 @@ Expresión evaluada: %3 Objetos - + Saved plot to '%1'. Gráfico guardado en '%1'. - + Loading file '%1'. Cargando el archivo '%1'. - + Unknown object type: %1. Tipo de objeto desconocido: %1 . - + Invalid file provided. Se ha proporcionado un archivo no válido. - + Could not load file: @@ -1349,7 +1349,7 @@ Expresión evaluada: %3 No se ha podido guardar el archivo: - + Loaded file '%1'. Archivo cargado '%1'. @@ -1759,17 +1759,17 @@ Por favor, asegúrese de que su instalación de LaTeX es correcta e informe de u settingCategory - + general General - + editor Editor de expresiones - + default Ajustes por defecto @@ -1827,22 +1827,22 @@ Por favor, asegúrese de que su instalación de LaTeX es correcta e informe de u usage - + integral(<from: number>, <to: number>, <f: ExecutableObject>) integral(<desde: número>, <hasta: número>, <f: Objeto similar a una función>) - - + + Usage: %1 Uso: %1 - - - + + + Usage: %1 %2 @@ -1851,17 +1851,17 @@ Por favor, asegúrese de que su instalación de LaTeX es correcta e informe de u %2 - + integral(<from: number>, <to: number>, <f: string>, <variable: string>) integral(<desde: número>, <hasta: número>, <f: cadena>, <variable: cadena>) - + derivative(<f: ExecutableObject>, <x: number>) derivative(<f: objeto similar a una función>, <x: número>) - + derivative(<f: string>, <variable: string>, <x: number>) derivative(<f: cadena>, <variable: cadena>, <x: número>) diff --git a/assets/i18n/lp_fr.ts b/assets/i18n/lp_fr.ts index a638be9..2b1a26d 100644 --- a/assets/i18n/lp_fr.ts +++ b/assets/i18n/lp_fr.ts @@ -1323,27 +1323,27 @@ Formule analysée : %3 &Mettre à jour LogarithmPlotter - + Saved plot to '%1'. Graphe sauvegardé dans '%1'. - + Loading file '%1'. Chargement du fichier '%1'. - + Unknown object type: %1. Type d'objet inconnu : %1. - + Invalid file provided. Fichier fourni invalide. - + Could not load file: Impossible de charger le fichier : @@ -1352,7 +1352,7 @@ Formule analysée : %3 Impossible de sauvegarder le fichier : - + Loaded file '%1'. Fichier '%1' chargé. @@ -1762,17 +1762,17 @@ Vérifiez que votre installation de LaTeX est correcte et signalez un bogue si c settingCategory - + general Général - + editor Éditeur de formule - + default Paramètres par défaut @@ -1830,22 +1830,22 @@ Vérifiez que votre installation de LaTeX est correcte et signalez un bogue si c usage - + integral(<from: number>, <to: number>, <f: ExecutableObject>) integral(<de : nombre>, <à : nombre>, <f : Objet fonction>) - - + + Usage: %1 Emploi : %1 - - - + + + Usage: %1 %2 @@ -1854,17 +1854,17 @@ Vérifiez que votre installation de LaTeX est correcte et signalez un bogue si c %2 - + integral(<from: number>, <to: number>, <f: string>, <variable: string>) integral(<de : nombre>, <à : nombre>, <f : fonction chaîne>, <variable>) - + derivative(<f: ExecutableObject>, <x: number>) derivative(<f : Objet fonction>, <x : nombre>) - + derivative(<f: string>, <variable: string>, <x: number>) derivative(<f : fonction chaîne>, <variable>, <x : nombre>) diff --git a/assets/i18n/lp_hu.ts b/assets/i18n/lp_hu.ts index f817dd2..975c600 100644 --- a/assets/i18n/lp_hu.ts +++ b/assets/i18n/lp_hu.ts @@ -1304,27 +1304,27 @@ Kiértékelt kifejezés: %3 Előzmények - + Saved plot to '%1'. Ábra mentve ide: „%1”. - + Loading file '%1'. A(z) „%1” fájl betöltése folyamatban van. - + Unknown object type: %1. Ismeretlen objektumtípus: %1. - + Invalid file provided. A megadott fájl érvénytelen. - + Could not load file: @@ -1333,7 +1333,7 @@ Kiértékelt kifejezés: %3 A fájl mentése nem sikerült: - + Loaded file '%1'. A(z) „%1” fájl betöltve. @@ -1759,17 +1759,17 @@ Kérjük, ellenőrizze, hogy a LaTeX telepítése helyes-e, és ha igen, jelents settingCategory - + general Általános - + editor Kifejezésszerkesztő - + default Alapértelmezett ábra @@ -1827,22 +1827,22 @@ Kérjük, ellenőrizze, hogy a LaTeX telepítése helyes-e, és ha igen, jelents usage - + integral(<from: number>, <to: number>, <f: ExecutableObject>) integral(<alsó korlát: szám>, <felső korlát: szám>, <f: függvényszerű objektum>) - - + + Usage: %1 Használat: %1 - - - + + + Usage: %1 %2 @@ -1851,17 +1851,17 @@ Kérjük, ellenőrizze, hogy a LaTeX telepítése helyes-e, és ha igen, jelents %2 - + integral(<from: number>, <to: number>, <f: string>, <variable: string>) integral(<alsó korlát: szám>, <felső korlát: szám>, <függvény: karakterlánc>, <változó: karakterlánc>) - + derivative(<f: ExecutableObject>, <x: number>) derivative(<f: függvényszerű objektum>, <x: szám>) - + derivative(<f: string>, <variable: string>, <x: number>) derivált(<függvény: karakterlánc>, <változó: karakterlánc>, <x: szám>) diff --git a/assets/i18n/lp_nb_NO.ts b/assets/i18n/lp_nb_NO.ts index b46ffe7..d278f03 100644 --- a/assets/i18n/lp_nb_NO.ts +++ b/assets/i18n/lp_nb_NO.ts @@ -1235,27 +1235,27 @@ Evaluated expression: %3 Historikk - + Saved plot to '%1'. Lagret plott i «%1». - + Loading file '%1'. Laster inn «%1»-fil. - + Unknown object type: %1. Ukjent objekttype: %1. - + Invalid file provided. Ugyldig fil angitt. - + Could not load file: @@ -1264,7 +1264,7 @@ Evaluated expression: %3 Kunne ikke lagre fil: - + Loaded file '%1'. Lastet inn filen «%1». @@ -1669,17 +1669,17 @@ Please make sure your latex installation is correct and report a bug if so. settingCategory - + general - + editor - + default @@ -1737,38 +1737,38 @@ Please make sure your latex installation is correct and report a bug if so. usage - + integral(<from: number>, <to: number>, <f: ExecutableObject>) - - + + Usage: %1 - - - + + + Usage: %1 %2 - + integral(<from: number>, <to: number>, <f: string>, <variable: string>) - + derivative(<f: ExecutableObject>, <x: number>) - + derivative(<f: string>, <variable: string>, <x: number>) diff --git a/assets/i18n/lp_template.ts b/assets/i18n/lp_template.ts index 9440730..0981f1b 100644 --- a/assets/i18n/lp_template.ts +++ b/assets/i18n/lp_template.ts @@ -1069,32 +1069,32 @@ Evaluated expression: %3 io - + Saved plot to '%1'. - + Loading file '%1'. - + Unknown object type: %1. - + Invalid file provided. - + Could not load file: - + Loaded file '%1'. @@ -1465,17 +1465,17 @@ Please make sure your latex installation is correct and report a bug if so. settingCategory - + general - + editor - + default @@ -1519,38 +1519,38 @@ Please make sure your latex installation is correct and report a bug if so. usage - + integral(<from: number>, <to: number>, <f: ExecutableObject>) - - + + Usage: %1 - - - + + + Usage: %1 %2 - + integral(<from: number>, <to: number>, <f: string>, <variable: string>) - + derivative(<f: ExecutableObject>, <x: number>) - + derivative(<f: string>, <variable: string>, <x: number>) diff --git a/assets/i18n/update.sh b/assets/i18n/update.sh index 4ff172c..ff96ef8 100755 --- a/assets/i18n/update.sh +++ b/assets/i18n/update.sh @@ -33,6 +33,8 @@ for file in $files; do replace "${file%.*}.js" "^export" "/*export*/" replace "${file%.*}.js" "async " "/*async */" replace "${file%.*}.js" "await" "/*await */" + replace "${file%.*}.js" " #" "// #" + replace "${file%.*}.js" "this.#" "/*this.#*/" done echo "----------------------------" @@ -55,7 +57,9 @@ for file in $files; do replace "$file" "/*async */" "async " replace "$file" "^/*export*/" "export" replace "$file" "^/*export default*/" "export default" + replace "$file" '.mjs"*/' '.mjs"' replace "$file" "^/*import" "import" replace "$file" "^/*export" "export" - replace "$file" '.mjs"*/$' '.mjs"' + replace "$file" "// #" " #" + replace "$file" "/*this.#*/" "this.#" done