vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Phrase Issues (https://vborg.vbsupport.ru/showthread.php?t=316030)

Daniel 12-15-2014 11:46 AM

Phrase Issues
 
Hey all,

I've got some weird phrase issues going on. I installed French on my forum, and it appears to be leaking into the English. I can fix it manually by copying the default text into the English language, but there's just so much...

Has anyone encountered this problem? Have you found an easier way to fix it? If you haven't, but have an idea, please share.

Much thanks!

Edit: To fix this issue, run this query:

highly recommend backing up your board first though - I lost my custom phrases in the process

Code:

DELETE FROM phrase WHERE languageid = 0

kh99 12-15-2014 12:47 PM

Hmm...in the admincp under Settings > Options > Style & Language Settings, what do you have selected for Default Language?

Daniel 12-15-2014 12:58 PM

1 Attachment(s)
Funny you should ask :P

kh99 12-15-2014 01:03 PM

So you have English selected as default but you're still getting French sometimes? I guess that was my only idea.

ozzy47 12-15-2014 01:07 PM

Perhaps the language pack has phrases in it that are not in vB by default?

Daniel 12-15-2014 01:08 PM

Quote:

Originally Posted by kh99 (Post 2527284)
So you have English selected as default but you're still getting French sometimes?

Yep, exactly.

Quote:

Originally Posted by ozzy47
Perhaps the language pack has phrases in it that are not in vB by default?

I dunno, I downloaded the French version directly from the vBulletin.com Members Area, but I suppose that's possible. What to do?

kh99 12-15-2014 01:26 PM

Well, I've never installed a language pack or worked with anything other than English, but I've looked at the fetch_phrase() function that decides which language to get a phrase from. It goes through them in a certain order and looks for the first language where the phrase is non-blank. So from what you describe it seems that it's finding the French before the 'Master" language, or else installing that language pack has somehow made French the 'Master' language. I think the master should be english that vbulletin comes with by default, so it should contain all phrases. But if someone or something has added phrases then Ozzy could be right. (Well, except that I still can't see why it wouldn't use the English if it exists in one of the other languages).

If you put your site in to debug mode (temporarily), the Master language should appear in the Language Manager. Maybe if you look at that it will provide some clues.

Here's an article on turning on debug mode if you haven't used it before: https://vborg.vbsupport.ru/showthread.php?t=265999 .

Daniel 12-16-2014 10:03 AM

Yea... I did fine something interesting. It seems that all the phrases have the option to be "reverted" to their original. I'd like to revert them all, without doing that manually, if possible. Do you know of a way to do that?

Welp, either that or forgetting this 'Master Language' business and using 'English' as the default.

Hey y'all, an update; Running this query solved the issue.
Code:

DELETE FROM phrase WHERE languageid = 0
highly recommend backing up your board first though - I lost my custom phrases in the process

Lynne 12-16-2014 04:10 PM

How did you go about uploading the style? You didn't select to upload it as the Master Style, did you? (That should only be an option if you are in debug mode.)

Daniel 12-16-2014 05:40 PM

I'm not sure what you mean by style. Do you mean language? I didn't upload the language while the forum was in debug mode, so I don't think that was an option. Also note that there was a mix of the languages-95% English, 5% French. It was weird...

HM666 12-16-2014 05:56 PM

Quote:

Originally Posted by Daniel (Post 2527522)
I'm not sure what you mean by style. Do you mean language? I didn't upload the language while the forum was in debug mode, so I don't think that was an option. Also note that there was a mix of the languages-95% English, 5% French. It was weird...

The Style refers to your skin (the design) for your forum. So it is not a language its the look and feel of your site.

kh99 12-16-2014 06:05 PM

Quote:

Originally Posted by HM666 (Post 2527526)
The Style refers to your skin (the design) for your forum. So it is not a language its the look and feel of your site.

I think he knew that but was confused because we were talking about languages, not styles. I think Lynne probably misspoke.

In any case, Daniel, you're saying that deleting all the English phrases from language 0 made it so that some French phrases didn't show up any more? That's strange. Or was it that language 0 had some French phrases in it?

HM666 12-16-2014 06:07 PM

Quote:

Originally Posted by kh99 (Post 2527528)
I think he knew that but was confused because we were talking about languages, not styles. I think Lynne probably misspoke.

In any case, Daniel, you're saying that deleting all the English phrases from language 0 made it so that some French phrases didn't show up any more? That's strange. Or was it that language 0 had some French phrases in it?

Ah I saw her post and figured there was confusion on the difference between the two. Whoops sorry my senile self will go take my afternoon nap now lol.

Lynne 12-16-2014 06:33 PM

Quote:

Originally Posted by kh99 (Post 2527528)
I think he knew that but was confused because we were talking about languages, not styles. I think Lynne probably misspoke.

I did. I meant to ask how he went about uploading the *language" xml file and what settings he picked on the upload page when he did so.

Daniel 12-16-2014 10:23 PM

Quote:

Originally Posted by kh99 (Post 2527528)
I think he knew that but was confused because we were talking about languages, not styles. I think Lynne probably misspoke.

In any case, Daniel, you're saying that deleting all the English phrases from language 0 made it so that some French phrases didn't show up any more? That's strange. Or was it that language 0 had some French phrases in it?

At this point... I don't know. I was just doing some research and stumbled upon someone who said that it worked for them. I tried it, and it worked---but custom phrases were removed in the process. That's OK with me though as it beats having to convert from French to English manually.


All times are GMT. The time now is 06:28 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.01052 seconds
  • Memory Usage 1,753KB
  • 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
  • (2)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (15)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete