The loco plugin does something, when is not used it’s okay.
My guess is that your FTP uploads have different file permissions from files saved by Loco Translate. This would confirm what I’ve already said, that WordPress will overwrite your files if you don’t protect them.
If uploading files from POEdit via FTP works for you then I suggest you keep doing what works.
I am adding new strings into the po file locally and then I am uploading them via ftp and nothing changed on the frontend, i.e. strings are not translated on the website.
Ok, so you have the same problem using POEdit that you do with Loco Translate. This suggests the problem is not with the editor, but with something else you’re doing.
What about the code that displays these translations. Did you add that to the theme yourself? Can you show it to me?
You suggested safe locations. Do I have to move the theme po and mo files?
I suggested this to solve your first problem. Not your second. You said your first problem is under control.
In answer to your question though – the safe location for theme files is wp-content/languages/loco/themes/<textdomain>-<lang>.mo
. You should always use this location if your theme allows you to, but it will not force your missing translations to show up. This is a separate issue.
-
This reply was modified 8 years ago by
Tim W.