ä¸å®æéæ´æ°ããªãããåºåã表示ãã¦ãã¾ã
ãã¦ãRails 2.2ã ç¡äºã«ãªãªã¼ã¹ ãããããã ããä»åã®ç®çã¯ãªãã¨ãã£ã¦ã âI18nâ 対å¿ã ããã ã¤ã¾ããä»åã®å¤§è¦æ¨¡ãªI18n対å¿ã§ããã£ã¨ããã# Rails 2.1.2 ããæç² options[:object_name] ||= params.first options[:header_message] = "#{pluralize(count, 'error')} prohibited this #{options[:object_name].to_s.gsub('_', ' ')} from being saved" unless options.include?(:header_message) options[:message] ||= 'There were problems with the following fields:' unless opti
11æ21æ¥ã«Rails2.2ãæ£å¼ãªãªã¼ã¹ãããã RCãªã©ã§ãã§ãã¯ãã¦ã人ã¯æ¢ã«ç¥ã£ã¦ãããããããªããã©ã2.2ããããã©ã«ãã§i18n(å½éå)対å¿ãããã¦ããã ã¡ãªã¿ã«i18nã¨ããã®ã¯internationalizationã®é ã¨å¾ãã®iã¨nãæåæ°ã18æåã¨ããã¨ããããæ¥ã¦ããããã ã¨ãããããã¾ãã¯ã¢ããªã®ä½æã $ rails i18n_demo ä½æããããã¡ã¤ã«ç¾¤ã®ä¸ã«config/locales/en.ymlã¨ãããã¡ã¤ã«ãåºæ¥ã¦ããã¨æããã©ãããã翻訳ãã¡ã¤ã«ã«ãªããä»åã¯è±èªã¨æ¥æ¬èªãç¨æãããã¨æãã®ã§ãen.ymlãã³ãã¼ãã¦ja.ymlãä½æããã $ cp config/locales/en.yml config/locales/ja.yml 翻訳ãã¡ã¤ã«ãä¿®æ£ãããã«ããããããã¢ããªã±ã¼ã·ã§ã³ãåºæ¥ã¦ããªãã®ã§ãscaffoldã§ç°¡åã«ä½
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}