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 ?
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.