i18n 关于连词的问题(and,和)

2014 年 5 月 15 日
 ruoran
模版:
cn_singular = {{subject}} 是好学生!
cn_plural = {{subject}} 是好学生!

en_singular = {{subject}} is a good student!
en_plural = {{subject}} are good students!


len(subject) == 1:
A 是好学生
A is a good student

len(subject) == 2:
A和B是好学生
A and B are good students

len(subject) >= 3:
A,B和C是好学生
A, B, and C are good students

1. 单复数一般怎么处理?(singular template + plural template 是办法么?)
2. 连词如何处理?(如下方法可行么?) 英文大于3个subject时“,”和“and”怎么处理?

en_US
conjunction = and

zh_CN
conjunction = 和
3410 次点击
所在节点    程序员
4 条回复
notcome
2014 年 5 月 16 日
帮楼主补个,量词处理
notcome
2014 年 5 月 16 日
其实我总觉得若无必要还是不要偷懒罢了……之前处理一份 LaTeX 文档,也是抽象出 and or 等等,搞得我焦头烂额+_+
barretlee
2014 年 5 月 16 日
关注。
dexbol
2014 年 5 月 26 日
gettext 呢?

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://study.congcong.us/t/112670

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX