Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-03-2012, 11:35 AM
thermax04 thermax04 is offline
 
Join Date: Apr 2011
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 03-06-2012, 06:53 AM
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Posts: 979
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
بالعربي
اخي الكريم بعد الترقية طبعا تم اضافة عبارات الجديدة و ما دمت انك تستطيع ايجادها في البحث في اللغة و العبارات فهذا يعني يمكنك ترجمتها واضافتها للغتك التي تستخدمها بكل سهولة
غير ذلك اعتقد لو انتظرت قليلا فستجد احد المترجميع العرب قد طرح ملف لغة جديد للاصدار الاخير
حياك الله
Reply With Quote
  #3  
Old 03-06-2012, 10:02 AM
thermax04 thermax04 is offline
 
Join Date: Apr 2011
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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


The same phrase is already in Arabic in the language file
Attached Images
File Type: jpg Untitled 2.jpg (16.2 KB, 0 views)
File Type: jpg Untitled 3.jpg (68.3 KB, 0 views)
Reply With Quote
  #4  
Old 03-06-2012, 11:48 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
4 благодарности(ей) от:
amin, baghdad4ever, Breixo, Lynne
  #5  
Old 03-06-2012, 07:57 PM
thermax04 thermax04 is offline
 
Join Date: Apr 2011
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 03-06-2012, 08:01 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 03-06-2012, 08:24 PM
thermax04 thermax04 is offline
 
Join Date: Apr 2011
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
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
Reply With Quote
  #8  
Old 03-16-2012, 03:18 PM
Spika's Avatar
Spika Spika is offline
 
Join Date: Jun 2006
Location: Marbella - Spain
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello
This fix don´t work, I have test it in Contac Us page and I still receive the mail in English

Thanks
Reply With Quote
  #9  
Old 03-18-2012, 05:49 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Spika View Post
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.
Reply With Quote
2 благодарности(ей) от:
McGyver, Spika
  #10  
Old 03-19-2012, 06:08 PM
McGyver McGyver is offline
 
Join Date: Mar 2012
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The last addition seems to have corrected the problem with the welcome email.

Thanks!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:28 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.13863 seconds
  • Memory Usage 2,292KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (6)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete