Your Time:
Our Time:
← Back to discussions

Testimonial Manager: After localization with poEdit UTF-8 Issue

Need help with a different issue? Search the forums or open a new ticket.
Open a support ticket

This topic has 27 replies, 4 voices, and was last updated 10 years ago by Fem.

  • 2016-08-18 at 11:34 pm
    Supported
    #16041
    pddv
    Participant
    • Topics: 5
    • Replies: 23
    • Total posts: 28
    • Post count: 46

    I have localized the Testimonial Manager with poEdit into German language. I reworked every php script from UTF-8 with BOM into UTF-8 without BOM, because this often results the umlaut (öäüÖÄÜß –> �������) issue. In that case it doesn’t work. Do you have a hint for me how to solve the issue?

    The HTML tag is already set into german language
    <html xmlns="http://www.w3.org/1999/xhtml" lang="de" xml:lang="de">
    The metatag is already set to utf-8
    <meta charset="utf-8">

    The htaccess file has already the following entry:
    AddDefaultCharset utf-8

    Example:
    https://www.deutsch-vietnamesisch-dolmetscher.com/testimonials/addnew.php

    • This topic was modified 10 years ago by pddv. Reason: more precise
    2016-08-19 at 10:14 am
    #16047
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    Kindly send us the addnew.php file so that we can test at our side and we’ll let you know. Otherwise, if possible provide us Logins to your website with URL then we can take a closer look at it. Make sure you set the post as private reply so that only admin can see your logins.

    2016-08-19 at 2:40 pm
    Supported
    #16058
    pddv
    Participant
    • Topics: 5
    • Replies: 23
    • Total posts: 28
    • Post count: 46

    Maybe you will be able to reproduce the issue through setup the localized text. You will find it in the attachment. If you still have questions, please let me know.

    2016-08-22 at 4:51 am
    Support Expired
    #16074
    ra_spirit
    Participant
    • Topics: 1
    • Replies: 14
    • Total posts: 15
    • Post count: 18

    I agree the same problem with Russian Localization. Please fix it as soon as possible…
    Just in case my localized file. You are free to use it for your future releases.

    2016-08-22 at 11:31 am
    #16086
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    @pddv: Topic is Solved via Skype Communication. But if you want to update this topic please reply here.


    @ra_spirit
    : Replied for the before post.

    2016-08-22 at 2:35 pm
    Supported
    #16092
    pddv
    Participant
    • Topics: 5
    • Replies: 23
    • Total posts: 28
    • Post count: 46

    @ra_spirit:
    modify inculde function.php to your needs

    // Set language

    $advt_lang = "de_DE";
    if( !empty( $advt_lang ) ) {
     putenv('LC_ALL=$advt_lang');
     setlocale(LC_ALL, $advt_lang.".UTF-8");
     bindtextdomain("messages", "./locale");
     textdomain("messages");
     }
    2016-08-22 at 7:06 pm
    Support Expired
    #16099
    ra_spirit
    Participant
    • Topics: 1
    • Replies: 14
    • Total posts: 15
    • Post count: 18

    @pddv Thanks! Is that normal that admin panel is still in English?..
    As I see only addnew.php have been translated everything inside admin panel ./admin still in English…

    2016-08-23 at 2:45 am
    Supported
    #16108
    pddv
    Participant
    • Topics: 5
    • Replies: 23
    • Total posts: 28
    • Post count: 46

    @ra_spirit: No problem, you are welcome! It was the skype result with the guys from the aivah support team. 🙂
    I checked it at my project. Yes, you are right! The admin panel is still in English language.
    Only /testiminials/addnew.php is translated, but not everything within the backend system.

    @aivahthemes:
    It would be really cool, if it would be possible to localize the whole admin area.

    2016-08-23 at 1:18 pm
    #16121
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    @pddv, @ra_spirit: Kindly replace this line bindtextdomain("messages", DOCUMENTROOT.'locale'); in function.php on line no around 84 and update the po and mo files and see. It will work.

    2016-08-24 at 1:40 am
    Support Expired
    #16139
    ra_spirit
    Participant
    • Topics: 1
    • Replies: 14
    • Total posts: 15
    • Post count: 18

    I replaced. Admin panel still in English…

    2016-08-24 at 1:33 pm
    #16149
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    After that you need to update your PO and mo files. Kindly update it using the poedit as the strings with the different lines will impact the no change.

    2016-08-25 at 9:22 am
    Support Expired
    #16215
    ra_spirit
    Participant
    • Topics: 1
    • Replies: 14
    • Total posts: 15
    • Post count: 18

    Yes I fully translated mo files using poedit and admin panel still in English (

    • This reply was modified 10 years ago by ra_spirit.
    2016-08-25 at 12:49 pm
    Supported
    #16220
    pddv
    Participant
    • Topics: 5
    • Replies: 23
    • Total posts: 28
    • Post count: 46

    I fully translated the po/mo files with poedit and my backend is also still in English.

    2016-08-25 at 12:54 pm
    #16223
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    Send your po and mo files.

    2016-08-25 at 1:27 pm
    Supported
    #16224
    pddv
    Participant
    • Topics: 5
    • Replies: 23
    • Total posts: 28
    • Post count: 46

    Here we go. I guess the issue is within the files in the admin folder. It could be the case that the php files in the admin folder, which we got, are not prepared for the translated version.

    2016-08-25 at 4:47 pm
    #16226
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    I have tested with your files and it’s working fine at our end. Kindly take a backup and provide us logins so that we can check what the issue might be. Make sure you set the post as private reply so that only admin can see your wp-logins.

    2016-08-25 at 5:33 pm
    Supported
    #16233
    pddv
    Participant
    • Topics: 5
    • Replies: 23
    • Total posts: 28
    • Post count: 46

    I don’t have the wordpress edition. I have the php/js framework edition. 🙂
    I will handover my login details via skype.

    2016-08-25 at 5:53 pm
    #16238
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    Sorry. By mistake it was.
    Now I have modified the function.php. Kindly check now. If it won’t work, then kindly provide admin logins via skype as you wish.

    2016-08-25 at 6:13 pm
    Supported
    #16242
    pddv
    Participant
    • Topics: 5
    • Replies: 23
    • Total posts: 28
    • Post count: 46

    hi pam, please attach the new file function.php and please describe were the latest changes are. thx! My login details are already sent via skype (45 Minutes ago).

    2016-08-29 at 2:03 pm
    #16293
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    The logins which you have sent in skype are ftp details. Not the admin logins. I want https://www.deutsch-vietnamesisch-dolmetscher.com/testimonials/admin/login.php these logins.

    2016-08-29 at 4:37 pm
    Supported
    #16296
    pddv
    Participant
    • Topics: 5
    • Replies: 23
    • Total posts: 28
    • Post count: 46
    This reply has been marked as private.
    2016-08-29 at 5:54 pm
    #16297
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    I have seen that there is line spacings added for each line of code in your php files. The line numbers in the php files and the line numbers in the po and mo files are different.

    How to fix it?
    Download the script from the server and regenerate the mo and po files and see if it works or not.

    2016-08-31 at 10:27 pm
    Supported
    #16352
    pddv
    Participant
    • Topics: 5
    • Replies: 23
    • Total posts: 28
    • Post count: 46

    Some lines are not possible to translate, because the orginal file does not include for example this line “Discription for Company” within addnew.php:
    – Enter the company name or website <br>example: <a href="http://www.yourname.com/">Website</a>
    – Day, Month, Year

    How could I add a new line in poedit?
    How could I modify a line number, if the line number is incorrect?

    Thank you very much in advance!

    I did not have the wordpress version. I have the php/js/css version.

    • This reply was modified 10 years ago by pddv.
    2016-09-01 at 4:05 pm
    #16367
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    Make sure you have regenerated the mo and po files by using Po Editor Software only. Line spacing’s are added after each line of your php code. I’m not sure why it is adding. Try contacting your hosting provider for this.

    2016-09-01 at 5:34 pm
    Supported
    #16368
    pddv
    Participant
    • Topics: 5
    • Replies: 23
    • Total posts: 28
    • Post count: 46

    Hi Pam,

    you did not really get this point. There is some Text which is not translateable, because the text is not in the original US language file, therefore I can’t translate it into German and because of this reason the text can’t be shown in my language. Please tell me how can I add a new line (and modify) the US Version?

    This Text is not in the original US-language file, e.g.:
    – Enter the company name or website <br>example: <a href="http://www.yourname.com/">Website</a>
    – Day, Month, Year

    Thanks!

    BR
    PDDV

    2016-09-01 at 5:45 pm
    Supported
    #16369
    pddv
    Participant
    • Topics: 5
    • Replies: 23
    • Total posts: 28
    • Post count: 46

    “Solved by myself”

    Edit the language file in US with an Editor of your choise.

    #: addnew.php:148
    msgid “Month”
    msgstr “”

    #: addnew.php:148
    msgid “Year”
    msgstr “”

    #: addnew.php:148
    msgid “Day”
    msgstr “”

    I have to recheck the line numbers after the double point (:148)

    2016-09-01 at 5:47 pm
    Supported
    #16370
    pddv
    Participant
    • Topics: 5
    • Replies: 23
    • Total posts: 28
    • Post count: 46

    “Solved by myself”

    Edit the language file in US with an Editor of your choise.

    #: addnew.php:148
    msgid “Month”
    msgstr “”

    #: addnew.php:148
    msgid “Year”
    msgstr “”

    #: addnew.php:148
    msgid “Day”
    msgstr “”

    #: addnew.php:148
    msgid “Enter the company name or website <br>example : <a href="http://www.yourname.com/">Website</a>
    msgstr “”

    I have to recheck the line numbers after the double point (:148). Afterwords translate it with Poedit in your native language.

    • This reply was modified 10 years ago by pddv.
    2016-09-01 at 6:33 pm
    #16372
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    Found a solution

    Gettext shouldn’t contain any HTML elements to translate. Will consider updating the php files again which will be easier to translate. http://stackoverflow.com/questions/13395600/php-html-inside-gettext-function-string

You must be logged in to reply to this topic.