| Summary: | TVT36:TCT140: CHS: Different Error Message | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | CDE Administration <cdeadmin> | ||||||||||||||||||
| Component: | cdt-debug-dsf-gdb | Assignee: | Marc Khouzam <marc.khouzam> | ||||||||||||||||||
| Status: | CLOSED FIXED | QA Contact: | Marc Khouzam <marc.khouzam> | ||||||||||||||||||
| Severity: | normal | ||||||||||||||||||||
| Priority: | P3 | CC: | aleherb+eclipse, camle, kitlo, marc.khouzam, pawel.1.piech, vivkong | ||||||||||||||||||
| Version: | 7.0 | Flags: | vivkong:
review+
aleherb+eclipse: review+ |
||||||||||||||||||
| Target Milestone: | 7.0 | ||||||||||||||||||||
| Hardware: | PC | ||||||||||||||||||||
| OS: | Windows 7 | ||||||||||||||||||||
| Whiteboard: | |||||||||||||||||||||
| Attachments: |
|
||||||||||||||||||||
|
Description
CDE Administration
Created attachment 167973 [details]
140_06.000.380_different_err_msg.gif
Created attachment 167974 [details]
06.000.380.gif
Created attachment 167975 [details]
140_DE_CDT_06.000.380_enStr.gif
<cde:tctdetail> Testcase: 06.000.380 - CDT - DEBUG CONFIGURATIONS Project: WSW36 Component: Xfer - CDT/cdt-debug Priority: 2 Subject: CHS: Different Error Message Article ID: 140 Originator: maxl@szchkj.com.cn </cde:tctdetail> The string "Breakpoint attribute problem: installation failed" is hard-coded by mistake in org.eclipse.cdt.dsf.mi.service.MIBreakpointsManager > - Problem Description: > We found an English error message but it is not expected one, pls help to > check, thanks! Depending on the cause of the error, we sometimes display "Breakpoint attribute problem: installation failed" but other times "Tracepoints are not supported" So, I think having different error messages is ok. But the string "Breakpoint attribute problem: installation failed" should not be in english see comment #5 (In reply to comment #5) > The string "Breakpoint attribute problem: installation failed" is hard-coded by > mistake in org.eclipse.cdt.dsf.mi.service.MIBreakpointsManager Hi Marc, will you be providing a fix for this? Created attachment 168070 [details]
Fix
Here is the fix. I committed it to HEAD.
Vivian can you confirm this looks ok?
Vivian can you review? Looks good. Thanks Marc <response_by> Keiko Terada at 2010.05.13.02.41.18 </response_by> verified fix in 20100512-1300 for JA, thanks! <response_by> Ma Xiao Long at 2010.05.13.23.17.50 </response_by> I checked in build 20100512-1300-nl1, and the English string is still there. <response_by> martine marin at 2010.05.14.13.19.17 </response_by> Not fixed for France as well. See attached capture Thanks, Martine Created attachment 168574 [details]
TCT140_build20100513.gif
(In reply to comment #14) > Created an attachment (id=168574) [details] > TCT140_build20100513.gif The only file I can see the string "attribute problem" or "installation failed" is org.eclipse.cdt.dsf.mi.service.Messages.properties. Maybe it was not translated? As for "Debug Current Instruction Pointer", I did find it hard-coded in org.eclipse.cdt.dsf.debug.ui.sourcelookup.InstructionPointerManager, which also contains the string "Debug Call Stack". I'll write a patch for that. Created attachment 168579 [details]
Fix for string "Debug Current Instruction Pointer"
Fix for "Debug Current Instruction Pointer" and "Debug Call Stack"
Committed to HEAD.
Do I have to do anything to get these new strings translated?
Toni, can you confirm that this string handling is ok? (In reply to comment #17) > Toni, can you confirm that this string handling is ok? Thanks for fixing it. <response_by> nguyer at 2010.05.19.13.48.28 </response_by> I just checked the most recent CDT build that I have (201005141611) and it appears to be using the old error message again, which is rather confusing to me. However, only two of the lines is translated, and the other is in English. Please see the attached screenshot of CDT 201005141611 running in Hungarian. Thanks! - Nicko Created attachment 169187 [details]
untranslated.png
(In reply to comment #19) > <response_by> nguyer at 2010.05.19.13.48.28 </response_by> > I just checked the most recent CDT build that I have (201005141611) and it > appears to be using the old error message again, which is rather confusing to > me. What error message is that? I think it is the second line in the screenshot, which is in Hungarian so I don't understand it :-) > However, only two of the lines is translated, and the other is in English. I don't understand why this one is in English. The only place I've see this string is in org.eclipse.cdt.debug.internal.core.breakpoints.BreakpointMessages.properties so it should be translated. Do we need to do something else to get it translated? <response_by> nguyer at 2010.05.20.15.35.38 </response_by> This is the "Multiple markers at this line" warning message. It comes from eclipse/plugins/org.eclipse.cdt.ui/org/eclipse/cdt/internal/ui/CUIMessages.properties. I have attached a new screenshot (in English) running a special build of Eclipse that puts an index in front of every externalized string so that its source can be looked up in a table. In the screenshot i have outlined each index in green. Each line begins with an externalized string. The second two lines begin with a generic indentation string which comes from eclipse/plugins/org.eclipse.jface.text/org/eclipse/jface/internal/text/html/HTMLMessages.properties After the indentation, the third line has another string that comes from eclipse/plugins/org.eclipse.cdt.debug.core/org/eclipse/cdt/debug/internal/core/breakpoints/BreakpointMessages.properties However, notice how the second line has no index after the indentation. This means that the string is not externalized, and is likely hardcoded into the software somewhere. Hopefully this is helpful information in tracking down the string that must be externalized. After it is externalized it can be translated. Thanks! - Nicko Created attachment 169419 [details]
index.png
(In reply to comment #19) > <response_by> nguyer at 2010.05.19.13.48.28 </response_by> > I just checked the most recent CDT build that I have (201005141611) and it > appears to be using the old error message again, which is rather confusing to > me. Ok, I get it now. The error message depends on which debugger integration you are using. If you use DSF-GDB you will see "Breakpoint attribute problem: installation failed" but if you use CDI you will see: "Tracepoints are not supported" The reason is that the new Tracepoint feature is only supported with DSF-GDB. > However, only two of the lines is translated, and the other is in English. > Please see the attached screenshot of CDT 201005141611 running in Hungarian. I figured out that any existing breakpoint will keep it's old marker string. Can you create a new tracepoint and see if you see the string properly translated? If you still see it in English, then can you hover over a breakpoint and let me know where the "Line breakpoint:" string is defined so I can try to figure out why it is not working for tracepoints. Thanks <response_by> Ma Xiao Long at 2010.05.21.20.19.29 </response_by> Fixed for CHS in build 20100520-0200-nl1, thanks! *** cdt cvs genie on behalf of mkhouzam *** Bug 312467: Improperly externalized string [+] Messages.properties http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/Messages.properties?root=Tools_Project&revision=1.1&view=markup [*] MIBreakpointsManager.java 1.17 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIBreakpointsManager.java?root=Tools_Project&r1=1.16&r2=1.17 [+] Messages.java http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/Messages.java?root=Tools_Project&revision=1.1&view=markup *** cdt cvs genie on behalf of mkhouzam *** Bug 312467: Strings were not translated properly. [*] InstructionPointerManager.java 1.3 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/sourcelookup/InstructionPointerManager.java?root=Tools_Project&r1=1.2&r2=1.3 [+] Messages.properties http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/sourcelookup/Messages.properties?root=Tools_Project&revision=1.1&view=markup [+] Messages.java http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/sourcelookup/Messages.java?root=Tools_Project&revision=1.1&view=markup <response_by> Eric Ma at 2010.05.04.08.27.05 </response_by> <response_by> Eric Ma at 2010.05.13.23.17.50 </response_by> <response_by> Eric Ma at 2010.05.21.20.19.29 </response_by> |