0

I use PoEdit. It scans all .php files, find each time I use gettext() or _(), and update the .po and .mo files.

I have a .php file that has html tags and php in it, like this :

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> 
  <head>
    <?php
      $message = _("blabla");
    ?> 

Here POEdit does not see "blabla" and so it is not added in the .po file.

Is there a way to make PoEdit scan this portion of php ?

1 Answer 1

1

You need to edit the Poedit parser settings to parse HTML files. To do so, click on File->Preferences, choose the 'Parsers' tab, choose the PHP parser and click 'Edit'. The second field of the 'Parser setup' dialog box shows the extensions used by the parser. You can change the *.php value for the following: *.php;*.htm;*.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.