Trouble with language files
Hi!!
I can’t translate the strings in the activiy.php file
It is translated in the po file, even mark the line in the activty.php
But none of the strings in this php file are translated including among others the following:
I dont’ have problems translating other strings, but these I don’t know why, I can’t.
I’m using last versions of WordPress and AnsPress.
Thanks.
We have recently did many changes in AnsPres for polyglot. There might be some issue with that. Get latest .po and .mo from github and then try.
Else you can send us team viewer id/pass.
Yes you are right, activity are stored as texts in database and this doesn’t update old activities if you update language strings.
Any way to delete old notifications every X time or something similar? I expect to have too many users, and the database can grow a lot!!!!
I will add that feature to clear old activities from DB after an interval.
Thanks!!
Ok. Definitely is a problem with my database.
I installed AnsPress in a new blog, the language files works fine. So in my primary blog I disabled all plugins except AnsPress. Doesn’t Work.
I change the theme. Doesn’t Work.
I DELETED all plugins (except AnsPress) and themes and reinstall WordPress 4.4. Doesn’t Work.
So in the new blog, where all works fine, I uploaded the database from the primary blog, and the translated parts are gone.
I don’t know why, but it seems is a problem with something inside my database. But I don’t know what.
If I discover the problem I will let you know, who knows, in the future someone can have the same problem.
Thanks.
EDIT:
I found it.
The translations strings for the activity.php file works, but only for the new notifications. All notification texts created before the translation, remain in english.
Now works all fine.
Sorry to bother you.