Created
May 14, 2009 12:38
-
-
Save okkez/111647 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/gettext/core_ext/string.rb b/lib/gettext/core_ext/string.rb | |
index fa8149c..9eb6d51 100644 | |
--- a/lib/gettext/core_ext/string.rb | |
+++ b/lib/gettext/core_ext/string.rb | |
@@ -64,6 +64,7 @@ class String | |
args.has_key?(key) ? sprintf("%#{$3}", args[key]) : match | |
end | |
} | |
+ ret | |
else | |
ret = gsub(/%([{<])/, '%%\1') | |
begin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment