Announcement
Collapse
No announcement yet.
language problem after upgrade to 4.1.11
Collapse
X
-
Originally posted by thermax04 View PostWhich Arabic Language file are you using now, Iam using Translate By Almuhajir v 4.1.10Originally posted by baghdad4ever View Posthi
i used my own Arabic Language file ( I'm translated the original English file since 3.6 and update it with every version)
Comment
-
Someone needs to open a ticket so we can look at the database itself. May well be a bug but need to determine how it is working before we report it.Translations provided by Google.
Wayne Luke
The Rabid Badger - a vBulletin Cloud demonstration site.
vBulletin 5 API
Comment
-
hi wayne
plz see these
but i dont know the exact way to fix that
http://tracker.vbulletin.com/browse/VBIV-14468
http://tracker.vbulletin.com/browse/VBIV-14446
Comment
-
You can look for this line:
Code:function fetch_phrase($phrasename, $fieldname, $strreplace = '', $doquotes = true, $alllanguages = false, $languageid = false, $dobracevars = true)
Code:function fetch_phrase($phrasename, $fieldname, $strreplace = '', $doquotes = true, $alllanguages = false, $languageid = -2, $dobracevars = true)
Translations provided by Google.
Wayne Luke
The Rabid Badger - a vBulletin Cloud demonstration site.
vBulletin 5 API
Comment
-
hi wayne
in which file we must do this change?Last edited by baghdad4ever; Tue 6 Mar '12, 10:39am.
Comment
-
A quick grep of the vBulletin files shows it to be in includes/functions_misc.php.Translations provided by Google.
Wayne Luke
The Rabid Badger - a vBulletin Cloud demonstration site.
vBulletin 5 API
Comment
-
Unfortunately, you'll have to wait until a proper fix in 4.1.12 then. I don't know what the full fix is and only have the same information as you do from that JIRA issue.Translations provided by Google.
Wayne Luke
The Rabid Badger - a vBulletin Cloud demonstration site.
vBulletin 5 API
Comment
-
A working fix, tested and working:In file includes/functions_misc.php, around line 854, 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
* @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) {
Comment
-
Same on my forum. Thank you, thermax04, your advice helped to overcome this bug.Boris Lifanovsky; administrator of the biggest Russian classical music forum
Lifanovsky.com | ForumKlassika.Ru
Comment
-
Originally posted by thermax04 View PostA working fix, tested and working:In file includes/functions_misc.php, around line 854, 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
* @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) {Translations provided by Google.
Wayne Luke
The Rabid Badger - a vBulletin Cloud demonstration site.
vBulletin 5 API
Comment
-
Originally posted by lifanovsky View PostSame on my forum. Thank you, thermax04, your advice helped to overcome this bug.
Originally posted by Wayne Luke View PostCan you please post this in the JIRA Entry linked above. Thanks for the contribution.
Comment
-
Post you're fix/workaround in this issue here: http://tracker.vbulletin.com/browse/VBIV-14446
That is what the developers look at and go by to fix issues in the software.Translations provided by Google.
Wayne Luke
The Rabid Badger - a vBulletin Cloud demonstration site.
vBulletin 5 API
Comment
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Comment