PEAK XOOPS - Problem with Xhld and Marcan's hack in englishin japanese

Problem with Xhld and Marcan's hack

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2005/6/21 19:29
fblanchet  ÆóÅùʼ   Posts: 8
Hello everyone, having problems translating Blocs in Xhld... In fact i am trying to modify the headers (not the news), only the top part of my table you see right here...

http://www.biznetweb.ca/tempimage/header2.jpg

How can i make my [.en] [.fr] work in this table?

Thanks in advance!

FrñÅñÓic Blanchet
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2005/6/22 13:04
GIJOE  ÀèǤ·³Áâ   Posts: 4110
Perhaps, you did misunderstood the meaning of Marcan's hack.

Where did you write [en]Date[/en]...?
Perhaps, you wrote it into template manager.

Since Marcan's hack hooks MyTextSanitizer, it is no use.

Or you can use EMLH with Marcan's hack.
Edit the top of easiestml.php like 'en,fr' if you want to use language tags [en] or [fr].
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2005/6/23 18:35
bluenova  ÆóÅùʼ   Posts: 7
Lastest version of smartlanguages allows to input smarty tags for use in themes and templates directly from the smartlanguages admin.
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2005/6/23 19:47
fblanchet  ÆóÅùʼ   Posts: 8
Hello GiJoe,
thanks for the reply. I was talking with Marcan and he fixed that problem. It was something to do with his script that did not translate correctly the blocks. Here is the link for the fix, http://www.smartfactory.ca/modules/newbb/viewtopic.php?post_id=1408&topic_id=287&forum=8
i hope you understand french, if not i can translate in english if you wish.

Another thing, I was wondering if there is a way that the feeds could appear or hide automaticaly using the language of choice. For example, i am receiving feeds from Radio-Canada (french) and CBC (english)... is there a way that french users would only see Radio-Canada's feeds in the recent headlines block and that the english users would see CBC's feeds depending on the language of choice?

Thanks in advance

Frederic

Votes:9 Average:6.67
Previous post - Next post | Parent - No child | Posted on 2005/6/29 7:17
GIJOE  ÀèǤ·³Áâ   Posts: 4110
hi fblanchet
Quote:
Hello GiJoe,
thanks for the reply. I was talking with Marcan and he fixed that problem. It was something to do with his script that did not translate correctly the blocks. Here is the link for the fix, http://www.smartfactory.ca/modules/newbb/viewtopic.php?post_id=1408&topic_id=287&forum=8
i hope you understand french, if not i can translate in english if you wish.
Though I can't read French, I almost understood marcan said.
Perhaps,some_ml_task() do something like EMLH.

Anyway, there are no necessary to modify "xhld", OK?


Quote:
Another thing, I was wondering if there is a way that the feeds could appear or hide automaticaly using the language of choice. For example, i am receiving feeds from Radio-Canada (french) and CBC (english)... is there a way that french users would only see Radio-Canada's feeds in the recent headlines block and that the english users would see CBC's feeds depending on the language of choice?
hmmm.
It is intersting but difficut.

At least, I can do that with EMLH.

eg:

Assign french headline block as top of center blocks.
Assign english headline block as second of center blocks.
Then, edit your theme.html:
	<td id="centerCcolumn" colspan="2">
		<div style="padding: 5px;">
[fr]
		<div class="blockTitle"><{$xoops_ccblocks[0].title}></div>
		<div class="blockContent"><{$xoops_ccblocks[0].content}></div>
[/fr]
[en]
		<div class="blockTitle"><{$xoops_ccblocks[1].title}></div>
		<div class="blockContent"><{$xoops_ccblocks[1].content}></div>
[/en]
		</div>
	</td>

Of course, this configuration is needed:
define('EASIESTML_NEVERCROSSTAGS','');

Votes:5 Average:10.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!