發表文章

目前顯示的是 3月 17, 2019的文章

Rails locale fallbacks are not working in production env

圖片
2 I have a rails 3.2 application. It has 2 locales ko & en. ko is the default but I want it to fallback to en if it's not available. The fallback works in development env but not in production env. [config/application.rb] config.i18n.default_locale = :ko config.i18n.fallbacks = [:en] [config/environments/production.rb] config.i18n.fallbacks = true [config/locales/en.yml] ttt: TTT [config/locales/ko.yml] (ttt is not defined) **In development console:** I18n.localt #=> :ko I18n.t("ttt") #=> "TTT" (Works fine) **In production console:** I18n.locale #=> :ko I18n.t("ttt") #=> "translation missing: ko.ttt" (Not working) What am I missing? Thanks. Sam ruby-on-rails locale fallback rails-i18n share | improve this question asked Aug 9 '13 at 22:54 Sam Kong Sam Kong 2,298 6 40 79 1 I commented out config.i18n.fallbacks = true in config/environments/production.rb. Now it wor

Ethics

圖片
For other uses, see Ethics (disambiguation). Part of a series on Philosophy Plato Kant Nietzsche Buddha Confucius Averroes Philosophers Aestheticians Epistemologists Ethicists Logicians Metaphysicians Social and political philosophers Traditions African Analytic Aristotelian Buddhist Chinese Christian Continental Existentialism Hindu Jain Jewish Pragmatism Eastern Islamic Platonic Western Periods Ancient Medieval Modern Contemporary Literature Aesthetics Epistemology Ethics Logic Metaphysics Political philosophy Branches Aesthetics Epistemology Ethics Legal philosophy Logic Metaphysics Political philosophy Social philosophy Lists Index Outline Years Problems Publications Theories Glossary Philosophers Miscellaneous Philosopher Philomath Philalethes Women in philosophy Philosophy portal v t e Ethics or moral philosophy is a branch of philosophy that involves systematizing, defending, and recommending concepts of right and wrong conduct. [1] The field of ethics, along with aesthetic