Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#436 2007-11-13 00:32:20
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: MLP - The Multi-Lingual Publishing Pack
maniqui
Hello again and thank you!
Could be possible in a future version to translate also the section names (not just the titles)?
Can you give me a scenario where this might be useful? (I’m thinking something like better URL output???)
— Steve
Offline
#437 2007-11-13 16:35:57
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: MLP - The Multi-Lingual Publishing Pack
Call for testing:
I present the first (attempted) fix in a long time. This is a copy of my locally updated l10n plugin
Issue addressed by this change: file download corruption in .pdf / .doc / .xls files (and potentially many other file types.)
Last edited by net-carver (2007-11-13 16:36:34)
— Steve
Offline
#438 2007-11-13 17:11:08
Re: MLP - The Multi-Lingual Publishing Pack
net-carver wrote:
Can you give me a scenario where this might be useful? (I’m thinking something like better URL output???)
That’s the scenario: better URL output (both for human readability and SEO purposes).
Example: if you are seeing the english version, you would see /section/title, and if you are seeing the spanish version, you would see /sección/título.
Like:
en/products/product-name or
es/productos/nombre-de-producto
That’s all!
net-carver wrote:
Issue addressed by this change: file download corruption in .pdf / .doc / .xls files (and potentially many other file types.)
Sorry, I haven’t been following this issue from too close. Was this affecting every installation of MLP?
Offline
#439 2007-11-13 17:21:00
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: MLP - The Multi-Lingual Publishing Pack
maniqui wrote:
Was this affecting every installation of MLP?
Yes, but not all file types exhibited the corruption.
— Steve
Offline
#440 2007-11-15 07:26:28
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: MLP - The Multi-Lingual Publishing Pack
Version 0.7.627 is now available.
Skip over to txp-plugins! to grab the update.
I’ve also taken the opportunity to change the minimum requirement for MySQL to 4.1 from 4.0 as previously discussed.
Admin interface…- Totally blank content > write tab. — Fixed,
- “Missing ID” warnings in the content > renditions tab. — Fixed.
- Language switcher drop-down only showing default language. — Fixed.
- Missing translation textareas for plugin strings and snippets. — Fixed.
- Missing translation fields for section titles (thanks beztak). — Fixed.
- Translated image alt/captions dropped (thanks beztak). — Fixed.
- Translated category titles dropped (thanks jstubbs). — Fixed.
- Byte Order Mark in output (thanks Els/Ruud). — Fixed
- File downloads corrupted. — Fixed.
I know you’ll let me know if any of the above is wrong.
Edited to add
Tested out OK on the following setups…
| Operating system… | Webserver… | PHP running as… | MySQL version… | PHP version… | Txp… | Notes… |
|---|---|---|---|---|---|---|
| Linux: 2.6.22-14-generic (Ubuntu Gustsy) | Apache2 | apache2handler | 5.0.45 | 5.2.3 | 4.0.5 | |
| Linux: 2.4.32 (Debian) | Apache 1.3.37 | cgi | 5.0.24 | 4.4.7 | 4.0.4 + 4.0.5 | (on Dreamhost) |
| Linux: 2.4.32 (Debian) | Apache 2.0.54 | fast-cgi | 5.0.24 | 5.0.24 | 4.0.4 + 4.0.5 | (on Dreamhost) |
| Linux: 2.4.21-52.ELsmp | Apache 1.3.36 | ?? | 4.0.27-standard-log | 4.4.4 | 4.0.5 | (thanks Bloke) |
Any others working ok?
Techie note (maybe some knowledgeable php folks can confirm or deny this)…
Most of the admin side problems seem to have be due to some changes in the way PHP5 handles global objects. They seem to get destroyed before any registered output buffer processing happens. As the MLP pack makes use of output buffers on the admin side to inject fields into admin pages, things were failing when the output buffers were processed and the code referenced methods on destroyed objects.
Last edited by net-carver (2007-11-16 16:51:13)
— Steve
Offline
#441 2007-11-15 19:04:06
Re: MLP - The Multi-Lingual Publishing Pack
Awesome! Will test it out. BTW – on the Resources page, you have the file download as file #50. Not sure if this is a mistake, thought I would mention it just in case.
Offline
#442 2007-11-15 23:22:22
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: MLP - The Multi-Lingual Publishing Pack
jstubbs wrote:
BTW – on the Resources page, you have the file download as file #50. Not sure if this is a mistake, thought I would mention it just in case.
Thanks — fixed now.
— Steve
Offline
#443 2007-11-16 07:29:25
- jmk
- Member
- Registered: 2006-09-04
- Posts: 49
Re: MLP - The Multi-Lingual Publishing Pack
Thanks a lot! i just installed it on two servers – it fixed all of my problems. BUT it seems, that the update also introduced a new one:
to change the language of a page, i use
<txp:l10n_lang_list surpress_current=“1” />
that used to work flawlessly … now i get this weird error. on top pages (domain.tld/<lang>) the switch works. on the next level (domain.tld/<lang>/<section>) the switch produces this link: (domain.tld/<lang>/<otherlang><section> — ie domain.tld/en/denews, instead of domain.tld/en/news), which if course gives me a 404. on the next level (domain.tld/<lang>/<section>/<title>) it all works again.
this occurs on to completely different web sites of mine… can anybody confirm this?
once again, thanks for fixing the other problems, it brings textpattern closer to a great solution for multilang sites!
jmk
Offline
#444 2007-11-16 07:47:22
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: MLP - The Multi-Lingual Publishing Pack
jmk wrote:
Thanks a lot! i just installed it on two servers – it fixed all of my problems.
Fantastic — now we are getting somewhere with it!
BUT it seems, that the update also introduced a new one…
Ok, looking at that now. Hope to have a fix for it real soon.
— Steve
Offline
#445 2007-11-16 07:58:48
- jmk
- Member
- Registered: 2006-09-04
- Posts: 49
Re: MLP - The Multi-Lingual Publishing Pack
super. as a temporal fix, i reverted the l10n plugin back to .600. so it is somewhere in there ..
Offline
#446 2007-11-16 08:03:42
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: MLP - The Multi-Lingual Publishing Pack
jmk
Yes, I can verify this on my local install.
Looking at the source, I see that I left a couple of changes in there from an attempt to fix sub-directory installs,
Can you try this version of the l10n plugin and let me know. If it works for you I’ll re-build and post the pack.
Last edited by net-carver (2007-11-16 08:24:45)
— Steve
Offline
#447 2007-11-16 08:56:01
- jmk
- Member
- Registered: 2006-09-04
- Posts: 49
Re: MLP - The Multi-Lingual Publishing Pack
i can confirm that it works on both installs … thank you very much for the quick fix!
Offline
#448 2007-11-16 08:58:15
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: MLP - The Multi-Lingual Publishing Pack
jmk wrote:
i can confirm that it works on both installs … thank you very much for the quick fix!
And thanks for the quick testing — enjoy!
I’ll rebuild and post the Pack now.
— Steve
Offline
#449 2007-11-16 09:06:49
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: MLP - The Multi-Lingual Publishing Pack
All
Fix to the problem reported by jmk has been posted to the MLP Pack page..
Here is a link to the file download.
— Steve
Offline
#450 2007-11-16 11:30:01
Re: MLP - The Multi-Lingual Publishing Pack
Sweeeeeet, nice one Steve, glad to see you back and firing on all cylinders… and then some!
Looks good on my development site with 12 languages installed, even though our hoster has not upgraded MySQL to 4.1 despite their promise back in March. I’ll get onto them again. In the meantime I’ll bear in mind that MLP may well collapse; though it seems to be holding up impeccably so far.
One thing I spotted and don’t remember seeing before is a weird javascript error that Firebug throws at me on the MLP->Snippets->Search tab. It may well be MySQL related, but in case it isn’t here’s some info about it:
Error: xml declaration not at start of external entity undefined
While executing:
GET http:/...blah.com.../index.php?event=l10n&tab=snippets&step=l10n_search_for_names&l10n-sfn=
Apparently from line 213 of index.php, in JS function make_xml_req():
xml_manager.send(null);
Mean anything to you? Anywhere I can look to try and find what’s causing it? Or should I ignore it, since it seems to work anyway. If you want all 2150 lines of output in the xml response, or selective parts thereof, you’re welcome to them :-)
Test environment
Linux: (no idea the version, it doesn’t say on the control panel) / Apache 1.3.36 / MySQL 4.0.27-standard-log / PHP 4.4.4 / Txp 4.0.5 / Firefox WinXP
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline