Closed Bug 823087 Opened 12 years ago Closed 12 years ago

Gaia should not use text-transform: capitalize; in CSS

Categories

(Firefox OS Graveyard :: Gaia, defect)

x86
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: willyaranda, Unassigned)

Details

Attachments

(4 files)

Some of the locales, for example in Spanish, is totally incorrect to Capitalize First Letter in each word. (This is shown on "Passcode lockscreen")

It's on:

- apps/communications/ftu/css/style.css:76
- apps/homescreen/everything.me/modules/Shortcuts/Shortcuts.css:129 and 148
- apps/homescreen/everything.me/modules/SmartFolder/SmartFolder.css:60
- apps/homescreen/style/grid.css:80
- apps/system/style/lockscreen/lockscreen.css:132
I can change it here

apps/homescreen/style/grid.css

It was implemented in order to show the app name with the first letter capitalized
It fixes the grid css in homescreen
Attachment #694267 - Flags: review?(willyaranda)
OS: Mac OS X → Gonk (Firefox OS)
Guillermo, the css rules in Evme are all of titles - not sentences/phrases  - therefore I believe they can be left unchanged.
Attached the related images.
Ran, if those CSS rules are not applied to a localizable element, that's fine.
Vivien, can you take a look at comment #0 --> apps/system/style/lockscreen/lockscreen.css:132
Flags: needinfo?(21)
You're right Guillermo, they aren't.
Comment on attachment 694267 [details]
Homescreen, FTE and lockscreen

Per conversation with Cristian, this applies to app names on homescreen.

So, if we have translated "Cost control" to "Control de consumos", it is transformed to "Control De Consumos", which is not good for, at least, Spanish.

I can give a r+, but asking for review from Axel too.
Attachment #694267 - Flags: review?(willyaranda)
Attachment #694267 - Flags: review?(l10n)
Attachment #694267 - Flags: review+
Comment on attachment 694267 [details]
Homescreen, FTE and lockscreen

Super trivial change. As a module peer I can give you an r+ on this. If some one fixes the lock screen case I can also give that an r+.

However, to get this landed, we need approval to module owner/release drivers to reduce the risk. Please fill out the form here:

[Approval Request Comment]
Bug caused by (feature/regressing bug #): 
User impact if declined: 
Testing completed: 
Risk to taking this patch (and alternatives if risky):

willyaranda, thank you for file the bug! It's pretty insensitive of devs (including me) to use this broken CSS feature, sorry about that. Would you like to submit a pull request and patch Gaia?
Attachment #694267 - Flags: review?(l10n)
Attachment #694267 - Flags: review+
Attachment #694267 - Flags: approval-gaia-master?(21)
Comment on attachment 694267 [details]
Homescreen, FTE and lockscreen

Yes, don't to text transforms on translated text.

We may also not want to do that for text we get from the web, like changing other people's brand names to be Caps, like Mozilla vs mozilla.
Also, the Caps might not be applicable in a localized version of fx os at all.
So we should delete all references of this CSS feature completely from Gaia, including Ev.me? (see comment #6 and comment #9)
I suspect that it's having more down- than upsides most of the time, I'd vouch for yes, review and likely remove.
In comment #9 I meant that they aren't localized so it's ok to leave them as is.
Cristian, can you delete the references of "text-transform: capitalize;" on gaia except on ev.me on your PR?
ok friends
done
Status: NEW → ASSIGNED
Attachment #694267 - Attachment description: Grid problem in homescreen → Homescreen, FTE and lockscreen
Comment on attachment 694267 [details]
Homescreen, FTE and lockscreen

r+ commit 201e1ba, thanks
https://github.com/mozilla-b2g/gaia/pull/7102 updated

[Approval Request Comment]
Bug caused by (feature/regressing bug #):
User impact if declined: Spanish, and other languages, are affected since capitalization is not correct
Testing completed: Lockscreen, FTU and homescreen grid
Risk to taking this patch (and alternatives if risky): None.
Comment on attachment 694267 [details]
Homescreen, FTE and lockscreen

Sounds a low risk patch. Taking.
Attachment #694267 - Flags: approval-gaia-master?(21) → approval-gaia-master+
Flags: needinfo?(21)
Device: Unagi
Build: 20130102070202
Improper capitalization does not occur for different languages on this build.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: