翻译 liferay 时遇到困难
当我修改 Language_pt_PT.properties 并重新启动服务器时,没有任何反应。我所做的修改没有显示出来。
我也尝试过更改其他语言文件但没有成功。
可能出了什么问题?
谢谢!
When I modify the Language_pt_PT.properties and restart the server, nothing happens. The modifications I've done don't show up.
I've also tried changing other language file with no success.
What might be wrong?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我发现了问题:我将portal-impl.jar 备份到原始文件夹的同一文件夹中。服务器正在加载备份中的文件,而不是新文件。
跛脚和菜鸟。
抱歉各位,感谢你们的努力。
I found the problem: I made a backup copy of portal-impl.jar to the same folder of the original. The server was loading the files in the backup and not the new files.
Lame and rookie.
Sorry guys and thank you for your effort.
我会将文件复制到每个使用葡萄牙语的区域设置,以防万一您不小心选择了该区域设置。根据记忆,我能想到的唯一一个讲葡萄牙语的国家是巴西 - Language_pt_BR.properties。
就像 Martin 提到的,
还有 2 种语言设置,1 种用于用户,1 种用于服务器。如果您碰巧只是更改了服务器语言首选项,您仍然需要为登录用户切换它,因为用户首选项优先,并且此选项将在创建用户时设置。
I would copy the file to every locale that uses Portuguese just in case you've accidentally selected that locale instead. From memory, the only other country that I can think of that speaks Portuguese is Brazil - Language_pt_BR.properties.
Like Martin mentioned,
Also there are 2 settings for languages, 1 for the user and 1 for the server. If you happened to just change the servers language preferences, you'll still need to switch it for the logged in user because the users preference takes precedence and this option will be set at the time the user was created.