Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#553 2008-01-08 10:41:13

AndrijaM
Member
From: Belgrade, Serbia
Registered: 2007-12-22
Posts: 190
Website

Re: MLP - The Multi-Lingual Publishing Pack

Steve, here’s the tag trace:

<!-- txp tag trace: 
[SQL (0.001074): select name from txp_lang where lang='en-gb' limit 1]
[SQL (0.004319): select name, data from txp_lang where lang='en-gb' AND ( event='public' OR event='common')]
[SQL (0.005167): select name, code, version from txp_plugin where status = 1]
[SQL (0.001385): select name,code,version from txp_plugin where status = 1 AND name='gbp_admin_library']
[SQL (0.000774): select ID,Section from textpattern where url_title like 'blog' AND Section='en' and Status >= 4 limit 1]
[SQL (0.001231): select name from txp_category where `name` like 'blog' limit 1]
[SQL (0.000500): select name from txp_category where `name` like 'blog' limit 1]
[SQL (0.000476): select name from txp_section where `name` like 'en' limit 1]
[SQL (0.000465): select name from txp_section where `name` like 'en' limit 1]
[SQL (0.000625): select ID,Section from textpattern where url_title like '' AND Section='en' and Status >= 4 limit 1]
[SQL (0.000500): select name from txp_section where `name` like 'en' limit 1]
[SQL (0.000479): select name from txp_category where `name` like 'blog' limit 1]
[SQL (0.000482): select name from txp_category where `name` like 'blog' limit 1]
[SQL (0.000473): select name from txp_section where `name` like 'en' limit 1]
[SQL (0.000457): select `l10n_title_en_gb` as `title` from txp_section where name='en']
[SQL (0.000631): select name from txp_section where `name` like 'blog' limit 1]
[SQL (0.000537): select *,`l10n_title_en_gb` as `title` from txp_section where name = 'blog' limit 1]
[SQL (0.000566): select user_html from txp_page where name='blog']
[Page: blog]
<txp:output_form form="meta" />
	[SQL (0.000579): select Form from txp_form where name='meta']
	[Form: meta]
	<txp:if_individual_article>
		[<txp:if_individual_article>: false]
		<txp:article status="sticky" form="meta_dynamic" />
			[SQL (0.001616): select *, unix_timestamp(Posted) as uPosted from l10n_txp_en_gb where 1 and Status = 5 and Posted <= now() and ((Category1='blog') or (Category2='blog'))  and Section = 'blog' order by Posted desc limit 0, 10]
	</txp:if_individual_article>
	<txp:output_form form="meta_static" />
		[SQL (0.000611): select Form from txp_form where name='meta_static']
		[Form: meta_static]
		<txp:css format="link" media="all" n="massReset" rel="stylesheet" />
		<txp:css format="link" media="all" n="layout" rel="stylesheet"/>
		<txp:css format="link" media="all" n="typographyAndColor" rel="stylesheet" />
		<txp:css format="link" media="all" n="ie6" rel="stylesheet" />
<txp:if_individual_article>
	[<txp:if_individual_article>: false]
	<txp:article form="clanciNajave" />
		[SQL (0.000859): select count(*) from l10n_txp_en_gb where 1 and Status = 4 and Posted <= now() and ((Category1='blog') or (Category2='blog'))  and Section = 'blog']
		[SQL (0.000858): select *, unix_timestamp(Posted) as uPosted from l10n_txp_en_gb where 1 and Status = 4 and Posted <= now() and ((Category1='blog') or (Category2='blog'))  and Section = 'blog' order by Posted desc limit 0, 10]
</txp:if_individual_article>
<txp:search_input label="Pretraga sajta" button="Traži" size="20" wraptag="div" section="search" />
	[SQL (0.000522): select form from txp_form where `name` = 'search_input' limit 1]
<txp:feed_link label="Pratite tekstove na blogu" wraptag="p" />
<txp:rss_suparchive_menu section="blog" linktosection="arhiva" showheader="1" headerlabel="Arhiva" headerlevel="4" />
	[SQL (0.000927): select id, unix_timestamp(posted) as posted from l10n_txp_en_gb where status=4  AND ( (section = 'blog') )   AND posted < now() ORDER BY posted desc ]
