Plugin Author
Tim W
(@timwhitlock)
Did you upgrade WordPress or BuddyPress just before they disappeared?
Nop.
I did install a theme upgrade, but after installed everything was fine. What worries me is that WPLANG warning. Do I need to do something?
One other thing, just happened, in updates from my dashword it said that some of my translations needed an update, after updating, went to my buddypress package, said 1275 strings and 100% translated, no changes in the front end, went to loco, buddypres.pot, press sync, and now appears buddypress.pot whit only 70% translated and 1529 strings.
This happened too after the theme upgrade, that is when i translated those untranslated strings that now are lost.
Plugin Author
Tim W
(@timwhitlock)
The WPLANG warning appears when you’ve upgraded to WordPress 4. This is why I ask.
The warning is telling you that WordPress no longer uses this setting and will be ignoring your “es_ES” value. You should set your Spanish locale in the site Settings page instead.
For reference: http://timwhitlock.info/blog/2014/10/wordpress-4-deprecates-the-wplang-constant/
Example:
Buddypress.pot with 1529 strings
buddypress-es_ES.po with 70% translated,1529 strings, like 400 need translation
i try this: translate just one string (i.e.) Site-wide Activity, sync, save, looks perfect.
Go to dashboard, need translation update, I press ok.
Now front end doesn´t show AGAIN my translation and in the file buddypress-es_ES.po now shows only 1296 strings and 100% translated.
AHHHHGGGG
Thanks for your answer, you mean in Settings/General?
It is already in spanish.
Plugin Author
Tim W
(@timwhitlock)
Regarding sync:
If you didn’t author the plugin and the developer has provided a POT file you should not alter it. i.e. you should not sync the POT to the source code unless you really know what you’re doing.
The POT files is there for you to sync your PO files. So by all means hit “sync” from your own translations, but unless you’re developing the plugin, don’t sync anything else.
I hope that makes sense.
Plugin Author
Tim W
(@timwhitlock)
I’m not familiar with the “need translation update” notice or what it’s doing.
Just make sure your own PO files aren’t getting over-written. Make sure you put them under the global languages directory as opposed to putting them under the plugins language folder.
Thanks, I won´t touch POT again.
Referring to the localization of the PO files, let´s see if I understand , they are in wpcontent/languages/plugins
and the POT file is under wpcontent/plugins/buddypress
Is that ok?
Thanks for your patience, you are a great help!
Plugin Author
Tim W
(@timwhitlock)
That sounds right, yes.
The plugin author may update the POT in future releases, so it should stay inside the updatable plugin folder (as you say)
The plugin author should not be able to update your own PO files, so they should stay in the global languages directory (as you say) and only synced with the POT when the author has updated it.