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

Bug 144748

Summary: TVT3.2:TCT725: DA: English or incorret Danish entries in Msg Locale details list
Product: z_Archived Reporter: CDE Administration <cdeadmin>
Component: TPTP.monitoringAssignee: Eugene Chan <ewchan>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P1 CC: camle, kitlo, umarkova
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
URL: 725
Whiteboard: closed460
Attachments:
Description Flags
27.001340.jpg none

Description CDE Administration CLA 2006-05-31 15:07:24 EDT
OS: RHEL 3.1
Must fix or not a must fix: NO
Build date: 052306
Component name = TPTP
Blocking: NO
Language: da
Bitmap Location: V:\defects\da
Tester Name: Mette Djoerup (user ID: dantvt03)
Problem Description:
Some of the locale names in the Msg Locale details drop-down list are in English and some are incorrectly translated into Danish. See below for list.

Steps:

File->New->Other
Expand Profiling and Logging
Select Symptom database
Click Next
Click Browse
Select an existing project
Click Ok (Make sure a folder name is filled in the Folder text box.)
Type in TVTSymtptom2DB in the Name text box
Make sure Symptom 2.0 is selected in the format combo box and that Open editor after creation?is checked.
Click Finish
Switch to the Details tab
Click the ? button beside the Description box in the Symptom Catalog details pane
Select the locale attribute in the Message attributes
Expand the Msg Locale details box

List of English/incorrect values in Msg Locale list where the first value is the current name and the value after the hyphen is the correct value:
Iraq - Irak
Libya - Libyen
Welsh - Walisisk
Luxemburg - Luxembourg
.. (Luxemburg) - ... (Luxembourg)
Hong Kong S.A.R - Hongkong
Kinesisk (Hong Kong S.A.R) - Kinesisk Hongkong
Philippines - Filippinerne
Engelsk (South Africa) - Engelsk (Sydafrika)
Icelandic - Islandsk
Malay (Malaysia) - Malaysisk (Malaysia)
Norwegian Bokm?l - Bokm?l
Hollandsk (Holland) - Nederlandsk (Nederlandene)
Serbia and Montenegro - Serbien og Montenegro
Tamil - Tamilsk
Vietnamese - Vietnamesisk

Mette

This looks like a translation problem.

The strings listed are not included in our translation files. They must be hardcoded or picked up from somewhere else (OS?).

Please investigate.

Mette

Based on the strings I would say they are being brought in from the OS.

This article was reassigned from Category:''TVT/Testing''.
Comment 1 CDE Administration CLA 2006-05-31 15:07:28 EDT
Created attachment 43146 [details]
27.001340.jpg
Comment 2 CDE Administration CLA 2006-05-31 15:07:29 EDT
[Added by CDE: Rejected by the CDE Bridge]
Comment 3 CDE Administration CLA 2006-05-31 15:07:32 EDT
[Added by CDE: Completed by the CDE Bridge]
Comment 4 CDE Administration CLA 2006-05-31 15:07:35 EDT
<cde:tctdetail>
Testcase: 27.001350 TPTP
Project: WSW32
Component: CDE - TPTP/Monitor UI
Priority: 3
Subject: DA: English or incorret Danish entries in Msg Locale details list
Article ID: 725
Originator: mette@djoerup.dk
</cde:tctdetail>
Comment 5 CDE Administration CLA 2006-06-01 00:54:12 EDT
Reopening...
Comment 6 Alex Nan CLA 2006-06-01 10:10:36 EDT
I load the list of locales and their translations directly from the Java API Locale.getAvailableLocales(), so I use whatever locale description the JDK is providing, locale.getDisplayName(). If the JDK translation are not sufficient then we need to externalize all the locale description strings in our own resource bundle. 
Please confirm that other countries have the same problem! 
There is also a slight performance problem with the API Locale.getAvailableLocales(), another good reason to move the locales to a resource bundle.
Comment 7 CDE Administration CLA 2006-06-05 06:59:02 EDT
I think that getting the locale names from the JDK is the correct way to handle this, rather than moving the names to an eclipse resource bundle. If we (and everybody else) were to do our own translations, we would duplicate effort and invariably introduce differences. If everybody uses the JDK, we can ensure that our users see consistent translations. So I would recommend that the translation issues noted in this problem report be opened as a defect against the JDK.

It looks to me as if the translations used for getDisplayName() are specific to the IBM JDK (at least for Danish). If I run against the Sun JDK (1.5), I get translations only for the Danish locale name, while if I run the same test against the IBM JDK (1.5), I get the full, translated list. So it would seem that additional translations for certain languages are one of the enhancements in the IBM version. I assume this should make it slightly easier to get changes made (Sun bugs sometimes seem to move at a glacial pace).

The CLDR reflects these differences: http://www.unicode.org/cldr/data/diff/main/da_DK.html (the comparison chart shows that Sun has all English names, while the entries for the IBM JDK reflect what is listed in this problem report).
Comment 8 Alex Nan CLA 2006-11-09 11:14:56 EST
Moving to 4.4.
Comment 9 Eugene Chan CLA 2007-01-31 18:31:00 EST
Target to future. Cannot be contained in 4.4 due to limitation of resource.
Comment 10 Eugene Chan CLA 2007-01-31 23:25:16 EST
Move target back to 4.4. Monitor defects are mistakenly targeted in bulk move.
Comment 11 Dave Smith CLA 2007-02-06 12:54:53 EST
Targetting to address this in iteration 2.

The recommendation is to open a bug against the Sun JDK to provide the required translations and not to make any modifications to TPTP code.
Comment 12 Dave Smith CLA 2007-04-09 16:57:41 EDT
Deferring to iteration 3.
Comment 13 Eugene Chan CLA 2007-04-16 18:07:34 EDT
This is a JDK bug on a particular JDK version (Sun JDK 1.5). It is not a bug in the TPTP code. Please track this problem with the JDK product.
Comment 14 Paul Slauenwhite CLA 2009-06-30 13:18:08 EDT
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant enhancements/defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this enhancement/defect is verified/closed by the Project Lead since this enhancement/defect has been resolved and unverified for more than 1 year and considered to be fixed. If this enhancement/defect is still unresolved and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open.