i18n翻译键/值对

时间:2012-11-29 10:08:44

标签: internationalization

您如何建议命名翻译键?

我应该使用实际文本(需要翻译)作为翻译密钥吗? e.g。

Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo.=But I must explain to you how all this mistaken idea of denouncing of a pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness.

或者我应该使用像

这样的键
content_lorem_ipsum_par_1=But I must explain to you how all this mistaken idea of denouncing of a pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness.

1 个答案:

答案 0 :(得分:2)

由于语境和语法差异,有时候基础语言中的同一段文本必须在两个不同的地方进行不同的翻译。如果你使用前者,这可能是一个问题,所以我建议使用后一种方法。