<txp:rss_unlimited_categories_list break="li" linktosection="blog" />
	[SQL (0.010385): SELECT distinct c.id, c.name, c.title FROM textpattern_category as tc LEFT JOIN  txp_category as c ON tc.category_id = c.id ORDER BY c.name asc LIMIT 0,999 ]
	[SQL (0.018848): SELECT *, unix_timestamp(Posted) as uPosted FROM textpattern as t LEFT JOIN textpattern_category as c ON t.ID = c.article_id WHERE  c.category_id = '17' and t.Status = 4  and Posted <= now() ORDER BY t.title]
	[SQL (0.012038): SELECT *, unix_timestamp(Posted) as uPosted FROM textpattern as t LEFT JOIN textpattern_category as c ON t.ID = c.article_id WHERE  c.category_id = '18' and t.Status = 4  and Posted <= now() ORDER BY t.title]
	[SQL (0.013748): SELECT *, unix_timestamp(Posted) as uPosted FROM textpattern as t LEFT JOIN textpattern_category as c ON t.ID = c.article_id WHERE  c.category_id = '29' and t.Status = 4  and Posted <= now() ORDER BY t.title]
	[SQL (0.008872): SELECT *, unix_timestamp(Posted) as uPosted FROM textpattern as t LEFT JOIN textpattern_category as c ON t.ID = c.article_id WHERE  c.category_id = '28' and t.Status = 4  and Posted <= now() ORDER BY t.title]
	[SQL (0.008475): SELECT *, unix_timestamp(Posted) as uPosted FROM textpattern as t LEFT JOIN textpattern_category as c ON t.ID = c.article_id WHERE  c.category_id = '16' and t.Status = 4  and Posted <= now() ORDER BY t.title]
<txp:output_form form="footer" />
	[SQL (0.002553): select Form from txp_form where name='footer']
	[Form: footer]
<txp:output_form form="nav" />
	[SQL (0.000886): select Form from txp_form where name='nav']
	[Form: nav]
	<txp:section name="kontakt">
	</txp:section>
	<txp:section name="blog">
	</txp:section>
	<txp:section name="reference">
	</txp:section>
	<txp:section name="usluge">
	</txp:section>
	<txp:link_to_home>
	</txp:link_to_home>
[ ~~~ secondpass ~~~ ]
 -->

Last edited by AndrijaM (2008-01-08 10:42:56)

Offline

#554 2008-01-08 13:07:37

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

Re: MLP - The Multi-Lingual Publishing Pack

ultramega wrote:

Can I hope one thing more? Clone multiple articles at one time by selecting them from the list with a select-box. I have currently about 200 articles all now cloned manually… Of course it makes no differ if one is maintaining a new site, but this one already had original articles which were later given for translation.

Do you think that could be taken care of better as an option during the setup wizard? If the pack is installed into a site with more than a threshold number of articles, it could offer to clone them all during the setup process, giving you a fully populated site across all languages albeit requiring a lot of translation work. You could always delete the renditions you didn’t want or just leave them idle in draft status.


Steve

Offline

#555 2008-01-08 13:29:15

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

Re: MLP - The Multi-Lingual Publishing Pack

Andrija

Tag trace noted. I’ll be emailing you soon.


Steve

Offline

#556 2008-01-08 19:30:43

ultramega
Member
Registered: 2006-02-26
Posts: 221

Re: MLP - The Multi-Lingual Publishing Pack

net-carver wrote:
Do you think that could be taken care of better as an option during the setup wizard? If the pack is installed into a site with more than a threshold number of articles, it could offer to clone them all during the setup process, giving you a fully populated site across all languages albeit requiring a lot of translation work. You could always delete the renditions you didn’t want or just leave them idle in draft status.

Hmm… That would be good option too. In this particular case we first made original articles knowing that we can translate them later with your tool. Meaning I already installed the pack but first concentrated filling native language version. I think in the design progress it’s good that you can build and test your snippets ready for multi-language use, even if you are not going to use them in the first phase. So in short, I think it would be better if you can select needed articles for cloning later.

Of course if there is just few articles, it is not a big deal to clone them manually.

Offline

#557 2008-01-08 21:09:06

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: MLP - The Multi-Lingual Publishing Pack

net-carver wrote:

ID Fix / Feature / Idea Status Reason
009 Add localised section titles to the output URL Closed Requested here and here by Maniqui,

