Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1291 2009-05-07 02:22:19

ploinkr
Member
From: Montreal
Registered: 2007-12-06
Posts: 83

Re: MLP - The Multi-Lingual Publishing Pack

Is anyone else having problems with the l10n_lang_list menu linking to random URLs?
Sorry if it’s been answered before – couldn’t find anything in this thread with the forum search…
Thanks.

Offline

#1292 2009-05-07 17:34:05

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: MLP - The Multi-Lingual Publishing Pack

ploinkr wrote:

Is anyone else having problems with the l10n_lang_list menu linking to random URLs?
Sorry if it’s been answered before – couldn’t find anything in this thread with the forum search…
Thanks.

Yep… There was problem with linking to rendition which is absent. I offered the solution in this thread.

Question:

I have two languages at my site: russian and english. The appear in url like site.com/ru and site.com/en. Is there way to change 2-char language name to something else, for example, i want recieve this urls: site.com/russian and site.com/english.


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#1293 2009-05-07 21:33:25

dreamer
Member
Registered: 2007-06-08
Posts: 242

Re: MLP - The Multi-Lingual Publishing Pack

Is there a way to have the languages rendered as an image as opposed to text? Moreover, I want to use a different image for each language. I was looking at l10n_permlink and adding a class to it, but it didn’t work. And if did work, I don’t see how you can add various image classes for each language permlink.

Offline

#1294 2009-05-07 21:41:45

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: MLP - The Multi-Lingual Publishing Pack

dreamer wrote:

Is there a way to have the languages rendered as an image as opposed to text? Moreover, I want to use a different image for each language. I was looking at l10n_permlink and adding a class to it, but it didn’t work. And if did work, I don’t see how you can add various image classes for each language permlink.

lang_list by default inserts class with language’s code:

	<ul class="l10n_lang_list"><li class="ru-ru l10n_current"><span dir="ltr">Russian</span></li>
	<li class="en-us"><a href="http://www.site.ru/en/"><span dir="ltr">English</span></a></li></ul>

You can use css, something like this:

li.ru-ru {text-indent: -10000px; background: url('path/to'img.png'); height: 10px; width: 20px;} 

text-indent will hide text from displaying it in browser. You should test this variant for bugs, if you like my method :)

Last edited by the_ghost (2009-05-07 21:48:24)


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#1295 2009-05-07 21:58:55

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: MLP - The Multi-Lingual Publishing Pack

dreamer wrote:

Is there a way to have the languages rendered as an image as opposed to text?

An alternative would be to use an7_filter, it replaces predefined text strings with, for instance, images. Wrap the plugin tag around the l10n_lang_list tag to prevent each and every instance of ‘English’, ‘French’ or whatever being replaced with images ;)

Edit: but I think Victor’s CSS solution is better :)

Last edited by els (2009-05-07 21:59:43)

Offline

#1296 2009-05-07 22:04:53

ploinkr
Member
From: Montreal
Registered: 2007-12-06
Posts: 83

Re: MLP - The Multi-Lingual Publishing Pack

the_ghost, thanks for your reply but I believe I found the answer, just a couple of pages back, in fact !
Cheers!

the_ghost wrote:

Yep… There was problem with linking to rendition which is absent. I offered the solution in this thread.

Offline

#1297 2009-05-08 01:56:58

dreamer
Member
Registered: 2007-06-08
Posts: 242

Re: MLP - The Multi-Lingual Publishing Pack

Ghost- I’m close but an issue on my site;

The spanish image is lapping each other due to the fact that the code looks like this;

#sidebar ul.l10n_lang_list li.es-es, #sidebar ul.l10n_lang_list li.es-es a{
	background: transparent url(/images/button-espanol.png) no-repeat left top;
	width: 75px;
	height: 25px;
	float:left;
	margin: 0 15px 10px 5px;
       list-style-type: none;
	}

