@@ -117,7 +117,7 module Redmine | |||||
117 |
|
117 | |||
118 | # Get available locales from the translations filenames |
|
118 | # Get available locales from the translations filenames | |
119 | def available_locales |
|
119 | def available_locales | |
120 |
@available_locales ||= ::I18n.load_path.map {|path| File.basename(path, '.*') |
|
120 | @available_locales ||= ::I18n.load_path.map {|path| File.basename(path, '.*')}.uniq.sort.map(&:to_sym) | |
121 | end |
|
121 | end | |
122 |
|
122 | |||
123 | # Clean up translations |
|
123 | # Clean up translations |
General Comments 0
You need to be logged in to leave comments.
Login now