lib/gettext/runtime/locale_path.rb in gettext-2.3.0 vs lib/gettext/runtime/locale_path.rb in gettext-2.3.1
- old
+ new
@@ -98,10 +98,9 @@
# Gets the current path.
# * lang: a Locale::Tag.
def current_path(lang)
lang_candidates = lang.to_posix.candidates
- search_files = []
lang_candidates.each do |tag|
path = @locale_paths[tag.to_s]
warn "GetText::TextDomain#load_mo: mo-file is #{path}" if $DEBUG
return path if path