Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1453 2009-12-04 17:09:42
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: MLP - The Multi-Lingual Publishing Pack
I don’t know much about Paypal buttons, so can you tell me which part of the code should be different depending on the language? Is it just the image name?
Offline
#1454 2009-12-04 17:14:40
Re: MLP - The Multi-Lingual Publishing Pack
For example, you can play with l10n_if_lang
.
Offline
#1455 2009-12-04 17:15:47
Re: MLP - The Multi-Lingual Publishing Pack
Certainly,
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="lc" value="GB" />
<input type="hidden" name="cmd" value="_s-xclick" />
<input type="hidden" name="hosted_button_id" value="xxxxxxxx" />
<input type="image" src="https://www.paypal.com/en_US/ES/i/btn/btn_buynowCC_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online!" />
<img alt="" border="0" src="https://www.paypal.com/es_ES/i/scr/pixel.gif" width="1" height="1" />
</form>
and if in Spanish, then line 5 of the form should have this image source
https://www.paypal.com/es_ES/ES/i/btn/btn_buynowCC_LG.gif
if possible, the alt text should also be exchanged but I can live without that
Offline
#1456 2009-12-04 17:30:57
Re: MLP - The Multi-Lingual Publishing Pack
Then play with l10n_get_lang
to build your URLs.
Offline
#1457 2009-12-04 17:34:55
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: MLP - The Multi-Lingual Publishing Pack
If you have a lot of languages on the site I think it can be automated further, but if not, it’s probably quickest if you put this code for each language in its own form, name the forms ‘en-us_paypal’, ‘es-es_paypal’ etcetera, and use something like this to call the right form:
<txp:output_form form='<txp:l10n_get_lang type="long" />_paypal' />
(edit: late again ;) )
Last edited by els (2009-12-04 17:35:18)
Offline
#1458 2009-12-04 17:36:59
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: MLP - The Multi-Lingual Publishing Pack
jpleboeuf wrote:
Then play with
l10n_get_lang
to build your URLs.
That’s what I was thinking when I said ‘can be automated further’, but the get_lang tag outputs en-us
, and not en_US
. But even that could be solved if necessary :)
Offline
#1459 2009-12-04 18:38:33
Re: MLP - The Multi-Lingual Publishing Pack
Thanks, that has given me enough to work it out
Regards
Peter
Offline
#1460 2009-12-04 23:19:32
Re: MLP - The Multi-Lingual Publishing Pack
graeme wrote:
Please file a bug and I’ll fix this when I get a chance. Thanks.
Oops. Missed the posts. I hope someone with an account at txpforge can file this issue so that I don’t make an account for this only.
Last edited by datorhaexa (2009-12-04 23:20:25)
Offline
#1461 2009-12-13 22:35:40
Re: MLP - The Multi-Lingual Publishing Pack
sorry if someone else already report this…
I’ve notice that if you change the name of article category it’s not automatically changed in article (for example in l10n_txp_en_gb table)… it can be a problem if you have a lot of articles in that category.
using txp 4.2 and mlp 0.9.13
Last edited by pogonik (2009-12-13 22:36:51)
Offline
#1462 2009-12-26 22:57:13
Re: MLP - The Multi-Lingual Publishing Pack
I wonder if anyone managed to get 0.9.13 working with txp 4.2.0?
I’ve tried several times and I am still unable to edit section titles.
I’ve found out that after MLP installation section edit form uses wrong database fields for titles.
Section title [English] uses ‘Title’ field from txp_section table, not ‘l10n_title_en_gb’. So I can edit and save Section title [English], but it’s not displayed in the frontend because <txp:section link=“1” title=“1” /> takes title from ‘l10n_title_en_gb’.
I can’t guess where Section title [Russian] goes to it just disappears after I press Save in section edit form and it’s not stored anywhere – l10n_title_ru_ru remains empty.
The bug was filed 2 moths ago at http://txpforge.org/issues/show/29 and it remains in Unconfirmed status. I understand it’s free software and there is no support, but could anybody give me a clue how to debug it so that I could fix it myself?
Offline
#1463 2009-12-28 03:59:06
- ploinkr
- Member
- From: Montreal
- Registered: 2007-12-06
- Posts: 83
Re: MLP - The Multi-Lingual Publishing Pack
liniocht, I’m having the same problem, with section titles and categories. The easiest way (so to speak) I found to change/add them is by using either phpMyAdmin or an external DB manager (I like Sequel Pro) and enter the info manually.
Offline
#1464 2009-12-28 07:36:30
Re: MLP - The Multi-Lingual Publishing Pack
Thank you, ploinkr.
I have not tried categories with mlp-0.9.13 yet. It’s bad news categories editing doesn’t work too. I’ve tried changing data manually examining the problem – it works, but it’s not an option for a more or less commercial project. I had to use txp 4.0.8 with mlp-0.9.11 – it seems stable, but anyway has some bugs mentioned in this thread earlier.
So I am pressed to use txp 4.0.8 if I want mlp or to use txp 4.2.0 in one language untill (if ever) 0.9.13 is fixed.
Offline