Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>What I would do is use for example <a href="http://www.digitalvolcano.co.uk/textcrawler.html" rel="nofollow">TextCrawler</a> (for search&amp;replace multiple files at once) and simply turn</p> <ul> <li><code>&gt;edit&lt;</code></li> <li><code>&gt;contact name: &lt;</code></li> <li><code>&gt;Description: &lt;</code></li> </ul> <p>with <em>case-sensitivity</em> <strong>off</strong> into</p> <ul> <li><code>&gt;&lt;?php echo translate("edit"); ?&gt;&lt;</code></li> <li><code>&gt;&lt;?php echo translate("Contact Name"); ?&gt;&lt;</code></li> <li><code>&gt;&lt;?php echo translate("Description"); ?&gt;&lt;</code></li> </ul> <p>(this depends on how many groups of words you want to translate. this is the manual way. If you have a bambillion of different things to 'process' like this you may want to use regex for this as well)</p> <p>..and as for the already PHPfied text in <em>echos</em> use indeed regex:</p> <p><strong>search for</strong> <code>(.*)&lt;.*echo.*["\'](.*)["\'].*&gt;</code> (you may want to be a bit more specific, as this can make alot of false positives - make sure it's suited for the content of the files you want to specifically 'process')</p> <p><strong>and replace with</strong> <code>$1&lt;?php echo translate("$2"); ?&gt;</code></p> <p>..where <strong>$1</strong> (first parentheses in the 'search for' condition) stands for whitespaces on the line or whatever (trying to keep the indentation) and <strong>$2</strong> (second parentheses) stands for the originally echoed string. It also takes both <code>"</code>s and <code>'</code>s as correct quotation for echoed text.</p> <p>And for the love of science: </p> <h2>BACKUP all your code!</h2> <p>..before you do things like this :D</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload