Done ticket GEPAFINBE-186
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
package net.gepafin.tendermanagement.config;
|
||||
|
||||
import org.springframework.web.servlet.LocaleResolver;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.context.support.ResourceBundleMessageSource;
|
||||
import org.springframework.web.servlet.i18n.SessionLocaleResolver;
|
||||
|
||||
import java.util.Locale;
|
||||
|
||||
@Configuration
|
||||
public class MessageSourceConfig {
|
||||
@@ -14,4 +18,12 @@ public class MessageSourceConfig {
|
||||
messageSource.setUseCodeAsDefaultMessage(true);
|
||||
return messageSource;
|
||||
}
|
||||
|
||||
@Bean
|
||||
public LocaleResolver localeResolver() {
|
||||
// Force the locale resolver to always use Italian
|
||||
SessionLocaleResolver localeResolver = new SessionLocaleResolver();
|
||||
localeResolver.setDefaultLocale(Locale.ITALIAN);
|
||||
return localeResolver;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ call.update.successfully=Call updated successfully.
|
||||
call.fetch.success=Call details fetched successfully.
|
||||
call.not.found=Call not found.
|
||||
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.
|
||||
update_call_status_success_msg=The call status has been updated successfully.
|
||||
status.same.error=Status is already set.
|
||||
|
||||
@@ -53,7 +53,7 @@ call.update.successfully=Chiamata aggiornata con successo.
|
||||
call.fetch.success=Dettagli della chiamata recuperati con successo.
|
||||
call.not.found=Chiamata non trovata.
|
||||
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.
|
||||
update_call_status_success_msg=Lo stato della chiamata ? stato aggiornato con successo.
|
||||
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.
|
||||
|
||||
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.
|
||||
Reference in New Issue
Block a user