Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Different language in admin section?
Is it possible to have the site in another language than the admin section? We’ve got a fairly big site with many publishers and some of them are french, some are swedish and some are finnish. The site itself is in finnish, but then then admin section is in finnish too, which is really hard for the french and swedish people, so is there an easy way to make the site in finnish and english on the admin-pages?
Offline
Re: Different language in admin section?
You need (someone) to write a plugin for this. It is curently not possible outside the box. (But it would be a fairly simple plugin, set a cookie, and load a different language depending on the cookie-value).
Offline
Re: Different language in admin section?
too bad.. damn :/
I was sure it was possible to set it somewhere, pretty odd that it isn’t possible :(
Offline
Re: Different language in admin section?
> pretty odd that it isn’t possible
The assumption that authors speak the same language as their audience, holds most of the time. ;) Even on most multi-lingual sites. But it sounds like a viable feature request for future versions, given that it isn’t all that hard to do.
Offline
Re: Different language in admin section?
> Sencer wrote:
The assumption that authors speak the same language as their audience, holds most of the time. ;) Even on most multi-lingual sites.
Not really. If non-english authors want visitors from other countries to be able to read their site they have to make it in English. There are actually a lot of people who doesn’t speak native English in the world ;)
I would be very happy if someone made a plugin for this!
Offline
#6 2006-02-10 18:37:38
- -P-
- Member
- From: Finland
- Registered: 2005-09-10
- Posts: 211
Re: Different language in admin section?
I agree totally with csandberg!
Other feature that I would love to see in the future releases on localisation is a ability to show different language strings based on public site section you´re on.
For example with search, when showing results and you a have site with two different languages it would be great to make translation “perfect”.
Now systems shows “x articles found” etc. and I assume you have to use that same phrase sitewide thou it really would be nicer to make search results return with the language based on the section you´re on.
If this can be achieved already with for example with if_section -tags, I´m really happy to hear how. :)
Last edited by -P- (2006-02-10 18:44:36)
Offline
#7 2006-02-10 19:10:55
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Different language in admin section?
P wrote:
If this can be achieved already with for example with if_section -tags, I´m really happy to hear how. :)
In your language file, remove the text after
articles_found =>
and
article_found =>
Then on the page something like this:
<code>
<txp:if_section name=“english”>
<txp:search_result_count /> english text
</txp:if_section>
<txp:if_section name=“finnish”>
<txp:search_result_count /> finnish text
</txp:if_section>
</code>
EDIT: To work around the problem that you’d need different text for 1 article found or more articles found, you might do something like ‘Number of articles found: x’.
Last edited by doggiez (2006-02-10 19:16:00)
Offline
Re: Different language in admin section?
Sencer wrote:
> You need (someone) to write a plugin for this. It is curently not possible outside the box. (But it would be a fairly simple plugin, set a cookie, and load a different language depending on the cookie-value).
The Django admin app picks up the user’s Accept-Language
header, and uses that to set the language it displays. This might be a better way to go about implementing such a plugin.
You cooin’ with my bird?
Offline
Re: Different language in admin section?
Yes, that is a good start for a default value, but you need a way to override it anyway. Otherwise there’s plenty of situations where this leads to very undesired results (think of working from different PCs, or people downloading browsers with different presets, because a localized version was not (yet) available etc.).
Offline
Pages: 1