Created
April 27, 2014 18:00
-
-
Save davidalexander/11351615 to your computer and use it in GitHub Desktop.
magento - get all quoted translation strings
This file contains hidden or 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
# 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