I'm trying to localize my php
app that uses .ctp
files for the views.
Here a sample of a file's content:
<h2><?php __('Menu');?></h2>
<table >
<tr >
<td style="text-align:left>
<?php echo $html->link('Main Config','/admin/configs/index')?>
</td>
</tr>
PS: this is not my code and I cannot change it - but I need to translate it!
I tried following threads using POEdit
and tried this solution, which however seems to be on a previous version of POEdit
...
So I created a new po
file for de-DE
in my root directory (standard encoddings, ...), opened the catalog's preferences and added .
and one specific /subdir/test.ctp
file containing above code) to my source paths, then added _
and __
to the additional keywords (as well as some others I found to contain some text such as input
and link
, for example).
Then, whether I use update, update from source, no string is found - it says "Translated 0 from 0 (0%)"...
What am I doing wrong here?
NOTE: this is on a windows 10 pc with only POEdit
installed, I didn't install php
nor php-gettext
installed directly on my machine, but they're supposed to be embedded in POEdit
from what I could read...