Oh! :( Thanks anyway, Steve!
It’s ok… I think I can live without it… or maybe not! :D

Just to clarify: what I asked was localised section names to the output URL.

I have a little question: how do TxP users that have sites in other languages (Chinese, Russian, or even Spanish) with just few or all “weird” characters write the section name when they create sections? I ask because I really don’t know.

For example: if I want to create a section titled “Diseño”, I know that I can’t use “ñ” in URLs, so the section name I will choose will be a “dumb-down” or transliterated version, in this case, “disenio” or “diseno”.
The same goes for greek/japanese/russian/chinese/etc TxP users: when they choose the section name, they usually know which characters they can use and which they can’t.

Going back to my example above: If I’m creating a site with MLP on an english/spanish site, and I need to create a section titled Design/Diseño, I will name it design/diseno (section name).
Then, I will have this URLs:
/en/design/an-article-name
/es/diseno/el-titulo-de-un-articulo (this article title is, in fact, dumbed-down for “título” and “artículo”)

(BTW, in my original request, the URLs I put as examples didn’t have the language prefix (/en/, /es/) but just because I forgot them, not that I was suggeting to remove them in favor of translated section names)

Steve, please, don’t feel like I’m insisting and arguing (well, maybe a little) on adding this feature. I’m just thinking loud… So, please, sorry if I bother you.

Finally, if after reading this, you think it’s possible… I would suggest to make it optional to have the section name translated!

Last edited by maniqui (2008-01-08 21:10:16)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#558 2008-01-08 21:13:53

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: MLP - The Multi-Lingual Publishing Pack

maniqui wrote:

Just to clarify: what I asked was localised section names to the output URL.

I may be probably using the word “localised” in a wrong way. I just wanted to mean any of these: “translated” (like in services (en) = servicios (es)), “transliterated” or “dumbed-down” (like in design = diseno, when it is diseño).


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#559 2008-01-09 05:38:27

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

Re: MLP - The Multi-Lingual Publishing Pack

maniqui wrote:

Steve, please, don’t feel like I’m insisting and arguing (well, maybe a little) on adding this feature. I’m just thinking loud… So, please, sorry if I bother you.

Don’t worry maniqui — I don’t feel that. It’s good to have some feedback and ideas so go ahead and think aloud.

I think what you are asking for is probably best provided by a new permlink mode. Sorry to say that I hadn’t ever planned going down that route. Anyway, I’ll leave it in the list and think about it (sometimes it takes me a long time to think about things!)

Regards,


Steve

Offline

#560 2008-01-09 07:51:38

ultramega
Member
Registered: 2006-02-26
Posts: 221

Re: MLP - The Multi-Lingual Publishing Pack

I too like the idea of translated urls, now we can beautifully have for example page titles with all translated items (site-name/ section/article /what ever). Having clean, translated url same way would make the localized exprerience even more powerfull.

Offline

#561 2008-01-10 05:49:32

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

Re: MLP - The Multi-Lingual Publishing Pack

All

Just to update you on AndrijaM’s problem above. This is now solved and was due to two things…

  1. A problem with the order of plugin installation
  2. An error with the way one of the rss_suparchive tag attributes was being used.

Item 1 is important and I want to bring it to your attention. The current version of the MLP Pack works with many plugins but to maximise it’s compatibility you really need to make sure that the l10n plugin is the very first plugin you install on your site.

That’s because the MLP pack needs to get first shot at pre-processing the incoming URL (stripping the language marker from it). However, as plugins are called in the order of their installation into Txp, this is not always the case — especially when you convert an existing site to the MLP Pack. Some URL processing plugins (like rss_suparchive for example) will otherwise assume that the language marker is a section name (or something else) and things go wrong from there.

The fix (for the current version and below) is simple…

  1. Make a note of all your plugins.
  2. Delete them all
  3. Install (and activate) the l10n and gbp_admin_library plugins first
  4. Re-install (and activate as needed) the other plugins from your list

This will ensure the MLP Pack processes the URL, reducing it if there is a language marker, before other plugins get a shot at it.

I’ve fixed this issue in the development code (item 013 in the feature table ) so this will not be so important once the new version is released.

Regards,

Last edited by net-carver (2008-01-10 05:51:46)


Steve

Offline

#562 2008-01-11 00:33:38

jano
Member
Registered: 2008-01-09
Posts: 23

Re: MLP - The Multi-Lingual Publishing Pack

I’m working on two sites which content is bilingual. As you can imagine, the MLP has been an invaluable find (Thanks net-carver for the hard work!). However, I’m already using the glz_custom_fields plugin on both sites and I’m not sure if this plugin is supported by MLP.

Could anyone confirm if it is possible to use this combo: MLP + glz_custom_fields ? (That would be simply great)

Sorry if this has been asked before.

Offline

#563 2008-01-11 05:07:30

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

Re: MLP - The Multi-Lingual Publishing Pack

jano

thank you for posting.

I haven’t tried the MLP with glz_custom_fields but I don’t anticipate any problems with then working together. Like I said in the post above yours though, to maximise your compatibility, it’s best to make sure the MLP plugins are the first ones installed on a site and build up from there. There’s also a description of how to do that if you are adding the MLP Pack to an existing site.

Please report back with any success or failure you have with them.

Regards,


Steve

Offline

#564 2008-01-15 02:01:00

fuls
Member
Registered: 2005-11-16
Posts: 117
Website

Re: MLP - The Multi-Lingual Publishing Pack

Hi,

I’m using cbs_category_list and it picks only one language (default) for the category title. Do you have any idea? I used txp category list tag before and it worked well, but I needed that option with article count, so I installed this plugin.

Thanks!

Offline

Board footer

Powered by FluxBB