This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 58939 - I18N - one message is used for messages with/without
Summary: I18N - one message is used for messages with/without
Status: VERIFIED WONTFIX
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: Sherold Dev
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2005-05-16 07:59 UTC by ohsumi
Modified: 2006-08-22 09:27 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
snapshot in C locale (4.47 KB, image/gif)
2005-05-16 08:01 UTC, ohsumi
Details
snapshot in ja locale (4.90 KB, image/gif)
2005-05-16 08:02 UTC, ohsumi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ohsumi 2005-05-16 07:59:48 UTC
1. Click [Runtime]
2. Expand [Servers] node
3. Right-click [Bundled Tomcat (5.5.7) [Stopped]] and select [Start/Stop Server]
   The [Server Status] dialog appears.
4. Click [Start Server]
   The message "Start Server" is displayed on the progress bar.
5. Click [Stop Server]
   The message "Stop Server" is displayed on the progress bar.
6. Click [Start Server (Debug)]
   The message "Start Server (Debug)" is displayed on the progress bar.

These messages are included in the following file, and each message is used
for the button's label and the progress message.

j2eeserver/src/org/netbeans/modules/j2ee/deployment/impl/ui/Bundle.properties
LBL_StartServer=Start Server
LBL_StartDebugServer=Start Server (Debug)
LBL_StopServer=Stop Server
LBL_Start_Mnemonic=R
LBL_StartDebug_Mnemonic=D
LBL_Stop_Mnemonic=S

However, when these messages are translated into Japanese,
ja messages need to have mnemonic key at the end of line as follows.
e.g.
     LBL_StartDebugServer=Japanese_Start Server (Debug)(D)

Consequently, ja message with mnemonic key is displayed on the progress bar.
Please see the attached snapshots.

To fix this problem, two messages (message with mnemonic for button and
message without mnemonic for progress message) need to be defined.
e.g.
LBL_StartServer=Start Server
LBL_StartDebugServer=Start Server (Debug)
LBL_StopServer=Stop Server
LBL_Start_Mnemonic=R
LBL_StartDebug_Mnemonic=D
LBL_Stop_Mnemonic=S

However, when these messages are translated into Japanese,
ja messages need to have mnemonic key at the end of line as follows.
e.g.
     LBL_StartDebugServer=Japanese_Start Server (Debug)(D)

Consequently, ja message with mnemonic key is displayed on the progress bar.
Please see the attached snapshots.

To fix this problem, two messages (message with mnemonic for button and
message without mnemonic for progress message) need to be defined.
e.g.
    LBL_StartServer=Start Server                   for Button
    LBL_StartDebugServer=Start Server (Debug)      for Button
    LBL_StopServer=Stop Server                     for Button
    LBL_Start_Mnemonic=R
    LBL_StartDebug_Mnemonic=D
    LBL_Stop_Mnemonic=S
    LBL_StartServer_Progress=Start Server                for progress message
    LBL_StartDebugServer_Progress=Start Server (Debug)   for progress message
    LBL_StopServer_Progress=Stop Server                  for progress message
Comment 1 ohsumi 2005-05-16 08:01:42 UTC
Created attachment 22138 [details]
snapshot in C locale
Comment 2 ohsumi 2005-05-16 08:02:36 UTC
Created attachment 22139 [details]
snapshot in ja locale
Comment 3 Sherold Dev 2005-08-02 13:06:50 UTC
This issue will be marked as WONTFIX as soon as the start/stop dialog will be
removed.
Comment 4 Sherold Dev 2005-08-16 17:18:39 UTC
Closing as WONTFIX, since the start/stop dialog has been removed.
Comment 5 Pavel Rehak 2006-08-22 09:27:55 UTC
Verified.