Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Corné Aussems
CSS Capitalization of Titles in Classic and Control Panel theme
September 22, 2013 1:44 PM
Answer

Corné Aussems

Rank: Liferay Legend

Posts: 1313

Join Date: October 3, 2006

Recent Posts

Hi All
If you also dislike CSS Capitalization of Titles in Classic and Control Panel theme?!
Please vote this one up https://issues.liferay.com/browse/LPS-40467

Brendan Johan Lee
RE: CSS Capitalization of Titles in Classic and Control Panel theme
September 23, 2013 3:06 AM
Answer

Brendan Johan Lee

Rank: Junior Member

Posts: 33

Join Date: February 29, 2012

Recent Posts

You've got my vote. This is a problem for Norwegian as well.
Olaf Kock
RE: CSS Capitalization of Titles in Classic and Control Panel theme
September 23, 2013 3:31 AM
Answer

Olaf Kock

LIFERAY STAFF

Rank: Liferay Legend

Posts: 3560

Join Date: September 23, 2008

Recent Posts

You've got my vote - and a comment - in there as well. Full ACK that this is a no-go. If we had some way to determine the language through CSS (I couldn't find it) this could be done for distinct languages, but even that would be suboptimal. Rather have the translation entries be correct - as they shall display. If there are multiple uses for them, we'd need multiple keys for different uses.
Milan Jaroš
RE: CSS Capitalization of Titles in Classic and Control Panel theme
September 23, 2013 12:58 PM
Answer

Milan Jaroš

Rank: Expert

Posts: 269

Join Date: August 18, 2008

Recent Posts

I'm with you. ;) In Czech this also doesn't feel good.
Off-topic: Olaf, there is an elegant way... emoticon Put css class like "en_us" to html tag <body> or even <html> and then you can do magic! emoticon
Olaf Kock
RE: CSS Capitalization of Titles in Classic and Control Panel theme
September 23, 2013 1:18 PM
Answer

Olaf Kock

LIFERAY STAFF

Rank: Liferay Legend

Posts: 3560

Join Date: September 23, 2008

Recent Posts

Milan Jaroš:
Off-topic: Olaf, there is an elegant way... emoticon Put css class like "en_us" to html tag <body> or even <html> and then you can do magic! emoticon


Yes, but I don't consider language-dependent CSS elegant (ltr or rtl issues might be different, but still not language-dependent, only directional). Plus, I was checking if Liferay generates this class already (which it luckily doesn't). If I'd have to willingly code this into my theme, I could as well override the capitalizing CSS formatting to get rid of it.

So, yes, if you want this feature in CSS and language dependent, that's what you do. Just don't ask me for my blessing. Or I'll need an explain why it indeed is elegant emoticon

The good thing after all is that we're all agreeing. Please continue voting on the issue
Corné Aussems
RE: CSS Capitalization of Titles in Classic and Control Panel theme
September 23, 2013 2:35 PM
Answer

Corné Aussems

Rank: Liferay Legend

Posts: 1313

Join Date: October 3, 2006

Recent Posts

It allready exist guys ;) languageId (seems not used in any filter though)
languageId=en_US
1
2<link href="/html/css/main.css?browserId=ie&amp;themeId=Componencetheme_WAR_Componencethemetheme&amp;minifierType=css&amp;languageId=en_US&amp;b=6120&amp;t=1341556890000" rel="stylesheet" type="text/css" />


And well if you dislike language dependent CSS, maybe you dislike hard rendered browserid too ;)
Taken from 6.2 M6
languageId=de_DE
browserId=other/firefox/ie
1
2<script src="http://localhost:8080/html/portlet/layouts_admin/js/main.js?browserId=other&amp;minifierType=js&amp;languageId=de_DE&amp;b=6200&amp;t=1379852642592" type="text/javascript"></script>


Remove those before anyone ever thinks of using it emoticon

Ever thought on how many Varnish caches you have to have for just one single page if you support all languages. (3 x many)
Olaf Kock
RE: CSS Capitalization of Titles in Classic and Control Panel theme
September 23, 2013 2:40 PM
Answer

Olaf Kock

LIFERAY STAFF

Rank: Liferay Legend

Posts: 3560

Join Date: September 23, 2008

Recent Posts

Ouch - you're right.

I actually like <html class="... firefox ...">, but it's probably overkill to have it in the javascript URL, polluting all the caches. Not sure if it's used serverside though - are there different minifiers based on browsers? I'm not aware of any other server-side processing of javascript than the minifier.

Based on this, if you let us know the issue, I will vote for that as well. But we're getting away from translation issues here emoticon
Corné Aussems
RE: CSS Capitalization of Titles in Classic and Control Panel theme
September 24, 2013 4:56 AM
Answer

Corné Aussems

Rank: Liferay Legend

Posts: 1313

Join Date: October 3, 2006

Recent Posts

Olaf Kock:
Ouch - you're right.

I actually like <html class="... firefox ...">, but it's probably overkill to have it in the javascript URL, polluting all the caches. Not sure if it's used serverside though - are there different minifiers based on browsers? I'm not aware of any other server-side processing of javascript than the minifier.

Based on this, if you let us know the issue, I will vote for that as well. But we're getting away from translation issues here emoticon


For your information
https://issues.liferay.com/browse/LPS-40526