diff --git a/LogarithmPlotter/i18n/lp_de.ts b/LogarithmPlotter/i18n/lp_de.ts
index 1cc2c48..1b73dd9 100644
--- a/LogarithmPlotter/i18n/lp_de.ts
+++ b/LogarithmPlotter/i18n/lp_de.ts
@@ -821,6 +821,62 @@ Diese Einstellungen können jederzeit über das Menü "Einstellungen"
Verbessern
+
+ bodemagnitude
+
+
+ Bode Magnitude
+ Bode-Magnitude
+
+
+
+ Bode Magnitudes
+ Bode-Magnituden
+
+
+
+
+ low-pass
+ Tiefpass
+
+
+
+
+ high-pass
+ Hochpass
+
+
+
+ bodemagnitudesum
+
+
+
+ Bode Magnitudes Sum
+ Bode-Magnituden Summe
+
+
+
+ bodephase
+
+
+ Bode Phase
+ Bode-Phase
+
+
+
+ Bode Phases
+ Bode-Phasen
+
+
+
+ bodephasesum
+
+
+
+ Bode Phases Sum
+ Bode-Phasen Summe
+
+changelog
@@ -856,7 +912,7 @@ Diese Einstellungen können jederzeit über das Menü "Einstellungen"
Die folgenden Parameter werden verwendet, wenn der Definitionsbereich eine nicht kontinuierliche Menge ist. (Beispiel: ℕ, ℤ, Mengen wie {0;3}...)
-
+ Note: Specify the probability for each value.Hinweis: Geben Sie die Wahrscheinlichkeit für jeden Wert an.
@@ -887,7 +943,7 @@ Diese Einstellungen können jederzeit über das Menü "Einstellungen"
create
-
+ New %1 %2 created.Neu %1 %2 erstellt.
@@ -896,11 +952,24 @@ Diese Einstellungen können jederzeit über das Menü "Einstellungen"
delete
-
+ %1 %2 deleted.%1 %2 gelöscht.
+
+ distribution
+
+
+ Repartition
+ Verteilungsfunktion
+
+
+
+ Repartition functions
+ Verteilungsfunktionen
+
+editproperty
@@ -909,7 +978,7 @@ Diese Einstellungen können jederzeit über das Menü "Einstellungen"
%1 von %2 %3 wurde von "%4" auf "%5" geändert.
-
+ %1 of %2 changed from %3 to %4.%1 von %2 wurde von %3 auf %4 geändert.
@@ -1011,49 +1080,41 @@ Diese Einstellungen können jederzeit über das Menü "Einstellungen"
- First argument to map is not a function.Der erste Parameter von map ist keine Formel.
- Second argument to map is not an array.Der zweite Parameter von map ist kein Array.
- First argument to fold is not a function.Der erste Parameter für fold ist keine Formel.
- Second argument to fold is not an array.Der zweite Parameter für fold ist kein Array.
- First argument to filter is not a function.Der erste Parameter für filter ist keine Formel.
- Second argument to filter is not an array.Der zweite Parameter von filter ist kein Array.
- Second argument to indexOf is not a string or array.Der zweite Parameter von indexOf ist kein String oder Array.
- Second argument to join is not an array.Der zweite Parameter von join ist kein Array.
@@ -1171,26 +1232,20 @@ Ausdruck analysiert: %3
gainbode
- Bode Magnitude
- Bode-Magnitude
+ Bode-Magnitude
- Bode Magnitudes
- Bode-Magnituden
+ Bode-Magnituden
-
- low-pass
- Tiefpass
+ Tiefpass
-
- high-pass
- Hochpass
+ Hochpass
@@ -1476,14 +1531,12 @@ Bitte vergewissern Sie sich, dass Ihre LaTeX-Installation korrekt ist, und melde
phasebode
- Bode Phase
- Bode-Phase
+ Bode-Phase
- Bode Phases
- Bode-Phasen
+ Bode-Phasen
@@ -1530,14 +1583,14 @@ Bitte vergewissern Sie sich, dass Ihre LaTeX-Installation korrekt ist, und melde
Reichweite
+
+
+
+
+
-
-
-
-
- labelPosition
@@ -1549,13 +1602,13 @@ Bitte vergewissern Sie sich, dass Ihre LaTeX-Installation korrekt ist, und melde
Anzeigemodus
+
+
+
+
+
-
-
-
-
- labelXX-Position des Etiketts
@@ -1572,33 +1625,33 @@ Bitte vergewissern Sie sich, dass Ihre LaTeX-Installation korrekt ist, und melde
Gestrichelte Linien anzeigen
-
-
+
+ om_0ω₀
-
+ passPass
-
+ gainGrößenordnung
-
+ omGraduationTeilung auf ω zeigen
-
+ phasePhase
-
+ unitEinheit
@@ -1621,7 +1674,7 @@ Bitte vergewissern Sie sich, dass Ihre LaTeX-Installation korrekt ist, und melde
Punkt-Stil
-
+ probabilitiesWahrscheinlichkeiten
@@ -1678,14 +1731,12 @@ Bitte vergewissern Sie sich, dass Ihre LaTeX-Installation korrekt ist, und melde
repartition
- Repartition
- Verteilungsfunktion
+ Verteilungsfunktion
- Repartition functions
- Verteilungsfunktionen
+ Verteilungsfunktionen
@@ -1722,19 +1773,15 @@ Bitte vergewissern Sie sich, dass Ihre LaTeX-Installation korrekt ist, und melde
sommegainsbode
-
- Bode Magnitudes Sum
- Bode-Magnituden Summe
+ Bode-Magnituden Summesommephasesbode
-
- Bode Phases Sum
- Bode-Phasen Summe
+ Bode-Phasen Summe
diff --git a/LogarithmPlotter/i18n/lp_en.ts b/LogarithmPlotter/i18n/lp_en.ts
index d161a6c..fe1d018 100644
--- a/LogarithmPlotter/i18n/lp_en.ts
+++ b/LogarithmPlotter/i18n/lp_en.ts
@@ -821,6 +821,62 @@ These settings can be changed at any time from the "Settings" menu.Improve
+
+ bodemagnitude
+
+
+ Bode Magnitude
+ Bode Magnitude
+
+
+
+ Bode Magnitudes
+ Bode Magnitudes
+
+
+
+
+ low-pass
+ low-pass
+
+
+
+
+ high-pass
+ high-pass
+
+
+
+ bodemagnitudesum
+
+
+
+ Bode Magnitudes Sum
+ Bode Magnitudes Sum
+
+
+
+ bodephase
+
+
+ Bode Phase
+ Bode Phase
+
+
+
+ Bode Phases
+ Bode Phases
+
+
+
+ bodephasesum
+
+
+
+ Bode Phases Sum
+ Bode Phases Sum
+
+changelog
@@ -856,7 +912,7 @@ These settings can be changed at any time from the "Settings" menu.The following parameters are used when the domain is a non-continuous set. (Ex: ℕ, ℤ, sets like {0;3}…)
-
+ Note: Specify the probability for each value.Note: Specify the probability for each value.
@@ -887,7 +943,7 @@ These settings can be changed at any time from the "Settings" menu.create
-
+ New %1 %2 created.New %1 %2 created.
@@ -896,11 +952,24 @@ These settings can be changed at any time from the "Settings" menu.delete
-
+ %1 %2 deleted.%1 %2 deleted.
+
+ distribution
+
+
+ Repartition
+ Distribution
+
+
+
+ Repartition functions
+ Distribution functions
+
+editproperty
@@ -909,7 +978,7 @@ These settings can be changed at any time from the "Settings" menu.%1 of %2 %3 changed from "%4" to "%5".
-
+ %1 of %2 changed from %3 to %4.%1 of %2 changed from %3 to %4.
@@ -1011,49 +1080,41 @@ These settings can be changed at any time from the "Settings" menu.
- First argument to map is not a function.First argument to map is not a function.
- Second argument to map is not an array.Second argument to map is not an array.
- First argument to fold is not a function.First argument to fold is not a function.
- Second argument to fold is not an array.Second argument to fold is not an array.
- First argument to filter is not a function.First argument to filter is not a function.
- Second argument to filter is not an array.Second argument to filter is not an array.
- Second argument to indexOf is not a string or array.Second argument to indexOf is not a string or array.
- Second argument to join is not an array.Second argument to join is not an array.
@@ -1171,26 +1232,20 @@ Evaluated expression: %3
gainbode
- Bode Magnitude
- Bode Magnitude
+ Bode Magnitude
- Bode Magnitudes
- Bode Magnitudes
+ Bode Magnitudes
-
- low-pass
- low-pass
+ low-pass
-
- high-pass
- high-pass
+ high-pass
@@ -1476,14 +1531,12 @@ Please make sure your LaTeX installation is correct and report a bug if so.
phasebode
- Bode Phase
- Bode Phase
+ Bode Phase
- Bode Phases
- Bode Phases
+ Bode Phases
@@ -1530,14 +1583,14 @@ Please make sure your LaTeX installation is correct and report a bug if so.Range
+
+
+
+
+
-
-
-
-
- labelPosition
@@ -1549,13 +1602,13 @@ Please make sure your LaTeX installation is correct and report a bug if so.Display mode
+
+
+
+
+
-
-
-
-
- labelXLabel's X position
@@ -1572,33 +1625,33 @@ Please make sure your LaTeX installation is correct and report a bug if so.Show dashed lines
-
-
+
+ om_0ω₀
-
+ passPass
-
+ gainMagnitude gain
-
+ omGraduationShow graduation on ω₀
-
+ phasePhase
-
+ unitUnit to use
@@ -1621,7 +1674,7 @@ Please make sure your LaTeX installation is correct and report a bug if so.Point style
-
+ probabilitiesProbabilities list
@@ -1678,14 +1731,12 @@ Please make sure your LaTeX installation is correct and report a bug if so.
repartition
- Repartition
- Distribution
+ Distribution
- Repartition functions
- Distribution functions
+ Distribution functions
@@ -1722,19 +1773,15 @@ Please make sure your LaTeX installation is correct and report a bug if so.
sommegainsbode
-
- Bode Magnitudes Sum
- Bode Magnitudes Sum
+ Bode Magnitudes Sumsommephasesbode
-
- Bode Phases Sum
- Bode Phases Sum
+ Bode Phases Sum
diff --git a/LogarithmPlotter/i18n/lp_es.ts b/LogarithmPlotter/i18n/lp_es.ts
index fbcfc72..2df288e 100644
--- a/LogarithmPlotter/i18n/lp_es.ts
+++ b/LogarithmPlotter/i18n/lp_es.ts
@@ -821,6 +821,62 @@ Estos ajustes se pueden cambiar en cualquier momento desde el menú “Ajustes
Mejorar
+
+ bodemagnitude
+
+
+ Bode Magnitude
+ Magnitud de Bode
+
+
+
+ Bode Magnitudes
+ Magnitudes de Bode
+
+
+
+
+ low-pass
+ Filtro paso bajo
+
+
+
+
+ high-pass
+ Filtro paso alto
+
+
+
+ bodemagnitudesum
+
+
+
+ Bode Magnitudes Sum
+ Suma de las Magnitudes de Bode
+
+
+
+ bodephase
+
+
+ Bode Phase
+ Fase de Bode
+
+
+
+ Bode Phases
+ Fases de Bode
+
+
+
+ bodephasesum
+
+
+
+ Bode Phases Sum
+ Suma de las fases de Bode
+
+changelog
@@ -856,7 +912,7 @@ Estos ajustes se pueden cambiar en cualquier momento desde el menú “Ajustes
Los siguientes parámetros se utilizan cuando el dominio es un conjunto no continuo. (Ej: ℕ, ℤ, conjuntos como {0;3}...)
-
+ Note: Specify the probability for each value.Nota: Especifique la probabilidad para cada valor.
@@ -887,7 +943,7 @@ Estos ajustes se pueden cambiar en cualquier momento desde el menú “Ajustes
create
-
+ New %1 %2 created.Se ha creado un nuevo %1 %2.
@@ -896,11 +952,24 @@ Estos ajustes se pueden cambiar en cualquier momento desde el menú “Ajustes
delete
-
+ %1 %2 deleted.%1 %2 borrados.
+
+ distribution
+
+
+ Repartition
+ Distribución
+
+
+
+ Repartition functions
+ Funciones de distribución
+
+editproperty
@@ -909,7 +978,7 @@ Estos ajustes se pueden cambiar en cualquier momento desde el menú “Ajustes
%1 de %2 %3 cambió de "%4" a "%5".
-
+ %1 of %2 changed from %3 to %4.%1 de %2 ha cambiado de %3 a %4.
@@ -1003,49 +1072,41 @@ Estos ajustes se pueden cambiar en cualquier momento desde el menú “Ajustes
- First argument to map is not a function.El primer argumento de map no es una función.
- Second argument to map is not an array.El segundo argumento de map no es una matriz.
- First argument to fold is not a function.El primer argumento de fold no es una función.
- Second argument to fold is not an array.El segundo argumento de fold no es una matriz.
- First argument to filter is not a function.El primer argumento del filtro no es una función.
- Second argument to filter is not an array.El segundo argumento del filtro no es una matriz.
- Second argument to indexOf is not a string or array.El segundo argumento de indexOf no es una cadena ni una matriz.
- Second argument to join is not an array.El segundo argumento para unirse no es una matriz.
@@ -1171,26 +1232,20 @@ Expresión evaluada: %3
gainbode
-
- high-pass
- Filtro paso alto
+ Filtro paso alto
-
- low-pass
- Filtro paso bajo
+ Filtro paso bajo
- Bode Magnitude
- Magnitud de Bode
+ Magnitud de Bode
- Bode Magnitudes
- Magnitudes de Bode
+ Magnitudes de Bode
@@ -1476,14 +1531,12 @@ Por favor, asegúrese de que su instalación de LaTeX es correcta e informe de u
phasebode
- Bode Phase
- Fase de Bode
+ Fase de Bode
- Bode Phases
- Fases de Bode
+ Fases de Bode
@@ -1525,8 +1578,8 @@ Por favor, asegúrese de que su instalación de LaTeX es correcta e informe de u
Dominio
-
-
+
+ om_0ω₀
@@ -1541,13 +1594,13 @@ Por favor, asegúrese de que su instalación de LaTeX es correcta e informe de u
Redondeo
+
+
+
+
+
-
-
-
-
- labelXPosición de la etiqueta en X
@@ -1569,14 +1622,14 @@ Por favor, asegúrese de que su instalación de LaTeX es correcta e informe de u
Rango
+
+
+
+
+
-
-
-
-
- labelPosition
@@ -1588,17 +1641,17 @@ Por favor, asegúrese de que su instalación de LaTeX es correcta e informe de u
Modo de visualización
-
+ passPasar
-
+ gainIncremento de magnitud
-
+ unitUnidad a usar
@@ -1609,12 +1662,12 @@ Por favor, asegúrese de que su instalación de LaTeX es correcta e informe de u
Y
-
+ omGraduationMostrar la graduación en ω₀
-
+ phaseFase
@@ -1636,7 +1689,7 @@ Por favor, asegúrese de que su instalación de LaTeX es correcta e informe de u
Contenido
-
+ probabilitiesLista de probabilidades
@@ -1678,14 +1731,12 @@ Por favor, asegúrese de que su instalación de LaTeX es correcta e informe de u
repartition
- Repartition
- Distribución
+ Distribución
- Repartition functions
- Funciones de distribución
+ Funciones de distribución
@@ -1722,19 +1773,15 @@ Por favor, asegúrese de que su instalación de LaTeX es correcta e informe de u
sommegainsbode
-
- Bode Magnitudes Sum
- Suma de las Magnitudes de Bode
+ Suma de las Magnitudes de Bodesommephasesbode
-
- Bode Phases Sum
- Suma de las fases de Bode
+ Suma de las fases de Bode
diff --git a/LogarithmPlotter/i18n/lp_fr.ts b/LogarithmPlotter/i18n/lp_fr.ts
index b3d5c75..35d38c4 100644
--- a/LogarithmPlotter/i18n/lp_fr.ts
+++ b/LogarithmPlotter/i18n/lp_fr.ts
@@ -823,6 +823,62 @@ Ces paramètres peuvent être modifiés à tout moment à partir du menu "P
Améliorer
+
+ bodemagnitude
+
+
+ Bode Magnitude
+ Gain de Bode
+
+
+
+ Bode Magnitudes
+ Gains de Bode
+
+
+
+
+ low-pass
+ passe-bas
+
+
+
+
+ high-pass
+ passe-haut
+
+
+
+ bodemagnitudesum
+
+
+
+ Bode Magnitudes Sum
+ Sommes des gains de Bode
+
+
+
+ bodephase
+
+
+ Bode Phase
+ Phase de Bode
+
+
+
+ Bode Phases
+ Phases de Bode
+
+
+
+ bodephasesum
+
+
+
+ Bode Phases Sum
+ Somme des phases de Bode
+
+changelog
@@ -858,7 +914,7 @@ Ces paramètres peuvent être modifiés à tout moment à partir du menu "P
Les paramètres suivants sont utilisés lorsque le domaine de définition est un ensemble non-continu. (Ex : ℕ, ℤ, des ensembles comme {0;3}…)
-
+ Note: Specify the probability for each value.Note : Spécifiez la probabilité pour chaque valeur.
@@ -890,7 +946,7 @@ Ces paramètres peuvent être modifiés à tout moment à partir du menu "P
create
-
+ New %1 %2 created.Nouvel objet %1 %2 créé.
@@ -899,11 +955,24 @@ Ces paramètres peuvent être modifiés à tout moment à partir du menu "P
delete
-
+ %1 %2 deleted.%1 %2 supprimé(e).
+
+ distribution
+
+
+ Repartition
+ Répartition
+
+
+
+ Repartition functions
+ Fonctions de répartition
+
+editproperty
@@ -912,7 +981,7 @@ Ces paramètres peuvent être modifiés à tout moment à partir du menu "P
%1 de %2 %3 modifiée de "%4" à "%5".
-
+ %1 of %2 changed from %3 to %4.%1 de %2 modifiée de %3 à %4.
@@ -1014,49 +1083,41 @@ Ces paramètres peuvent être modifiés à tout moment à partir du menu "P
- First argument to map is not a function.Le premier argument de map n'est pas une fonction.
- Second argument to map is not an array.Le deuxième argument de map n'est pas un tableau.
- First argument to fold is not a function.Le premier argument de fold n'est pas une fonction.
- Second argument to fold is not an array.Le deuxième argument de fold n'est pas un tableau.
- First argument to filter is not a function.Le premier argument de filter n'est pas une fonction.
- Second argument to filter is not an array.Le deuxième argument de filter n'est pas un tableau.
- Second argument to indexOf is not a string or array.Le deuxième argument de indexOf n'est ni chaîne de caractères ni un tableau.
- Second argument to join is not an array.Le deuxième argument de join n'est pas un tableau.
@@ -1174,26 +1235,20 @@ Formule analysée : %3
gainbode
- Bode Magnitude
- Gain de Bode
+ Gain de Bode
- Bode Magnitudes
- Gains de Bode
+ Gains de Bode
-
- low-pass
- passe-bas
+ passe-bas
-
- high-pass
- passe-haut
+ passe-haut
@@ -1479,14 +1534,12 @@ Vérifiez que votre installation de LaTeX est correcte et signalez un bogue si c
phasebode
- Bode Phase
- Phase de Bode
+ Phase de Bode
- Bode Phases
- Phases de Bode
+ Phases de Bode
@@ -1533,14 +1586,14 @@ Vérifiez que votre installation de LaTeX est correcte et signalez un bogue si c
Portée
+
+
+
+
+
-
-
-
-
- labelPosition
@@ -1552,13 +1605,13 @@ Vérifiez que votre installation de LaTeX est correcte et signalez un bogue si c
Mode d'affichage
+
+
+
+
+
-
-
-
-
- labelXPosition en X de l'étiquette
@@ -1575,33 +1628,33 @@ Vérifiez que votre installation de LaTeX est correcte et signalez un bogue si c
Afficher les pointillés
-
-
+
+ om_0ω₀
-
+ passPasse
-
+ gainGain
-
+ omGraduationAfficher la graduation sur ω₀
-
+ phasePhase
-
+ unitUnité de la phase
@@ -1624,7 +1677,7 @@ Vérifiez que votre installation de LaTeX est correcte et signalez un bogue si c
Style du point
-
+ probabilitiesListe de probabilités
@@ -1681,14 +1734,12 @@ Vérifiez que votre installation de LaTeX est correcte et signalez un bogue si c
repartition
- Repartition
- Répartition
+ Répartition
- Repartition functions
- Fonctions de répartition
+ Fonctions de répartition
@@ -1725,19 +1776,15 @@ Vérifiez que votre installation de LaTeX est correcte et signalez un bogue si c
sommegainsbode
-
- Bode Magnitudes Sum
- Sommes des gains de Bode
+ Sommes des gains de Bodesommephasesbode
-
- Bode Phases Sum
- Somme des phases de Bode
+ Somme des phases de Bode
diff --git a/LogarithmPlotter/i18n/lp_hu.ts b/LogarithmPlotter/i18n/lp_hu.ts
index 4b4e57f..c0b4924 100644
--- a/LogarithmPlotter/i18n/lp_hu.ts
+++ b/LogarithmPlotter/i18n/lp_hu.ts
@@ -821,6 +821,62 @@ Ezek a beállítások bármikor módosíthatók a „Beállítások” menüben.
Fejlesztés
+
+ bodemagnitude
+
+
+ Bode Magnitude
+ Bode-nagyságrend
+
+
+
+ Bode Magnitudes
+ Bode-nagyságrendek
+
+
+
+
+ low-pass
+ aluláteresztő
+
+
+
+
+ high-pass
+ felüláteresztő
+
+
+
+ bodemagnitudesum
+
+
+
+ Bode Magnitudes Sum
+ Bode-nagyságrendek összege
+
+
+
+ bodephase
+
+
+ Bode Phase
+ Bode-fázis
+
+
+
+ Bode Phases
+ Bode-fázisok
+
+
+
+ bodephasesum
+
+
+
+ Bode Phases Sum
+ Bode-fázisok összege
+
+changelog
@@ -856,7 +912,7 @@ Ezek a beállítások bármikor módosíthatók a „Beállítások” menüben.
A következő paraméterek használatosak, ha a tartomány nem folytonos halmaz. (Példák: ℕ, ℤ, olyan halmazok, mint a {0;3}…)
-
+ Note: Specify the probability for each value.Megjegyzés: Adja meg az egyes értékek valószínűségét.
@@ -887,7 +943,7 @@ Ezek a beállítások bármikor módosíthatók a „Beállítások” menüben.
create
-
+ New %1 %2 created.Új %1 %2 létrehozva.
@@ -896,11 +952,24 @@ Ezek a beállítások bármikor módosíthatók a „Beállítások” menüben.
delete
-
+ %1 %2 deleted.%1 %2 törölve.
+
+ distribution
+
+
+ Repartition
+ Elosztás
+
+
+
+ Repartition functions
+ Elosztási függvények
+
+editproperty
@@ -909,7 +978,7 @@ Ezek a beállítások bármikor módosíthatók a „Beállítások” menüben.
%1/%2 %3 megváltozott. Régi érték: %4, új érték: %5.
-
+ %1 of %2 changed from %3 to %4.%1/%2 megváltozott. Régi érték: %3, új érték: %4.
@@ -1011,49 +1080,41 @@ Ezek a beállítások bármikor módosíthatók a „Beállítások” menüben.
- First argument to map is not a function.Az első leképezési argumentum nem függvény.
- Second argument to map is not an array.A második leképezési argumentum nem tömb.
- First argument to fold is not a function.Az első behajtási argumentum nem függvény.
- Second argument to fold is not an array.A második behajtási argumentum nem tömb.
- First argument to filter is not a function.Az első szűrési argumentum nem függvény.
- Second argument to filter is not an array.A második szűrési argumentum nem tömb.
- Second argument to indexOf is not a string or array.Az indexOf második argumentuma nem karakterlánc vagy tömb.
- Second argument to join is not an array.A második csatlakozási argumentum nem tömb.
@@ -1171,26 +1232,20 @@ Kiértékelt kifejezés: %3
gainbode
- Bode Magnitude
- Bode-nagyságrend
+ Bode-nagyságrend
- Bode Magnitudes
- Bode-nagyságrendek
+ Bode-nagyságrendek
-
- low-pass
- aluláteresztő
+ aluláteresztő
-
- high-pass
- felüláteresztő
+ felüláteresztő
@@ -1472,14 +1527,12 @@ Kérjük, ellenőrizze, hogy a LaTeX telepítése helyes-e, és ha igen, jelents
phasebode
- Bode Phase
- Bode-fázis
+ Bode-fázis
- Bode Phases
- Bode-fázisok
+ Bode-fázisok
@@ -1526,14 +1579,14 @@ Kérjük, ellenőrizze, hogy a LaTeX telepítése helyes-e, és ha igen, jelents
Ordináta tartomány
+
+
+
+
+
-
-
-
-
- labelPosition
@@ -1545,13 +1598,13 @@ Kérjük, ellenőrizze, hogy a LaTeX telepítése helyes-e, és ha igen, jelents
Megjelenítési mód
+
+
+
+
+
-
-
-
-
- labelXCímke X helyzete
@@ -1568,33 +1621,33 @@ Kérjük, ellenőrizze, hogy a LaTeX telepítése helyes-e, és ha igen, jelents
Szaggatott vonalak megjelenítése
-
-
+
+ om_0ω₀
-
+ passÁteresztő
-
+ gainNagyságrend nyeresége
-
+ omGraduationω₀ érettségi megjelenítése
-
+ phaseFázis
-
+ unitEgység használata
@@ -1617,7 +1670,7 @@ Kérjük, ellenőrizze, hogy a LaTeX telepítése helyes-e, és ha igen, jelents
Pontstílus
-
+ probabilitiesValószínűségek listája
@@ -1674,14 +1727,12 @@ Kérjük, ellenőrizze, hogy a LaTeX telepítése helyes-e, és ha igen, jelents
repartition
- Repartition
- Elosztás
+ Elosztás
- Repartition functions
- Elosztási függvények
+ Elosztási függvények
@@ -1718,19 +1769,15 @@ Kérjük, ellenőrizze, hogy a LaTeX telepítése helyes-e, és ha igen, jelents
sommegainsbode
-
- Bode Magnitudes Sum
- Bode-nagyságrendek összege
+ Bode-nagyságrendek összegesommephasesbode
-
- Bode Phases Sum
- Bode-fázisok összege
+ Bode-fázisok összege
diff --git a/LogarithmPlotter/i18n/lp_nb_NO.ts b/LogarithmPlotter/i18n/lp_nb_NO.ts
index bfbe130..904af86 100644
--- a/LogarithmPlotter/i18n/lp_nb_NO.ts
+++ b/LogarithmPlotter/i18n/lp_nb_NO.ts
@@ -773,6 +773,62 @@ Disse innstillingene kan endres når som helst fra «Innstillinger»-menyen.
+
+ bodemagnitude
+
+
+ Bode Magnitude
+ Bode-magnitude
+
+
+
+ Bode Magnitudes
+ Bode-magnituder
+
+
+
+
+ low-pass
+ lavpass
+
+
+
+
+ high-pass
+ høypass
+
+
+
+ bodemagnitudesum
+
+
+
+ Bode Magnitudes Sum
+ Bode-magnitudesum
+
+
+
+ bodephase
+
+
+ Bode Phase
+ Bode-fase
+
+
+
+ Bode Phases
+ Bode-faser
+
+
+
+ bodephasesum
+
+
+
+ Bode Phases Sum
+ Bode-fasesum
+
+changelog
@@ -808,7 +864,7 @@ Disse innstillingene kan endres når som helst fra «Innstillinger»-menyen.
-
+ Note: Specify the probability for each value.
@@ -839,7 +895,7 @@ Disse innstillingene kan endres når som helst fra «Innstillinger»-menyen.create
-
+ New %1 %2 created.Ny %1 %2 opprettet.
@@ -848,11 +904,24 @@ Disse innstillingene kan endres når som helst fra «Innstillinger»-menyen.delete
-
+ %1 %2 deleted.%1 %2 slettet.
+
+ distribution
+
+
+ Repartition
+ Distribusjon
+
+
+
+ Repartition functions
+ Distribusjonsfunksjoner
+
+editproperty
@@ -861,7 +930,7 @@ Disse innstillingene kan endres når som helst fra «Innstillinger»-menyen.%1 av %2 %3 endret fra «%4» til «%5».
-
+ %1 of %2 changed from %3 to %4.
@@ -986,49 +1055,41 @@ Undoing last change.
- First argument to map is not a function.
- Second argument to map is not an array.
- First argument to fold is not a function.
- Second argument to fold is not an array.
- First argument to filter is not a function.
- Second argument to filter is not an array.
- Second argument to indexOf is not a string or array.
- Second argument to join is not an array.
@@ -1102,26 +1163,20 @@ Evaluated expression: %3
gainbode
- Bode Magnitude
- Bode-magnitude
+ Bode-magnitude
- Bode Magnitudes
- Bode-magnituder
+ Bode-magnituder
-
- low-pass
- lavpass
+ lavpass
-
- high-pass
- høypass
+ høypass
@@ -1390,14 +1445,12 @@ Please make sure your latex installation is correct and report a bug if so.
phasebode
- Bode Phase
- Bode-fase
+ Bode-fase
- Bode Phases
- Bode-faser
+ Bode-faser
@@ -1449,27 +1502,27 @@ Please make sure your latex installation is correct and report a bug if so.
+
+
+
+
+
-
-
-
-
- labelPosition
+
+
+
+
+
-
-
-
-
- labelX
@@ -1486,33 +1539,33 @@ Please make sure your latex installation is correct and report a bug if so.
-
-
+
+ om_0
-
+ pass
-
+ gain
-
+ omGraduation
-
+ phase
-
+ unit
@@ -1535,7 +1588,7 @@ Please make sure your latex installation is correct and report a bug if so.
-
+ probabilities
@@ -1588,14 +1641,12 @@ Please make sure your latex installation is correct and report a bug if so.
repartition
- Repartition
- Distribusjon
+ Distribusjon
- Repartition functions
- Distribusjonsfunksjoner
+ Distribusjonsfunksjoner
@@ -1632,19 +1683,15 @@ Please make sure your latex installation is correct and report a bug if so.
sommegainsbode
-
- Bode Magnitudes Sum
- Bode-magnitudesum
+ Bode-magnitudesumsommephasesbode
-
- Bode Phases Sum
- Bode-fasesum
+ Bode-fasesum
diff --git a/LogarithmPlotter/i18n/lp_template.ts b/LogarithmPlotter/i18n/lp_template.ts
index e9b6d6e..511c6c2 100644
--- a/LogarithmPlotter/i18n/lp_template.ts
+++ b/LogarithmPlotter/i18n/lp_template.ts
@@ -661,6 +661,62 @@
+
+ bodemagnitude
+
+
+ Bode Magnitude
+
+
+
+
+ Bode Magnitudes
+
+
+
+
+
+ low-pass
+
+
+
+
+
+ high-pass
+
+
+
+
+ bodemagnitudesum
+
+
+
+ Bode Magnitudes Sum
+
+
+
+
+ bodephase
+
+
+ Bode Phase
+
+
+
+
+ Bode Phases
+
+
+
+
+ bodephasesum
+
+
+
+ Bode Phases Sum
+
+
+changelog
@@ -696,7 +752,7 @@
-
+ Note: Specify the probability for each value.
@@ -727,7 +783,7 @@
create
-
+ New %1 %2 created.
@@ -736,11 +792,24 @@
delete
-
+ %1 %2 deleted.
+
+ distribution
+
+
+ Repartition
+
+
+
+
+ Repartition functions
+
+
+editproperty
@@ -749,7 +818,7 @@
-
+ %1 of %2 changed from %3 to %4.
@@ -874,49 +943,41 @@ Undoing last change.
- First argument to map is not a function.
- Second argument to map is not an array.
- First argument to fold is not a function.
- Second argument to fold is not an array.
- First argument to filter is not a function.
- Second argument to filter is not an array.
- Second argument to indexOf is not a string or array.
- Second argument to join is not an array.
@@ -987,31 +1048,6 @@ Evaluated expression: %3
-
- gainbode
-
-
- Bode Magnitude
-
-
-
-
- Bode Magnitudes
-
-
-
-
-
- low-pass
-
-
-
-
-
- high-pass
-
-
-general
@@ -1228,19 +1264,6 @@ Please make sure your latex installation is correct and report a bug if so.
-
- phasebode
-
-
- Bode Phase
-
-
-
-
- Bode Phases
-
-
-point
@@ -1290,27 +1313,27 @@ Please make sure your latex installation is correct and report a bug if so.
+
+
+
+
+
-
-
-
-
- labelPosition
+
+
+
+
+
-
-
-
-
- labelX
@@ -1327,33 +1350,33 @@ Please make sure your latex installation is correct and report a bug if so.
-
-
+
+ om_0
-
+ pass
-
+ gain
-
+ omGraduation
-
+ phase
-
+ unit
@@ -1376,7 +1399,7 @@ Please make sure your latex installation is correct and report a bug if so.
-
+ probabilities
@@ -1426,19 +1449,6 @@ Please make sure your latex installation is correct and report a bug if so.
-
- repartition
-
-
- Repartition
-
-
-
-
- Repartition functions
-
-
-sequence
@@ -1470,24 +1480,6 @@ Please make sure your latex installation is correct and report a bug if so.
-
- sommegainsbode
-
-
-
- Bode Magnitudes Sum
-
-
-
-
- sommephasesbode
-
-
-
- Bode Phases Sum
-
-
-text
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/Preferences.qml b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/Preferences.qml
index 7d801ca..44b1c8f 100644
--- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/Preferences.qml
+++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/Popup/Preferences.qml
@@ -46,7 +46,7 @@ Popup {
CheckBox {
height: 20
- text: setting.displayName
+ text: setting.name
checked: setting.value()
onClicked: setting.set(this.checked)
}
@@ -58,7 +58,7 @@ Popup {
// Setting when selecting data from an enum, or an object of a certain type.
Setting.ComboBoxSetting {
height: 30
- label: setting.displayName
+ label: setting.name
icon: `settings/${setting.icon}.svg`
currentIndex: setting.value()
model: setting.values
@@ -71,7 +71,7 @@ Popup {
Setting.ComboBoxSetting {
height: 30
- label: setting.displayName
+ label: setting.name
icon: `settings/${setting.icon}.svg`
editable: true
currentIndex: find(setting.value())
@@ -94,7 +94,7 @@ Popup {
Setting.TextSetting {
height: 30
isDouble: true
- label: setting.displayName
+ label: setting.name
min: setting.min()
icon: `settings/${setting.icon}.svg`
value: setting.value()
@@ -114,12 +114,12 @@ Popup {
Setting.ExpressionEditor {
height: 30
- label: setting.displayName
+ label: setting.name
icon: `settings/${setting.icon}.svg`
defValue: Utils.simplifyExpression(setting.value())
variables: setting.variables
allowGraphObjects: false
- property string propertyName: setting.displayName
+ property string propertyName: setting.name
onChanged: function(newExpr) {
try {
setting.set(newExpr)
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/color.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/color.mjs
index c8bb577..12a8793 100644
--- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/color.mjs
+++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/color.mjs
@@ -37,7 +37,7 @@ export default class ColorChanged extends EditedProperty {
color(darkVer=false){return darkVer ? 'purple' : 'plum'}
getReadableString() {
- return qsTr("%1 %2's color changed from %3 to %4.")
+ return qsTranslate("color", "%1 %2's color changed from %3 to %4.")
.arg(Objects.types[this.targetType].displayType()).arg(this.targetName)
.arg(this.previousValue).arg(this.newValue)
}
@@ -47,7 +47,7 @@ export default class ColorChanged extends EditedProperty {
}
getHTMLString() {
- return qsTr("%1 %2's color changed from %3 to %4.")
+ return qsTranslate("color", "%1 %2's color changed from %3 to %4.")
.arg(Objects.types[this.targetType].displayType())
.arg(' ' + this.targetName + " ")
.arg(this.formatColor(this.previousValue)).arg(this.formatColor(this.newValue))
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/create.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/create.mjs
index e474133..b2c7f2d 100644
--- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/create.mjs
+++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/create.mjs
@@ -47,11 +47,13 @@ export default class CreateNewObject extends Action {
}
getReadableString() {
- return qsTr("New %1 %2 created.").arg(Objects.types[this.targetType].displayType()).arg(this.targetName)
+ return qsTranslate("create", "New %1 %2 created.")
+ .arg(Objects.types[this.targetType].displayType())
+ .arg(this.targetName)
}
getHTMLString() {
- return qsTr("New %1 %2 created.")
+ return qsTranslate("create", "New %1 %2 created.")
.arg(Objects.types[this.targetType].displayType())
.arg('' + this.targetName + "")
}
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/delete.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/delete.mjs
index ea1deb1..7fa855d 100644
--- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/delete.mjs
+++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/delete.mjs
@@ -39,11 +39,13 @@ export default class DeleteObject extends CreateNewObject {
}
getReadableString() {
- return qsTr("%1 %2 deleted.").arg(Objects.types[this.targetType].displayType()).arg(this.targetName)
+ return qsTranslate("delete", "%1 %2 deleted.")
+ .arg(Objects.types[this.targetType].displayType())
+ .arg(this.targetName)
}
getHTMLString() {
- return qsTr("%1 %2 deleted.")
+ return qsTranslate("delete", "%1 %2 deleted.")
.arg(Objects.types[this.targetType].displayType())
.arg('' + this.targetName + "")
}
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/editproperty.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/editproperty.mjs
index 3c6bcda..1280e54 100644
--- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/editproperty.mjs
+++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/editproperty.mjs
@@ -128,15 +128,19 @@ export default class EditedProperty extends Action {
}
getReadableString() {
- return qsTr('%1 of %2 %3 changed from "%4" to "%5".')
+ return qsTranslate("editproperty", '%1 of %2 %3 changed from "%4" to "%5".')
.arg(this.targetPropertyReadable)
.arg(Objects.types[this.targetType].displayType())
.arg(this.targetName).arg(this.prevString).arg(this.nextString)
}
-
+
+ /**
+ *
+ * @return {Promise|string}
+ */
getHTMLString() {
return new Promise(resolve => {
- const translation = qsTr('%1 of %2 changed from %3 to %4.')
+ const translation = qsTranslate("editproperty", '%1 of %2 changed from %3 to %4.')
.arg(this.targetPropertyReadable)
.arg(' ' + this.targetName + ' ')
// Check if we need to wait for LaTeX HTML to be rendered.
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/name.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/name.mjs
index 7698adf..13417da 100644
--- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/name.mjs
+++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/name.mjs
@@ -45,13 +45,13 @@ export default class NameChanged extends EditedProperty {
}
getReadableString() {
- return qsTr('%1 %2 renamed to %3.')
+ return qsTranslate("name", '%1 %2 renamed to %3.')
.arg(Objects.types[this.targetType].displayType())
.arg(this.targetName).arg(this.newValue)
}
getHTMLString() {
- return qsTr('%1 %2 renamed to %3.')
+ return qsTranslate("name", '%1 %2 renamed to %3.')
.arg(Objects.types[this.targetType].displayType())
.arg('' + this.targetName + "").arg(''+this.newValue+'')
}
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/position.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/position.mjs
index a376e2f..b071cc7 100644
--- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/position.mjs
+++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/position.mjs
@@ -84,14 +84,14 @@ export default class EditedPosition extends Action {
}
getReadableString() {
- return qsTr('Position of %1 %2 set from "%3" to "%4".')
+ return qsTranslate("position", 'Position of %1 %2 set from "%3" to "%4".')
.arg(Objects.types[this.targetType].displayType())
.arg(this.targetName).arg(this.prevString).arg(this.nextString)
}
getHTMLString() {
return new Promise(resolve => {
- const translation = qsTr('Position of %1 set from %2 to %3.')
+ const translation = qsTranslate("position", 'Position of %1 set from %2 to %3.')
.arg(' ' + this.targetName + ' ')
// Check if we need to wait for LaTeX HTML to be rendered.
if(this.prevHTML !== undefined && this.nextHTML !== undefined)
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/visibility.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/visibility.mjs
index d38b33f..ebcb4fa 100644
--- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/visibility.mjs
+++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/history/visibility.mjs
@@ -41,13 +41,13 @@ export default class EditedVisibility extends EditedProperty {
}
getReadableString() {
- return (this.newValue ? qsTr('%1 %2 shown.') : qsTr('%1 %2 hidden.'))
+ return (this.newValue ? qsTranslate('visibility', '%1 %2 shown.') : qsTranslate('visibility', '%1 %2 hidden.'))
.arg(Objects.types[this.targetType].displayType())
.arg(this.targetName)
}
getHTMLString() {
- return (this.newValue ? qsTr('%1 %2 shown.') : qsTr('%1 %2 hidden.'))
+ return (this.newValue ? qsTranslate('visibility', '%1 %2 shown.') : qsTranslate('visibility', '%1 %2 hidden.'))
.arg(Objects.types[this.targetType].displayType())
.arg('' + this.targetName + "")
}
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/autoload.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/autoload.mjs
index dc84bb0..cf0df63 100644
--- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/autoload.mjs
+++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/autoload.mjs
@@ -21,13 +21,13 @@ import { DrawableObject } from "common.mjs"
import Point from "point.mjs"
import Text from "text.mjs"
import Function from "function.mjs"
-import GainBode from "gainbode.mjs"
-import PhaseBode from "phasebode.mjs"
-import SommeGainsBode from "sommegainsbode.mjs"
-import SommePhasesBode from "sommephasesbode.mjs"
+import BodeMagnitude from "bodemagnitude.mjs"
+import BodePhase from "bodephase.mjs"
+import BodeMagnitudeSum from "bodemagnitudesum.mjs"
+import BodePhaseSum from "bodephasesum.mjs"
import XCursor from "xcursor.mjs"
import Sequence from "sequence.mjs"
-import RepartitionFunction from "repartition.mjs"
+import DistributionFunction from "distribution.mjs"
/**
* Registers the object obj in the object list.
@@ -47,11 +47,11 @@ if(Object.keys(Modules.Objects.types).length === 0) {
registerObject(Point)
registerObject(Text)
registerObject(Function)
- registerObject(GainBode)
- registerObject(PhaseBode)
- registerObject(SommeGainsBode)
- registerObject(SommePhasesBode)
+ registerObject(BodeMagnitude)
+ registerObject(BodePhase)
+ registerObject(BodeMagnitudeSum)
+ registerObject(BodePhaseSum)
registerObject(XCursor)
registerObject(Sequence)
- registerObject(RepartitionFunction)
+ registerObject(DistributionFunction)
}
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/gainbode.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/bodemagnitude.mjs
similarity index 92%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/gainbode.mjs
rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/bodemagnitude.mjs
index f86d747..c01bcae 100644
--- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/gainbode.mjs
+++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/bodemagnitude.mjs
@@ -28,10 +28,10 @@ import { API as HistoryAPI } from "../history/common.mjs"
import { CreateNewObject } from "../historylib.mjs"
-export default class GainBode extends ExecutableObject {
+export default class BodeMagnitude extends ExecutableObject {
static type(){return 'Gain Bode'}
- static displayType(){return qsTr('Bode Magnitude')}
- static displayTypeMultiple(){return qsTr('Bode Magnitudes')}
+ static displayType(){return qsTranslate("bodemagnitude", 'Bode Magnitude')}
+ static displayTypeMultiple(){return qsTranslate("bodemagnitude", 'Bode Magnitudes')}
static properties() {return {
[QT_TRANSLATE_NOOP('prop','om_0')]: new P.ObjectType('Point'),
[QT_TRANSLATE_NOOP('prop','pass')]: P.Enum.BodePass,
@@ -69,12 +69,12 @@ export default class GainBode extends ExecutableObject {
}
getReadableString() {
- let pass = this.pass === "low" ? qsTr("low-pass") : qsTr("high-pass");
+ let pass = this.pass === "low" ? qsTranslate("bodemagnitude", "low-pass") : qsTranslate("bodemagnitude", "high-pass");
return `${this.name}: ${pass}; ${this.om_0.name} = ${this.om_0.x}\n ${' '.repeat(this.name.length)}${this.gain.toString(true)} dB/dec`
}
getLatexString() {
- let pass = this.pass === "low" ? qsTr("low-pass") : qsTr("high-pass");
+ let pass = this.pass === "low" ? qsTranslate("bodemagnitude", "low-pass") : qsTranslate("bodemagnitude", "high-pass");
return `\\mathrm{${Latex.variable(this.name)}:}\\begin{array}{l}
\\textsf{${pass}};${Latex.variable(this.om_0.name)} = ${this.om_0.x.latexMarkup} \\\\
${this.gain.latexMarkup}\\textsf{ dB/dec}
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/sommegainsbode.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/bodemagnitudesum.mjs
similarity index 94%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/sommegainsbode.mjs
rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/bodemagnitudesum.mjs
index 9226eee..82bf6b6 100644
--- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/sommegainsbode.mjs
+++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/bodemagnitudesum.mjs
@@ -25,10 +25,10 @@ import { ExecutableObject } from "common.mjs"
import Function from "function.mjs"
-export default class SommeGainsBode extends ExecutableObject {
+export default class BodeMagnitudeSum extends ExecutableObject {
static type(){return 'Somme gains Bode'}
- static displayType(){return qsTr('Bode Magnitudes Sum')}
- static displayTypeMultiple(){return qsTr('Bode Magnitudes Sum')}
+ static displayType(){return qsTranslate("bodemagnitudesum", 'Bode Magnitudes Sum')}
+ static displayTypeMultiple(){return qsTranslate("bodemagnitudesum", 'Bode Magnitudes Sum')}
static createable() {return false}
static properties() {return {
[QT_TRANSLATE_NOOP('prop','labelPosition')]: P.Enum.Position,
@@ -92,7 +92,7 @@ export default class SommeGainsBode extends ExecutableObject {
magnitudes.push([Number.MAX_VALUE, 0, true]) // Draw the ending section
// Collect data from current magnitude (or gain in French) objects.
let baseY = 0
- for(/** @type {GainBode} */ let magnitudeObj of magnitudeObjects) { // Sorting by their om_0 position.
+ for(/** @type {Bodemagnitude} */ let magnitudeObj of magnitudeObjects) { // Sorting by their om_0 position.
const om0x = magnitudeObj.om_0.x.execute()
magnitudes.push([om0x, magnitudeObj.gain.execute(), magnitudeObj.pass === 'high'])
baseY += magnitudeObj.execute(MIN_DRAW)
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/phasebode.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/bodephase.mjs
similarity index 95%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/phasebode.mjs
rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/bodephase.mjs
index 09895d9..23119ef 100644
--- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/phasebode.mjs
+++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/bodephase.mjs
@@ -26,10 +26,10 @@ import Latex from "../math/latex.mjs"
import { ExecutableObject } from "common.mjs"
-export default class PhaseBode extends ExecutableObject {
+export default class BodePhase extends ExecutableObject {
static type(){return 'Phase Bode'}
- static displayType(){return qsTr('Bode Phase')}
- static displayTypeMultiple(){return qsTr('Bode Phases')}
+ static displayType(){return qsTranslate("bodephase", 'Bode Phase')}
+ static displayTypeMultiple(){return qsTranslate("bodephase", 'Bode Phases')}
static properties() {return {
[QT_TRANSLATE_NOOP('prop','om_0')]: new P.ObjectType('Point'),
[QT_TRANSLATE_NOOP('prop','phase')]: new P.Expression(),
@@ -41,7 +41,7 @@ export default class PhaseBode extends ExecutableObject {
constructor(name = null, visible = true, color = null, labelContent = 'name + value',
om_0 = '', phase = 90, unit = '°', labelPosition = 'above', labelX = 1) {
if(name == null) name = Objects.getNewName('φ')
- if(name === 'φ') name = 'φ₀' // φ is reserved for sum of BODE phases (Somme phases Bode).
+ if(name === 'φ') name = 'φ₀' // φ is reserved for sum of Bode phases.
super(name, visible, color, labelContent)
if(typeof phase == 'number' || typeof phase == 'string') phase = new Expression(phase.toString())
this.phase = phase
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/sommephasesbode.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/bodephasesum.mjs
similarity index 94%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/sommephasesbode.mjs
rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/bodephasesum.mjs
index 3bb6a3c..1f1a0fa 100644
--- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/sommephasesbode.mjs
+++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/bodephasesum.mjs
@@ -23,10 +23,10 @@ import Latex from "../math/latex.mjs"
import { ExecutableObject } from "common.mjs"
-export default class SommePhasesBode extends ExecutableObject {
+export default class BodePhaseSum extends ExecutableObject {
static type(){return 'Somme phases Bode'}
- static displayType(){return qsTr('Bode Phases Sum')}
- static displayTypeMultiple(){return qsTr('Bode Phases Sum')}
+ static displayType(){return qsTranslate("bodephasesum", 'Bode Phases Sum')}
+ static displayTypeMultiple(){return qsTranslate("bodephasesum", 'Bode Phases Sum')}
static createable() {return false}
static properties() {return {
[QT_TRANSLATE_NOOP('prop','labelPosition')]: P.Enum.Position,
@@ -88,7 +88,7 @@ export default class SommePhasesBode extends ExecutableObject {
Objects.deleteObject(this.name)
} else {
console.log('Recalculating cache phase')
- for(/** @type {PhaseBode} */ let obj of phaseObjects) {
+ for(/** @type {Bodephase} */ let obj of phaseObjects) {
this.om0xList.push(obj.om_0.x.execute())
if(!phasesDict.has(obj.om_0.x.execute())) {
phasesDict.set(obj.om_0.x.execute(), obj.phase.execute())
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/common.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/common.mjs
index 58a2d8d..b27cbf3 100644
--- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/common.mjs
+++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/common.mjs
@@ -98,7 +98,7 @@ export class DrawableObject {
* @param {string} name - Name of the object
* @param {boolean} visible - true if the object is visible, false otherwise.
* @param {color|string} color - Color of the object (can be string or QColor)
- * @param {Enum} labelContent - One of 'null', 'name' or 'name + value' describing the content of the label.
+ * @param {'null'|'name'|'name + value'} labelContent - One of 'null', 'name' or 'name + value' describing the content of the label.
* @constructor
*/
constructor(name, visible = true, color = null, labelContent = 'name + value') {
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/repartition.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/distribution.mjs
similarity index 96%
rename from LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/repartition.mjs
rename to LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/distribution.mjs
index aeaf6e1..e0fe698 100644
--- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/repartition.mjs
+++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/distribution.mjs
@@ -23,10 +23,10 @@ import Latex from "../math/latex.mjs"
import { ExecutableObject } from "common.mjs"
-export default class RepartitionFunction extends ExecutableObject {
+export default class DistributionFunction extends ExecutableObject {
static type(){return 'Repartition'}
- static displayType(){return qsTr('Repartition')}
- static displayTypeMultiple(){return qsTr('Repartition functions')}
+ static displayType(){return qsTranslate("distribution", 'Repartition')}
+ static displayTypeMultiple(){return qsTranslate("distribution", 'Repartition functions')}
static properties() {return {
'comment1': QT_TRANSLATE_NOOP(
'comment',
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/function.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/function.mjs
index 2448d50..eb3f081 100644
--- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/function.mjs
+++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/function.mjs
@@ -26,8 +26,8 @@ import Latex from "../math/latex.mjs"
export default class Function extends ExecutableObject {
static type(){return 'Function'}
- static displayType(){return qsTr('Function')}
- static displayTypeMultiple(){return qsTr('Functions')}
+ static displayType(){return qsTranslate("function", 'Function')}
+ static displayTypeMultiple(){return qsTranslate("function", 'Functions')}
static properties() {return {
[QT_TRANSLATE_NOOP('prop','expression')]: new P.Expression('x'),
[QT_TRANSLATE_NOOP('prop','definitionDomain')]: 'Domain',
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/point.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/point.mjs
index 66a493c..503026e 100644
--- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/point.mjs
+++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/point.mjs
@@ -26,8 +26,8 @@ import { DrawableObject } from "common.mjs"
export default class Point extends DrawableObject {
static type(){return 'Point'}
- static displayType(){return qsTr('Point')}
- static displayTypeMultiple(){return qsTr('Points')}
+ static displayType(){return qsTranslate("point", 'Point')}
+ static displayTypeMultiple(){return qsTranslate("point", 'Points')}
static properties() {return {
[QT_TRANSLATE_NOOP('prop','x')]: new P.Expression(),
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/sequence.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/sequence.mjs
index 11f1be7..b05a66e 100644
--- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/sequence.mjs
+++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/sequence.mjs
@@ -27,8 +27,8 @@ import Function from "function.mjs"
export default class Sequence extends ExecutableObject {
static type(){return 'Sequence'}
- static displayType(){return qsTr('Sequence')}
- static displayTypeMultiple(){return qsTr('Sequences')}
+ static displayType(){return qsTranslate("sequence", 'Sequence')}
+ static displayTypeMultiple(){return qsTranslate("sequence", 'Sequences')}
static properties() {return {
[QT_TRANSLATE_NOOP('prop','drawPoints')]: 'boolean',
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/text.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/text.mjs
index fab2818..3ad1e82 100644
--- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/text.mjs
+++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/text.mjs
@@ -26,8 +26,8 @@ import { DrawableObject } from "common.mjs"
export default class Text extends DrawableObject {
static type(){return 'Text'}
- static displayType(){return qsTr('Text')}
- static displayTypeMultiple(){return qsTr('Texts')}
+ static displayType(){return qsTranslate("text", 'Text')}
+ static displayTypeMultiple(){return qsTranslate("text", 'Texts')}
static properties() {return {
[QT_TRANSLATE_NOOP('prop','x')]: new P.Expression(),
[QT_TRANSLATE_NOOP('prop','y')]: new P.Expression(),
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/xcursor.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/xcursor.mjs
index 20732ba..f377a74 100644
--- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/xcursor.mjs
+++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/xcursor.mjs
@@ -26,8 +26,8 @@ import { DrawableObject } from "common.mjs"
export default class XCursor extends DrawableObject {
static type(){return 'X Cursor'}
- static displayType(){return qsTr('X Cursor')}
- static displayTypeMultiple(){return qsTr('X Cursors')}
+ static displayType(){return qsTranslate("xcursor", 'X Cursor')}
+ static displayTypeMultiple(){return qsTranslate("xcursor", 'X Cursors')}
static properties() {return {
[QT_TRANSLATE_NOOP('prop','x')]: new P.Expression(),
[QT_TRANSLATE_NOOP('prop','targetElement')]: new P.ObjectType('ExecutableObject', true),
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/parameters.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/parameters.mjs
index 72f9dee..f59c322 100644
--- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/parameters.mjs
+++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/parameters.mjs
@@ -88,7 +88,7 @@ export class Enum extends PropertyType {
this.type = 'Enum'
this.values = values
this.legacyValues = {}
- this.translatedValues = values.map(x => qsTr(x))
+ this.translatedValues = values.map(x => qsTranslate('parameters', x))
}
toString() {
@@ -246,14 +246,14 @@ export class Dictionary extends PropertyType {
// Common parameters for Enums
Enum.Position = new Enum(
- QT_TR_NOOP('above'),
- QT_TR_NOOP('below'),
- QT_TR_NOOP('left'),
- QT_TR_NOOP('right'),
- QT_TR_NOOP('above-left'),
- QT_TR_NOOP('above-right'),
- QT_TR_NOOP('below-left'),
- QT_TR_NOOP('below-right')
+ QT_TRANSLATE_NOOP('parameters', 'above'),
+ QT_TRANSLATE_NOOP('parameters', 'below'),
+ QT_TRANSLATE_NOOP('parameters', 'left'),
+ QT_TRANSLATE_NOOP('parameters', 'right'),
+ QT_TRANSLATE_NOOP('parameters', 'above-left'),
+ QT_TRANSLATE_NOOP('parameters', 'above-right'),
+ QT_TRANSLATE_NOOP('parameters', 'below-left'),
+ QT_TRANSLATE_NOOP('parameters', 'below-right')
)
Enum.Position.legacyValues = {
'top': 'above',
@@ -265,32 +265,32 @@ Enum.Position.legacyValues = {
}
Enum.Positioning = new Enum(
- QT_TR_NOOP('center'),
- QT_TR_NOOP('top'),
- QT_TR_NOOP('bottom'),
- QT_TR_NOOP('left'),
- QT_TR_NOOP('right'),
- QT_TR_NOOP('top-left'),
- QT_TR_NOOP('top-right'),
- QT_TR_NOOP('bottom-left'),
- QT_TR_NOOP('bottom-right')
+ QT_TRANSLATE_NOOP('parameters', 'center'),
+ QT_TRANSLATE_NOOP('parameters', 'top'),
+ QT_TRANSLATE_NOOP('parameters', 'bottom'),
+ QT_TRANSLATE_NOOP('parameters', 'left'),
+ QT_TRANSLATE_NOOP('parameters', 'right'),
+ QT_TRANSLATE_NOOP('parameters', 'top-left'),
+ QT_TRANSLATE_NOOP('parameters', 'top-right'),
+ QT_TRANSLATE_NOOP('parameters', 'bottom-left'),
+ QT_TRANSLATE_NOOP('parameters', 'bottom-right')
)
Enum.FunctionDisplayType = new Enum(
- QT_TR_NOOP('application'),
- QT_TR_NOOP('function')
+ QT_TRANSLATE_NOOP('parameters', 'application'),
+ QT_TRANSLATE_NOOP('parameters', 'function')
)
Enum.BodePass = new Enum(
- QT_TR_NOOP('high'),
- QT_TR_NOOP('low')
+ QT_TRANSLATE_NOOP('parameters', 'high'),
+ QT_TRANSLATE_NOOP('parameters', 'low')
)
Enum.XCursorValuePosition = new Enum(
- QT_TR_NOOP('Next to target'),
- QT_TR_NOOP('With label'),
- QT_TR_NOOP('Hidden')
+ QT_TRANSLATE_NOOP('parameters', 'Next to target'),
+ QT_TRANSLATE_NOOP('parameters', 'With label'),
+ QT_TRANSLATE_NOOP('parameters', 'Hidden')
)
/**
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/parsing/polyfill.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/parsing/polyfill.mjs
deleted file mode 100644
index ac845ce..0000000
--- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/parsing/polyfill.mjs
+++ /dev/null
@@ -1,125 +0,0 @@
-/**
- * LogarithmPlotter - 2D plotter software to make BODE plots, sequences and distribution functions.
- * Copyright (C) 2021-2024 Ad5001
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
- */
-
-// Contains polyfill math functions used for reference.
-export function factorial(x) {
- if (x < 0) // Integrating by less than 0
- if(isFinite(n))
- return Infinity
- else
- throw new EvalError("Cannot calculate the factorial of -∞.")
-
- return gamma(x+1)
-}
-
-let GAMMA_G = 4.7421875
-let GAMMA_P = [
- 0.99999999999999709182,
- 57.156235665862923517, -59.597960355475491248,
- 14.136097974741747174, -0.49191381609762019978,
- 0.33994649984811888699e-4,
- 0.46523628927048575665e-4, -0.98374475304879564677e-4,
- 0.15808870322491248884e-3, -0.21026444172410488319e-3,
- 0.21743961811521264320e-3, -0.16431810653676389022e-3,
- 0.84418223983852743293e-4, -0.26190838401581408670e-4,
- 0.36899182659531622704e-5
-]
-
-export function gamma(n) {
- if(n <= 0) // Integrating by less than 0
- if(isFinite(n))
- return Infinity
- else
- throw new EvalError("Cannot calculate Γ(-∞).")
-
- if(n >= 171.35)
- return Infinity // Would return more than 2^1024 - 1 (aka Number.INT_MAX)
-
- if(n === Math.round(n) && isFinite(n)) {
- // Calculating (n-1)!
- let res = n - 1
-
- for(let i = n - 2; i > 1; i++)
- res *= i
-
- if(res === 0)
- res = 1 // 0! is per definition 1
-
- return res
- }
-
- // Section below adapted function adapted from math.js
- if(n < 0.5)
- return Math.PI / (Math.sin(Math.PI * n) * gamma(1 - n))
-
- if(n > 85.0) { // Extended Stirling Approx
- let twoN = n * n
- let threeN = twoN * n
- let fourN = threeN * n
- let fiveN = fourN * n
- return Math.sqrt(2 * Math.PI / n) * Math.pow((n / Math.E), n) *
- (1 + (1 / (12 * n)) + (1 / (288 * twoN)) - (139 / (51840 * threeN)) -
- (571 / (2488320 * fourN)) + (163879 / (209018880 * fiveN)) +
- (5246819 / (75246796800 * fiveN * n)))
- }
-
- --n
- let x = GAMMA_P[0]
- for (let i = 1; i < GAMMA_P.length; ++i) {
- x += GAMMA_P[i] / (n + i)
- }
-
- let t = n + GAMMA_G + 0.5
- return Math.sqrt(2 * Math.PI) * Math.pow(t, n + 0.5) * Math.exp(-t) * x
-}
-
-export function arrayMap(f, arr) {
- if (typeof f != 'function')
- throw new EvalError(qsTranslate('error', 'First argument to map is not a function.'))
- if (!Array.isArray(arr))
- throw new EvalError(qsTranslate('error', 'Second argument to map is not an array.'))
- return arr.map(f)
-}
-
-export function arrayFold(f, init, arr) {
- if (typeof f != 'function')
- throw new EvalError(qsTranslate('error', 'First argument to fold is not a function.'))
- if (!Array.isArray(arr))
- throw new EvalError(qsTranslate('error', 'Second argument to fold is not an array.'))
- return arr.reduce(f, init)
-}
-
-export function arrayFilter(f, arr) {
- if (typeof f != 'function')
- throw new EvalError(qsTranslate('error', 'First argument to filter is not a function.'))
- if (!Array.isArray(arr))
- throw new EvalError(qsTranslate('error', 'Second argument to filter is not an array.'))
- return arr.filter(f)
-}
-
-export function arrayJoin(sep, arr) {
- if (!Array.isArray(arr))
- throw new Error(qsTranslate('error', 'Second argument to join is not an array.'))
- return arr.join(sep)
-}
-
-export function indexOf(target, s) {
- if (!(Array.isArray(s) || typeof s === 'string'))
- throw new Error(qsTranslate('error', 'Second argument to indexOf is not a string or array.'))
- return s.indexOf(target)
-}
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/parsing/reference.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/parsing/reference.mjs
index d6ce9dc..9c30991 100644
--- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/parsing/reference.mjs
+++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/parsing/reference.mjs
@@ -16,7 +16,7 @@
* along with this program. If not, see .
*/
-import * as Polyfill from "polyfill.mjs"
+import * as Polyfill from "../lib/expr-eval/polyfill.mjs"
export const CONSTANTS = {
"π": Math.PI,
diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/preferences/common.mjs b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/preferences/common.mjs
index 48cd1de..4503113 100644
--- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/preferences/common.mjs
+++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/preferences/common.mjs
@@ -22,7 +22,6 @@ class Setting {
constructor(type, name, nameInConfig, icon) {
this.type = type
this.name = name
- this.displayName = qsTr(name)
this.nameInConfig = nameInConfig
this.icon = icon
}