-
-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot translate long string #196
Comments
Hi, can you provide a test case reproducing this error? |
Hi oscar, thanks for your response. here is an example of text that is not translated. I call a text from database and include variable and become like this. Here is the text |
Can I see the php code in which the variables are included? |
I noticed that with extra long texts it does not work. `<?php use Gettext\GettextTranslator; //Create a new instance $translate->setLanguage("en_US"); //Load the domains: $mysqli = new mysqli(DBHOST, DBUSER , DBPASSWORD, DBNAME); echo __($query["description"]); I also increase memory limit on the server with no success. |
This library is not correctly used here. $query_db = $mysqli->query(" SELECT description_en as description FROM products WHERE....");
$query = $query_db->fetch_assoc();
echo $query['description']; Doing it as in your example, you must be sure that |
Thanks Oscar, |
I guess this issue is due any character that is different in po and db (a white space or something like this). |
Ok i'm going to check again this possibilites. |
Hi guys,
i'm already using this sdk, and works very well.
I have a little issue in some case the translation, some string don't become translated.
For example i have a string that have 931 characters and don't begin translated.
Thanks in advace for help
Best.
The text was updated successfully, but these errors were encountered: