Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1051 2008-11-10 04:05:53

otti
Member
From: Australia
Registered: 2008-04-16
Posts: 75
Website

Re: MLP - The Multi-Lingual Publishing Pack

Hi net-carver,

After testing MLP on a test-server I would like to install it now on a live site. Unfortunately that server does not support plugin compression. Would it be possible for you to provide an uncompressed version of the three plugins required for installation?

Many thanks
otti

Offline

#1052 2008-11-10 08:39:36

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: MLP - The Multi-Lingual Publishing Pack

Otti

hang on, let me fix this issue that’s come up with the latest SVN commits and I’ll release a new 0.9 and also put up an uncompressed version for you. Please be aware that the MLP Pack is not a plugin but a mod (otherwise known as a hack) that requires careful administrator attention when you upgrade your textpattern+mlp installation. You might want to keep this in mind if you are putting it on client sites.

Els

I suspect the problem is related not only to the new column in the textpattern table but also the new index that r2990 added. The MLP pack does duplicate extra columns upon running the install wizard, but not extra indexes. If you just updated the MLP Pack from 0.8.x -> 0.9.9 then the extra column will be missing from the existing language tables — and suspect this caused your error.

You will probably be able to work around this (other than manual addition of column) by doing an uninstall from the MLP Wizard tab — remembering to keep the group and language settings — and then just running the install wizard again. However, this is just a hunch. If you do want to try that, be sure to back up your DB first.

Anyway, I’ll work on a fix for it tonight.


Steve

Offline

#1053 2008-11-10 09:18:28

otti
Member
From: Australia
Registered: 2008-04-16
Posts: 75
Website

Re: MLP - The Multi-Lingual Publishing Pack

Net-Carver,

Thanks again for all your efforts. Since I haven’t installed MLP yet on the clients website (was about to when I encountered the uncompressed issue) I should not run into any problems when installing it, correct?
Looking forward to use your new uncompressed version.
Cheers
otti

Offline

#1054 2008-11-10 17:20:21

sirNemanjapro
Member
From: Čačak, Serbia
Registered: 2007-12-08
Posts: 59
Website

Re: MLP - The Multi-Lingual Publishing Pack

I have installed 4.0.6 and MLP 0.7.650.
I have installed 2 languages English GB and Serbian. But when I want to “copy” to Serbian it says English.

In top right corner on drop-down list it says English [sp-rs], it should go Srpksi [sp-rs]. Why is this happening and how to solve it?


“… they were enterprising voyages…” – Mr. Spock ( from Spock vs. Q )

Offline

#1055 2008-11-10 17:49:00

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

Re: MLP - The Multi-Lingual Publishing Pack

net-carver wrote:

You will probably be able to work around this (other than manual addition of column) by doing an uninstall from the MLP Wizard tab — remembering to keep the group and language settings — and then just running the install wizard again. However, this is just a hunch. If you do want to try that, be sure to back up your DB first.

Just to confirm: both methods seem to work. In my remote development install I did this:

  1. Upgraded the MLP Pack to 0.9.9
  2. Upgraded TXP to r2992
  3. Manually added the ‘Expires’ column to the l10n_txp_(language code) tables

In my local copy:

  1. Upgraded the MLP Pack to 0.9.9
  2. Upgraded TXP to r2992
  3. Ran the uninstall wizard
  4. Ran the install wizard again

So far both sites seem to work without problems.

Uninstalling and re-installing made me aware of something else though: the uninstall wizard removes all l10n language strings from the txp_lang table. So the screen that is shown after running the wizard is in English again; translating those strings, and those that are used in the install wizard, seems to have been totally useless ;) Please note that this is not a big issue to me! But maybe it’s possible to add a checkbox to ‘Remove all MLP strings and unregister plugins’ as well?

Offline

#1056 2008-11-11 09:29:57

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

Re: MLP - The Multi-Lingual Publishing Pack

Noticed bug within files uploads:
The first screen that appears after file was selected and the button “upload” pressed doesn’t have extra inputs foradditional languages. Everuthing is ok when you open this file from list of uploaded files.

