X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/2b290f4994102cb6789eec99c45bc0cedfa81abf..5475a9ec3569ec693f7a4c0756382f8efcdf62fc:/vendor/plugins/i18n_data/lib/i18n_data.rb?ds=sidebyside diff --git a/vendor/plugins/i18n_data/lib/i18n_data.rb b/vendor/plugins/i18n_data/lib/i18n_data.rb deleted file mode 100644 index 9f6cb520d..000000000 --- a/vendor/plugins/i18n_data/lib/i18n_data.rb +++ /dev/null @@ -1,31 +0,0 @@ -require 'activesupport' -module I18nData - extend self - - def languages(language_code='EN') - data_provider.codes(:languages,language_code.to_s.upcase) - end - - def countries(language_code='EN') - data_provider.codes(:countries,language_code.to_s.upcase) - end - - def data_provider - if @data_provider - @data_provider - else - require 'i18n_data/file_data_provider' - FileDataProvider - end - end - - def data_provider=(provider) - @data_provider = provider - end - - class NoTranslationAvailable < Exception - def to_s - "NoTranslationAvailable -- #{super}" - end - end -end \ No newline at end of file