Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#661 2008-03-06 12:58:39

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

Re: MLP - The Multi-Lingual Publishing Pack

Mmmm…
I’ve being testing:

- in IE7, it seems that a cookie is set and so, in next visits the previously selected language will be the chosen one.
- in FF 2.0.0.12, the language chosen is used until the browser is closed. Next time the user visits your page, the browser language settings will take precedence again…

So, you problem is half-solved, hehe.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#662 2008-03-06 13:36:19

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

Re: MLP - The Multi-Lingual Publishing Pack

Yes, same thing with me. In mozilla 2.0.0.12, when I go to tools>options>privacy show cookies and find the cookie it says: expires: at end of session.

I guess thats why every time the browser is closed, cookie expires. But is that firefox behavior or MLP? Becouse in firefox I have “keep till they expired” selected for cookies.

Offline

#663 2008-03-07 03:38:01

dl33
Member
Registered: 2006-06-17
Posts: 192
Website

Re: MLP - The Multi-Lingual Publishing Pack

I installed MLP and it is working like a charm, however I still have a couple of questions…

Is there a tag to output a language toggle button for the actual website. I know you could just use the country codes (/en/), but I think that it should be possible that textpattern redirects you to the article that you were reading. (in the other language)

Also it is possible to hide the ‘advanced’ tabs of MLP from some users?

Offline

#664 2008-03-07 08:39:45

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

Re: MLP - The Multi-Lingual Publishing Pack

<txp:l10n_lang_list />

Offline

#665 2008-03-07 23:49:52

dl33
Member
Registered: 2006-06-17
Posts: 192
Website

Re: MLP - The Multi-Lingual Publishing Pack

Thanks a lot, I couldn’t find the help page (looked at the wrong plugin for l10n)

Nevertheless I still have a problem. I creates a new section to test something with a new article in it. Even though I deleted both of these it still shows up on the page. I tried recreating it and deleting it again, but it still shows up on the page.

Offline

#666 2008-03-08 07:14:40

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

Re: MLP - The Multi-Lingual Publishing Pack

How did you delete them? If I remember right, I had similar problem when deleting articles via normal renditions tab. When deleting them with MLP-list, they are gone. I used rss db admin plugin or phpMyAdmin to delete those ghosts.

Offline

#667 2008-03-09 19:40:53

dl33
Member
Registered: 2006-06-17
Posts: 192
Website

Re: MLP - The Multi-Lingual Publishing Pack

ultramega: I think I might have deleted them over the renditions tab. I now hid that particular section from the menu, so it’s not that much of a problem. The funny thing is that I also checked php-my-admin and they are nowhere to be found, yet I can still see the article on my site… (?)

Offline

#668 2008-03-09 19:49:14

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

Re: MLP - The Multi-Lingual Publishing Pack

Browser cache?

Offline

#669 2008-03-09 19:50:29

dl33
Member
Registered: 2006-06-17
Posts: 192
Website

Re: MLP - The Multi-Lingual Publishing Pack

nope, emptied the cache…

(No worries; it doesn’t matter that much really, now that I hid them… They’ll disappear at some point.)

Offline

#670 2008-03-09 19:53:16

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

Re: MLP - The Multi-Lingual Publishing Pack

Did you check right tables — I am not sure if they are in the original textpattern-table.

Offline

#671 2008-03-09 20:31:09

dl33
Member
Registered: 2006-06-17
Posts: 192
Website

Re: MLP - The Multi-Lingual Publishing Pack

I just found them in a language specific table? (Not the generic l10n_articles, but something like l10n_txp_de_de) If you delete them from there they will disappear.

Offline

#672 2008-03-10 00:00:07

azw
Member
Registered: 2007-01-29
Posts: 279

Re: MLP - The Multi-Lingual Publishing Pack

Is dl33’s problem a bug in the MLP?

Offline

#673 2008-03-11 18:03:06

brunodario
Member
From: Belo Horizonte, Brasil
Registered: 2007-09-19
Posts: 75

Re: MLP - The Multi-Lingual Publishing Pack

Hi there. I just finished a bi-lingual website wich uses de MLP with TextPattern v 4.0.5. But i´m still having the problem i´ve related here

The problem is that both <txp:newer> and <txp:older> doesn´t return anything on an article page and on an individual article page.

