From a543e731c0433b2aa0f0f1583f7c70182a084fd5 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 6 Sep 2010 00:12:16 +0100 Subject: [PATCH] Switch to using the rails-i18n-updater gem instead of the rails-i18n plugin --- Gemfile | 1 + vendor/plugins/rails-i18n/.gitignore | 3 - vendor/plugins/rails-i18n/README.textile | 55 -- vendor/plugins/rails-i18n/init.rb | 15 - .../plugins/rails-i18n/rails/action_view.yml | 110 ---- .../rails-i18n/rails/active_record.yml | 54 -- .../rails-i18n/rails/active_support.yml | 33 -- vendor/plugins/rails-i18n/script/update.rb | 12 - .../rails-i18n/test/lib/key_structure.rb | 89 ---- vendor/plugins/rails-i18n/test/structure.rb | 7 - .../Commands/Lookup Translation.tmCommand | 53 -- .../Commands/extract translation.tmCommand | 64 --- .../Support/lib/dictionary.rb | 478 ------------------ .../Support/lib/rails_i18n.rb | 2 - .../Support/lib/yaml_waml.rb | 37 -- .../tools/Rails I18n.tmbundle/info.plist | 15 - .../locale => rails-locales}/ar.yml | 0 .../locale => rails-locales}/bg.yml | 0 .../locale => rails-locales}/bn-IN.yml | 0 .../locale => rails-locales}/bs.yml | 0 .../locale => rails-locales}/ca.yml | 0 .../rails-i18n/locale => rails-locales}/cs.rb | 0 .../locale => rails-locales}/cy.yml | 0 .../locale => rails-locales}/da.yml | 0 .../locale => rails-locales}/de-AT.yml | 0 .../locale => rails-locales}/de-CH.yml | 0 .../locale => rails-locales}/de.yml | 0 .../locale => rails-locales}/dsb.yml | 0 .../locale => rails-locales}/el.yml | 0 .../locale => rails-locales}/en-AU.yml | 0 .../locale => rails-locales}/en-GB.yml | 0 .../locale => rails-locales}/en-US.yml | 0 .../locale => rails-locales}/eo.yml | 0 .../locale => rails-locales}/es-AR.yml | 0 .../locale => rails-locales}/es-CL.yml | 0 .../locale => rails-locales}/es-CO.yml | 0 .../locale => rails-locales}/es-MX.yml | 0 .../locale => rails-locales}/es-PE.yml | 0 .../locale => rails-locales}/es.yml | 0 .../locale => rails-locales}/et.yml | 0 .../locale => rails-locales}/eu.yml | 0 .../locale => rails-locales}/fa.yml | 0 .../locale => rails-locales}/fi.yml | 0 .../locale => rails-locales}/fr-CA.yml | 0 .../locale => rails-locales}/fr-CH.yml | 0 .../locale => rails-locales}/fr.yml | 0 .../locale => rails-locales}/fun/en-AU.rb | 0 .../locale => rails-locales}/fun/gibberish.rb | 0 .../locale => rails-locales}/fur.yml | 0 .../locale => rails-locales}/gl-ES.yml | 0 .../locale => rails-locales}/gsw-CH.yml | 0 .../locale => rails-locales}/he.yml | 0 .../locale => rails-locales}/hi-IN.yml | 0 .../locale => rails-locales}/hi.yml | 0 .../locale => rails-locales}/hr.yml | 0 .../locale => rails-locales}/hsb.yml | 0 .../locale => rails-locales}/hu.yml | 0 .../locale => rails-locales}/id.yml | 0 .../locale => rails-locales}/is.yml | 0 .../locale => rails-locales}/it.yml | 0 .../locale => rails-locales}/ja.yml | 0 .../locale => rails-locales}/ko.yml | 0 .../locale => rails-locales}/lo.yml | 0 .../locale => rails-locales}/lt.yml | 0 .../locale => rails-locales}/lv.yml | 0 .../locale => rails-locales}/mk.yml | 0 .../locale => rails-locales}/mn.yml | 0 .../locale => rails-locales}/nb.yml | 0 .../locale => rails-locales}/nl.yml | 0 .../locale => rails-locales}/nn.yml | 0 .../locale => rails-locales}/pl.yml | 0 .../locale => rails-locales}/pt-BR.yml | 0 .../locale => rails-locales}/pt-PT.yml | 0 .../locale => rails-locales}/rm.yml | 0 .../locale => rails-locales}/ro.yml | 0 .../locale => rails-locales}/ru.yml | 0 .../locale => rails-locales}/sk.yml | 0 .../locale => rails-locales}/sl.yml | 0 .../locale => rails-locales}/sr-Latn.yml | 0 .../locale => rails-locales}/sr.yml | 0 .../locale => rails-locales}/sv-SE.yml | 0 .../locale => rails-locales}/sw.yml | 0 .../rails-i18n/locale => rails-locales}/th.rb | 0 .../locale => rails-locales}/tr.yml | 0 .../locale => rails-locales}/uk.yml | 0 .../locale => rails-locales}/vi.yml | 0 .../locale => rails-locales}/zh-CN.yml | 0 .../locale => rails-locales}/zh-TW.yml | 0 88 files changed, 1 insertion(+), 1027 deletions(-) delete mode 100644 vendor/plugins/rails-i18n/.gitignore delete mode 100644 vendor/plugins/rails-i18n/README.textile delete mode 100644 vendor/plugins/rails-i18n/init.rb delete mode 100644 vendor/plugins/rails-i18n/rails/action_view.yml delete mode 100644 vendor/plugins/rails-i18n/rails/active_record.yml delete mode 100644 vendor/plugins/rails-i18n/rails/active_support.yml delete mode 100644 vendor/plugins/rails-i18n/script/update.rb delete mode 100644 vendor/plugins/rails-i18n/test/lib/key_structure.rb delete mode 100644 vendor/plugins/rails-i18n/test/structure.rb delete mode 100644 vendor/plugins/rails-i18n/tools/Rails I18n.tmbundle/Commands/Lookup Translation.tmCommand delete mode 100644 vendor/plugins/rails-i18n/tools/Rails I18n.tmbundle/Commands/extract translation.tmCommand delete mode 100644 vendor/plugins/rails-i18n/tools/Rails I18n.tmbundle/Support/lib/dictionary.rb delete mode 100644 vendor/plugins/rails-i18n/tools/Rails I18n.tmbundle/Support/lib/rails_i18n.rb delete mode 100644 vendor/plugins/rails-i18n/tools/Rails I18n.tmbundle/Support/lib/yaml_waml.rb delete mode 100644 vendor/plugins/rails-i18n/tools/Rails I18n.tmbundle/info.plist rename vendor/{plugins/rails-i18n/locale => rails-locales}/ar.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/bg.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/bn-IN.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/bs.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/ca.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/cs.rb (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/cy.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/da.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/de-AT.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/de-CH.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/de.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/dsb.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/el.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/en-AU.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/en-GB.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/en-US.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/eo.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/es-AR.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/es-CL.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/es-CO.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/es-MX.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/es-PE.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/es.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/et.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/eu.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/fa.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/fi.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/fr-CA.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/fr-CH.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/fr.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/fun/en-AU.rb (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/fun/gibberish.rb (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/fur.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/gl-ES.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/gsw-CH.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/he.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/hi-IN.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/hi.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/hr.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/hsb.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/hu.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/id.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/is.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/it.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/ja.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/ko.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/lo.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/lt.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/lv.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/mk.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/mn.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/nb.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/nl.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/nn.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/pl.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/pt-BR.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/pt-PT.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/rm.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/ro.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/ru.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/sk.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/sl.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/sr-Latn.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/sr.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/sv-SE.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/sw.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/th.rb (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/tr.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/uk.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/vi.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/zh-CN.yml (100%) rename vendor/{plugins/rails-i18n/locale => rails-locales}/zh-TW.yml (100%) diff --git a/Gemfile b/Gemfile index 2e05c7950..7e356e554 100644 --- a/Gemfile +++ b/Gemfile @@ -10,6 +10,7 @@ gem 'oauth-plugin', '>= 0.3.14' gem 'httpclient' gem 'SystemTimer', '>= 1.1.3', :require => 'system_timer' gem 'sanitize' +gem 'rails-i18n-updater' # Should only load if memcache is in use gem 'memcached' diff --git a/vendor/plugins/rails-i18n/.gitignore b/vendor/plugins/rails-i18n/.gitignore deleted file mode 100644 index ba5ac4be9..000000000 --- a/vendor/plugins/rails-i18n/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -.DS_Store -Icon? -._* diff --git a/vendor/plugins/rails-i18n/README.textile b/vendor/plugins/rails-i18n/README.textile deleted file mode 100644 index d3d012935..000000000 --- a/vendor/plugins/rails-i18n/README.textile +++ /dev/null @@ -1,55 +0,0 @@ -h1. Rails Locale Data Repository - -Central point to collect locale data for use in Ruby on Rails. - -To contribute just send me a pull request, patch or plain text file. - -Please include a comment with the language/locale name and your name and email address (or other contact information like your github profile) to the locale file so people can come contact you and ask questions etc. - -Also, please pay attention to save your files as UTF-8. - -h2. Rails translations plugin - -To include the translations of this repository into your application, simply install it as a plugin: - -./script/plugin install git://github.com/zargony/rails-i18n.git - -The plugin will load Rails core translations of locales you are using in your app. (i.e. if you have en.yml, de.yml and fr.yml in config/locales, Rails core locales for :de and :fr are added). These translations are added to the I18n load path before application locales, so you can still override them in your application locales. - -h2. Rails translations - -Simple tool for testing the integrity of your key structure: - -Make sure you have the Ruby I18n gem installed. If you haven't already you can try: - -sudo gem install svenfuchs-i18n -s http://gems.github.com - -Then, standing in the root directory of this repository, do: - -ruby test/structure.rb [your-locale] - -Assuming that there is a file locale/[your-locale].{rb,yml} you will get a summary of missing and bogus keys as well as extra pluralization keys in your locale data. - -h2. Rails I18n Textmate bundle - -Still in a very experimental state but already helpful for me. - -The bundle adds a single command: extract translation (shift-cmd-e) - -# expects you to have a string selected (including single or double quotes) -# prompts you for a dot-separated key -# opens the file /log/translations.yml (creating it when not available) -# adds the translation (mapping the dot-separated key to nested yaml keys) -# replaces the selected string in your source-code with the dot-separated key wrapped into a call to t(your.key) - -It currently expects that you're working with English views, so it uses :en as a locale in translation.yml. - -Note that Textmate, while active, won't reload the translations.yml for you if it's already open. When you give the focus to another application and then go back to Textmate (e.g. with cmd-tab, cmd-tab) it will reload the file. I found it useful to have translations.yml open on a second monitor while extracting translations from my application. - -I still have to figure out how to automatically select the next string after this command has run. It works well to just use Textmate's "Find Next" though: - -# hit cmd-f and give it ("|').*(\1) as a search expression, tell it to use this as a "Regular expression" -# hit return and it will select the next string -# use shift-cmd-e to extract that string -# hit cmd-g to select the next string - diff --git a/vendor/plugins/rails-i18n/init.rb b/vendor/plugins/rails-i18n/init.rb deleted file mode 100644 index 35b987c40..000000000 --- a/vendor/plugins/rails-i18n/init.rb +++ /dev/null @@ -1,15 +0,0 @@ -# Rails plugin initialization: add default locales to I18n.load_path -# - only add locales that are actually used in the application -# - prepend locales so that they can be overwritten by the application -# -# We do this after_initialize as the I18n.load_path might be modified -# in a config/initializers/initializer.rb -class Rails::Initializer #:nodoc: - def after_initialize_with_translations_import - after_initialize_without_translations_import - used_locales = I18n.load_path.map { |f| File.basename(f).gsub(/\.(rb|yml)$/, '') }.uniq - files_to_add = Dir[File.join(File.dirname(__FILE__), 'locale', "{#{used_locales.join(',')}}.{rb,yml}")] - I18n.load_path.unshift(*files_to_add) - end - alias_method_chain :after_initialize, :translations_import -end diff --git a/vendor/plugins/rails-i18n/rails/action_view.yml b/vendor/plugins/rails-i18n/rails/action_view.yml deleted file mode 100644 index afe35691b..000000000 --- a/vendor/plugins/rails-i18n/rails/action_view.yml +++ /dev/null @@ -1,110 +0,0 @@ -"en": - number: - # Used in number_with_delimiter() - # These are also the defaults for 'currency', 'percentage', 'precision', and 'human' - format: - # Sets the separator between the units, for more precision (e.g. 1.0 / 2.0 == 0.5) - separator: "." - # Delimets thousands (e.g. 1,000,000 is a million) (always in groups of three) - delimiter: "," - # Number of decimals, behind the separator (the number 1 with a precision of 2 gives: 1.00) - precision: 3 - - # Used in number_to_currency() - currency: - format: - # Where is the currency sign? %u is the currency unit, %n the number (default: $5.00) - format: "%u%n" - unit: "$" - # These three are to override number.format and are optional - separator: "." - delimiter: "," - precision: 2 - - # Used in number_to_percentage() - percentage: - format: - # These three are to override number.format and are optional - # separator: - delimiter: "" - # precision: - - # Used in number_to_precision() - precision: - format: - # These three are to override number.format and are optional - # separator: - delimiter: "" - # precision: - - # Used in number_to_human_size() - human: - format: - # These three are to override number.format and are optional - # separator: - delimiter: "" - precision: 1 - storage_units: - # Storage units output formatting. - # %u is the storage unit, %n is the number (default: 2 MB) - format: "%n %u" - units: - byte: - one: "Byte" - other: "Bytes" - kb: "KB" - mb: "MB" - gb: "GB" - tb: "TB" - - # Used in distance_of_time_in_words(), distance_of_time_in_words_to_now(), time_ago_in_words() - datetime: - distance_in_words: - half_a_minute: "half a minute" - less_than_x_seconds: - one: "less than 1 second" - other: "less than {{count}} seconds" - x_seconds: - one: "1 second" - other: "{{count}} seconds" - less_than_x_minutes: - one: "less than a minute" - other: "less than {{count}} minutes" - x_minutes: - one: "1 minute" - other: "{{count}} minutes" - about_x_hours: - one: "about 1 hour" - other: "about {{count}} hours" - x_days: - one: "1 day" - other: "{{count}} days" - about_x_months: - one: "about 1 month" - other: "about {{count}} months" - x_months: - one: "1 month" - other: "{{count}} months" - about_x_years: - one: "about 1 year" - other: "about {{count}} years" - over_x_years: - one: "over 1 year" - other: "over {{count}} years" - prompts: - year: "Year" - month: "Month" - day: "Day" - hour: "Hour" - minute: "Minute" - second: "Seconds" - - activerecord: - errors: - template: - header: - one: "1 error prohibited this {{model}} from being saved" - other: "{{count}} errors prohibited this {{model}} from being saved" - # The variable :count is also available - body: "There were problems with the following fields:" - diff --git a/vendor/plugins/rails-i18n/rails/active_record.yml b/vendor/plugins/rails-i18n/rails/active_record.yml deleted file mode 100644 index bf8a71d23..000000000 --- a/vendor/plugins/rails-i18n/rails/active_record.yml +++ /dev/null @@ -1,54 +0,0 @@ -en: - activerecord: - errors: - # The values :model, :attribute and :value are always available for interpolation - # The value :count is available when applicable. Can be used for pluralization. - messages: - inclusion: "is not included in the list" - exclusion: "is reserved" - invalid: "is invalid" - confirmation: "doesn't match confirmation" - accepted: "must be accepted" - empty: "can't be empty" - blank: "can't be blank" - too_long: "is too long (maximum is {{count}} characters)" - too_short: "is too short (minimum is {{count}} characters)" - wrong_length: "is the wrong length (should be {{count}} characters)" - taken: "has already been taken" - not_a_number: "is not a number" - greater_than: "must be greater than {{count}}" - greater_than_or_equal_to: "must be greater than or equal to {{count}}" - equal_to: "must be equal to {{count}}" - less_than: "must be less than {{count}}" - less_than_or_equal_to: "must be less than or equal to {{count}}" - odd: "must be odd" - even: "must be even" - # Append your own errors here or at the model/attributes scope. - - # You can define own errors for models or model attributes. - # The values :model, :attribute and :value are always available for interpolation. - # - # For example, - # models: - # user: - # blank: "This is a custom blank message for {{model}}: {{attribute}}" - # attributes: - # login: - # blank: "This is a custom blank message for User login" - # Will define custom blank validation message for User model and - # custom blank validation message for login attribute of User model. - #models: - - # Translate model names. Used in Model.human_name(). - #models: - # For example, - # user: "Dude" - # will translate User model name to "Dude" - - # Translate model attribute names. Used in Model.human_attribute_name(attribute). - #attributes: - # For example, - # user: - # login: "Handle" - # will translate User attribute "login" as "Handle" - diff --git a/vendor/plugins/rails-i18n/rails/active_support.yml b/vendor/plugins/rails-i18n/rails/active_support.yml deleted file mode 100644 index e604c9ee8..000000000 --- a/vendor/plugins/rails-i18n/rails/active_support.yml +++ /dev/null @@ -1,33 +0,0 @@ -en: - date: - formats: - # Use the strftime parameters for formats. - # When no format has been given, it uses default. - # You can provide other formats here if you like! - default: "%Y-%m-%d" - short: "%b %d" - long: "%B %d, %Y" - - day_names: [Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday] - abbr_day_names: [Sun, Mon, Tue, Wed, Thu, Fri, Sat] - - # Don't forget the nil at the beginning; there's no such thing as a 0th month - month_names: [~, January, February, March, April, May, June, July, August, September, October, November, December] - abbr_month_names: [~, Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec] - # Used in date_select and datime_select. - order: [ :year, :month, :day ] - - time: - formats: - default: "%a, %d %b %Y %H:%M:%S %z" - short: "%d %b %H:%M" - long: "%B %d, %Y %H:%M" - am: "am" - pm: "pm" - -# Used in array.to_sentence. - support: - array: - words_connector: ", " - two_words_connector: " and " - last_word_connector: ", and " diff --git a/vendor/plugins/rails-i18n/script/update.rb b/vendor/plugins/rails-i18n/script/update.rb deleted file mode 100644 index 42f97445a..000000000 --- a/vendor/plugins/rails-i18n/script/update.rb +++ /dev/null @@ -1,12 +0,0 @@ -curr_dir = File.expand_path(File.dirname(__FILE__)) -rails_locale_dir = File.expand_path(File.join(curr_dir, "..", "rails")) - -puts "Fetching latest Rails locale files to #{rails_locale_dir}" - -exec %( - curl -Lo '#{rails_locale_dir}/action_view.yml' http://github.com/rails/rails/tree/master/actionpack/lib/action_view/locale/en.yml?raw=true - - curl -Lo '#{rails_locale_dir}/active_record.yml' http://github.com/rails/rails/tree/master/activerecord/lib/active_record/locale/en.yml?raw=true - - curl -Lo '#{rails_locale_dir}/active_support.yml' http://github.com/rails/rails/tree/master/activesupport/lib/active_support/locale/en.yml?raw=true -) diff --git a/vendor/plugins/rails-i18n/test/lib/key_structure.rb b/vendor/plugins/rails-i18n/test/lib/key_structure.rb deleted file mode 100644 index aeb71651f..000000000 --- a/vendor/plugins/rails-i18n/test/lib/key_structure.rb +++ /dev/null @@ -1,89 +0,0 @@ -$KCODE = 'u' - -require 'rubygems' -require 'i18n' - -module I18n - module Backend - class Simple - public :translations, :init_translations - end - end -end - -class KeyStructure - attr_reader :result - - def initialize(locale) - @locale = locale.to_sym - init_backend - - @reference = I18n.backend.translations[:'en'] - @data = I18n.backend.translations[@locale] - - @result = {:bogus => [], :missing => [], :pluralization => []} - @key_stack = [] - end - - def run - compare :missing, @reference, @data - compare :bogus, @data, @reference - end - - def output - [:missing, :bogus, :pluralization].each do |direction| - next unless result[direction].size > 0 - case direction - when :pluralization - puts "\nThe following pluralization keys seem to differ:" - else - puts "\nThe following keys seem to be #{direction} for #{@locale.inspect}:" - end - puts ' ' + result[direction].join("\n ") - end - if result.map{|k, v| v.size == 0}.uniq == [true] - puts "No inconsistencies found." - end - puts "\n" - end - - protected - - def compare(direction, reference, data) - reference.each do |key, value| - if data.has_key?(key) - @key_stack << key - if namespace?(value) - compare direction, value, (namespace?(data[key]) ? data[key] : {}) - elsif pluralization?(value) - compare :pluralization, value, (pluralization?(data[key]) ? data[key] : {}) - end - @key_stack.pop - else - @result[direction] << current_key(key) - end - end - end - - def current_key(key) - (@key_stack.dup << key).join('.') - end - - def namespace?(hash) - Hash === hash and !pluralization?(hash) - end - - def pluralization?(hash) - Hash === hash and hash.has_key?(:one) and hash.has_key?(:other) - end - - def init_backend - I18n.load_path = %W( - rails/action_view.yml - rails/active_record.yml - rails/active_support.yml - ) - I18n.load_path += Dir["locale/#{@locale}.{rb,yml}"] - I18n.backend.init_translations - end -end diff --git a/vendor/plugins/rails-i18n/test/structure.rb b/vendor/plugins/rails-i18n/test/structure.rb deleted file mode 100644 index 80c0f1a18..000000000 --- a/vendor/plugins/rails-i18n/test/structure.rb +++ /dev/null @@ -1,7 +0,0 @@ -require File.dirname(__FILE__) + '/lib/key_structure.rb' - -locale = ARGV.first || raise("must give a locale as a command line argument") - -test = KeyStructure.new locale -test.run -test.output \ No newline at end of file diff --git a/vendor/plugins/rails-i18n/tools/Rails I18n.tmbundle/Commands/Lookup Translation.tmCommand b/vendor/plugins/rails-i18n/tools/Rails I18n.tmbundle/Commands/Lookup Translation.tmCommand deleted file mode 100644 index e304f8cc1..000000000 --- a/vendor/plugins/rails-i18n/tools/Rails I18n.tmbundle/Commands/Lookup Translation.tmCommand +++ /dev/null @@ -1,53 +0,0 @@ - - - - - beforeRunningCommand - nop - command - #!/usr/bin/ruby -require 'rubygems' -require 'i18n' -I18n.locale = :en -I18n.load_path << File.join(ENV['TM_PROJECT_DIRECTORY'], 'config', 'locales', 'en.yml') - -class << Object - def const_missing(const) - nil - end -end - -def method_missing(method, *args) - "**#{method}**" -end - -def t(*args) - I18n.t(*args) -end - -def args_to_array(*args) - args -end - -args = eval('args_to_array(' + ENV['TM_SELECTED_TEXT'] + ')') - -if args.last.is_a?(Hash) - args.last.each { |k, v| args.last[k] = "**#{k}**" if v.nil? } -end - -print I18n.t(*args) - - fallbackInput - none - input - selection - keyEquivalent - @I - name - Lookup Translation - output - showAsTooltip - uuid - 7DAF30C3-0247-4E94-AA44-DD2E69A6E236 - - diff --git a/vendor/plugins/rails-i18n/tools/Rails I18n.tmbundle/Commands/extract translation.tmCommand b/vendor/plugins/rails-i18n/tools/Rails I18n.tmbundle/Commands/extract translation.tmCommand deleted file mode 100644 index 54b31a1bf..000000000 --- a/vendor/plugins/rails-i18n/tools/Rails I18n.tmbundle/Commands/extract translation.tmCommand +++ /dev/null @@ -1,64 +0,0 @@ - - - - - beforeRunningCommand - nop - command - #!/usr/bin/ruby - -require ENV['TM_SUPPORT_PATH'] + '/lib/ui.rb' -require ENV['TM_BUNDLE_SUPPORT'] + '/lib/rails_i18n.rb' - -class Hash - def deep_merge(other) - # deep_merge by Stefan Rusterholz, see http://www.ruby-forum.com/topic/142809 - merger = proc { |key, v1, v2| Hash === v1 && Hash === v2 ? v1.merge(v2, &merger) : v2 } - merge(other, &merger) - end - - def set(keys, value) - key = keys.shift - if keys.empty? - self[key] = value - else - self[key] ||= {} - self[key].set keys, value - end - end -end - -project_dir = ENV['TM_PROJECT_DIRECTORY'] -path = File.join(project_dir, 'log', 'translations') - -translation = ENV['TM_SELECTED_TEXT'].gsub(/^\s*("|')|("|')\s*$/, '') -key = TextMate::UI.request_string :title => 'Key', :prompt => 'Key' -keys = ['en'] + key.split('.') - -log_file = File.open(path, 'a+') -log_file.puts "#{key}: #{translation}" - -data = { 'en' => {} } -data.set keys, translation - -path = File.join(project_dir, 'log', 'translations.yml') -data = data.deep_merge YAML.load(File.open(path, 'r') { |f| f.read }) if File.exists?(path) - -File.open(path, 'w+') { |f| f.write YAML.dump(data) } - -print "t(:'#{key}')" - - fallbackInput - none - input - selection - keyEquivalent - @E - name - extract translation - output - replaceSelectedText - uuid - 914BB49A-6809-425F-812E-7C3C5321D403 - - diff --git a/vendor/plugins/rails-i18n/tools/Rails I18n.tmbundle/Support/lib/dictionary.rb b/vendor/plugins/rails-i18n/tools/Rails I18n.tmbundle/Support/lib/dictionary.rb deleted file mode 100644 index 35470eb73..000000000 --- a/vendor/plugins/rails-i18n/tools/Rails I18n.tmbundle/Support/lib/dictionary.rb +++ /dev/null @@ -1,478 +0,0 @@ -# = Dictionary -# -# The Dictionary class is a Hash that preserves order. -# So it has some array-like extensions also. By defualt -# a Dictionary object preserves insertion order, but any -# order can be specified including alphabetical key order. -# -# == Usage -# -# Just require this file and use Dictionary instead of Hash. -# -# # You can do simply -# hsh = Dictionary.new -# hsh['z'] = 1 -# hsh['a'] = 2 -# hsh['c'] = 3 -# p hsh.keys #=> ['z','a','c'] -# -# # or using Dictionary[] method -# hsh = Dictionary['z', 1, 'a', 2, 'c', 3] -# p hsh.keys #=> ['z','a','c'] -# -# # but this don't preserve order -# hsh = Dictionary['z'=>1, 'a'=>2, 'c'=>3] -# p hsh.keys #=> ['a','c','z'] -# -# # Dictionary has useful extensions: push, pop and unshift -# p hsh.push('to_end', 15) #=> true, key added -# p hsh.push('to_end', 30) #=> false, already - nothing happen -# p hsh.unshift('to_begin', 50) #=> true, key added -# p hsh.unshift('to_begin', 60) #=> false, already - nothing happen -# p hsh.keys #=> ["to_begin", "a", "c", "z", "to_end"] -# p hsh.pop #=> ["to_end", 15], if nothing remains, return nil -# p hsh.keys #=> ["to_begin", "a", "c", "z"] -# p hsh.shift #=> ["to_begin", 30], if nothing remains, return nil -# -# == Usage Notes -# -# * You can use #order_by to set internal sort order. -# * #<< takes a two element [k,v] array and inserts. -# * Use ::auto which creates Dictionay sub-entries as needed. -# * And ::alpha which creates a new Dictionary sorted by key. -# -# == Authors -# -# * Jan Molic -# * Thomas Sawyer -# -# == Acknowledgments -# -# * Andrew Johnson (merge, to_a, inspect, shift and Hash[]) -# * Jeff Sharpe (reverse and reverse!) -# * Thomas Leitner (has_key? and key?) -# -# Originally ported from OrderHash 2.0, Copyright (c) 2005 jan molic -# -# == History -# -# * 2007.10.31 trans -# ** Fixed initialize so the constructor blocks correctly effected dictionary rather then just the internal hash. -# -# == Copying -# -# Copyright (c) 2005 Jan Molic, Thomas Sawyer -# -# Ruby License -# -# This module is free software. You may use, modify, and/or redistribute this -# software under the same terms as Ruby. -# -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. - - -# = Dictionary -# -# The Dictionary class is a Hash that preserves order. -# So it has some array-like extensions also. By defualt -# a Dictionary object preserves insertion order, but any -# order can be specified including alphabetical key order. -# -# == Usage -# -# Just require this file and use Dictionary instead of Hash. -# -# # You can do simply -# hsh = Dictionary.new -# hsh['z'] = 1 -# hsh['a'] = 2 -# hsh['c'] = 3 -# p hsh.keys #=> ['z','a','c'] -# -# # or using Dictionary[] method -# hsh = Dictionary['z', 1, 'a', 2, 'c', 3] -# p hsh.keys #=> ['z','a','c'] -# -# # but this don't preserve order -# hsh = Dictionary['z'=>1, 'a'=>2, 'c'=>3] -# p hsh.keys #=> ['a','c','z'] -# -# # Dictionary has useful extensions: push, pop and unshift -# p hsh.push('to_end', 15) #=> true, key added -# p hsh.push('to_end', 30) #=> false, already - nothing happen -# p hsh.unshift('to_begin', 50) #=> true, key added -# p hsh.unshift('to_begin', 60) #=> false, already - nothing happen -# p hsh.keys #=> ["to_begin", "a", "c", "z", "to_end"] -# p hsh.pop #=> ["to_end", 15], if nothing remains, return nil -# p hsh.keys #=> ["to_begin", "a", "c", "z"] -# p hsh.shift #=> ["to_begin", 30], if nothing remains, return nil -# -# == Usage Notes -# -# * You can use #order_by to set internal sort order. -# * #<< takes a two element [k,v] array and inserts. -# * Use ::auto which creates Dictionay sub-entries as needed. -# * And ::alpha which creates a new Dictionary sorted by key. -# -class Dictionary - - include Enumerable - - class << self - #-- - # TODO is this needed? Doesn't the super class do this? - #++ - - def [](*args) - hsh = new - if Hash === args[0] - hsh.replace(args[0]) - elsif (args.size % 2) != 0 - raise ArgumentError, "odd number of elements for Hash" - else - while !args.empty? - hsh[args.shift] = args.shift - end - end - hsh - end - - # Like #new but the block sets the order. - # - def new_by(*args, &blk) - new(*args).order_by(&blk) - end - - # Alternate to #new which creates a dictionary sorted by key. - # - # d = Dictionary.alpha - # d["z"] = 1 - # d["y"] = 2 - # d["x"] = 3 - # d #=> {"x"=>3,"y"=>2,"z"=>2} - # - # This is equivalent to: - # - # Dictionary.new.order_by { |key,value| key } - - def alpha(*args, &block) - new(*args, &block).order_by_key - end - - # Alternate to #new which auto-creates sub-dictionaries as needed. - # - # d = Dictionary.auto - # d["a"]["b"]["c"] = "abc" #=> { "a"=>{"b"=>{"c"=>"abc"}}} - # - def auto(*args) - #AutoDictionary.new(*args) - leet = lambda { |hsh, key| hsh[key] = new(&leet) } - new(*args, &leet) - end - end - - # New Dictiionary. - - def initialize(*args, &blk) - @order = [] - @order_by = nil - if blk - dict = self # This ensure autmatic key entry effect the - oblk = lambda{ |hsh, key| blk[dict,key] } # dictionary rather then just the interal hash. - @hash = Hash.new(*args, &oblk) - else - @hash = Hash.new(*args) - end - end - - def order - reorder if @order_by - @order - end - - # Keep dictionary sorted by a specific sort order. - - def order_by( &block ) - @order_by = block - order - self - end - - # Keep dictionary sorted by key. - # - # d = Dictionary.new.order_by_key - # d["z"] = 1 - # d["y"] = 2 - # d["x"] = 3 - # d #=> {"x"=>3,"y"=>2,"z"=>2} - # - # This is equivalent to: - # - # Dictionary.new.order_by { |key,value| key } - # - # The initializer Dictionary#alpha also provides this. - - def order_by_key - @order_by = lambda { |k,v| k } - order - self - end - - # Keep dictionary sorted by value. - # - # d = Dictionary.new.order_by_value - # d["z"] = 1 - # d["y"] = 2 - # d["x"] = 3 - # d #=> {"x"=>3,"y"=>2,"z"=>2} - # - # This is equivalent to: - # - # Dictionary.new.order_by { |key,value| value } - - def order_by_value - @order_by = lambda { |k,v| v } - order - self - end - - # - - def reorder - if @order_by - assoc = @order.collect{ |k| [k,@hash[k]] }.sort_by(&@order_by) - @order = assoc.collect{ |k,v| k } - end - @order - end - - #def ==( hsh2 ) - # return false if @order != hsh2.order - # super hsh2 - #end - - def ==(hsh2) - if hsh2.is_a?( Dictionary ) - @order == hsh2.order && - @hash == hsh2.instance_variable_get("@hash") - else - false - end - end - - def [] k - @hash[ k ] - end - - def fetch(k, *a, &b) - @hash.fetch(k, *a, &b) - end - - # Store operator. - # - # h[key] = value - # - # Or with additional index. - # - # h[key,index] = value - - def []=(k, i=nil, v=nil) - if v - insert(i,k,v) - else - store(k,i) - end - end - - def insert( i,k,v ) - @order.insert( i,k ) - @hash.store( k,v ) - end - - def store( a,b ) - @order.push( a ) unless @hash.has_key?( a ) - @hash.store( a,b ) - end - - def clear - @order = [] - @hash.clear - end - - def delete( key ) - @order.delete( key ) - @hash.delete( key ) - end - - def each_key - order.each { |k| yield( k ) } - self - end - - def each_value - order.each { |k| yield( @hash[k] ) } - self - end - - def each - order.each { |k| yield( k,@hash[k] ) } - self - end - alias each_pair each - - def delete_if - order.clone.each { |k| delete k if yield(k,@hash[k]) } - self - end - - def values - ary = [] - order.each { |k| ary.push @hash[k] } - ary - end - - def keys - order - end - - def invert - hsh2 = self.class.new - order.each { |k| hsh2[@hash[k]] = k } - hsh2 - end - - def reject(&block) - self.dup.delete_if(&block) - end - - def reject!( &block ) - hsh2 = reject(&block) - self == hsh2 ? nil : hsh2 - end - - def replace( hsh2 ) - @order = hsh2.order - @hash = hsh2.hash - end - - def shift - key = order.first - key ? [key,delete(key)] : super - end - - def unshift( k,v ) - unless @hash.include?( k ) - @order.unshift( k ) - @hash.store( k,v ) - true - else - false - end - end - - def <<(kv) - push(*kv) - end - - def push( k,v ) - unless @hash.include?( k ) - @order.push( k ) - @hash.store( k,v ) - true - else - false - end - end - - def pop - key = order.last - key ? [key,delete(key)] : nil - end - - def inspect - ary = [] - each {|k,v| ary << k.inspect + "=>" + v.inspect} - '{' + ary.join(", ") + '}' - end - - def dup - a = [] - each{ |k,v| a << k; a << v } - self.class[*a] - end - - def update( hsh2 ) - hsh2.each { |k,v| self[k] = v } - reorder - self - end - alias :merge! update - - def merge( hsh2 ) - self.dup.update(hsh2) - end - - def select - ary = [] - each { |k,v| ary << [k,v] if yield k,v } - ary - end - - def reverse! - @order.reverse! - self - end - - def reverse - dup.reverse! - end - - # - def first(x=nil) - return @hash[order.first] unless x - order.first(x).collect { |k| @hash[k] } - end - - # - def last(x=nil) - return @hash[order.last] unless x - order.last(x).collect { |k| @hash[k] } - end - - def length - @order.length - end - alias :size :length - - def empty? - @hash.empty? - end - - def has_key?(key) - @hash.has_key?(key) - end - - def key?(key) - @hash.key?(key) - end - - def to_a - ary = [] - each { |k,v| ary << [k,v] } - ary - end - - def to_s - self.to_a.to_s - end - - def to_hash - @hash.dup - end - - def to_h - @hash.dup - end -end \ No newline at end of file diff --git a/vendor/plugins/rails-i18n/tools/Rails I18n.tmbundle/Support/lib/rails_i18n.rb b/vendor/plugins/rails-i18n/tools/Rails I18n.tmbundle/Support/lib/rails_i18n.rb deleted file mode 100644 index 8ab0e2bec..000000000 --- a/vendor/plugins/rails-i18n/tools/Rails I18n.tmbundle/Support/lib/rails_i18n.rb +++ /dev/null @@ -1,2 +0,0 @@ -require File.join(File.dirname(__FILE__), 'dictionary') -require File.join(File.dirname(__FILE__), 'yaml_waml') \ No newline at end of file diff --git a/vendor/plugins/rails-i18n/tools/Rails I18n.tmbundle/Support/lib/yaml_waml.rb b/vendor/plugins/rails-i18n/tools/Rails I18n.tmbundle/Support/lib/yaml_waml.rb deleted file mode 100644 index a0dda2f5d..000000000 --- a/vendor/plugins/rails-i18n/tools/Rails I18n.tmbundle/Support/lib/yaml_waml.rb +++ /dev/null @@ -1,37 +0,0 @@ -# stolen from Kakutani Shintaro http://github.com/kakutani/yaml_waml - -require "yaml" - -class String - def is_binary_data? - false - end -end - -module YamlWaml - def decode(orig_yamled) - yamled_str = case orig_yamled - when String then orig_yamled - when StringIO then orig_yamled.string - else return orig_yamled - end - yamled_str.gsub!(/\\x(\w{2})/){[$1].pack("H2")} - return yamled_str - end - module_function :decode -end - -ObjectSpace.each_object(Class) do |klass| - klass.class_eval do - if method_defined?(:to_yaml) && !method_defined?(:to_yaml_with_decode) - def to_yaml_with_decode(*args) - io = args.shift if IO === args.first - yamled_str = YamlWaml.decode(to_yaml_without_decode(*args)) - io.write(yamled_str) if io - return yamled_str - end - alias_method :to_yaml_without_decode, :to_yaml - alias_method :to_yaml, :to_yaml_with_decode - end - end -end \ No newline at end of file diff --git a/vendor/plugins/rails-i18n/tools/Rails I18n.tmbundle/info.plist b/vendor/plugins/rails-i18n/tools/Rails I18n.tmbundle/info.plist deleted file mode 100644 index 119dcb307..000000000 --- a/vendor/plugins/rails-i18n/tools/Rails I18n.tmbundle/info.plist +++ /dev/null @@ -1,15 +0,0 @@ - - - - - name - Rails I18n - ordering - - 914BB49A-6809-425F-812E-7C3C5321D403 - 7DAF30C3-0247-4E94-AA44-DD2E69A6E236 - - uuid - F217218F-CCD3-45C0-8D67-DB761EA9CE61 - - diff --git a/vendor/plugins/rails-i18n/locale/ar.yml b/vendor/rails-locales/ar.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/ar.yml rename to vendor/rails-locales/ar.yml diff --git a/vendor/plugins/rails-i18n/locale/bg.yml b/vendor/rails-locales/bg.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/bg.yml rename to vendor/rails-locales/bg.yml diff --git a/vendor/plugins/rails-i18n/locale/bn-IN.yml b/vendor/rails-locales/bn-IN.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/bn-IN.yml rename to vendor/rails-locales/bn-IN.yml diff --git a/vendor/plugins/rails-i18n/locale/bs.yml b/vendor/rails-locales/bs.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/bs.yml rename to vendor/rails-locales/bs.yml diff --git a/vendor/plugins/rails-i18n/locale/ca.yml b/vendor/rails-locales/ca.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/ca.yml rename to vendor/rails-locales/ca.yml diff --git a/vendor/plugins/rails-i18n/locale/cs.rb b/vendor/rails-locales/cs.rb similarity index 100% rename from vendor/plugins/rails-i18n/locale/cs.rb rename to vendor/rails-locales/cs.rb diff --git a/vendor/plugins/rails-i18n/locale/cy.yml b/vendor/rails-locales/cy.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/cy.yml rename to vendor/rails-locales/cy.yml diff --git a/vendor/plugins/rails-i18n/locale/da.yml b/vendor/rails-locales/da.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/da.yml rename to vendor/rails-locales/da.yml diff --git a/vendor/plugins/rails-i18n/locale/de-AT.yml b/vendor/rails-locales/de-AT.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/de-AT.yml rename to vendor/rails-locales/de-AT.yml diff --git a/vendor/plugins/rails-i18n/locale/de-CH.yml b/vendor/rails-locales/de-CH.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/de-CH.yml rename to vendor/rails-locales/de-CH.yml diff --git a/vendor/plugins/rails-i18n/locale/de.yml b/vendor/rails-locales/de.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/de.yml rename to vendor/rails-locales/de.yml diff --git a/vendor/plugins/rails-i18n/locale/dsb.yml b/vendor/rails-locales/dsb.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/dsb.yml rename to vendor/rails-locales/dsb.yml diff --git a/vendor/plugins/rails-i18n/locale/el.yml b/vendor/rails-locales/el.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/el.yml rename to vendor/rails-locales/el.yml diff --git a/vendor/plugins/rails-i18n/locale/en-AU.yml b/vendor/rails-locales/en-AU.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/en-AU.yml rename to vendor/rails-locales/en-AU.yml diff --git a/vendor/plugins/rails-i18n/locale/en-GB.yml b/vendor/rails-locales/en-GB.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/en-GB.yml rename to vendor/rails-locales/en-GB.yml diff --git a/vendor/plugins/rails-i18n/locale/en-US.yml b/vendor/rails-locales/en-US.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/en-US.yml rename to vendor/rails-locales/en-US.yml diff --git a/vendor/plugins/rails-i18n/locale/eo.yml b/vendor/rails-locales/eo.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/eo.yml rename to vendor/rails-locales/eo.yml diff --git a/vendor/plugins/rails-i18n/locale/es-AR.yml b/vendor/rails-locales/es-AR.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/es-AR.yml rename to vendor/rails-locales/es-AR.yml diff --git a/vendor/plugins/rails-i18n/locale/es-CL.yml b/vendor/rails-locales/es-CL.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/es-CL.yml rename to vendor/rails-locales/es-CL.yml diff --git a/vendor/plugins/rails-i18n/locale/es-CO.yml b/vendor/rails-locales/es-CO.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/es-CO.yml rename to vendor/rails-locales/es-CO.yml diff --git a/vendor/plugins/rails-i18n/locale/es-MX.yml b/vendor/rails-locales/es-MX.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/es-MX.yml rename to vendor/rails-locales/es-MX.yml diff --git a/vendor/plugins/rails-i18n/locale/es-PE.yml b/vendor/rails-locales/es-PE.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/es-PE.yml rename to vendor/rails-locales/es-PE.yml diff --git a/vendor/plugins/rails-i18n/locale/es.yml b/vendor/rails-locales/es.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/es.yml rename to vendor/rails-locales/es.yml diff --git a/vendor/plugins/rails-i18n/locale/et.yml b/vendor/rails-locales/et.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/et.yml rename to vendor/rails-locales/et.yml diff --git a/vendor/plugins/rails-i18n/locale/eu.yml b/vendor/rails-locales/eu.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/eu.yml rename to vendor/rails-locales/eu.yml diff --git a/vendor/plugins/rails-i18n/locale/fa.yml b/vendor/rails-locales/fa.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/fa.yml rename to vendor/rails-locales/fa.yml diff --git a/vendor/plugins/rails-i18n/locale/fi.yml b/vendor/rails-locales/fi.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/fi.yml rename to vendor/rails-locales/fi.yml diff --git a/vendor/plugins/rails-i18n/locale/fr-CA.yml b/vendor/rails-locales/fr-CA.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/fr-CA.yml rename to vendor/rails-locales/fr-CA.yml diff --git a/vendor/plugins/rails-i18n/locale/fr-CH.yml b/vendor/rails-locales/fr-CH.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/fr-CH.yml rename to vendor/rails-locales/fr-CH.yml diff --git a/vendor/plugins/rails-i18n/locale/fr.yml b/vendor/rails-locales/fr.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/fr.yml rename to vendor/rails-locales/fr.yml diff --git a/vendor/plugins/rails-i18n/locale/fun/en-AU.rb b/vendor/rails-locales/fun/en-AU.rb similarity index 100% rename from vendor/plugins/rails-i18n/locale/fun/en-AU.rb rename to vendor/rails-locales/fun/en-AU.rb diff --git a/vendor/plugins/rails-i18n/locale/fun/gibberish.rb b/vendor/rails-locales/fun/gibberish.rb similarity index 100% rename from vendor/plugins/rails-i18n/locale/fun/gibberish.rb rename to vendor/rails-locales/fun/gibberish.rb diff --git a/vendor/plugins/rails-i18n/locale/fur.yml b/vendor/rails-locales/fur.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/fur.yml rename to vendor/rails-locales/fur.yml diff --git a/vendor/plugins/rails-i18n/locale/gl-ES.yml b/vendor/rails-locales/gl-ES.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/gl-ES.yml rename to vendor/rails-locales/gl-ES.yml diff --git a/vendor/plugins/rails-i18n/locale/gsw-CH.yml b/vendor/rails-locales/gsw-CH.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/gsw-CH.yml rename to vendor/rails-locales/gsw-CH.yml diff --git a/vendor/plugins/rails-i18n/locale/he.yml b/vendor/rails-locales/he.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/he.yml rename to vendor/rails-locales/he.yml diff --git a/vendor/plugins/rails-i18n/locale/hi-IN.yml b/vendor/rails-locales/hi-IN.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/hi-IN.yml rename to vendor/rails-locales/hi-IN.yml diff --git a/vendor/plugins/rails-i18n/locale/hi.yml b/vendor/rails-locales/hi.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/hi.yml rename to vendor/rails-locales/hi.yml diff --git a/vendor/plugins/rails-i18n/locale/hr.yml b/vendor/rails-locales/hr.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/hr.yml rename to vendor/rails-locales/hr.yml diff --git a/vendor/plugins/rails-i18n/locale/hsb.yml b/vendor/rails-locales/hsb.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/hsb.yml rename to vendor/rails-locales/hsb.yml diff --git a/vendor/plugins/rails-i18n/locale/hu.yml b/vendor/rails-locales/hu.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/hu.yml rename to vendor/rails-locales/hu.yml diff --git a/vendor/plugins/rails-i18n/locale/id.yml b/vendor/rails-locales/id.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/id.yml rename to vendor/rails-locales/id.yml diff --git a/vendor/plugins/rails-i18n/locale/is.yml b/vendor/rails-locales/is.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/is.yml rename to vendor/rails-locales/is.yml diff --git a/vendor/plugins/rails-i18n/locale/it.yml b/vendor/rails-locales/it.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/it.yml rename to vendor/rails-locales/it.yml diff --git a/vendor/plugins/rails-i18n/locale/ja.yml b/vendor/rails-locales/ja.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/ja.yml rename to vendor/rails-locales/ja.yml diff --git a/vendor/plugins/rails-i18n/locale/ko.yml b/vendor/rails-locales/ko.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/ko.yml rename to vendor/rails-locales/ko.yml diff --git a/vendor/plugins/rails-i18n/locale/lo.yml b/vendor/rails-locales/lo.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/lo.yml rename to vendor/rails-locales/lo.yml diff --git a/vendor/plugins/rails-i18n/locale/lt.yml b/vendor/rails-locales/lt.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/lt.yml rename to vendor/rails-locales/lt.yml diff --git a/vendor/plugins/rails-i18n/locale/lv.yml b/vendor/rails-locales/lv.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/lv.yml rename to vendor/rails-locales/lv.yml diff --git a/vendor/plugins/rails-i18n/locale/mk.yml b/vendor/rails-locales/mk.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/mk.yml rename to vendor/rails-locales/mk.yml diff --git a/vendor/plugins/rails-i18n/locale/mn.yml b/vendor/rails-locales/mn.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/mn.yml rename to vendor/rails-locales/mn.yml diff --git a/vendor/plugins/rails-i18n/locale/nb.yml b/vendor/rails-locales/nb.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/nb.yml rename to vendor/rails-locales/nb.yml diff --git a/vendor/plugins/rails-i18n/locale/nl.yml b/vendor/rails-locales/nl.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/nl.yml rename to vendor/rails-locales/nl.yml diff --git a/vendor/plugins/rails-i18n/locale/nn.yml b/vendor/rails-locales/nn.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/nn.yml rename to vendor/rails-locales/nn.yml diff --git a/vendor/plugins/rails-i18n/locale/pl.yml b/vendor/rails-locales/pl.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/pl.yml rename to vendor/rails-locales/pl.yml diff --git a/vendor/plugins/rails-i18n/locale/pt-BR.yml b/vendor/rails-locales/pt-BR.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/pt-BR.yml rename to vendor/rails-locales/pt-BR.yml diff --git a/vendor/plugins/rails-i18n/locale/pt-PT.yml b/vendor/rails-locales/pt-PT.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/pt-PT.yml rename to vendor/rails-locales/pt-PT.yml diff --git a/vendor/plugins/rails-i18n/locale/rm.yml b/vendor/rails-locales/rm.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/rm.yml rename to vendor/rails-locales/rm.yml diff --git a/vendor/plugins/rails-i18n/locale/ro.yml b/vendor/rails-locales/ro.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/ro.yml rename to vendor/rails-locales/ro.yml diff --git a/vendor/plugins/rails-i18n/locale/ru.yml b/vendor/rails-locales/ru.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/ru.yml rename to vendor/rails-locales/ru.yml diff --git a/vendor/plugins/rails-i18n/locale/sk.yml b/vendor/rails-locales/sk.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/sk.yml rename to vendor/rails-locales/sk.yml diff --git a/vendor/plugins/rails-i18n/locale/sl.yml b/vendor/rails-locales/sl.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/sl.yml rename to vendor/rails-locales/sl.yml diff --git a/vendor/plugins/rails-i18n/locale/sr-Latn.yml b/vendor/rails-locales/sr-Latn.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/sr-Latn.yml rename to vendor/rails-locales/sr-Latn.yml diff --git a/vendor/plugins/rails-i18n/locale/sr.yml b/vendor/rails-locales/sr.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/sr.yml rename to vendor/rails-locales/sr.yml diff --git a/vendor/plugins/rails-i18n/locale/sv-SE.yml b/vendor/rails-locales/sv-SE.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/sv-SE.yml rename to vendor/rails-locales/sv-SE.yml diff --git a/vendor/plugins/rails-i18n/locale/sw.yml b/vendor/rails-locales/sw.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/sw.yml rename to vendor/rails-locales/sw.yml diff --git a/vendor/plugins/rails-i18n/locale/th.rb b/vendor/rails-locales/th.rb similarity index 100% rename from vendor/plugins/rails-i18n/locale/th.rb rename to vendor/rails-locales/th.rb diff --git a/vendor/plugins/rails-i18n/locale/tr.yml b/vendor/rails-locales/tr.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/tr.yml rename to vendor/rails-locales/tr.yml diff --git a/vendor/plugins/rails-i18n/locale/uk.yml b/vendor/rails-locales/uk.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/uk.yml rename to vendor/rails-locales/uk.yml diff --git a/vendor/plugins/rails-i18n/locale/vi.yml b/vendor/rails-locales/vi.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/vi.yml rename to vendor/rails-locales/vi.yml diff --git a/vendor/plugins/rails-i18n/locale/zh-CN.yml b/vendor/rails-locales/zh-CN.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/zh-CN.yml rename to vendor/rails-locales/zh-CN.yml diff --git a/vendor/plugins/rails-i18n/locale/zh-TW.yml b/vendor/rails-locales/zh-TW.yml similarity index 100% rename from vendor/plugins/rails-i18n/locale/zh-TW.yml rename to vendor/rails-locales/zh-TW.yml -- 2.43.2