1
sprion
xlanguage language tag shown and not hidden problem
  • 2006/11/5 10:34

  • sprion

  • Just popping in

  • Posts: 33

  • Since: 2004/9/29


Hi guys,

my site at http://www.jerictan.com/2xp has a weird problem.

The language tags like [en] & [sc] reveals with the respective language text for the selected language.

For example when I select English as the site language,
the text "[en]Hello world[/en]" is shown.

When I select Simplified Chinese, "[sc]Some chinese[/sc]" is shown.

How can I prevent the language tag from revealing?

I'm wondering if it's something wrong I did.. Please advise thanks.

2
Lance_
Re: xlanguage language tag shown and not hidden problem
  • 2006/11/7 0:55

  • Lance_

  • Home away from home

  • Posts: 983

  • Since: 2004/1/12


I'm having the same problem on my site. The tags appear along with the text.

The text does switch from on language to the other, but the tags show.

xlanguage v3.01

Cheers.


EDIT///////////
xlanguage 3.00 works fine.
Guess this needs added to bug tracker.
GDL-Web.com :: Website development.
Xoopslance.com::Freelancing and Projects
thelionsden-arena.net:: Clan/League/Ladder Hosting

3
sprion
Re: xlanguage language tag shown and not hidden problem
  • 2006/11/7 4:36

  • sprion

  • Just popping in

  • Posts: 33

  • Since: 2004/9/29


i'm not alone! 3.01 ! alright.. thanks for the tip. I'll probably go back to 3.0 for the time being :)

4
Xtracted
Re: xlanguage language tag shown and not hidden problem
  • 2006/11/8 17:02

  • Xtracted

  • Not too shy to talk

  • Posts: 138

  • Since: 2004/1/7 2


I also have the exact same problem..

5
phppp
Re: xlanguage language tag shown and not hidden problem
  • 2006/11/13 17:10

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


/modules/xlanguage/include/functions.php
line #192/198
/* */
    
if(isset($xlanguage_langs[$xoopsConfig['language']])) {
        
$lang $xlanguage_langs[$xoopsConfig['language']];
        
$patterns[] = '/([([^]]*|)?'.preg_quote($lang).'(|[^]]*)?])('.$mid_pattern.')([/([^]]*|)?'.preg_quote($lang).'(|[^]]*)?])/isU';
        
$replaces[] = '$4';
    }
    
/* */

6
Sven71
Re: xlanguage language tag shown and not hidden problem
  • 2007/3/31 13:28

  • Sven71

  • Just popping in

  • Posts: 3

  • Since: 2006/6/25


Quote:

phppp wrote:
/modules/xlanguage/include/functions.php
line #192/198
/* */
    
if(isset($xlanguage_langs[$xoopsConfig['language']])) {
        
$lang $xlanguage_langs[$xoopsConfig['language']];
        
$patterns[] = '/([([^]]*|)?'.preg_quote($lang).'(|[^]]*)?])('.$mid_pattern.')([/([^]]*|)?'.preg_quote($lang).'(|[^]]*)?])/isU';
        
$replaces[] = '$4';
    }
    
/* */


Hm, that's line 187 in my xlanguage version 3.01
But my problem is that it doesn't only show the tags of the chosen language but all translations including all tags, thereby crushing my webdesign.

7
djvpx
Re: xlanguage language tag shown and not hidden problem
  • 2007/4/25 7:16

  • djvpx

  • Just popping in

  • Posts: 12

  • Since: 2006/2/16


Hello everyone,
I'm using XOOPS v2.0.16 with smartsection 2.1 RC2.

I was using xlanguage (very nice tool by the way...)without any problem (3 languages FR, NL and EN), while I noticed that the opening tag ([fr]) is not hidden on one of my pages and only for some text (which means that it is hidden somewhere but not everywhere on a same page).
It is the main page of smartsection.

That's not all, if I switch to one of the two other languages (EN or NL) the page is not complete... while I'm 100% sure that every tag [en][/en] for every language is well opened and closed everywhere.

Can you help me?
Thanks!

8
nachenko
Re: xlanguage language tag shown and not hidden problem
  • 2007/4/25 7:53

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


Some questions:

1 - Did you check case? [en] [/EN]

2 - Did you accidentally open a language tag before closing another?

I've used xLanguage twice (great tool!), could I see the site with the problem?

9
djvpx
Re: xlanguage language tag shown and not hidden problem
  • 2007/4/27 6:02

  • djvpx

  • Just popping in

  • Posts: 12

  • Since: 2006/2/16


Thanks for your help...
1) everything is in lower case.
2) No I didn't.
3) Here's a link to the site.
You can use "guest" as user and password.
The problem is happening in the "infos" section.
You will have to change languages to see what I meant.
Thanks in advance.

10
wtravel
Re: xlanguage language tag shown and not hidden problem

Can you turn on php debug to see if there are any error messages when you look at the info page in English or in Dutch?

Login

Who's Online

395 user(s) are online (331 user(s) are browsing Support Forums)


Members: 0


Guests: 395


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits