如何更改语言

时间:2022-09-26 11:14:37

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

默认语言是英语,我想把它改成法语,我添加了local="fr",但是什么都没变,我添加了lang="fr",什么都没变

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下的>——>语言,添加语言。