Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-08-13 01:42:01

rene
Member
From: Switzerland
Registered: 2004-03-27
Posts: 67

What language source is TXP using on install?

In the last few days I was helping with the translation of TXP into German. Now I was doing a fresh install and was choosing German as the language on setup, to test the translation.

To my surprise, TXP is not using the actual version of the language strings, but using an old version instead. It seems to rely on a different source than the already installed version. What needs to be done to force it to use the actual version?

Offline

#2 2005-08-13 06:52:57

Dean
Founder (Gone, but not forgotten)
From: Languedoc
Registered: 2004-02-14
Posts: 235
Website

Re: What language source is TXP using on install?

Hi Rene,

Are you talking about the language strings used during the setup process (these are in /textpattern/setup/setup-langs.php, and they they are prone to staleness), or the entire environment after a clean install? If it’s the latter, have you tried forcing update of the de-de localisation in the ‘Manage Languages’ section of prefs?


text*

Offline

#3 2005-08-13 10:21:35

rene
Member
From: Switzerland
Registered: 2004-03-27
Posts: 67

Re: What language source is TXP using on install?

Hi Dean

Ah, setup-langs.php is where those strings are hardcoded! We have a section ‘setup’ in the language tool for translations, and the variables are the same there as in the setup-langs.php. (‘about_to_create’, ‘already_installed’ ‘before_you_proceed’, ‘checking_database’ etc.) All those strings got new translations in the last few days, so I was wondering why it wasn’t reflected in the install. How do they find the way into setup-langs.php? It seems not automagically …

Offline

#4 2005-08-13 10:26:46

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: What language source is TXP using on install?

The files are automagically created, but we usually only check them in shortly before a new release.

Offline

#5 2005-08-13 10:34:57

rene
Member
From: Switzerland
Registered: 2004-03-27
Posts: 67

Re: What language source is TXP using on install?

Thanks for the info, Sencer.

I found a mismatch between the language tool and setup-langs.php: the variables ‘db_cant_connect’ and ‘db_doesnt_exist’ are only existing in the file, but not in the language tool. Are they obsolete, or is the language tool not complete?

Offline

#6 2005-08-13 10:42:25

Dean
Founder (Gone, but not forgotten)
From: Languedoc
Registered: 2004-02-14
Posts: 235
Website

Re: What language source is TXP using on install?

Thanks Rene, you should see those strings now.


text*

Offline

#7 2005-08-13 11:06:36

rene
Member
From: Switzerland
Registered: 2004-03-27
Posts: 67

Re: What language source is TXP using on install?

Yep, they are there!

Another question: in the image section is a variable ‘add_magnify_icon’, which is not in the in the en-gb default langauge file that comes with TXP, yet it appears as soon as the language is in the table txp_lang. Where is add_magnify_icon used?

Another variable ‘cant_ban_blank_ip’ is part of German (de-de) when it’s in the language table, but the string isn’t found in en-gb nor en-us, nor is it in the translation tool. Is this a zombie?

Offline

#8 2005-08-13 11:14:19

rene
Member
From: Switzerland
Registered: 2004-03-27
Posts: 67

Re: What language source is TXP using on install?

Found another oddity: ‘db_cant_connect’ and ‘db_doesnt_exist’ are not in the setup-lang.php for en-gb, en-us and et-ee, but for the other languages they exist.

Offline

#9 2005-08-13 11:15:47

Dean
Founder (Gone, but not forgotten)
From: Languedoc
Registered: 2004-02-14
Posts: 235
Website

Re: What language source is TXP using on install?

`add_magnify_icon` is a zombie from a feature that didn’t get added (hi wet). I’ll remove it from the database. And `cant_ban_blank_ip` was simply missing, you should see it now.


text*

Offline

#10 2005-08-13 12:00:44

rene
Member
From: Switzerland
Registered: 2004-03-27
Posts: 67

Re: What language source is TXP using on install?

I’m posting another language issue in this thread: the listing of the languages in ‘Manage Language’ is not reflecting the translations for the language names.

For the variable ‘spanish’ (which is in the translation tool) the German translation is ‘Spanisch’, but what gets displayed is ‘Español’

I think this should be handled consistently. So if variables like ‘czech’, ‘danish’, ‘dutch’, ‘italian’ etc. in the translation tool are ignored and not used otherwise, they should be removed in order to avoid confusion.

A special case is Japanese: When the backend language is set to English, Japanese is written in Kanji, while in a German backend it’s saying ‘Japanisch’, yet the variable for it is not in the translation tool. Where does it get this translation from? And this is another inconsistency: while Thai is written in the original characters in also when the backend language is German, Japanese is translated.

I think we should either display all languages in their original writing, or we should be able to translate them and it should be reflected in the backend then.

Offline

#11 2005-08-13 12:04:57

Dean
Founder (Gone, but not forgotten)
From: Languedoc
Registered: 2004-02-14
Posts: 235
Website

Re: What language source is TXP using on install?

Quite so: I decided to simply use each language’s local representation of itself wherever they are listed. The ‘translatable’ strings will be removed from the database.


text*

Offline

#12 2005-08-13 12:18:36

rene
Member
From: Switzerland
Registered: 2004-03-27
Posts: 67

Re: What language source is TXP using on install?

When you’re about cleaning up, I guess ‘use_sections’ can also be removed, since it seems to be standard and no longer an option in preferences, if I got that right.

Offline

Board footer

Powered by FluxBB