diff --git a/Directory.Packages.props b/Directory.Packages.props index b6b0c1cd..24d2d6b3 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -15,8 +15,8 @@ - - + + diff --git a/Lux.API/Lux.API.csproj b/Lux.API/Lux.API.csproj index df24f002..eb73b3df 100644 --- a/Lux.API/Lux.API.csproj +++ b/Lux.API/Lux.API.csproj @@ -4,7 +4,7 @@ net8.0 enable enable - 1.1.2608.1212 + 1.1.2608.2016 diff --git a/Lux.UI/Components/Compo/Order/OrderRowMan.razor b/Lux.UI/Components/Compo/Order/OrderRowMan.razor index 2705769b..79c0b8ed 100644 --- a/Lux.UI/Components/Compo/Order/OrderRowMan.razor +++ b/Lux.UI/Components/Compo/Order/OrderRowMan.razor @@ -6,6 +6,9 @@ { diff --git a/Lux.UI/Components/Compo/Order/OrderRowMan.razor.cs b/Lux.UI/Components/Compo/Order/OrderRowMan.razor.cs index 552e1bcb..3d8e6217 100644 --- a/Lux.UI/Components/Compo/Order/OrderRowMan.razor.cs +++ b/Lux.UI/Components/Compo/Order/OrderRowMan.razor.cs @@ -86,6 +86,7 @@ namespace Lux.UI.Components.Compo.Order DLService.PipeHwOpt.EA_NewMessage -= PipeHwOpt_EA_NewMessage; DLService.PipeProfList.EA_NewMessage -= PipeProfList_EA_NewMessage; DLService.PipeShape.EA_NewMessage -= PipeShape_EA_NewMessage; + UserMServ.EA_LangChanged -= UserMServ_EA_LangChanged; } #endregion Public Methods @@ -112,6 +113,13 @@ namespace Lux.UI.Components.Compo.Order #endregion Public Classes + #region Protected Properties + + [Inject] + protected IMessageService UserMServ { get; set; } = null!; + + #endregion Protected Properties + #region Protected Methods /// @@ -141,6 +149,7 @@ namespace Lux.UI.Components.Compo.Order DLService.PipeHwOpt.EA_NewMessage += PipeHwOpt_EA_NewMessage; DLService.PipeProfList.EA_NewMessage += PipeProfList_EA_NewMessage; DLService.PipeShape.EA_NewMessage += PipeShape_EA_NewMessage; + UserMServ.EA_LangChanged += UserMServ_EA_LangChanged; } protected override async Task OnParametersSetAsync() @@ -304,6 +313,11 @@ namespace Lux.UI.Components.Compo.Order private BootstrapModal.ModalMode mMode = BootstrapModal.ModalMode.ND; private Dictionary modalOpt = new Dictionary(); + /// + /// Dizionario traduzioni x componente WebWindowManager + /// + private Dictionary? WindowDict = new(); + #endregion Private Fields #region Private Properties @@ -1958,6 +1972,45 @@ namespace Lux.UI.Components.Compo.Order return EC_Action.InvokeAsync("EditRow"); } + /// + /// Traduzione delle voci richieste tramite dizionario + /// + /// + /// + private void DoTranslate(List args) + { + if (args != null && args.Count > 0) + { + // aggiorno WindowDict con i lemmi richiesti + Dictionary tmpDict = new(); + foreach (var item in args) + { + tmpDict.Add(item, Traduci(item)); + } + WindowDict = tmpDict; + } + } + + /// + /// Rieseguo traduzione + /// + private void UserMServ_EA_LangChanged() + { + // se ho giĆ  un dizionario tradotto... + if (WindowDict != null && WindowDict.Count > 0) + { + var listTerm = WindowDict.Select(x => x.Key).ToList(); + string langCode = UserMServ.UserLang; + // aggiorno WindowDict con i lemmi richiesti + Dictionary tmpDict = new(); + foreach (var item in listTerm) + { + tmpDict.Add(item, Traduci(item, langCode)); + } + WindowDict = tmpDict; + } + } + #endregion Private Methods } diff --git a/Lux.UI/Lux.UI.csproj b/Lux.UI/Lux.UI.csproj index d55d6adf..e895cca0 100644 --- a/Lux.UI/Lux.UI.csproj +++ b/Lux.UI/Lux.UI.csproj @@ -5,7 +5,7 @@ enable enable aspnet-Lux.UI-a758c101-a2f4-4e38-977d-1c4887dbbd50 - 1.1.2608.1212 + 1.1.2608.2016 diff --git a/Resources/ChangeLog.html b/Resources/ChangeLog.html index 03d04c0d..6accac27 100644 --- a/Resources/ChangeLog.html +++ b/Resources/ChangeLog.html @@ -1,6 +1,6 @@ LUX - Web Windows MES -

Versione: 1.1.2608.1212

+

Versione: 1.1.2608.2016


Note di rilascio:
  • diff --git a/Resources/VersNum.txt b/Resources/VersNum.txt index c85e1781..6e630190 100644 --- a/Resources/VersNum.txt +++ b/Resources/VersNum.txt @@ -1 +1 @@ -1.1.2608.1212 +1.1.2608.2016 diff --git a/Resources/manifest.xml b/Resources/manifest.xml index fe8d8553..ed2a0f53 100644 --- a/Resources/manifest.xml +++ b/Resources/manifest.xml @@ -1,6 +1,6 @@ - 1.1.2608.1212 + 1.1.2608.2016 http://nexus.steamware.net/repository/SWS/GPW/stable/GPW.UI.zip http://nexus.steamware.net/repository/SWS/GPW/stable/ChangeLog.html false