开发者

Numbers in Internationalization (i18n) in rails3?

How can i use numbers in my yml files to show translations?

f.e.:

  # de.yml
  profile:
    hair_colour:
      0: "Blond"
      1: "Dunkelblond"
      2: "Braun"
      3: "Brünett"
      4:开发者_运维问答 "Rot"
      5: "Schwarz"
      6: "Grau/meliert"
      7: "Glatze"
      8: "Andere"

Its not working... Why? How can i fix this?


Oh ^^

Fixed it with:

  # de.yml
  profile:
    hair_colour:
      "0": "Blond"
      "1": "Dunkelblond"
      "2": "Braun"
      "3": "Brünett"
      "4": "Rot"
      "5": "Schwarz"
      "6": "Grau/meliert"
      "7": "Glatze"
      "8": "Andere"
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