Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 416553

Summary: TVT/DVT4.3:TCT133: TVT ELL - Incorrect capitalization of characters
Product: [ECD] Orion Reporter: CDE Administration <cdeadmin>
Component: ClientAssignee: Mark Macdonald <mamacdon>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: camle, ken_walker, kitlo, kqli, lmterry, mamacdon, matalbot, sharonc, srlim, wujulia
Version: 4.0   
Target Milestone: 4.0 M2   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
21.000.100_el.png
none
21.000.450_el.png
none
21.000.460_el.png none

Description CDE Administration CLA 2013-09-04 13:11:05 EDT
<response_by> Anna Routsi at 2013.09.04.09.48.28 </response_by>
Hello,

The highlighted strings have been automatically converted from lowercase to uppercase and as a result they contain accents. This is not allowed in Greek.

Steps for 21.000.100:

1. Click on the Hamburger button
2. Click on the Navigator link under Related Links section
3. Click the Testing Folder folder
4. Click the testing.js file
5. Click the spanner button

Steps for 21.000.450, 21.000.460:

1. Press the Options button
2. Select the Settings option from the menu
3. Select UI Theme from the left hand side of the page
4. Select Editor from the left hand side of the page

Thanks,
Anna

<response_by> Kathy Li at 2013.09.04.11.54.17 </response_by>
This article was reassigned from Category:''TVT/Testing,WSW43(IES),Inbox''.
Comment 1 CDE Administration CLA 2013-09-04 13:11:10 EDT
Created attachment 235163 [details]
21.000.100_el.png
Comment 2 CDE Administration CLA 2013-09-04 13:11:12 EDT
Created attachment 235164 [details]
21.000.450_el.png
Comment 3 CDE Administration CLA 2013-09-04 13:11:14 EDT
Created attachment 235165 [details]
21.000.460_el.png
Comment 4 CDE Administration CLA 2013-09-04 13:11:17 EDT
<cde:tctdetail>
Testcase: 21.000.100, 21.000.450, 21.000.460
Project: WSW43
Component: Xfer - Orion Client
Priority: 3
Subject: TVT ELL - Incorrect capitalization of characters
Article ID: 133
Originator: ROUTSI@gr.ibm.com
Stop Ship: N
</cde:tctdetail>
Comment 5 Mark Macdonald CLA 2013-09-04 15:00:49 EDT
Removed the problematic toUpperCase()'ing and converted other uppercase labels to lowercase for consistency.

http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=8630d3b
Comment 6 Mark Macdonald CLA 2013-09-04 15:02:28 EDT
Boring details:

The local settings menu was using CSS's `text-transform:uppercase` property, which *will* handle the Greek case rules [1]. However it seems to require the document language actually be set to Greek with a lang="el" attribute. Our current i18n support does not do that (should it?), so you get an incorrectly uppercased string.

The theme builder was performing String.prototype.toUpperCase() on a Greek string, which is wrong. However toLocaleUpperCase() does not seem to work either, even when the browser is running in the Greek locale. 

In short, I can't find any API for programatically transforming text between cases that will work on languages with complex case mapping. CSS is the best bet, if we can sort out the `lang` issue.

[1] https://developer.mozilla.org/en-US/docs/Web/CSS/text-transform