View Full Version : Some words not translated after upgrade to 4.1.11
thermax04
03-03-2012, 11:35 AM
Some words not translated after upgrade to 4.1.11
I have a Language file is working good since 4.1.3 or may be before (do not remember), after upgrading to 4.1.11 I found some words shows in English only, although when I search for the translation of these phrases I found them
Dr.osamA
03-06-2012, 06:53 AM
hello bro
Some words not translated after upgrade to 4.1.11
that coz thae add new phrases in new 4.1.11
so if you found it by serching you can translate it to your language
بالعربي
اخي الكريم بعد الترقية طبعا تم اضافة عبارات الجديدة و ما دمت انك تستطيع ايجادها في البحث في اللغة و العبارات فهذا يعني يمكنك ترجمتها واضافتها للغتك التي تستخدمها بكل سهولة
غير ذلك اعتقد لو انتظرت قليلا فستجد احد المترجميع العرب قد طرح ملف لغة جديد للاصدار الاخير
حياك الله
thermax04
03-06-2012, 10:02 AM
Dear Osama,
thank you for your reply, I mean That there are some phrases show up in English only although the Arabic translation is already in the Language file, to give you an example look at the attached pics
The phrase is show up in english only althoug my forum is arabic language
https://vborg.vbsupport.ru/attachment.php?attachmentid=136874&stc=1&d=1331031599
The same phrase is already in Arabic in the language file
https://vborg.vbsupport.ru/attachment.php?attachmentid=136875&stc=1&d=1331031599
This appears to be a bug in vb4.1.11 (http://tracker.vbulletin.com/browse/VBIV-14446). If you want, you can try out a temporary fix:
In file includes/functions_misc.php, around line 856, add the lines in red:
if (!empty($strreplace))
{
if (strpos("$phrasename", $strreplace) === 0)
{
$phrasename = substr($phrasename, strlen($strreplace));
}
}
if ($languageid === false)
{
$languageid = LANGUAGEID;
}
$languageid = intval($languageid);
Also in file includes/functions.php line 3908, change -1 to false (scroll right to see it in red):
* @param bool Force bypass of domain whitelist check
*
* @return none (the session is re-directed).
*/
function print_standard_redirect($redir_phrase, $isphrase = true, $forceredirect = false, $languageid = false, $bypasswhitelist = false)
{
if (!VB_API)
{
This seems to fix the problem but I'm not sure what else it could do, so if you try it, let me know how it goes.
thermax04
03-06-2012, 07:57 PM
Dear Kh99
these files are already uploaded, so do mean that I will do those changes then reupload them?
the 1st edit position is line 854 which was empty
Yes, you would have to edit the files and upload them again, overwriting the existing files.
You should first save a copy of the original files (or copy them to another folder before editing) just in case.
thermax04
03-06-2012, 08:24 PM
Yes, you would have to edit the files and upload them again, overwriting the existing files.
You should first save a copy of the original files (or copy them to another folder before editing) just in case.
I have the original files from the vbforum_4_4-1-11_VBFAB4A279 folders when i downloaded them from the customer area, iam going to use copy of them
--------------- Added 1331069516 at 1331069516 ---------------
Dear Kh99
You are the man, It is working
Spika
03-16-2012, 03:18 PM
Hello
This fix donĀ“t work, I have test it in Contac Us page and I still receive the mail in English
Thanks
Hello
This fix don?t work, I have test it in Contac Us page and I still receive the mail in English
Thanks
The fix above was only tested (by me, anyway) on the problems reported in this thread. It might actually be a better solution to just use the function fetch_phrase() from vb 4.1.10, I'm not sure. In any case you might try this (in addition to the above changes): In includes/functions.php around line 3530, add the lines in red:
function fetch_email_phrases($email_phrase, $languageid = -1, $emailsub_phrase = '', $varprefix = '')
{
if ($languageid == -1)
{
$languageid = LANGUAGEID;
}
if (empty($emailsub_phrase))
let us know if it works.
McGyver
03-19-2012, 06:08 PM
The last addition seems to have corrected the problem with the welcome email.
Thanks!
Spika
03-31-2012, 10:21 AM
Yeahhh! the last addition correct the problem in the email Contact Us !!!!
Thanks a lot!
ddrum
04-15-2012, 12:00 AM
The fix above was only tested (by me, anyway) on the problems reported in this thread. It might actually be a better solution to just use the function fetch_phrase() from vb 4.1.10, I'm not sure. In any case you might try this (in addition to the above changes): In includes/functions.php around line 3530, add the lines in red:
function fetch_email_phrases($email_phrase, $languageid = -1, $emailsub_phrase = '', $varprefix = '')
{
if ($languageid == -1)
{
$languageid = LANGUAGEID;
}
if (empty($emailsub_phrase))
let us know if it works.
Is there any way that you can provide a video on how exactly to make these changes? There is so much confusion on these pages that I don't know where to start.
Thanks,
Deborah
Is there any way that you can provide a video on how exactly to make these changes?
I can't do anything like that - maybe someone else will. But I should point out that this fix was only for vb4.1.11. Version 4.1.12 has been released and this problem should be fixed, so you might just want to upgrade to that version.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.