0
我正在編寫Grails i18n消息。我在messages_he.properties
Grails i18n不適用於語言環境「he」(希伯來語)
_appNav.apps.show-label-button.title = הצג תוויות
上面的代碼給"iw"
localeChangeInterceptor(ParamsAwareLocaleChangeInterceptor) {
paramName = "locale"
}
localeResolver(org.springframework.web.servlet.i18n.SessionLocaleResolver) {
defaultLocale = new Locale("en")
java.util.Locale.setDefault(defaultLocale)
}
添加下面的消息中添加代碼,但它是沒有得到回升,
而且session.'org.springframework.web.servlet.i18n.SessionLocaleResolver.LOCALE'
he_IL是什麼你需要,你應該有它的消息文件 – Vahid
@vahid我不認爲'_he_IL'應該是必需的,應該嗎?我認爲''他'也應該工作。 –
這個問題提到'messages_he.proerties'就是'.proerties'只是一個錯字,或者是實際的文件名?文件名應該以'.properties'結尾。 –