In example: <txp:newer>Previous</txp:newer> <txp:older>Next</txp:older> returns a blank space on the site code, even if the article form has reached the limit (in this case the limit is 9 articles per page). Same thing on individual article page.

I´ve disabled the ob1_pagination plugin to check if there was any kind of conflict but still the same thing. And ob1_pagination doesn´t work also.

[EDIT] It appears that the page can´t see when i´m displaying articles list so that´s the reason why the tags aren´t working. Here´s the page code

<div id=“nav-hold”> <div id=“nav-wrap”> <txp:output_form form=“navigation” /> </div>
</div> <div id=“product-wrap”> <div id=“product-hold”>
<txp:if_individual_article>
##products_form_language##
<txp:else />
<div id=“product-aux-content”> <txp:image id=“26” /> <txp:category_list parent=“lingerie” wraptag=“ul” break=“li” section=“products” /> ##can_we_help## </div> <div id=“product-article-list”> <div id=“product-nav-hold”> <txp:ob1_pagination firsttext=”<<” previoustext=”<” nexttext=”>” lasttext=”>>” ulid=“product-nav” liclass=“product-nav-link” liselected=“product-nav-nolink” liempty=“product-nav-nolink” maximumtabs=“5” /> </div> ##products_form_language##

</div>
</txp:if_individual_article>

##product_form_languaje## snnipet code is simple:

<div class=“product-list”> <txp:permlink><txp:article_image thumbnail=“1” /></txp:permlink> <h3><txp:permlink><txp:title /></txp:permlink></h3> </div>

The thing is that if i put ob1_pagination inside the form then it works. But it repeats the navigation on and on for each article…
Any ideas on what´s going on would be great.

Thx in advance

Last edited by brunodario (2008-03-11 19:41:22)

Offline

#674 2008-03-11 21:06:22

azw
Member
Registered: 2007-01-29
Posts: 279

Re: MLP - The Multi-Lingual Publishing Pack

What happens if you disable the MLP? Does pagination work then?

I’m wondering if it’s a MLP problem or a more basic problem with the pagination itself. I don’t remember now what I did, but I had problems with pagination that I think were caused by how I was thinking about it.

Looking at your code, it seems to me that you’re trying to place it on the wrong page.

Check this page in the Textbook

The older tag is both a Single Tag and a Container Tag. Should be used in a page after an article tag.

I found this to be confusing myself. You put the article tag and the older/newer on one page (or possibly on a form) and then determine how an individual article will look in another form. The older/newer is not part of the individual article. It’s part of the list of articles (even if only one is returned). In other words, the older/newer do not go on the form that formats the display of the article.

Hope that helps.

Last edited by azw (2008-03-11 21:08:52)

Offline

#675 2008-03-13 20:16:13

azw
Member
Registered: 2007-01-29
Posts: 279

Re: MLP - The Multi-Lingual Publishing Pack

Here’s a question for Maniqui, FireFusion, and anyone else who has updated to the latest version.

FireFusion wrote:

Hmm got the following error on upgrading but otherwise seems ok. Is this a problem?

A problem occured while loading the plugin: l10n -> Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object on line 553

A problem occured while loading the plugin: l10n -> Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object on line 553

A problem occured while loading the plugin: l10n -> Warning: Cannot use a scalar value as an array on line 1421

I’m wondering about this error. (Warning: I’m not a whiz with php.)

It may be coming from this bit of code in l10n:

function _l10n_substitute_snippets( &$thing )
{
/*
Replaces all snippets within the contained block with their text from the global textarray.
Allows TxP devs to include snippets* in their forms and page templates.
*/
...
  if( array_key_exists( $snippet , $textarray ) )
    $out = $textarray[$snippet];
  else
    $out = "($lang)$snippet";
...

If that bit of code were mal-functioning, snippets might not work correctly. Have you seen any problems with snippets?

There’s another array_key_exists conditional at about line 825.

#	If a translation exists for that language then we
# build a valid url to it and make it active in the list, otherwise include it in the
# list but wihtout the hyper-link.
#
#	The active page is marked up with a css class.
#
if( array_key_exists( $lang , $alangs ) )
...

If that failed, it would probably cause the language selection links ( <txp:l10n_lang_list />) to not work. Do they?

Offline

Board footer

Powered by FluxBB