简体   繁体   English

多个xhtml页面支持多种语言

[英]Multiple languages supported for multiple xhtml pages

I'm developing a JSF web project which provides technical tutorials for readers. 我正在开发一个JSF Web项目,该项目为读者提供技术教程。 I ran into a dilemma in which I'll have to support multiple languages for each tutorial page. 我陷入了一个困境,其中每个教程页面都必须支持多种语言。 It's tempting to go with resource bundle but hold on a second, should I really create multiple resource bundles for individual tutorial page...It's gonna be huge if I have 100 tutorial pages and each page support 4 or 5 kinds of language. 与资源包捆绑在一起很诱人,但是请稍等片刻,如果我真的为单个教程页面创建多个资源包...如果我有100个教程页面并且每个页面支持4种或5种语言,那将会是巨大的。

How should it be done? 应该怎么做? Could you tell me your solution, ideas? 您能告诉我您的解决方案,想法吗?

define main prop file 定义主道具文件

i18n.properties
and for each language new property 
i18n_ru.properties
i18n_am.properties
i18n_es.properties

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM