This topic has 27 replies, 4 voices, and was last updated 10 years ago by Fem.
Viewing 28 posts - 1 through 28 (of 28 total)
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
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.
@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.
@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");
}
@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.
@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.
Send your po and mo files.
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.
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.
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.
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.
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.
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.
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
“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)
“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.
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
Viewing 28 posts - 1 through 28 (of 28 total)
You must be logged in to reply to this topic.