Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Upgrading a site to multilingual
I want to use the <txp:text item="myValue" />
in a multilingual site so that when the site when the language changes so does the text.
I have understood that all the values for this are held in the txp_lang table, and that is where i want to add some values.
Problem is i’m a designer and don’t know how to add a variable and it’s possible values to the table. :-?
This is what i am trying to achieve
<txp:text item="author" />
outputing “author” in EN and “auteur” in NL
I see 6 rows within the table:
id
lang
name
event
data
lastmod
Where do i put my values, which rows ?, how?
Last edited by Timid&friendly (2008-06-28 12:06:56)
I think, therefore I AM, … … er … I think :-?
Offline
#2 2008-06-28 12:35:57
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Upgrading a site to multilingual
Don’t you intend to use the MLP pack? How would you check for the current language? I’ve done a couple of multilingual sites using sections for languages in the past, and one using the MLP pack, and I definitely recommend using the latter! I still intend to rebuild the old sites with the MLP pack.
Anyway, name is what you enter in the item
attribute, and data is what you want it to display. But it’s easier to install the second language in preferences > language :)
Offline
#3 2008-06-28 12:48:57
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: Upgrading a site to multilingual
Several times I was looking for my German language file all over, but couldn’t find it but in my DB. So I was just about to answer Timid&friendly with an SQL query. Els, where have you found your language file? (Like I said elsewhere yesterday: I haven’t yet set up a ML site, I just want to be prepared.)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#4 2008-06-28 12:54:24
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: Upgrading a site to multilingual
BTW, I updated my language files recently and just found This article was concurrently edited by {author}.
at the end of the table. Tells me we’re able to back-reference to values already set :)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#5 2008-06-28 13:07:34
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Upgrading a site to multilingual
Languages are installed directly in the database (txp_lang table). The TXP install package only contains /lang/en-gb.txt.
You should be able to install other languages from here:
Otherwise, download the file from http://rpc.textpattern.com/lang/ and install from file (bottom of the language screen):
Offline
Re: Upgrading a site to multilingual
I was indeed planning on testing the MLP pack today, but this is all new to me and i’m playing with various ideas to see what works best for me. My thx as ever for your gracious and helpful input ;-)
I think, therefore I AM, … … er … I think :-?
Offline
#7 2008-06-28 13:48:03
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: Upgrading a site to multilingual
Els wrote:
You should be able to install other languages from here:
[image]
Was this meant for me? If so, I seem to leave no good impression by asking my questions ;))
[Thanks for the image efforts, though!]
Anyway, next question: Would the MLP spare me of injecting SQL queries, and offer me a more intuitive way of adding and editing text strings?
Last edited by uli (2008-06-28 13:49:07)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#8 2008-06-28 14:30:53
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Upgrading a site to multilingual
uli wrote:
Was this meant for me? If so, I seem to leave no good impression by asking my questions ;))
Sorry, must have misunderstood. I must admit I found it a bit odd you would not know that ;)
Anyway, next question: Would the MLP spare me of injecting SQL queries, and offer me a more intuitive way of adding and editing text strings?
Yes, of course!!! Just give it a try, it’s really worth while.
Offline
Re: Upgrading a site to multilingual
Hello everybloody,
Nearly there with the multilingual site. MLP does work fantastically, i was justa bout to translate all the Language strings for:-
1. |10n [admin]
2. zem_contact_lang-mlp [public]
… and t I thought to myself hey!!! perhaps someone has already done this?
… has someone already created the DUTCH NL Language strings for these plugins, It would be a shame if i translated them because i am not a native speaker
I think, therefore I AM, … … er … I think :-?
Offline
#10 2008-09-28 15:42:16
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Upgrading a site to multilingual
See my post here :)
Offline
Pages: 1