the <p:calendar>
default language is English, I want to change it to French I added local="fr"
but nothing has changed I add lang="fr"
nothing has changed
2 个解决方案
#1
14
You need to add script to you page in which localization for calendar is defined. You can see it on Primefaces calendar i18n
您需要将脚本添加到定义日历本地化的页面。你可以在原始日历i18n上看到
#2
1
Sometimes even though if you change local in code and if it doesn't work then you need to change Browser settings and change local as French or English. IE --> Tools --> Internet Options --> Under General tab --> languages and add language.
有时,即使您更改了本地代码,如果它不工作,那么您需要更改浏览器设置,并将本地更改为法语或英语。IE——>工具——> Internet选项——一般tab下的>——>语言,添加语言。
#1
14
You need to add script to you page in which localization for calendar is defined. You can see it on Primefaces calendar i18n
您需要将脚本添加到定义日历本地化的页面。你可以在原始日历i18n上看到
#2
1
Sometimes even though if you change local in code and if it doesn't work then you need to change Browser settings and change local as French or English. IE --> Tools --> Internet Options --> Under General tab --> languages and add language.
有时,即使您更改了本地代码,如果它不工作,那么您需要更改浏览器设置,并将本地更改为法语或英语。IE——>工具——> Internet选项——一般tab下的>——>语言,添加语言。