Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1693 2011-02-03 23:39:03
- pau
- New Member
- Registered: 2011-01-07
- Posts: 4
Re: MLP - The Multi-Lingual Publishing Pack
Just checked it, and ‘version’ value is ’4.3.0’ so it seems correct.
I was just looking at the php error log, and it seems that the PHP Notice only happens when I acces the MLP tab, the grid with articles and renditions.
Offline
#1694 2011-02-04 00:07:55
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: MLP - The Multi-Lingual Publishing Pack
Hi Pau, I’m sorry, I am not getting this error, and I have no idea what that code in l10n_admin.php does… Let’s hope Graeme or Steve notices your post.
Does otherwise everything work as it should? No errors on the front end?
Offline
#1695 2011-02-04 11:43:17
- pau
- New Member
- Registered: 2011-01-07
- Posts: 4
Re: MLP - The Multi-Lingual Publishing Pack
No errors in the front end, and no errors when editing renditions throught the articles tab either. I guess it’s not a big problem, everything seems to work fine.
Thanks for your reply, Els.
Offline
#1696 2011-02-04 17:46:18
Re: MLP - The Multi-Lingual Publishing Pack
wornout wrote:
After installation of MLP in the Write tab the excerpt field is duplicated.
The first one doesn’t have “dir” attribiute. The copy had it!
Is it a MLP bug?’
I posted a temporary workaround for this issue here.
Offline
#1697 2011-02-06 23:39:29
- paxrex33
- Member
- Registered: 2007-10-25
- Posts: 15
Re: MLP - The Multi-Lingual Publishing Pack
Hello everybody,
I’m using Textpattern 4.2.0 and MLP 0.9.13-gp.
I have a bilingual site I developed localy on my PC which I’m trying to transfer to my provider.
But I have a weird problem.
I’m getting this error whatever link mode I choose (in this case I’m using messy mode).
The requested URL /en/index.php was not found on this server.
The URL I’m requesting is http://www.geomehanika.rs/en/index.php?s=05kontakt
But when I delete /en from the URL I get the requested page.
What could be a problem?
Offline
#1698 2011-02-07 20:54:52
Re: MLP - The Multi-Lingual Publishing Pack
How can I suppress the wraptag in l10n_lang_list
? When I pass wraptag=""
in the plugin tag, it generates an HTML tag with no element name, like this: < class="...
.
I want to markup the language list as a dl
, with “Language” as the dt
, and the languages marked as dd
elements.
Edit: This code works, but it generates a needless and invalid span
element:
<dl class="lang-list">
<dt>##string_language##:</dt>
<dd class="l10n_current"><txp:l10n_get_lang type="native"/></dd>
<txp:l10n_lang_list
break="dd"
surpress_current="1"
wraptag="span"/>
</dl> <!-- EO .lang-list -->
“Element span
not allowed as child of element dl
in this context.” Or in any context, as far as I know.
Last edited by johnstephens (2011-02-07 21:20:08)
Offline
#1699 2011-02-07 21:11:47
Re: MLP - The Multi-Lingual Publishing Pack
Also code generated by the select
wraptag doesn’t include a label. In order to add a label
element manually, an id
for the select
element is needed as a hook for the label’s for
attribute. Is there any way to add an id
to the generated markup?
If there’s a better tag for listing the site languages as a definition list, please let me know. I’m only looking into the select
option as an alternative.
Last edited by johnstephens (2011-02-07 21:13:37)
Offline
#1700 2011-02-07 21:37:24
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: MLP - The Multi-Lingual Publishing Pack
paxrex33
Can you post your (high) diagnostics? At first sight I have no idea…
Offline
#1701 2011-02-07 21:54:04
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: MLP - The Multi-Lingual Publishing Pack
John
I can’t find a way to make the tag on its own work with a definition list either… I did find a very ugly workaround though, using rah_replace:
<dl class="lang-list">
<dt>##string_language##:</dt>
<dd class="l10n_current"><txp:l10n_get_lang type="native"/></dd>
<txp:rah_replace from='<p class="l10n_lang_list">,</p>' to=",">
<txp:l10n_lang_list
break="dd"
surpress_current="1"
wraptag="p"/>
</txp:rah_replace>
</dl> <!-- EO .lang-list -->
Last edited by els (2011-02-07 22:00:53)
Offline
#1702 2011-02-07 22:06:18
Re: MLP - The Multi-Lingual Publishing Pack
Awesome, Els— thanks! I already have pax_grep running, which can do the same thing.
Offline
#1703 2011-02-14 05:58:32
- Teemu
- Member
- From: Shanghai
- Registered: 2010-04-27
- Posts: 60
Re: MLP - The Multi-Lingual Publishing Pack
Has anyone got MLP play nice with PHP 5.3.0 or later?
I get a couple of notices on front end like this:
“Deprecated: Function split() is deprecated in ‘hosting absolute path’/textpattern/lib/txplib_misc.php(638) : eval()’d code on line 243”
I read people say that these notices can be ignored, but I don’t see it as solution since the site is on shared hosting (with PHP 5.3.2) and turning off notices doesn’t seem to be an option.
I thought upgrading to TXP 4.3.0 and the latest MLP would help but no. (Notices from the back end that I had with TXP 4.2.0 and mlp-0.9.13-gp seem to be disappeared though.)
I was wondering if replacing all deprecated calls would be a relatively simple task or requires complete rewrite.
Offline
#1704 2011-02-14 19:44:31
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: MLP - The Multi-Lingual Publishing Pack
Teemu, won’t the message disappear if you set Production status to ‘live’?
Offline