mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 15:15:25 +02:00
Fix externalized strings warnings in tracer
This commit is contained in:
parent
9ff36ff253
commit
7796160258
3 changed files with 5 additions and 2 deletions
|
@ -24,6 +24,8 @@ public class DaytimeResources extends NLS {
|
|||
public static String Daytime_Connector_Name;
|
||||
public static String Daytime_Connector_Description;
|
||||
public static String Daytime_Resource_Type;
|
||||
|
||||
public static String DaytimeConnectorService_NotAvailable;
|
||||
|
||||
static {
|
||||
// load message values from bundle file
|
||||
|
|
|
@ -13,4 +13,5 @@ Daytime_Service_Name=Daytime Service
|
|||
Daytime_Service_Description=The Daytime Service retrieves the current time of day from a remote host by connecting to TCP port 13.
|
||||
Daytime_Connector_Name=Daytime Connector Service
|
||||
Daytime_Connector_Description=The Daytime Connector Service manages connections to TCP port 13 on a remote host.
|
||||
Daytime_Resource_Type=daytime resource
|
||||
Daytime_Resource_Type=daytime resource
|
||||
DaytimeConnectorService_NotAvailable=Daytime service is not available on {0}.
|
||||
|
|
|
@ -54,7 +54,7 @@ public class DaytimeConnectorService extends AbstractConnectorService {
|
|||
try {
|
||||
fDaytimeService.getTimeOfDay();
|
||||
} catch (ConnectException e) {
|
||||
String template = "Daytime service is not available on {0}.";
|
||||
String template = DaytimeResources.DaytimeConnectorService_NotAvailable;
|
||||
String message = MessageFormat.format(template, new Object[] {getHostName()});
|
||||
throw new Exception(message);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue