• Resolved carmeladcx

    (@carmeladcx)


    Yesterday I translated to spanish all my buddypress strings, everything seemed fine, I saved and syncronized and they looked right on the front end. Today it´s gone. Translation is back to the point when i started translating. Don´t know what went wrong, but there is a warning WPLANG is deprecated and should be removed. What does it mean? I looked in the wpconfig file and language is es_ES, which is what I want…can you help me? I´m sure I´m doing something wrong, but what? I don´t want to translate everything again and lose it tomorrow.

    https://ww.wp.xz.cn/plugins/loco-translate/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Tim W

    (@timwhitlock)

    Did you upgrade WordPress or BuddyPress just before they disappeared?

    Thread Starter carmeladcx

    (@carmeladcx)

    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/

    Thread Starter carmeladcx

    (@carmeladcx)

    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

    Thread Starter carmeladcx

    (@carmeladcx)

    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.

    Thread Starter carmeladcx

    (@carmeladcx)

    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.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Translation is lost’ is closed to new replies.