[wp-hackers] Non-gettexted string detection tools?

Andrew Nacin wp at andrewnacin.com
Wed Sep 25 00:32:38 UTC 2013


On Tue, Sep 24, 2013 at 7:30 PM, Shea Bunge <info at bungeshea.com> wrote:

> You can try the Pig Latin <http://wordpress.org/plugins/piglatin/> plugin
> that displays all translatable strings as Pig
> Latin<http://en.wikipedia.org/wiki/Pig_Latin>.
> This way, all untranslated strings stick out.
>
> Others might laugh, but this is pretty standard practice.

Others prefer an encheferizer.
http://en.wikipedia.org/wiki/Swedish_Chef#Computer_translations

For something more jarring, try:

$empty_string = function() { return ''; };
foreach ( array( 'gettext', 'ngettext' ) as $filter ) {
    add_filter( $filter, $empty_string );
    add_filter( $filter . '_with_context', $empty_string );
}


More information about the wp-hackers mailing list