Skip to content

Instantly share code, notes, and snippets.

@okkez
Created May 14, 2009 12:38
Show Gist options
  • Save okkez/111647 to your computer and use it in GitHub Desktop.
Save okkez/111647 to your computer and use it in GitHub Desktop.
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