Merge pull request #243 from Kitzanos/feature/GEPAFINBE-186
GEPAFINBE-186 (Configuration to always display validation messages in Italian)
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
@@ -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.
|
||||||
@@ -387,3 +387,4 @@ validation.failed.checklist=Convalida fallita per la checklist.
|
|||||||
|
|
||||||
error.invalid.limit=Il limite dovrebbe essere compreso tra 1 e 3000.
|
error.invalid.limit=Il limite dovrebbe essere compreso tra 1 e 3000.
|
||||||
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.
|
||||||
Reference in New Issue
Block a user