Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#916 2008-09-04 14:22:39
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Offline
#917 2008-09-04 15:43:14
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: MLP - The Multi-Lingual Publishing Pack
redbot
Glad to hear it.
I was just looking at getting more of the categories/sections localised in the interface earlier today. There are a few problems to overcome that are similar in nature to the section select in the write tab — that being that the control output by Txp core is not using the TItles but the name (this happens in several other content forms with the category select.)
I’m going to need to give the whole area some thought as the solution to this problem will also need to support admin-side plugins.
— Steve
Offline
#918 2008-09-04 15:59:26
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: MLP - The Multi-Lingual Publishing Pack
net-carver wrote:
…There are a few problems to overcome that are similar in nature to the section select in the write tab — that being that the control output by Txp core is not using the TItles but the name (this happens in several other content forms with the category select.)
I’m going to need to give the whole area some thought as the solution to this problem will also need to support admin-side plugins.
Steve,
Yes I understand it’s not easy.
And frankly I never understood why txp is outputting names instead of titles: this is always been a problem for me (ok not a big problem but an annoying one), with or without the MLP.
Offline
#919 2008-09-04 17:26:37
- FireFusion
- Member

- Registered: 2005-05-10
- Posts: 698
Re: MLP - The Multi-Lingual Publishing Pack
Hi Steve,
thanks for the development release.
Are we any closer to being able to have Chinese traditional and Chinese simplified in the same install? I know there was a URL issue before.
Offline
#920 2008-09-04 18:50:48
- FireFusion
- Member

- Registered: 2005-05-10
- Posts: 698
Re: MLP - The Multi-Lingual Publishing Pack
The development release is awesome btw!
Thanks for listening to so many requests.
Offline
#921 2008-09-04 19:02:31
- _john_
- New Member
- Registered: 2008-08-30
- Posts: 3
Re: MLP - The Multi-Lingual Publishing Pack
net-carver wrote:
john, sorry for the late reply. Questions…
- What permlink mode are you using on your site?
- What version of the MLP Pack are you running?
- Did you install the l10n.php plugin before the others or later?
Glad to see your reply anyway… Answers…
- /section/title in both ways
- 0.7.650
- later (I prefer to respect a “readme-writing-work” :)
Offline
#922 2008-09-04 19:36:33
- _john_
- New Member
- Registered: 2008-08-30
- Posts: 3
Re: MLP - The Multi-Lingual Publishing Pack
Steve,
one more thing…
- Do you know that little bug: content->images->upload images->upload. MLP missing Alt text with lang option. But it appear in edit mode.
- Little-bit bigger bug: deleting article through content->articles with MLP installed causes incorrect article deleting.
- Is it possible to make search/sort/restrict in content->MLP->articles more power-full, like in content ->articles and/or snippets.
PS: I use MLP ver. 0.7.650. I’m not sure that all that things is actual for latest versions… If it’s so, sorry for disturbing you… :)
Offline
#923 2008-09-07 11:16:03
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: MLP - The Multi-Lingual Publishing Pack
Hello Steve,
sorry to bother again but now I realize the hack you suggested here has a tragic side effect: sed_section_fields doesn’t work anymore (it stops hiding fields in “write” tab).
Is there something I could do?
Thank you in any case
Offline
#924 2008-09-08 02:18:24
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: MLP - The Multi-Lingual Publishing Pack
FireFusion wrote:
Are we any closer to being able to have Chinese traditional and Chinese simplified in the same install? I know there was a URL issue before.
No closer yet “out of the box”. Actually, there is a way you could do it by assigning different language codes for the two versions but this will give you a few issues when upgrading the Textpattern strings via the admin > preferences > languages tab.
If you can cope with that limitation, post again and I’ll let you know how I think you can do it.
john wrote:
1. Do you know that little bug: content->images->upload images->upload. MLP missing Alt text with lang option. But it appear in edit mode.
2. Little-bit bigger bug: deleting article through content->articles with MLP installed causes incorrect article deleting.
3. Is it possible to make search/sort/restrict in content->MLP->articles more power-full, like in content ->articles and/or snippets.
Re #1 — yes I know.
Re #2 — Ok, I’ve had that reported before and it needs sorting out. Of your three items, this is (to me) the most important.
Re: #3 — that area needs looking into so I’ll take that idea on-board. I won’t be able to make it work the same way though as the articles list is paginated whereas the snippets list isn’t.
As always, my time on this is limited so you’ll need to wait for the features unless you want to take a shot at writing your own version. (All the source code is in the zip file.)
redbot wrote:
sorry to bother again but now I realize the hack you suggested here has a tragic side effect: sed_section_fields doesn’t work anymore (it stops hiding fields in “write” tab). Is there something I could do?
Nope. That’s the way they work together. Best way to deal with this is from our point of view, would be have the core output titles instead of names for these things — however, if that isn’t going to happen then this will need fixing by one of the other pieces of software involved. When I get time I’ll take a look.
— Steve
Offline
#925 2008-09-08 04:29:07
- FireFusion
- Member

