Reputation:
I have got file abc.php
. There was already a text there. In the languages file I have a file .pot
and .po
. In .po
I translated some text from abc.php. However, when I want to add some new text in abc.php
: <? php esc_html_e ('New text', 'abc'); ?>
the new text does not appear in the .pot
and .po
file.
What can I do to translate the text added by me?
Upvotes: 1
Views: 678
Reputation: 823
Your .pot
and .po
files don't update automatically, you have to add the translation into the files manually.
You can just edit the .po
file in any text editor and then generate the .mo
with Poedit.
Upvotes: 1