From ab85ec6375765eeb5588a58bccf7943bb78f2b76 Mon Sep 17 00:00:00 2001 From: Yaroslav Markin Date: Sat, 30 Aug 2008 20:00:38 +0400 Subject: [PATCH] Rename MATCH in SimpleBackend to INTERPOLATION_MATCH --- lib/i18n/backend/simple.rb | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/i18n/backend/simple.rb b/lib/i18n/backend/simple.rb index da89b30..bf569c2 100644 --- a/lib/i18n/backend/simple.rb +++ b/lib/i18n/backend/simple.rb @@ -4,7 +4,7 @@ module I18n module Backend class Simple INTERPOLATION_RESERVED_KEYS = %w(scope default) - MATCH = /(\\\\)?\{\{([^\}]+)\}\}/ + INTERPOLATION_MATCH = /(\\\\)?\{\{([^\}]+)\}\}/ # Accepts a list of paths to translation files. Loads translations from # plain Ruby (*.rb) or YAML files (*.yml). See #load_rb and #load_yml @@ -126,7 +126,7 @@ module I18n string.force_encoding(Encoding::BINARY) end - result = string.gsub(MATCH) do + result = string.gsub(INTERPOLATION_MATCH) do escaped, pattern, key = $1, $2, $2.to_sym if escaped -- 1.5.6