Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#631 2008-02-17 04:14:01
Re: MLP - The Multi-Lingual Publishing Pack
BTW, a feature request:
is there any chance to have an <txp:l10n_if_article_lang> conditional tag?
I’m thinking in some cases where <txp:l10n_if_lang> won’t be enough. Example: Postmaster plug-in uses a form (one per list of subscribes) to render the e-mail that will be sent. So, a conditional tag will help to send e-mails in different languages (if article is written in spanish, send the e-mail in spanish; if it’s written in english, send it in english).
Does this makes sense?
Offline
#632 2008-02-21 17:43:29
- pablopivetta
- New Member
- Registered: 2008-02-21
- Posts: 2
Re: MLP - The Multi-Lingual Publishing Pack
Hi,
the MLP works fine with rss_unlimited_categories, except for the rendition of localized category names in the admin area.
It would also be nice to get stw_category_tree to output localized category names in the menu urls (apart from that, all is fine here too)
Can anyone point me in the right direction for the above?
I’m a bit lost here… I already read this post , but I’m not familiar enough with the internals op txp to fully understand the examples…
I’m just a designer with a quite limited knowledge of php & textpattern you know :)
Anyways:
Every time I make a new site with Textpattern I’m amazed by it’s power and flexibilty.
Great plugins too!
Offline
#633 2008-02-26 11:31:14
- panik
- Member
- From: Bonn, Germany
- Registered: 2005-08-13
- Posts: 13
Re: MLP - The Multi-Lingual Publishing Pack
Hi,
ist it possible to disable the language detection on the public site? there is no content in the secondary language at the moment, and i want to prevent users form seeing empty pages.
thanks,
jonas
Last edited by panik (2008-02-26 11:32:06)
Offline
#634 2008-02-27 11:18:08
- FireFusion
- Member

- Registered: 2005-05-10
- Posts: 698
Re: MLP - The Multi-Lingual Publishing Pack
Any hope for a 4.0.6 version? Or a least to know it’s in the works.
Offline
#635 2008-02-27 12:30:07
Re: MLP - The Multi-Lingual Publishing Pack
I run latest MLP with TXP 4.0.6 on 3 website at this time and everything works well.
Job: Plugo – tvorba eshopu
Projects: Czech free fonts
Offline
#636 2008-02-27 17:15:37
Re: MLP - The Multi-Lingual Publishing Pack
Hey, Beztak, good to read you have MLP working on 3 TxP 4.0.6 website.
You didn’t need to touch anything?
Or better asked: did you keep txplib_db.php?
Because 4.0.6 txplib_db.php doesn’t include the MLP needed code. I just finished merging differences between MLP txplib_db.php and 4.0.6 txplib_db.php. Haven’t tested it yet.
Also, did you need to add (to the plug-in code) something related to the tabs? I understand that 4.0.6 requires to add to plug-ins some code related to privilegies and tabs, but not sure if this applies to MLP tabs.
Thanks
Offline
#637 2008-02-27 17:25:43
Re: MLP - The Multi-Lingual Publishing Pack
The changes in txplib_db.php code between 4.0.5 and 4.0.6 are minimal and shouldn’t affect MLP. In fact if you’re not running in debug mode and your preferences can be loaded from the database and your database isn’t down, there’s no difference at all.
Offline
#638 2008-02-27 17:52:41
Re: MLP - The Multi-Lingual Publishing Pack
maniqui wrote:
Or better asked: did you keep txplib_db.php?
I use txplib_db.php from latest MLP and everything works perfect.
Because 4.0.6 txplib_db.php doesn’t include the MLP needed code. I just finished merging differences between MLP txplib_db.php and 4.0.6 txplib_db.php. Haven’t tested it yet.
If you want to help I would test your modified txplib_db.php
Also, did you need to add (to the plug-in code) something related to the tabs? I understand that 4.0.6 requires to add to plug-ins some code related to privilegies and tabs, but not sure if this applies to MLP tabs.
I did add nothing, only small fix to make download work correctly.
Job: Plugo – tvorba eshopu
Projects: Czech free fonts
Offline
#639 2008-02-28 09:43:40
Re: MLP - The Multi-Lingual Publishing Pack
I’m building the web site in 3 languages. Everything works fine, there is just one thing:
when I want to preview the site, it opens up in english. How can I choose which language to be default when somebody visits the web site?
In the admin>preferences > language > Currently active language what ever I put it always opens up in english when I go to view site.
I’m working on local server, xampp instaled.
Thanks.
Offline
#640 2008-02-28 10:26:24
- FireFusion
- Member

- Registered: 2005-05-10
- Posts: 698
Re: MLP - The Multi-Lingual Publishing Pack
Could someone post the updated 4.0.6 txplib_db.php file?
Offline
#641 2008-02-28 11:40:01
Re: MLP - The Multi-Lingual Publishing Pack
Ok, I found that the default language depends on the browser settings.
In my Firefox it is english, so it doesnt matter that in MLP settings in languages: sr-rs,ru-ru,en-gb, english is last.
How can I avoid this, becouse 99.99% of people doesnt know anything about setting the default language in their browser.
Offline
#642 2008-02-28 12:02:39
Re: MLP - The Multi-Lingual Publishing Pack
FireFusion wrote:
Could someone post the updated 4.0.6 txplib_db.php file?
OK, I have create a pastebin with the file contents: http://pastebin.com/f313f1d89
As Ruud said, there are not too many differences between 4.0.5 txplib_db.php and 4.0.6 txplib_db.php are minimal.
Few hours ago, I’ve updated a site to 4.0.6 and MLP and it seems to be working fine.
Offline
#643 2008-02-28 18:43:26
- FireFusion
- Member

- Registered: 2005-05-10
- Posts: 698
Re: MLP - The Multi-Lingual Publishing Pack
Thank you!
Offline
#644 2008-02-28 18:50:11
- FireFusion
- Member

- Registered: 2005-05-10
- Posts: 698
Re: MLP - The Multi-Lingual Publishing Pack
Hmm got the following error on upgrading but otherwise seems ok. Is this a problem?
A problem occured while loading the plugin: l10n -> Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object on line 553
A problem occured while loading the plugin: l10n -> Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object on line 553
A problem occured while loading the plugin: l10n -> Warning: Cannot use a scalar value as an array on line 1421
Offline
#645 2008-02-28 19:39:00
Re: MLP - The Multi-Lingual Publishing Pack
I think I got the same error after upgrading, but as in your case, it worked fine for me…
Offline