Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1171 2009-01-26 22:28:23

Si
Member
From: Kiev
Registered: 2008-08-31
Posts: 45
Website

Re: MLP - The Multi-Lingual Publishing Pack

Hi Els,
I moved the whole site structure including txplib_db and .htaccess and uploaded the database as I normally do. The clean URLs don’t work at all on the new host (but they do on my own host) so I have a strong feeling that this is the problem. I also tried running wizards and even uninstalling MLP completely and re-installing it, but no luck. And I realised :) that it was installed in a subdirectory on my host and was working perfectly btw.

Thanks for the tips, anyway!

Offline

#1172 2009-01-26 23:07:15

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

Re: MLP - The Multi-Lingual Publishing Pack

If the host doesn’t have mod_rewrite (you can check in Diagnostics) I think MLP just won’t work…

Offline

#1173 2009-01-27 09:40:58

Si
Member
From: Kiev
Registered: 2008-08-31
Posts: 45
Website

Re: MLP - The Multi-Lingual Publishing Pack

Problem solved, and it turned out that I did have a wrong .htaccess file with, thanks a lot for the clue, Els!

Offline

#1174 2009-01-28 17:03:59

dl33
Member
Registered: 2006-06-17
Posts: 192
Website

Re: MLP - The Multi-Lingual Publishing Pack

When using the MLP with zem_contact_reborn, how do I localise the zem_contact_lang-mlp plugin for multiple languages?

Offline

#1175 2009-01-28 17:12:37

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

Re: MLP - The Multi-Lingual Publishing Pack

When you have installed the languages you want, you can import existing language strings from here, or enter the translations yourself (in the MLP > Plugins tab).

Offline

#1176 2009-01-31 00:58:33

dl33
Member
Registered: 2006-06-17
Posts: 192
Website

Re: MLP - The Multi-Lingual Publishing Pack

Another one: Is it possible to show articles in standard language for particular article tags or sections? I am building a site that will be translated into three languages, except for the weblog, which should just list the English articles. If the user is viewing a language other than that a notice would show up at the top explaining why he should learn a foreign language;-)

Not sure if the exclude section bit in the mlp allows for something like that. The important bit is when the user browses back to a section that is translated that his language_settings are remembered.

Offline

#1177 2009-01-31 12:20:11

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

Re: MLP - The Multi-Lingual Publishing Pack

Yes, you can use exclude section for this. When leaving that section the visitor will return to whatever language (s)he was viewing the previous page in. You can probably use <txp:l10n_if_lang> to display your notice.

Offline

#1178 2009-02-01 16:14:31

dl33
Member
Registered: 2006-06-17
Posts: 192
Website

Re: MLP - The Multi-Lingual Publishing Pack

The exclude section bit works fine: The URL is no longer rewritten. However, the language setting still carries over and no articles are displayed if a user was previously viewing the site in a language other than English. Any ideas?

Offline

#1179 2009-02-01 16:51:34

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

Re: MLP - The Multi-Lingual Publishing Pack

Hmm… not sure. Is it possible that you have cloned those articles, but left those clones in draft mode? In that case I think you should delete them. Or do you have any conditionals on that page (if_lang)? If none of these are the problem, a workaround could be that you don’t exclude the blog section, you do create clones, but don’t translate them. But my feeling is that such a workaround shouldn’t be necessary, and excluding the section should work…

Offline

#1180 2009-02-01 23:12:45

dl33
Member
Registered: 2006-06-17
Posts: 192
Website

Re: MLP - The Multi-Lingual Publishing Pack

I cloned all articles now and didn’t translate them. This was the most reliable method, especially, since I am also using a caching plugin. It works perfectly now even though it is a bit more work editing the articles.

Just one question: Is it possible to view the comments for all the different language versions of the article. Perhaps by getting the mlp articleid and custom feeding that into the comment form?

Last edited by dl33 (2009-02-02 01:58:52)

Offline

#1181 2009-02-02 09:45:35

Si
Member
From: Kiev
Registered: 2008-08-31
Posts: 45
Website

Re: MLP - The Multi-Lingual Publishing Pack

Hi,

I was trying to update Txp to 4.0.8 (with MLP 0.8.7) installed and I think I messed something up and now I get the following error in the admin area:

A problem occured while loading the plugin: l10n -> Warning: Cannot use a scalar value as an array on line 331 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 704 A problem occured while loading the plugin: l10n -> Warning: Cannot use a scalar value as an array on line 342 A problem occured while loading the plugin: l10n -> Warning: array_keys() [function.array-keys]: The first argument should be an array on line 345 A problem occured while loading the plugin: l10n -> Warning: preg_grep() [function.preg-grep]: Second argument to preg_grep() should be an array on line 345 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 704 A problem occured while loading the plugin: l10n -> Warning: Cannot use a scalar value as an array on line 1422

The admin area opens on the Languages tab and other areas are inaccessible! And the worst thing is that I can’t upload a database dump, because I again get an error, so I need to fix it somehow without re-uploading the database from file…

Any suggestions welcome on how to fix this.

Offline

#1182 2009-02-02 11:18:53

ultramega
Member
Registered: 2006-02-26
Posts: 221

Re: MLP - The Multi-Lingual Publishing Pack

Have anyone seen this behaviour:

1) Lang A is used
2) Go to page listing your categories
3) Select a category
4) Select some article
5) Switch manually to lang B inside the article
6) Go back to category listing, should still show lang B
7) Select category
8) In my installation browsers switches wrongly back to lang A (showing right category though)

So it remembers the original lang used in the category page when visited first time. This is sub-folder installation, but is this problem seen in root installations too?

Offline

#1183 2009-02-02 15:43:37

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

Re: MLP - The Multi-Lingual Publishing Pack

Si wrote:

Any suggestions welcome on how to fix this.

Downgrade to 4.0.7. It has been reported that MLP has issues with 4.0.8.

ultramega wrote:

This is sub-folder installation, but is this problem seen in root installations too?

No, it doesn’t happen in my root install (4.0.7 and 0.9.11). Must be one of the still existing subfolder problems…

Offline

#1184 2009-02-02 17:33:51

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: MLP - The Multi-Lingual Publishing Pack

Els wrote:

Downgrade to 4.0.7.

The problem with 4.0.7 is you have to face another serious bug which affects section_list as a container tag as well as category_list and category so in my case I’m stuck: version 4.0.8 doesen’t work with MLP but I can’t downgrade to 4.0.7 because I need to use heavily the “category_list” tag.
I really don’t want to bother Steve but I hope it will be fixed soon.

Offline

#1185 2009-02-02 19:22:25

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

Re: MLP - The Multi-Lingual Publishing Pack

redbot

In my 4.0.7 install I replaced taghandlers.php with the fixed one (r3037), and the bug is gone :)

Offline

Board footer

Powered by FluxBB