Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1477 2010-01-22 00:00:16
Re: MLP - The Multi-Lingual Publishing Pack
I have a question related to language detection. The plugin public features list starts with:
Detection of the language the user wants to view a site in via the url or browser headers.
I understand how browser header detection happens, but could someone tell me how does language detection via URL take place?
Offline
#1478 2010-01-22 00:45:03
Re: MLP - The Multi-Lingual Publishing Pack
I think it means that if user goes to an URL that already has the lang chunk (/en/, /es/, /fr/), then that language will be served. Yes, strictly, there is no “lang detection” on that case. But I’m just guessing.
Offline
#1479 2010-02-09 13:21:54
- tapaheh
- New Member
- Registered: 2009-12-17
- Posts: 3
Re: MLP - The Multi-Lingual Publishing Pack
azw wrote:
What is the syntax for using the l10n_get_lang() function? This line is now throwing an error:
$mailtext .= "\nhu.l10n_get_lang: " . hu.l10n_get_lang("short");
l10n_get_lang() expects the parameter to be an array. Use next line to solve your problem:
$mailtext .= "\nhu.l10n_get_lang: " . hu.l10n_get_lang(array("type"=>"short");
Offline
#1480 2010-02-17 14:07:48
Re: MLP - The Multi-Lingual Publishing Pack
Is this Pack good to go with 4.2.0?
(First post says 4.0.8.)
Offline
#1481 2010-02-17 14:51:07
- tapaheh
- New Member
- Registered: 2009-12-17
- Posts: 3
Re: MLP - The Multi-Lingual Publishing Pack
Destry wrote:
Is this Pack good to go with 4.2.0?
(First post says 4.0.8.)
yes, here’s the live example
Offline
#1482 2010-02-17 15:18:42
Re: MLP - The Multi-Lingual Publishing Pack
Destry,
get the latest version here
Offline
#1483 2010-02-17 19:20:05
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: MLP - The Multi-Lingual Publishing Pack
Destry wrote:
(First post says 4.0.8.)
First post updated, thanks.
Last edited by els (2010-02-17 19:20:49)
Offline
#1484 2010-02-20 21:24:25
- ploinkr
- Member
- From: Montreal
- Registered: 2007-12-06
- Posts: 83
Re: MLP - The Multi-Lingual Publishing Pack
Trying to use some flash video background, I need a file to be at the root of the site; alas, with the /lang/
being applied to the URL, I just can’t get it to work :-P Is there a way to add files rather than directories to the prefs (Exclude these sections/areas from URL re-writes)?
Thanks,
B.
Offline
#1485 2010-02-21 01:58:28
- ploinkr
- Member
- From: Montreal
- Registered: 2007-12-06
- Posts: 83
Re: MLP - The Multi-Lingual Publishing Pack
Or… could someone help with a rewrite rule in htaccess? Seems that would fix it but I have no idea how to write that. Thanks.
Offline
#1486 2010-02-23 15:27:03
Re: MLP - The Multi-Lingual Publishing Pack
Section title field in default language is mapped to ‘Title’ filed in txp_sections table. It’s editable but it’s not displayed in the frontend, cause the frontend wants the title from ‘l10n_title_en_gb’ field.
Section title field in second language – in my case it was Russian is mapped to ‘l10n_title_ru_ru’, but it won’t let you save it into db. I you enter it manually into database it appears in read-only mode in sections dialoge.
I had the same Problem and switching from PHP4 to PHP5 solved it.
Offline
#1487 2010-02-23 19:12:23
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: MLP - The Multi-Lingual Publishing Pack
stickid wrote:
I had the same Problem and switching from PHP4 to PHP5 solved it.
Thank you for posting, the user you are quoting though does have PHP5, so I’m afraid it’s not a generally working solution. But those running PHP4 could give it a try.
Offline
#1488 2010-02-23 19:13:10
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: MLP - The Multi-Lingual Publishing Pack
ploinkr wrote:
Or… could someone help with a rewrite rule in htaccess?
What do you need to redirect where?
Offline