Some thougths about Title of links:
It’s a pity that only description field in links has ability to be translated. It would be great, if i could enter extra languages to title to. The same, i think, would be useful for files and images.


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

#1057 2008-11-11 13:12:07

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

Re: MLP - The Multi-Lingual Publishing Pack

the_ghost wrote:

Noticed bug within files uploads:
The first screen that appears after file was selected and the button “upload” pressed doesn’t have extra inputs foradditional languages. Everuthing is ok when you open this file from list of uploaded files.

I doubt if it’s a bug, the same goes for images. I’ve never felt it was a problem.

Offline

#1058 2008-11-11 14:10:41

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: MLP - The Multi-Lingual Publishing Pack

sirNemanjapro wrote:

In top right corner on drop-down list it says English [sp-rs], it should go Srpksi [sp-rs]. Why is this happening and how to solve it?

Can you send me a login to that site via my contact form please, and I’ll see what I can do to track it down.


Steve

Offline

#1059 2008-11-12 08:59:49

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

Re: MLP - The Multi-Lingual Publishing Pack

Hi!

Is it possible to change the language code that is output by l10n_lang_list? I currently have Ukrainian and English languages to choose from and they are displayed as UK EN
And I’d like to change UK to UA, as I already got some reports from users saying that ‘uk’ is more like United Kingdom than UKrainian

Offline

#1060 2008-11-12 09:40:20

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: MLP - The Multi-Lingual Publishing Pack

Si

That change is not recommended.

Despite how your users feel, UK is the official ISO 693-1 code for Ukrainian. You could edit a file in the MLP pack install but that’s only part of the issue here. IIRC, Textpattern itself uses the code to select the correct operating system locale. So to fully implement this change you’d need to change one MLP file and hack your txp install. Every time you update the pack — or txp — you’ll need to re-apply your changes.


Steve

Offline

#1061 2008-11-12 09:53:21

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

Re: MLP - The Multi-Lingual Publishing Pack

Thanks, Steve! I thought it wouldn’t be so easy :) will need to explain the importance of official ISO codes to my users

Offline

#1062 2008-11-12 12:51:50

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: MLP - The Multi-Lingual Publishing Pack

Si

Yes, I think that’s the way to go. Although the change they want is possible and should be relatively easy — my main concerns are…

  1. it won’t be easily maintainable.
  2. it will be non-standard.

For example: if some of the site visitors have setup their browser’s preferred language to uk then they also will not benefit from the MLP Pack’s ability to parse the browser accept-language header and automatically serve the site content to them in Ukrainian.


Steve

Offline

#1063 2008-11-13 14:56:21

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

Re: MLP - The Multi-Lingual Publishing Pack

Hi all,
Does someone know if there is a way to hide from certain user levels (ie copy editor, staff writer, freelancer ecc.) some of the sub-tabs located under the main MLP tab? In particular I’d like to hide everything but the “articles” sub-tab for the user level “Managing Editor”.
I know this probably would require a hack but in my case it’s worth the effort.
Any help would be appreciated, thanks

P.S. I have a very limited knowledge of jquery and javascript but I think they can’t help here because the sub-tabs I’d like to hide are not associated with any specific class or id

Offline

#1064 2008-11-13 15:57:08

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: MLP - The Multi-Lingual Publishing Pack

redbot

You don’t need to know jQuery or JS for this. Take a look at class MLPPlugin’s function preload() at line 1465 of l10n_admin_classes.php. You could modify that to look at the current txp user’s level and show only the MLPArticleView if they are managing-editors.


Steve

Offline

#1065 2008-11-13 16:00:51

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: MLP - The Multi-Lingual Publishing Pack

All

I’ll be out of the loop for about week starting tomorrow (Friday 14th) as I’m taking my family off to the UK for 3 months. I hope to be back with you on the 23rd Nov.

Apologies for not releasing the latest SVN-compatible pack yet.


Steve

Offline

Board footer

Powered by FluxBB