I can take out the 1 selector but then the image would dissapear alltogether if that selector was active, (ie; if I was on the spanish rendition, the spanish button would dissappear all together.

I tried adding;

#sidebar ul.l10n_lang_list li.es-es l10n_current

but that doesn’t seem to do anything.

Last edited by dreamer (2009-05-08 02:01:04)

Offline

#1298 2009-05-08 05:21:35

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: MLP - The Multi-Lingual Publishing Pack

Dreamer – try this tutorial. Or any other method you will find in internet – just google for css replace li with image

Last edited by the_ghost (2009-05-08 05:22:48)


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#1299 2009-05-08 15:46:48

hanz
Member
From: de
Registered: 2006-02-11
Posts: 23

Re: MLP - The Multi-Lingual Publishing Pack

Did some already notice that if you put a “&” in the section-title of the main language, that the title-field for the second language disappears?

In my case german is the main language, english is secondary.
If I write something like “Haus & Boot” (same with &amp;) the field for the english title disappears.
But if I write “Haus Boot” everything looks fine.

That’s kinda odd.

Any hints?

Offline

#1300 2009-05-08 16:07:26

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: MLP - The Multi-Lingual Publishing Pack

hanz wrote:

Did some already notice that if you put a “&” in the section-title of the main language, that the title-field for the second language disappears?

I can confirm this. But the section titles are still being displayed correctly on the front-end, so I hope you can live with it until it’s fixed. I’ll post a bug report on TXP Forge.

Last edited by els (2009-05-08 16:14:55)

Offline

#1301 2009-05-08 17:07:00

hanz
Member
From: de
Registered: 2006-02-11
Posts: 23

Re: MLP - The Multi-Lingual Publishing Pack

Yepp, thanks for reporting.

Offline

#1302 2009-05-09 04:04:40

vandamar
Guest

Re: MLP - The Multi-Lingual Publishing Pack

Hi there.

Love the plugin, but I need some advice/help with two problems I’m encountering:

1. Is there a way to make parallel sections for multiple languages, similar to cloning renditions? Or if not, is there a way to use textile to generate equivalent navigation sections in the other languages? Is this (http://mlp-demo.netcarving.com/en) the best solution?

2. Say I have an article in English and there is no rendition for it in French. If I click French while in this article, is it possible to be redirected to a list of say all the French articles instead?

Thanks. Any help is really appreciated.

#1303 2009-05-11 02:08:28

dreamer
Member
Registered: 2007-06-08
Posts: 242

Re: MLP - The Multi-Lingual Publishing Pack

I looked at that tut, but I already know how to do image replacement.

My issue is trying to rid of the overlapping spanish button. If I take out the #sidebar ul.l10n_lang_list li.es-es , it won’t leave me with the button when on the spanish rendition. Taking out the #sidebar ul.l10n_lang_list li.es-es a , won’t leave with me with an unclickable link to spanish rendition.

#sidebar ul.l10n_lang_list li.es-es, #sidebar ul.l10n_lang_list li.es-es a{
	background: transparent url(/images/button-espanol.png) no-repeat left top;
       display:block;
	width: 75px;
	height: 25px;
	float:left;
	margin: 0 15px 10px 5px;
       list-style-type: none;
	}
#sidebar ul.l10n_lang_list li.es-es a:hover {
	background: transparent url(/images/button-espanol.png) no-repeat left -25px;
	}

I thought adding a l10n_current to li.es-es like this would help, #sidebar ul.l10n_lang_list li.es-es l10n_current , but that doesn’t do anything.

Last edited by dreamer (2009-05-11 02:12:56)

Offline

#1304 2009-05-12 05:35:38

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: MLP - The Multi-Lingual Publishing Pack

Dreamer – could you show live site with this css problem?

[Let me to reask

I have two languages at my site: russian and english. The appear in url like site.com/ru and site.com/en. Is there way to change 2-char language name to something else, for example, i want recieve this urls: site.com/russian and site.com/english.


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#1305 2009-05-12 16:52:46

dreamer
Member
Registered: 2007-06-08
Posts: 242

Re: MLP - The Multi-Lingual Publishing Pack

Sure- here’s the site in question;

Offline

Board footer

Powered by FluxBB