To participate you must create an account on apostrophenow.org. If you have already done so, click Login.

Ticket #447 (closed defect: fixed)

Opened 20 months ago

Last modified 18 months ago

Turn off title casing of UI text elements

Reported by: oestrogen Owned by: johnnyoffline
Priority: major Milestone: 1.4.1
Component: apostrophePlugin Version: 1.4
Keywords: i18n Cc: rickybanister, jake, geoffd,
Symfony version: 1.4

Description

Even after translation all (or, rather confusingly, most) UI text elements (such as buttons and microcopy) of Apostrophe get title cased.

This might be the correct thing to do in American English, but not in a big part of the remaining languages of the world. It breaks both Swedish, which should be sentence cased, and German which should be sentence and proper noun cased. Just leave it to the translator!

Change History

follow-up: ↓ 2   Changed 18 months ago by jzfi

  • priority changed from major to trivial

This is annoying as a default feature and I spent some time to find a solution to this behavior. After digging trough the code to find an overridden function or anything else that would capitalize (didn't remember this term for it at that point) the text I finally got the idea that maybe it's in the CSS formatting. I remembered that there is a text-transform rule, but I had forgotten that it also has a value called capitalize.

So just override that a.css property in your main.css. For ex.

.a-btn { text-transform: none; }

It occurs many times in a.css for different elements. I suggest that all occurrences of this property should be moved from a.css to the default sandbox main.css. It maybe nice for the demo, but non-English languages don't like this behavior.

in reply to: ↑ 1   Changed 18 months ago by jzfi

Replying to jzfi:

This kills all the capitalization found in a.css. Put it in your main.css.

.a-form-row label, .a-btn, #a-breadcrumb .a-breadcrumb-title.current-page,
#a-breadcrumb .a-breadcrumb-width, #a-breadcrumb-create-childpage-max-message,
#feedback-link, .a-admin fieldset h2, .a-admin-bar .a-admin-title
{
	text-transform: none;
}

  Changed 18 months ago by tboutell

  • cc rickybanister, jake, geoffd, added
  • owner changed from boutell to johnnyoffline
  • status changed from new to assigned
  • priority changed from trivial to major

Let's kill this everywhere with a big rock. It's true, forcing capitalization via CSS is an i18n mess.

  Changed 18 months ago by johnnyoffline

  • status changed from assigned to closed
  • resolution set to fixed

All use of text-transform is completely removed from 1.4 and trunk.

Anywhere I wanted to use it, was moved to main.css of the sandbox

[1880]
[1879]
[1878]
[1877]

Note: See TracTickets for help on using tickets.