开发者

Numbers in Internationalization (i18n) in rails3?

开发者 https://www.devze.com 2023-01-15 19:32 出处:网络
How can i use numbers in my yml files to show translations? f.e.: # de.yml profile: hair_colour: 0: \"Blond\"

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

精彩评论

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

关注公众号