- Registered: 2005-05-10
- Posts: 698
Re: MLP - The Multi-Lingual Publishing Pack
Hi Steve,
ok – tell me how you think iit can work.
Thanks.
Offline
#926 2008-09-08 05:30:37
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: MLP - The Multi-Lingual Publishing Pack
FireFusion
Ok. Here’s the idea — I haven’t fully tested this so you might want to experiment with it first!
1) Ensure you have the zh-cn and zh-tw Txp language strings installed in the admin interface.
2) Remap all the ‘zh-tw’ strings to a non-standard code like ‘zt-tw’ using a MySQL query…
UPDATE `txp_lang` SET `lang`='zt-tw' WHERE `lang`='zh-tw';
You can use Rob Sable’s rss_admin_db_manager for this or phpMyAdmin — or perhaps Gocom’s new SQL plugin.
3) Edit the l10n_langs.php file and split the Chinese entry from…
'zh'=>array( 'zh'=>'中文(简体)' , 'zh-cn'=>'中文(简体)' , 'zh-tw'=>'中文(國語)' ),
…to something like…
'zh'=>array( 'zh'=>'中文(简体)', 'zh-cn'=>'中文(简体)' ),
'zt'=>array( 'zt'=>'中文(國語)', 'zt-tw'=>'中文(國語)' ),
…and save the file. This will make your copy of the MLP Pack use the ISO-standard ‘zh’ as the language code for 中文(简体) whilst Mapping 中文(國語) to a non-standard ‘zt’.
4) Tell the MLP Pack about your site’s use of this code by adding ‘zh-cn’ and ‘zt-tw’ to the list of your site’s public languages in the Content > MLP > Prefs > Languages input.
That should be it!
Now the l10n_lang_list tag will output 中文(简体) => urls with ‘zh’ in them and 中文(國語) => urls with ‘zt’ in them. The only problem will be that you’ll have to re-code the 中文(國語) strings whenever you update them from the txp language server using the SQL from step 1.
Last edited by net-carver (2008-09-08 05:34:48)
— Steve
Offline
#927 2008-09-08 05:39:32
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: MLP - The Multi-Lingual Publishing Pack
FireFusion
Another thing to test — if you use the l10n_get_lang tag to output the language code in the DocType/header of your pages then you might get non-validating pages for 中文(國語). It will depend on how fussy the validator is about using compliant ISO language codes.
If that’s the case you might need to use some l10n_if_lang conditionals to output ‘zh-tw’ and ‘zh’ in the 中文(國語) page header and DocTypes.
— Steve
Offline
#928 2008-09-08 08:56:49
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: MLP - The Multi-Lingual Publishing Pack
net-carver wrote:
Nope. That’s the way they work together. Best way to deal with this is from our point of view, would be have the core output titles instead of names for these things — however, if that isn’t going to happen then this will need fixing by one of the other pieces of software involved. When I get time I’ll take a look.
Thank you for the usual helpfulness.
…unfortunately it seems (at least for now) I’ll have to remove one of the two plugins, which will anyway worsen site admin usability :(
Should I find a workaround I’ll post here (really not likely, unfortunately I’m on a hurry so I have little or no time to experiment)
Offline
#929 2008-09-18 14:40:50
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: MLP - The Multi-Lingual Publishing Pack
Hello Steve,
sorry for the continuous requests for help, the fact is I’m trying to transfer a lot of articles from a static site into a txp-multilingual one using php and sql so probably I’ve messed up something.
As I said it could be my fault, anyway I have this problem:
let’s say I have an article in english and I want to clone it in french and italian.
I open the “articles” subtab under the “MLP” tab, find the article I want to translate and check the two checkboxes labeled “french” and “italian”. Two new articles are now correctly added to the “articles” subtab.
The problem arises when I try to edit the newly created articles: I click on the french rendition and I’m brought to the “write” tab > so far so good, the language popup shows correctly “Français”.
Now I click on the italian rendition and the language popup still shows “Français”.
If I change manually the language to “italian” all is working ok, but this is quite annoying because one would expect to have “italian” automatically selected.
Here is another example: if I have 100 articles in english and I clone them all in italian, I then have to change each rendition (located under the column “italian” in the articles subtab) to actually use italian language.
I hope you can understand something even if I fear I was not perfectly clear.
Thank you
Offline
#930 2008-09-18 17:34:23
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: MLP - The Multi-Lingual Publishing Pack
redbot
That shouldn’t be happening. It’s late here now but can you shoot me over a login to that site tomorrow so I can try tracking down the problem. Thank you.
— Steve
Offline