• Resolved mcaso

    (@mcaso)


    Hello,

    I am using Give plugin for a blog in two languages (English and German). Everything is working fine but I would like to change the label “EMAIL Adresse” in the form in German.

    Following a post I found I created a folder give in languages/give (in order to avoid losing customizations if I updated the plugin). I put there the give-de_DE.po (which I modified) and also the give-de_DE.mo.
    But it’s not working. Shall I need to write some code in another file?
    I am using twenty twelve theme, I have my child theme and also a function.php where I have already included some modification to make mandatory the last name in the Give form

    I really appreciate any help!

    https://ww.wp.xz.cn/plugins/give/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Interesting subject, mcaso. I’m running into similar problems.

    I use the plugin »loco translate« to custom translate some german words and phrases. With this plugin you can change and save .po and .mo. files directly within WordPress. It puts the custom translation files inside wp-contend > languages > plugins. Btw all my plugin translations are in there. But the custom give translations were not taking effect unless I moved the .po + .mo. into that separate give folder like you described above. I have no idea why this folder is necessary.

    Now the translations are effective, but I can make no further changes to them with loco, because it doesn’t see them anymore in the give folder. Too bad.

    And yes, I also have some words and phrases, that I cannot translate in .po f.ex. »View the receipt in your browser » It simply doesn’t appear for translation. Maybe getText is missing for some words and phrases.

    I’m sure we both are soon getting our problems solved.

    Thread Starter mcaso

    (@mcaso)

    Hello pangotango

    Thank you for your email. I am more relax because I am new doing that and I was thinking that for sure I was missing something.
    I hope somebody can help both of us.

    Regards,
    Marcela

    Marcela – I finally could resolve my problem with the missing german phrases and found a workflow for my custom translations I want to share.

    My problem was caused by the latest give update and some additional new english strings that were not included in the default german translation. But now I have the custom translation that I wanted and here is how I did it pretty quickly with the »loco-translation« plugin:

    1. Select your chosen language and click on it
    2. – Sync – (syncs with the latest set of strings from give. Important after an update)
    3. Search for the words or phrases you wanna change
    4. Do your custom translations
    5. Save changes – Done!

    Loco now created two files inside the folder: wp-content > languages > plugins
    give-de_DE.po
    give-de_DE.mo

    To see your changes inside give and your forms you have to move these files into the give folder you have to create inside the languages folder:
    wp-content > languages > give

    Outside of this folder, your changes will not work, because give will instead load the default translation. Of course, you need access to your WP-installation to perform those moves.

    Unfortunately if you want to make further changes to your custom-language-files you have to bring the .po + .mo-files back into their old location: wp-content > languages > plugins
    Otherwise, Loco-translation does not recognize them and will use the default ones again.

    Hope that helped.

    If you’re interested in how I integrated give into my blog you may have a look:
    http://www.tangsworld.de

    Thread Starter mcaso

    (@mcaso)

    Hello,

    I have just done the modificaction and it worked! Thank you so much!!

    Marcela

    Plugin Contributor Devin Walker

    (@dlocc)

    Hey Guys – glad you worked it out together!

    Hi All,

    I am also working on getting on translating strings in the mo, po files.
    I am using poEdit to create the po file.
    I have a translation in the language Marathi.
    I have created the po file, got the mo file, added it to /wp-content/languages/give. I also tried adding the files to /wp-content/languages/plugins/give.
    However, my translations do not appear on the donation form.
    I would really appreciate any pointers to where I could be going wrong.

    Thank you!
    Sarah

    Thread Starter mcaso

    (@mcaso)

    Hello Sarah,

    I have also tried with poEdit and I followed the same steps you did. I put the files in /wp-content/languages/plugins/give and it did not worked.

    But when I did the translations with LOCO plugin (following the steps pangotango suggested) it worked! To be honest I don´t know why. Maybe something to do with the translations tool.

    Yesterday I updated the GIVE plugin and the translations did not suffer any modification so the place where I put it /wp-content/languages/plugins/give seems to be OK.

    Bye for now.
    Marcela

    Hi Marcela,

    Thank you for your message.
    I hope you had a great weekend!
    I tried the loco plugin as you suggested…but no joy!
    My donation form strings are still not showing up in the correct language. I needed to translate in two India language. Both are not working. Not sure what is happening here!

    Best regards,
    Sarah

    Hi there!!
    I have been a complete fool!!
    The translations actually work…I had the locales set wrong!

    Cheers,
    Sarah

    Hi sarah,

    Could you please tell me what you set wrong? Because my translations do not work.
    Thanks!
    Andi

    Plugin Contributor Matt Cromwell

    (@webdevmattcrom)

    Hi @edandy

    Can you tell me the following:

    1) What language are you wanting to support?
    2) What are you naming the local translation file?
    3) Where are you placing the file exactly?

    You can refer to this document for details:
    https://givewp.com/documentation/resources/translating-give/

    Thanks!

    Hi Matt,

    I wrote you an Email on this topic but maybe it helps others too if we discuss it here.

    1) I would like the give form to be in Romanian language
    2) I named it like in the document -> give-ro_RO
    3) I placed it in wp-content/languages/give

    I tried also the Loco plugin but without succes. The problem is like you mentioned in the Email that my Site default language is German and so no matter what I’m doing it will remain German. But can change this setting anywhere?
    Thanks!
    Andi

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

The topic ‘Setting a custom translation’ is closed to new replies.