Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Using locale for lang attribute in the backend
The two XHTML attributes xml:lang
and lang
in the XHTML code of the backend should use the language local set in the prefs; instead of being dead locked as English.
It’s used by a variety of tools, such as vocal readers, external spell checkers, and so on.
Offline
#2 2007-02-01 04:31:46
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: Using locale for lang attribute in the backend
Jérémie
the MLP Pack has tags that fix this, allowing the xml:lang
and lang
to be set to the language being served by the site.
Take a look at the MLP Pack demonstration site and check out the source to the pages to see it in action (try switching languages).
There are also tags to allow checking of the language directionality that can be used to serve RTL-specific style sheets as with the Algerian/Arabic translations on the demo site.
— Edit 1 —
I’ve only setup the page template to serve the iso-693 part 1 language codes in the xml:lang
attribute but the tag can easily output the part 2 (eg: el-gr for Greek) codes as well.
— Edit 2 —
Oops, Sorry, I see you are talking about the admin interface. Ok, the MLP Pack can switch the language but let me see what I can do about those tags. I could probably re-write them but you’re right, it would be better for the core files to do that.
Last edited by net-carver (2007-02-01 04:51:16)
— Steve
Offline
#3 2007-02-01 08:28:13
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Using locale for lang attribute in the backend
That’s already planned, fyi. :)
Offline
#4 2007-02-01 08:34:40
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: Using locale for lang attribute in the backend
Mary
thanks for the info. I’ll leave it alone then.
— Steve
Offline
Re: Using locale for lang attribute in the backend
Thanks Mary.
Carver, I won’t install a huge plugin just for this. For some of my personnal use, I can edit the sources of the backend way more easily :)
Offline
#6 2007-02-02 03:34:03
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: Using locale for lang attribute in the backend
Jérémie
No problem. Most of the above was due to my mis-reading your initial post :)
— Steve
Offline