diff --git a/src/View/MainWindow.py b/src/View/MainWindow.py index aa910ae6..8295e376 100644 --- a/src/View/MainWindow.py +++ b/src/View/MainWindow.py @@ -785,14 +785,16 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit): dlg.setWindowTitle(self._trad["mb_last_open_title"]) dlg.setText(self._trad["mb_last_open_msg"]) - opt = QMessageBox.Cancel | QMessageBox.Ok # | QMessageBox.Open + opt = QMessageBox.No | QMessageBox.Yes # | QMessageBox.Open dlg.setStandardButtons(opt) dlg.setIcon(QMessageBox.Question) + dlg.button(QMessageBox.Yes).setText(self._trad["Yes"]) + dlg.button(QMessageBox.No).setText(self._trad["No"]) res = dlg.exec() - if res == QMessageBox.Ok: + if res == QMessageBox.Yes: old = self.conf.last_study file = self.dialog_reopen_study_select_backup( self.conf.last_study @@ -805,7 +807,7 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit): elif res == QMessageBox.Open: self.open_model() return True - elif res == QMessageBox.Cancel: + elif res == QMessageBox.No: return False def dialog_reopen_study_select_backup(self, filename): @@ -832,6 +834,10 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit): dlg.setStandardButtons(opt) dlg.setIcon(QMessageBox.Warning) + dlg.button(QMessageBox.Save).setText(self._trad["Save"]) + dlg.button(QMessageBox.Close).setText(self._trad["Close"]) + if cancel: + dlg.button(QMessageBox.Cancel).setText(self._trad["Cancel"]) res = dlg.exec() diff --git a/src/View/Translate.py b/src/View/Translate.py index c431d9c2..f4335eb0 100644 --- a/src/View/Translate.py +++ b/src/View/Translate.py @@ -201,3 +201,8 @@ class MainTranslate(UnitTranslate): ) self._dict["x"] = _translate("MainWindow", "X (m)") self._dict["y"] = _translate("MainWindow", "Y (m)") + self._dict["Yes"] = _translate("MainWindow", "Yes") + self._dict["No"] = _translate("MainWindow", "No") + self._dict["Cancel"] = _translate("MainWindow", "Cancel") + self._dict["Save"] = _translate("MainWindow", "Save") + self._dict["Close"] = _translate("MainWindow", "Close") diff --git a/src/lang/fr.ts b/src/lang/fr.ts index f358e6d6..22680b91 100644 --- a/src/lang/fr.ts +++ b/src/lang/fr.ts @@ -1,6 +1,5 @@ - - + About @@ -264,6 +263,29 @@ Cette fonctionnalité nécessite un bief muni d'une géométrie.Warning Avertissement + + + Pollutant + + + + + BoundaryConditionAdisTS + + + Edit boundary conditions AdisTS + + + + + Rate + + + + + Concentration + Concentration + BoundaryConditions @@ -273,6 +295,14 @@ Cette fonctionnalité nécessite un bief muni d'une géométrie.Conditions aux limites + + BoundaryConditionsAdisTS + + + Boundary conditions AdisTS + + + CheckList @@ -358,6 +388,16 @@ Cette fonctionnalité nécessite un bief muni d'une géométrie.Check if exists at least one reach exists Vérificateur si il exists au moins un bief + + + AdisTS output RK checker + + + + + Check output RK + + Checklist @@ -375,70 +415,80 @@ Cette fonctionnalité nécessite un bief muni d'une géométrie.Nom - + Type Type - + Value Valeur - + Comment Commentaire - + Description Description - + Time Temps - + Date Date - + Reach Bief - + Reaches Biefs - + Main channel Lit mineur - + Floodway Lit moyen - + Not defined Non défini - + Not associated Non associé - + Cross-section Section en travers + + + Title + + + + + Method + Méthode + Configure @@ -468,14 +518,30 @@ Cette fonctionnalité nécessite un bief muni d'une géométrie. Bed elevation (m) - Cote du fond (m) + Cote du fond (m) - + Elevation (m) Cote (m) + + D90AdisTS + + + D90 AdisTS + + + + + DIFAdisTS + + + DIF AdisTS + + + Debug @@ -652,12 +718,12 @@ Cette fonctionnalité nécessite un bief muni d'une géométrie.Dernière modification : - + X axis: Axe X : - + Y axis: Axe Y : @@ -876,6 +942,21 @@ Cette fonctionnalité nécessite un bief muni d'une géométrie.Discharge (m^3/s) Débit (m³/s) + + + Pollutant: + + + + + AdisTS Solver: + + + + + Mage Repertory: + + Documentation @@ -1168,7 +1249,7 @@ Cette fonctionnalité nécessite un bief muni d'une géométrie. - Copyright © 2022-2024 INRAE + Copyright © 2022-2024 INRAE Copyright © 2022-2024 INRAE @@ -1176,6 +1257,11 @@ Cette fonctionnalité nécessite un bief muni d'une géométrie.Version: @version @codename Version : @version @codename + + + Copyright © 2022-2024 INRAE + + Frictions @@ -1406,6 +1492,14 @@ Cette fonctionnalité nécessite un bief muni d'une géométrie.Conditions initiales + + InitialConditionAdisTS + + + Initial condition AdisTS + + + LateralContribution @@ -1448,21 +1542,57 @@ Cette fonctionnalité nécessite un bief muni d'une géométrie.End (m) PK de fin (m) + + + Lateral contribution + + + + + Begin rk (m) + + + + + End rk (m) + + + + + LateralContribution1adisTS + + + Lateral contribution AdisTS + + + + + LateralContributionAdisTS + + + Edit lateral contribution AdisTS + + + + + Mass Flow + + MainWindow - + Open debug window Ouvrir la fenêtre de débogage - + Open SQLite debuging tool ('sqlitebrowser') Ouvrir l'outil de débogage SQLite ('sqlitebrowser') - + Enable this window Activer cette fenêtre @@ -1492,7 +1622,7 @@ Cette fonctionnalité nécessite un bief muni d'une géométrie.Supprimer les casier(s) - + Edit Éditer @@ -1537,147 +1667,147 @@ Cette fonctionnalité nécessite un bief muni d'une géométrie.PAMHYR - + &File &Fichier - + &River network &Réseau - + &Geometry &Géometrie - + &Execute &Exécuter - + &Hydraulics &Hydraulique - + &Results &Résultats - + &Help &Aide - + Help Aide - + Pamhyr2 Pamhyr2 - + &Sediment &Sédiment - + &Windows &Fenêtres - + New study Nouvelle étude - + Ctrl+N Ctrl+N - + Open a study Ouvrir une étude - + Ctrl+O Ctrl+O - + Close Fermer - + Close current study Fermer l'étude en cours - + Save Sauvegarder - + Save study Sauvegarder l'étude - + Ctrl+S Ctrl+S - + Save as ... Sauvegarder sous ... - + Save study as ... Sauvegarder l'étude sous ... - + Ctrl+Shift+S Ctrl+Shift+S - + Pamhyr2 configuration Configuration de Pamhyr2 - + Quit Quitter - + Quit application Quitter l'application - + Ctrl+F4 Ctrl+F4 - + Edit river network Éditer le réseau - + Edit geometry Éditer la géométrie @@ -1692,37 +1822,37 @@ Cette fonctionnalité nécessite un bief muni d'une géométrie.Exporter la géométrie - + Numerical parameters of solvers Paramètres numériques des solveurs - + Boundary conditions and point sources Conditions aux limites et apports ponctuels - + Initial conditions Conditions initiales - + Edit friction Éditer les frottements - + Edit lateral sources Éditer les contributions latérales - + Run solver Lancer le solveur - + F5 F5 @@ -1732,152 +1862,152 @@ Cette fonctionnalité nécessite un bief muni d'une géométrie.Ouvrir - + Visualize last results Visualisation des derniers résultats - + Visualize the last results Visualisation des derniers résultats - + About À propos - + Save current study Sauvegarder l'étude - + Save the study (Ctrl+S) Sauvegarde de l'étude (Ctrl+S) - + Close the study (Ctrl+F) Fermeture de l'étude (Ctrl+F) - + Ctrl+F Ctrl+F - + Run a solver Lancer un solveur - + River network Réseau - + Geometry Géometrie - + Edit reach geometry Éditer la géométrie du bief actuel - + Boundary conditions Conditions aux limites - + Edit boundary conditions and point sources Éditer les conditions aux limites et les apports ponctuels - + Lateral sources Contributions latérales - + Friction Frottements - + Edit study Éditer l'étude - + Define initial conditions Définir les conditions initiales - + Sediment layers Couches sédimentaires - + Define sediment layers Définition des couches sédimentaires - + Edit reach sediment layers Éditer les couches sédimentaires - + Mage Mage - + Open Mage documentation Ouvrir la documentation de Mage - + Users (wiki) Utilisateurs (wiki) - + Developers (pdf) Développeurs (pdf) - + Developers (html) Développeurs (html) - + Reservoirs Casiers - + Edit reservoirs Éditer les casiers - + Hydraulic structures Ouvrages hydrauliques - + Edit hydraulic structures Éditer les ouvrages hydrauliques - + Open results from file Ouvrir des résultats depuis un fichier @@ -1912,7 +2042,7 @@ Cette fonctionnalité nécessite un bief muni d'une géométrie.Supprimer les couches sédimentaires sélectionnées - + Ctrl+D Ctrl+D @@ -1937,7 +2067,7 @@ Cette fonctionnalité nécessite un bief muni d'une géométrie.Solide - + Suspension Suspension @@ -1947,7 +2077,7 @@ Cette fonctionnalité nécessite un bief muni d'une géométrie.Ajouter une condition aux limites ou un apport latéral - + Delete current selected rows Supprimer les lignes selectionnées @@ -1962,7 +2092,7 @@ Cette fonctionnalité nécessite un bief muni d'une géométrie.Trier - + Sort by names Trier par nom @@ -1992,19 +2122,19 @@ Cette fonctionnalité nécessite un bief muni d'une géométrie.Trier les coefficients de Strickler - + Add a new boundary condition or point source Ajouter une condition aux limites ou un apport ponctuel - + Edit boundary condition or point source Éditer une condition aux limites ou un apport ponctuel - + Raw data - Données brutes + Données brutes @@ -2307,27 +2437,27 @@ Cette fonctionnalité nécessite un bief muni d'une géométrie.Maillage - + Summary Résumé - + Checks Vérifications - + &Advanced &Avancé - + &Additional files Fichiers &supplémentaires - + REP additional lines Lignes REP supplémentaires @@ -2402,7 +2532,7 @@ Cette fonctionnalité nécessite un bief muni d'une géométrie.Éditer fichier - + Edit the study information Éditer les informations de l'étude @@ -2412,12 +2542,12 @@ Cette fonctionnalité nécessite un bief muni d'une géométrie.toolBar - + toolBar_2 toolBar_2 - + Edit frictions Éditer les frottements @@ -2532,7 +2662,7 @@ Cette fonctionnalité nécessite un bief muni d'une géométrie.Données - + Please select a reach Veuillez sélectionner un bief @@ -2542,45 +2672,225 @@ Cette fonctionnalité nécessite un bief muni d'une géométrie.L'édition de la géométrie nécessite un bief sélectionné dans le réseau fluvial pour pouvoir travailler dessus - + Last open study Dernière étude ouverte - + Do you want to open again the last open study? Voulez-vous rouvrir la dernière étude ? - + This edition window need a reach selected into the river network to work on it Cette fenêtre d'édition a besoin d'un bief sélectionné dans le réseau pour travailler dessus - + Close without saving study Fermer sans sauvegarder l'étude - + Do you want to save current study before closing it? Souhaitez-vous sauvegarder l'étude en cours avant de la fermer ? - + Warning Avertissement - + X (m) X (m) - + Y (m) Y (m) + + + Enable / Disable Pollutant + Activer / Désactiver ce polluant + + + + Characteristics + Caracteristiques + + + + InitialConditions + Conditions Initiales + + + + BoundaryConditions + Conditions Limites + + + + LateralContributions + + + + + AdisTS + AdisTS + + + + Output RK + + + + + Run AdisTS + Lancer AdisTS + + + + Pollutants + Polluants + + + + D90 + D90 + + + + DIF + DIF + + + + Open results AdisTS + + + + + Enable / Disable Output RK AdisTS + + + + + Add a new point in boundary condition or punctual contribution + + + + + results_Mage + + + + + Add a new boundary condition or punctual contribution + + + + + Edit boundary condition or punctual contribution + + + + + Add a new point in boundary condition or lateral contribution + + + + + Add a new boundary condition or lateral contribution + + + + + Edit boundary condition or lateral contribution + + + + + Concentration + Concentration + + + + Concentration dx + Concentration dx + + + + Concentration dt + Concentration dt + + + + Linear mass density + + + + + Left bed + Lit majeur gauche + + + + Minor bed + Lit mineur + + + + Right bed + Lit majeur droit + + + + Linear mass density dx + + + + + Linear mass density dt + + + + + Thickness + Épaisseur + + + + Thickness dx + Épaisseur dx + + + + Thickness dt + Épaisseur dt + + + + Add custom visualization + + + + + Export raw data + Export données brutes + + + + Yes + Oui + + + + No + Non + MainWindow_reach @@ -2683,6 +2993,19 @@ Cette fonctionnalité nécessite un bief muni d'une géométrie.Index + + OutputRKAdisTS + + + Output RK + + + + + X (m) + X (m) + + Pamhyr @@ -2691,6 +3014,24 @@ Cette fonctionnalité nécessite un bief muni d'une géométrie.Pamhyr2 + + Pollutants + + + Pollutants + Polluants + + + + X (m) + X (m) + + + + Edit Pollutant + + + REPLines @@ -2725,17 +3066,17 @@ Cette fonctionnalité nécessite un bief muni d'une géométrie. Results - + days jours - + day jour - + X (m) X (m) @@ -2760,12 +3101,12 @@ Cette fonctionnalité nécessite un bief muni d'une géométrie.Date actuelle - + Results Résultats - + Reading results Lecture des résultats @@ -2775,30 +3116,85 @@ Cette fonctionnalité nécessite un bief muni d'une géométrie.Fond de la rivière - + Water elevation Cote de l'eau - + Max water elevation Cote maximum de l'eau - + Reach name Nom du bief - + Profile Profil - + Bottom Fond + + + Concentration + Concentration + + + + Max Concentration + + + + + Min Concentration + + + + + Thickness + Épaisseur + + + + Max Thickness + + + + + Min Thickness + + + + + Mass + + + + + Max Mass + + + + + Min Mass + + + + + Variables names + + + + + Pollutant name + + SedimentLayers @@ -2876,12 +3272,12 @@ Cette fonctionnalité nécessite un bief muni d'une géométrie. Solver - + Select solver Sélection du solveur - + Select log Selection du log @@ -3186,97 +3582,97 @@ Cette fonctionnalité nécessite un bief muni d'une géométrie. Unit - + Width (m) Largeur (m) - + Depth (m) Profondeur (m) - + Diameter (m) Diamètre (m) - + Thickness (m) Épaisseur (m) - + Elevation (m) Cote (m) Water elevation (m) - Cote de l'eau (m) + Cote de l'eau (m) - + Area (hectare) Aire (hectare) - + Time (sec) Temps (s) - + Time (JJJ:HH:MM:SS) Temps (JJJ:HH:MM:SS) - + Date (sec) Date (s) - + Date (ISO format) Date (format ISO) - + River Kilometer (m) Point Kilométrique (m) - + Max Depth (m) Profondeur max (m) - + Mean Depth (m) Profondeur moyenne (m) - + Velocity (m/s) Vitesse (m/s) - + Wet Perimeter (m) Périmètre mouillé (m) - + Hydraulic Radius (m) Rayon hydraulique (m) - + Froude number Nombre de Froude - + Discharge (m^3/s) Débit (m³/s) @@ -3287,8 +3683,213 @@ Cette fonctionnalité nécessite un bief muni d'une géométrie. + Wet Area (m²) + Aire mouillée (m²) + + + + EG (m) + + + + + EM (m) + + + + + ED (m) + + + + + Start_RK (m) + + + + + End_RK (m) + + + + + Rate + + + + + D90 + D90 + + + + Width Envelop (m) + + + + + Max Width (m) + + + + + Min Width (m) + + + + + Min Depth (m) + + + + + Depth Envelop (m) + + + + + Bed Elevation (m) + + + + + Bed Elevation Envelop (m) + + + + + Max Bed Elevation (m) + + + + + Min Bed Elevation (m) + + + + + Water Elevation (m) + + + + + Water Elevation Envelop (m) + + + + + Max Water Elevation (m) + + + + + Min Water Elevation (m) + + + + + Velocity Envelop (m/s) + + + + + Max Velocity (m/s) + + + + + Min Velocity (m/s) + + + + + Discharge Envelop (m^3/s) + + + + + Max Discharge (m^3/s) + + + + + Min Discharge (m^3/s) + + + + + Area + Aire + + + + Rho + + + + + Porosity + + + + + CDC_RIV + + + + + CDC_CAS + + + + + APD + + + + + AC + + + + + BC + + + + + Concentration (g/l) + + + + + Mass (kg) + + + + + Concentration (kg/m^3) + + + + + DIF + DIF + + + + Coeff b + + + + + Coeff c + + + + Wet Area (m²) - Aire mouillée (m²) +