language problem after upgrade to 4.1.11
Collapse
X
-
Which Arabic Language file are you using now, Iam using Translate By Almuhajir v 4.1.10Comment
-
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 APIComment
-
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 APIComment
-
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 APIComment
-
i do this change
but unfortunately the problem still
the redirect messages in English instead of ArabicComment
-
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👍 1Comment
-
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.RuComment
-
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) {Translations provided by Google.
Wayne Luke
The Rabid Badger - a vBulletin Cloud demonstration site.
vBulletin 5 APIComment
-
Sorry To ask, what do you mean by (post this in the JIRA Entry linked above)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 APIComment
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Comment