lib/csl/locale.rb in csl-1.0.0.pre11 vs lib/csl/locale.rb in csl-1.0.0.pre12

- old
+ new

@@ -193,11 +193,13 @@ def clear @language, @region = nil self end - def translate(query) - terms[query] + # @return [String, nil] the term's translation + def translate(name, options = {}) + term = terms.lookup name, options + term && term.to_s(options) end alias t translate # @example # locale.each_term { |term| block } #-> locale \ No newline at end of file