Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Localization section list in Write tab
in Write tab ( textpattern/index.php?event=article ) section list is not adapting for non-English users
There are use section names, but not section titles, and sorting by section names too
Offline
#2 2007-06-28 18:12:45
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Localization section list in Write tab
…is not adapting for non-English users…
I’m sorry, but I’m not understanding what you’re getting at. What is it, exactly, that you think it should be doing?
Offline
#3 2007-06-28 20:27:54
- anoke
- Archived Plugin Author
- Registered: 2006-04-15
- Posts: 152
Re: Localization section list in Write tab
I think Egveny meant the cat tree and section list should be constructed of $titles and not $names. You can try it by making a very long title or name and see what happens to cat/section selects.
Tried changing that from $name to $title – not a good move. The select list grows in width and thing starts get bouncy. I wonder if once can do line breaks in form selects..
- When chickens are cold, they roost in trees; when ducks are cold, they plunge into water -
Offline
#4 2007-06-28 20:45:57
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Localization section list in Write tab
In SVN category titles get truncated when they get too long.
Offline
#5 2007-06-29 06:52:30
- anoke
- Archived Plugin Author
- Registered: 2006-04-15
- Posts: 152
Re: Localization section list in Write tab
Oh, nice. I don’t have to shorten them myself now (:
The sorting problem still remains. If I got category title Ällistyttäviä älynväläyksiä , it will get named Aellistyttaeviae-aelynvaelaeyksiae. A is the first letter while Ä being the last in finnish. All scandic languages think ‘åäö’ distinct letters. I think german approaches it as “o with an umlaut”, so current “dumbing” it works for them. ( Quick look at ordering: finnish swedish and estonian . I think estonian’s the best example here.) That pseudo-randomises all category lists. Yet I think this is only a little compared to Slavic languages.
And when having categories like Aellistyttaeviae-aelynvaelaeyksiae toggling Show detail on at article list is quite a scary look. If article has two such categories, the category column is just noise. (got a patch for that though, finding..)
In short: easy category listing would be “title, asc”. (it sounds easy, it isn’t. Category edit doesn’t work that way but it’s quite doable at article edit.)
- When chickens are cold, they roost in trees; when ducks are cold, they plunge into water -
Offline
Re: Localization section list in Write tab
Mary wrote:
I’m sorry, but I’m not understanding what you’re getting at.
Sorry for my bad English :-((
anoke understand me right
section list should be constructed of $titles and not $names.
I means section list only
Offline
#7 2007-06-29 11:53:12
- anoke
- Archived Plugin Author
- Registered: 2006-04-15
- Posts: 152
Re: Localization section list in Write tab
Evgeny: yes – the category selection is ok, but the article list looks strange. I can live with sorting problem (“äö” before “qrst”), that isn’t so bad as one can read the words.
- When chickens are cold, they roost in trees; when ducks are cold, they plunge into water -
Offline
#8 2007-06-30 02:36:55
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Localization section list in Write tab
The auto-naming problem is not a Textpattern limitation but of PHP+your locale. Txp will eventually make use of mbstring if and when it is available (it isn’t always supported by a given webhost, although it should be, which means then we would still have to fall back to the current behaviour).
Offline
#9 2007-06-30 21:06:41
- anoke
- Archived Plugin Author
- Registered: 2006-04-15
- Posts: 152
Re: Localization section list in Write tab
Aren’t section/category names like they are due doSlashing and dumbDowning?
How come strtolower or mbstring restrict from changing $rs = safe_column("name...)
to something more sensible like $rs = safe_rows("name, title....)
in section_popup()? Or adding truncated fetch_section_title() for each in $rs before selectInput() in section_popup()?
Strange ordering isn’t that bad for a problem if one can read the options in the select list. (fetch_section/category_title() would be nice in article listing’s result rows too)
- When chickens are cold, they roost in trees; when ducks are cold, they plunge into water -
Offline
Re: Localization section list in Write tab
Mary wrote:
The auto-naming problem is not a Textpattern limitation…
Mary! I tell not about auto-naming.
In section list is displayed names of sections. Section titles is NOT displayed.
Please look textpattern/index.php?event=article
Last edited by Evgeny (2007-07-02 07:07:38)
Offline
#11 2007-07-09 18:43:02
- anoke
- Archived Plugin Author
- Registered: 2006-04-15
- Posts: 152
Re: Localization section list in Write tab
Evgeny: It’s quite easy to change it to support at least scandinavic åäö-letters. Email me if you want trying it.
- When chickens are cold, they roost in trees; when ducks are cold, they plunge into water -
Offline
Pages: 1