ezFAQãå ¥ãã¦ã¿ã¾ãã (Redmine0.8.7)
ç¾å¨ç¨¼åä¸ã®Redmineã、0.8.7ã«ã¢ãããã¼ãããããã«、ããããåä½ç¢ºèªããã¦ãã¾ã。Redmineæ¬ä½ã¯åé¡ãªãã®ã§ãã、å¿é ãªã®ã¯Pluginã¾ããã§ã。
ä»åã¯、r-labsã§æä¾ããã¦ãã、Redmine0.8x対å¿ã® ezFAQ ãçµã¿è¾¼ããã¨、ãã©ã°ã¤ã³è¿½å ã®å¦çãè¡ãã¾ãã。
(※ezFAQæ¬å®¶ã®trunkã¯、Redmineã®trunk / 0.9x ã®ã¿ã®å¯¾å¿ã§ã)
ãã¦、åä½ç¢ºèªãããã¨ãã…。
æ°è¦æ稿ã®ã¨ããã§、ãããªãã¨ã©ã¼ãçºçãã¦ãã¾ãã¾ãã(^^;
ç»é¢ã«ã¯ç¹ã«ã¨ã©ã¼ã¡ãã»ã¼ã¸ãåºãã«、『çã£ç½』…。
ããã、åã®ç»é¢ã«æ»ã£ã¦、FAQã®ä¸è¦§è¡¨ç¤ºç»é¢ãåç §ããã¨、ã¡ããã¨FAQã®ã¨ã³ããªã¯ä½æããã¦ãã¾ã。
production.log ã«è¡¨ç¤ºãããã¨ã©ã¼ã¯、以ä¸ã®éãã§ã。
ActionView::TemplateError (Translation value "FAQ %s 㯠%s ã«ãã£ã¦æ´æ°ããã¾ãã。" with arguments [{:title=>"#11", :author=>#<User id: 3, login: “…….", hashed_password: "", firstname: "xx", lastname: "xxx", mail: "xxxxx", mail_notification: false, admin: true, status: 1, last_login_on: "2009-xx-xx 08:35:37", language: "ja", auth_source_id: 2, created_on: "2008-02-14 13:31:34", updated_on: "2009-xx-xx 09:26:19", type: nil>}] caused error 'too few arguments') on line #1 of faq_mailer/faq_add.text.html.rhtml:
1: <%= l(:text_faq_added, :title => "##{@faq.id}", :author => @faq.author) %>
2: <hr />
3: <%= render :partial => "faq_text_html", :locals => { :faq => @faq, :faq_url => @faq_url } %>vendor/plugins/gloc-1.1.0/lib/gloc-internal.rb:93:in `_l'
vendor/plugins/gloc-1.1.0/lib/gloc.rb:19:in `l'….
ã©ããã、ã¡ã¼ã«éä¿¡ç¨ã®ãã³ãã¬ã¼ãã§ã¨ã©ã¼ãçºçãã¦ãã模æ§。ç´ ç´ã«ã¡ãã»ã¼ã¸ãèªãã¨、Transrationã®ããã®å¼æ°ã足ãã¦ãªã、ã¨ã®ãã¨ã§ã。ã§ã、åå¾ã®ã½ã¼ã¹ãèªãã¨、å¼æ°ã¯è¶³ãã¦ããã£ã½ã。
ã©ããããã®ããã…ã¨æã£ãã®ã§ãã、ãã®ã¨ã©ã¼ã¯æ°è¦ç»é²ã®æã ãã§、æ´æ°ã®å ´åã«ã¯ã¨ã©ã¼ãåºã¦ãã¾ãã。(æ´æ°ã®å ´åã、models/faq_mailer.rb ã§ã¡ã¼ã«éä¿¡ã®å¦çãè¡ã£ã¦ãã¾ã)
ja.ymlãªã©ã®è¨èªãã¡ã¤ã«ãè¦ã¦ã、æ´æ°ã¨æ°è¦ç»é²ã®éã®ãã©ã¼ãããã¯ã»ã¨ãã©åã。
ãªãã ãã…ã¨æã£ã¦、views/ 以ä¸ã®ãã¡ã¤ã«ãæ¯ã¹ã¦ã¿ãã¨ãã、å¾®å¦ãªéããããã¾ãã。
- faq_add.text.html.rhtml
<%= l(:text_faq_added, :title => "##{@faq.id}", :author => @faq.author) %> - faq_update.text.html.rhtml
<%= l(:text_faq_updated, "##{@faq.id}", @faq.author) %>
ãã¡ãã、å¾è (ï¼)ã®ããã«æ²»ããã¨ãã、ã²ã¨ã¾ãã¨ã©ã¼ãåé¿ã§ãã¾ãã。Railsã®å¤è¨èªåã®ã¨ããã§ã²ã£ããã£ãã®ã ãããªã..。ã¨ã¯æãã®ã§ãã、åãRedmien0.8.7ã使ã£ã¦ãã¦ã、ã¨ã©ã¼ã«ãªãã®ã¯ç§ã ãããããã¾ãã。(ã¡ãªã¿ã«、ezFAQã®trunkã§ã¯、(1)ã®è¨è¼ã§çµ±ä¸ããã¦ãã¾ã)
ã¡ããã¨RORãç解ããã«ä½¿ãã ããã®ã§、ããã¯ãããªããªã…ã¨æãå§ããä»æ¥ãã®é ã§ã….。
ãããã¨ããããã¾ã。ç´ãã¦åç»é²ãã¾ãã。Akikoããã®ä¿®æ£æ¹æ³ã§æ£ããã§ã。
è¿ä¿¡åé¤