Done ticket GEPAFINBE-186

This commit is contained in:
nisha
2025-03-13 16:12:14 +05:30
parent 9cfb383046
commit 0a8a29ff47
3 changed files with 15 additions and 2 deletions

View File

@@ -1,8 +1,12 @@
package net.gepafin.tendermanagement.config; package net.gepafin.tendermanagement.config;
import org.springframework.web.servlet.LocaleResolver;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import org.springframework.context.support.ResourceBundleMessageSource; import org.springframework.context.support.ResourceBundleMessageSource;
import org.springframework.web.servlet.i18n.SessionLocaleResolver;
import java.util.Locale;
@Configuration @Configuration
public class MessageSourceConfig { public class MessageSourceConfig {
@@ -14,4 +18,12 @@ public class MessageSourceConfig {
messageSource.setUseCodeAsDefaultMessage(true); messageSource.setUseCodeAsDefaultMessage(true);
return messageSource; return messageSource;
} }
@Bean
public LocaleResolver localeResolver() {
// Force the locale resolver to always use Italian
SessionLocaleResolver localeResolver = new SessionLocaleResolver();
localeResolver.setDefaultLocale(Locale.ITALIAN);
return localeResolver;
}
} }

View File

@@ -53,7 +53,7 @@ call.update.successfully=Call updated successfully.
call.fetch.success=Call details fetched successfully. call.fetch.success=Call details fetched successfully.
call.not.found=Call not found. call.not.found=Call not found.
score.not.null=Score cannot be null or cannot be zero. score.not.null=Score cannot be null or cannot be zero.
field.not.null={0} cannot be null. field.not.null={0} cannot be empty.
field.not.empty={0} cannot be empty. field.not.empty={0} cannot be empty.
update_call_status_success_msg=The call status has been updated successfully. update_call_status_success_msg=The call status has been updated successfully.
status.same.error=Status is already set. status.same.error=Status is already set.

View File

@@ -53,7 +53,7 @@ call.update.successfully=Chiamata aggiornata con successo.
call.fetch.success=Dettagli della chiamata recuperati con successo. call.fetch.success=Dettagli della chiamata recuperati con successo.
call.not.found=Chiamata non trovata. call.not.found=Chiamata non trovata.
score.not.null=Il punteggio non pu? essere nullo o zero. score.not.null=Il punteggio non pu? essere nullo o zero.
field.not.null={0} non pu? essere nullo. field.not.null={0} non può essere vuoto.
field.not.empty=la {0} non pu? essere vuota. field.not.empty=la {0} non pu? essere vuota.
update_call_status_success_msg=Lo stato della chiamata ? stato aggiornato con successo. update_call_status_success_msg=Lo stato della chiamata ? stato aggiornato con successo.
status.same.error=Lo stato ? gi? impostato. status.same.error=Lo stato ? gi? impostato.
@@ -386,3 +386,4 @@ appointment.not.created = Appuntamento non creato, riprova
validation.failed.checklist=Convalida fallita per la checklist. validation.failed.checklist=Convalida fallita per la checklist.
insufficient.score.msg = Punteggio non sufficiente per passaggio alla valutazione tecnica ed economico finanziaria insufficient.score.msg = Punteggio non sufficiente per passaggio alla valutazione tecnica ed economico finanziaria
validation.table.message=I dati per il campo {0} non sono presenti.