vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Some words not translated after upgrade to 4.1.11 (https://vborg.vbsupport.ru/showthread.php?t=279483)

thermax04 03-03-2012 11:35 AM

Some words not translated after upgrade to 4.1.11
 
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
Quote:

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

1 Attachment(s)
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/attachmen...1&d=1331031599

The same phrase is already in Arabic in the language file
https://vborg.vbsupport.ru/attachmen...1&d=1331031599

kh99 03-06-2012 11:48 AM

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:
Code:

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):
Code:

* @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

kh99 03-06-2012 08:01 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.

thermax04 03-06-2012 08:24 PM

Quote:

Originally Posted by kh99 (Post 2306903)
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 [DATE]1331069516[/DATE] at [TIME]1331069516[/TIME] ---------------

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

kh99 03-18-2012 05:49 PM

Quote:

Originally Posted by Spika (Post 2310091)
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:

Code:

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!


All times are GMT. The time now is 10:40 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01150 seconds
  • Memory Usage 1,748KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete