Monday, October 18, 2010

internationalization regex

Just a quick vim regex that's useful when adding internationalization to a file:


Wraps all quoted strings in a gettext() call, preserving inner (and escaped) quotes. Doing this in vim instead of sed allows a cursory review of the changes in case any of them * shouldn't* be changed (e.g. log strings).

No comments:

Post a Comment