Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
magento - get all quoted translation strings
# https://twitter.com/mrsopacua/status/447892121283223552 (@mrsopacua)
find app/design/frontend -type f -exec perl -ne 'while($_ =~ /(?<=\W)__\(\s*([\x27\x22])(.+?)\1\s*\)/g) { print "$2\n"; }' {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment