Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#1066 2008-11-13 16:09:27

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

Re: MLP - The Multi-Lingual Publishing Pack

net-carver wrote:

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

No problem, it’s working great so far. We’ll just have to restrain from upgrading to newer revisions until you are back online ;) Have a safe journey!

(edit: typo)

Last edited by els (2008-11-13 16:10:07)

Offline

#1067 2008-11-13 17:10:48

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

Re: MLP - The Multi-Lingual Publishing Pack

net-carver wrote:

…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.

Thank you Steve!!!

Offline

#1068 2008-11-14 21:42:19

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

Re: MLP - The Multi-Lingual Publishing Pack

net-carver wrote:

Victor
Regarding your second question: Just add show_empty="1" to your l10n_lang_list tag.

May be i described the question not very good. The idea is – can MLP build such a language list, where the would be placed the link to all possible article renditions. Even if there is no, for example, English renditionn, the link must follow to some page, where i can output with the help of ##lang_string_snippet## something like “Sorry, no translation yet..”

Currently i have such tag: <txp:l10n_lang_list show_empty="1" /> and for russian article that *has not*english rendition the html output is the next:

<ul class="l10n_lang_list">
<li class="ru-ru l10n_current">
<span dir="ltr">Русский</span>
</li>
<li>English (US)</li>
</ul>

1. How can i do this^^?
2. How do i rename English (US) to 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

Board footer

Powered by FluxBB