Content last modified Sunday 24 March 2013
hop to #bottom
Categories:
Author:
uli
About It:
Rate it:
  • Helpful?
  • 0 Yes
  • 0 No
Flag it:
Contact Reason [ ? ]

TextBug

So you want to know what all the language strings are that Textpattern uses internally because you want to trace back a string to the function that makes use of it, or for customizing your site’s text output with wet_babble. But you don’t want to wade the unwieldy language file and search for the right term. Instead you wish to see all these strings in their original places in the admin UI.

You can. Do the following:

  1. Open phpMyAdmin, choose your TXP database, open table txp_lang.
  2. Click the “Insert” tab.
  3. Enter the term “txp_speak” or similar meaningful into the field for “lang”.
  4. Press “Go”.

That’s it, done. You can now switch back into TXP and choose the “language” you just created on the tab for Preferences > Language.

BTW: An indispensable companion for live sites during such attempts is wet_native which lets you switch only your own admin language to txp_speak without potentially changing URLS meanwhile (e.g. “kategorie” in URLs doesn’t change to “category”). And you won’t annoy your co-authors.

Article Request Count:
Keywords/tags:
Posted here:
02 Jul 2008
Article modified:
16 May 2013

Comments/questions? Leave a message in the form.

Your comment will NOT be submitted until you click the 'Submit' button on the next pageload.

Commented (2)

Netcarver:

This is a neat, easy, way to track strings down.

You can also try using the string search features in the MLP pack. But that’s a different story.

Subscribe to this article's comments RSS feed. [ ? ]   View Recent Comments across the site.

You know you want to visit the Archives.

Browse

Categories


Articles

There are also tag clouds, 'cause those are fun.