V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
ruoran
V2EX  ›  程序员

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

  •  
  •   ruoran · 2014-05-15 14:35:26 +08:00 · 2579 次点击
    这是一个创建于 3605 天前的主题,其中的信息可能已经有所发展或是发生改变。
    模版:
    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 = 和
    4 条回复    2014-05-26 12:36:00 +08:00
    notcome
        1
    notcome  
       2014-05-16 07:27:26 +08:00 via iPhone
    帮楼主补个,量词处理
    notcome
        2
    notcome  
       2014-05-16 07:29:23 +08:00 via iPhone
    其实我总觉得若无必要还是不要偷懒罢了……之前处理一份 LaTeX 文档,也是抽象出 and or 等等,搞得我焦头烂额+_+
    barretlee
        3
    barretlee  
       2014-05-16 08:14:09 +08:00 via Android
    关注。
    dexbol
        4
    dexbol  
       2014-05-26 12:36:00 +08:00
    gettext 呢?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3246 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 13:55 · PVG 21:55 · LAX 06:55 · JFK 09:55
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.