Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1786 2011-05-17 13:56:13
Re: MLP - The Multi-Lingual Publishing Pack
Ok, I’m not giving up – so here I go again : )
As mentioned in post #1771, I have no language directories on my server, yet everything is fine backend. After reading post #1779, I checked the textpattern, l10n_txp_xx_xx and l10n_articles tables and all entries are here.
Unfortunately I know close to nothing about php, mySQL etc., and therefore have no idea why everything is ok in the database, but apparently does’nt work on the server.
I will be extremely grateful to anyone, who can point me in the right directions in order to figure this out!
Offline
#1787 2011-05-17 18:16:25
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: MLP - The Multi-Lingual Publishing Pack
Exiladler
What happens if you don’t create the menu manually, but use the <txp:l10n_lang_list /> tag?
Snorre
I have no idea why this is happening, never heard of this problem before… You shouldn’t have language directories, so that at least is fine ;) Is it a live site? If you’d trust me with a login I can have a look around at your settings, but I can’t promise I’ll be able to find the cause of the problem.
Offline
#1788 2011-05-17 20:01:42
- Tobiasz
- New Member
- Registered: 2007-07-09
- Posts: 2
Re: MLP - The Multi-Lingual Publishing Pack
Hi,
The website of our association was working well and long with the MLP. Than, two years before something went wrong and newly added renditions didn’t appeared on our website and the changes made in the old renditions also hasn’t been visible in front-end (but yes in back-end). We didn’t have time to fix it. Now I must get the webpage working. I’ve moved it to new server and updated the TXP and MLP as well. Now it’s working at TXP: 4.4.0, l10n 0.9.11, gbp_admin_library 0.4.1 and zem_contact_lang-mlp 4.0.3.6.
The webpage http://esenco.org is working on polish (default) and esperanto. I’ve made everything obeying the MLP’s manual. I’ve pass importing the old renditions and I can make changes to them. But when adding the new articles, they receive adres at /pl/ but it doesn’t go to the MLP panel in back-end. It’s impossible to clone them and add the esperanto translation. The language-selection menu disapeares when you open the rendition in front-end.
In our SQL DB the new articles appear in table with articles (`esc_l10n_articles`) and at the polish language table ( `esc_l10n_txp_pl_pl`) but in both of them without the language code. The row l10n_lang stays empty.
While saving the changes in articles there is an error:
@Warning: Something is wrong in your syntax obok ‘’ w linii 1 select * from esc_l10n_articles as l10n_articles where `ID`= in /home/tobiasz/domains/esenco.org/public_html/textpattern/lib/txplib_db.php on line 110
Invalid language code ‘’ calculated in _l10n_add_rendition()@
I’ve spent two days on it already but im not the proffesional and it still seems to be complicated to me :(. I hope there is someone who can help me and my association.
Offline
#1789 2011-05-17 21:04:31
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: MLP - The Multi-Lingual Publishing Pack
Offline
#1790 2011-05-18 09:07:49
Re: MLP - The Multi-Lingual Publishing Pack
Els wrote:
Snorre
I have no idea why this is happening, never heard of this problem before… You shouldn’t have language directories, so that at least is fine ;) Is it a live site? If you’d trust me with a login I can have a look around at your settings, but I can’t promise I’ll be able to find the cause of the problem.
Hi Els,
I’m very grateful for any help!
I’ve emailed you my log-in info.
Offline
#1791 2011-05-18 11:49:43
Re: MLP - The Multi-Lingual Publishing Pack
Els,
Works a lot better since I upgraded to MLP 4.3.0.12 BUT the link issue persists. If I use <txp:l10n_lang_list /> then it shows them correct but how do i add images to the this list as I have images with the country flags.
Offline
#1792 2011-05-18 17:52:04
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: MLP - The Multi-Lingual Publishing Pack
Exiladler wrote:
how do i add images to the this list as I have images with the country flags.
You can do it using rah_replace:
<txp:rah_replace from="Italiano,Nederlands,Polski" to='<txp:image name="it-small.gif" />,<txp:image name="nl-small.gif" />,<txp:image name="pl-small.gif" />'>
<txp:l10n_lang_list />
</txp:rah_replace>
I left out ‘tu’ and ‘sf’ in the example because they are not in the language list (that may also be related to your problem). Which languages are they, did you use the correct language codes? Can’t find them among the official languages.
Offline
#1793 2011-05-18 18:26:43
Re: MLP - The Multi-Lingual Publishing Pack
Thanks,
They are Turkish (tr) and Finish (sf). here is my MLP preferences Languages string en-gb,ca-es,de-de,es-es,fi-fi,fr-fr,pl-pl,pt-br,ru-ru,tr-tr
Offline
#1794 2011-05-18 18:53:07
Re: MLP - The Multi-Lingual Publishing Pack
What is also strange, when I use txp:l10n_lang_list it resolves the links as follows: <a href=“http://www.thumbguard.eu/ca/Images/cc.gif”>
I am wondering why there is /Images/cc.gif at the end, this happens for all languages. Almost tempted to start with a fresh TXP and MLP install.
Offline
#1795 2011-05-18 19:01:21
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: MLP - The Multi-Lingual Publishing Pack
Exiladler wrote:
They are Turkish (tr) and Finish (sf). here is my MLP preferences Languages string en-gb,ca-es,de-de,es-es,fi-fi,fr-fr,pl-pl,pt-br,ru-ru,tr-tr
OK, but if you were using ‘tu’ and ‘sf’ in your manual links, that wouldn’t work of course. Have a look at l10n_langs.php, it contains the valid language codes and you should stick to those.
What is also strange, when I use txp:l10n_lang_list it resolves the links as follows: <a href=“http://www.thumbguard.eu/ca/Images/cc.gif”>
What is the exact code you are using now (rah_replace included)?
Offline
#1796 2011-05-18 21:51:07
Re: MLP - The Multi-Lingual Publishing Pack
<txp:rah_replace from="Italiano,Nederlands,Polski,Français,Suomi,Português,Русский,Türkçe,Català,English,Deutsch,Español" to='<txp:image name="it-small.gif" />,<txp:image name="nl-small.gif" />,<txp:image name="pl-small.gif" />,<txp:image name="fr-small.gif" />,<txp:image name="sf-small.gif" />,<txp:image name="pt-small.gif" />,<txp:image name="ru-small.gif" />,<txp:image name="tu-small.gif" />,<txp:image name="es-small.gif" />,<txp:image name="gb-small.gif" />,<txp:image name="de-small.gif" />,<txp:image name="es-small.gif" />
'>
<txp:l10n_lang_list wraptag="span" break="span" />
</txp:rah_replace>
(added bc. for better code display. -Els)
Last edited by els (2011-05-18 22:13:15)
Offline
#1797 2011-05-18 22:20:56
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: MLP - The Multi-Lingual Publishing Pack
Exiladler wrote:
What is also strange, when I use txp:l10n_lang_list it resolves the links as follows: <a href=“http://www.thumbguard.eu/ca/Images/cc.gif”>
I am wondering why there is /Images/cc.gif at the end, this happens for all languages. Almost tempted to start with a fresh TXP and MLP install.
I looked at the site you mentioned, but can’t find a page where this happens. Can you provide a link?
Offline
#1798 2011-05-19 08:04:20
Re: MLP - The Multi-Lingual Publishing Pack
Sure, I use a subset at the moment until I get things working
http://www.thumbguard.eu/AAA
Offline
#1799 2011-05-19 09:38:37
Re: MLP - The Multi-Lingual Publishing Pack
The problem mentioned in post #1771 has been solved!
Els looked at the backend of my site and pointed out that I was missing the .htaccess file.
I’m working on Mac and since files starting with a ‘.’ does’nt show, I have missed the .htaccess when copying the Textpattern files to the server.
If others have the same issue, you can copy the content for the .htaccess (TXP 4.4.0) here and paste it into a text file. Save the file as ‘something.htaccess’, upload it to your server, and remove the ‘something’ from the file name on the server.
Thanks a lot Els for solving this for me!
Offline
#1800 2011-05-19 17:21:27
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: MLP - The Multi-Lingual Publishing Pack
Thanks for posting the solution, Snorre! I wouldn’t have guessed for a moment that you’d still need the .htaccess even if you are using messy URLs. Learned something new :)
Offline