eclipse plugin: Cleanup some externalized strings

This commit is contained in:
Timotei Dolean 2011-08-18 19:47:24 +00:00
parent b8258e4bf5
commit dcb1e027c7
4 changed files with 2 additions and 26 deletions

View File

@ -21,7 +21,6 @@ public class Messages extends NLS
public static String AddonManagerPreferencePage_12;
public static String AddonManagerPreferencePage_13;
public static String AddonManagerPreferencePage_14;
public static String AddonManagerPreferencePage_15;
public static String AddonManagerPreferencePage_16;
public static String AddonManagerPreferencePage_17;
public static String AddonManagerPreferencePage_22;
@ -32,7 +31,6 @@ public class Messages extends NLS
public static String AdvancedPreferencePage_1;
public static String AdvancedPreferencePage_2;
public static String CampaignNewWizard_0;
public static String CampaignNewWizard_1;
public static String CampaignPage0_1;
public static String CampaignPage0_2;
public static String CampaignPage1_1;
@ -53,8 +51,6 @@ public class Messages extends NLS
public static String CampaignPage1_5;
public static String CampaignPage1_6;
public static String CampaignPage1_7;
public static String CampaignPage1_8;
public static String CampaignPage1_9;
public static String CampaignPage2_1;
public static String CampaignPage2_12;
public static String CampaignPage2_13;
@ -66,7 +62,6 @@ public class Messages extends NLS
public static String CampaignPage2_7;
public static String CampaignPage2_8;
public static String EmptyProjectNewWizard_0;
public static String EmptyProjectNewWizard_1;
public static String EmptyProjectPage0_1;
public static String EmptyProjectPage0_2;
public static String EmptyProjectPage1_1;
@ -81,7 +76,6 @@ public class Messages extends NLS
public static String EmptyProjectPage1_21;
public static String EmptyProjectPage1_22;
public static String EmptyProjectPage1_23;
public static String EmptyProjectPage1_3;
public static String EmptyProjectPage1_32;
public static String EmptyProjectPage1_33;
public static String EmptyProjectPage1_35;
@ -170,7 +164,6 @@ public class Messages extends NLS
public static String ProjectUtils_0;
public static String ProjectUtils_4;
public static String ProjectUtils_6;
public static String ReloadFilesHandler_0;
public static String ResourceUtils_5;
public static String ScenarioNewWizard_0;
public static String ScenarioNewWizard_2;
@ -238,7 +231,6 @@ public class Messages extends NLS
public static String WesnothProjectBuilder_22;
public static String WesnothProjectBuilder_3;
public static String WesnothProjectBuilder_6;
public static String WesnothProjectBuilder_7;
public static String WesnothProjectBuilder_8;
public static String WesnothProjectPage_0;
public static String WesnothProjectPage_1;
@ -249,7 +241,6 @@ public class Messages extends NLS
public static String WizardGeneratorPage404_3;
public static String WizardGeneratorPage404_4;
public static String WizardGeneratorPage404_5;
public static String WizardGeneratorPageKey_0;
public static String WizardGeneratorPageKey_1;
public static String WizardGeneratorPageKey_22;
public static String WizardGeneratorPageTag_0;
@ -284,12 +275,10 @@ public class Messages extends NLS
public static String WizardLauncherPage1_11;
public static String WizardLauncherPage1_12;
public static String WizardLauncherPage1_13;
public static String WizardLauncherPage1_14;
public static String WizardLauncherPage1_2;
public static String WizardLauncherPage1_7;
public static String WMLJavaValidator_0;
public static String WMLJavaValidator_1;
public static String WMLJavaValidator_2;
public static String WMLTools_28;
public static String WMLTools_29;
public static String WMLTools_42;
@ -308,7 +297,6 @@ public class Messages extends NLS
public static String WMLToolsPreferencePage_9;
public static String WorkspaceUtils_13;
public static String WorkspaceUtils_18;
public static String WorkspaceUtils_20;
public static String WorkspaceUtils_22;
public static String WorkspaceUtils_25;
public static String WorkspaceUtils_29;

View File

@ -49,6 +49,7 @@ public class RegexStringFieldEditor extends StringFieldEditor
if( regex_ == null ) {
return true;
}
boolean matches = getTextControl( ).getText( ).matches( regex_ );
setErrorMessage( matches == false ? errorMessage_: null );
showErrorMessage( );

View File

@ -4,7 +4,6 @@ AddonManagerPreferencePage_11=Password (stored in plain text)
AddonManagerPreferencePage_12=This is the password used to authenticate to the addons server
AddonManagerPreferencePage_13=Verbose
AddonManagerPreferencePage_14=Address
AddonManagerPreferencePage_15=[^:]*
AddonManagerPreferencePage_16=The address must not contain any port number as it's set below.
AddonManagerPreferencePage_17=The address used to connect to the addons server.
AddonManagerPreferencePage_22=Port
@ -15,7 +14,6 @@ AdvancedPreferencePage_0=Advanced preferences
AdvancedPreferencePage_1=NO_TERRAIN_GFX defined
AdvancedPreferencePage_2=If this is set the Terrain Graphics macros won't be parsed resulting in improved performance. Check this only if you need them.
CampaignNewWizard_0=Create a new Campaign
CampaignNewWizard_1=Creating the project structure...
CampaignPage0_1=Campaign wizard
CampaignPage0_2=Specify the name of the campaign project.
CampaignPage1_1=Create New Campaign
@ -36,8 +34,6 @@ CampaignPage1_4=Version* :
CampaignPage1_5=Displayed to the right of the title, it is just text. However,\r\nstarting with Wesnoth 1.6, the required format is x.y.z \r\nwhere x, y and z are numbers and a value for x greater than 0 \r\nimplies the campaign is complete and balanced. \r\nTrailing non-numeric elements are ok, but nothing should\r\nappear before the numbers. This is necessary for the Update \r\nadd-ons button to work correctly.
CampaignPage1_6=Format: x.y.z
CampaignPage1_7=Translations folder:
CampaignPage1_8=Relative to the data folder
CampaignPage1_9=This is a 'data/campaigns/' project
CampaignPage2_1=Campaign details
CampaignPage2_12=First Scenario:
CampaignPage2_13=Please specify an ID.
@ -49,7 +45,6 @@ CampaignPage2_6=Abbreviation* :
CampaignPage2_7=Define* :
CampaignPage2_8=Difficulties:
EmptyProjectNewWizard_0=Create a new empty project
EmptyProjectNewWizard_1=Creating the project structure...
EmptyProjectPage0_1=Empty project wizard
EmptyProjectPage0_2=Specify the name of the new project.
EmptyProjectPage1_1=Create new empty project
@ -64,7 +59,6 @@ EmptyProjectPage1_20=Type:
EmptyProjectPage1_21=Passphrase:
EmptyProjectPage1_22=Icon:
EmptyProjectPage1_23=An image, displayed leftmost on the "add-ons" screen.\r\nIt must be a standard Wesnoth graphic and not a custom one. \r\n(Well, a custom graphic will work if the user already has the campaign \r\ninstalled, or if it is a custom graphic from a different campaign that the \r\nuser has installed but others won't see it\!) (Note that the icon used to \r\ndisplay your campaign for when it is played can be custom; for more\r\ninformation see CampaignWML.) If the icon is a unit with magenta color,\r\nplease use ImagePathFunctionWML to team-color it.
EmptyProjectPage1_3=This is a 'data/campaigns/' project
EmptyProjectPage1_32=Relative to the 'data/core/images' directory
EmptyProjectPage1_33=Project name is mandatory
EmptyProjectPage1_35=The version must have the format: x.y.z
@ -153,7 +147,6 @@ PreprocessorUtils_12=The file is null or does not exist
ProjectUtils_0=Cleaning files...
ProjectUtils_4=Creating project '%s' ...
ProjectUtils_6=Configuring project...
ReloadFilesHandler_0=Files reloaded.
ResourceUtils_5=Error creating the resource
ScenarioNewWizard_0=Create a new scenario
ScenarioNewWizard_2=Creating
@ -221,7 +214,6 @@ WesnothProjectBuilder_19=File: %s - Preprocessing file ...
WesnothProjectBuilder_22=File: %s - Gathering file information...
WesnothProjectBuilder_3=Checking conditions...
WesnothProjectBuilder_6=Creating temporary directory...
WesnothProjectBuilder_7=Please set the wesnoth user dir before creating the content
WesnothProjectBuilder_8=Copying resources...
WesnothProjectPage_0=General
WesnothProjectPage_1=Wesnoth install:
@ -232,7 +224,6 @@ WizardGeneratorPage404_1=content not found for tag '%s'
WizardGeneratorPage404_3=404 Not Found
WizardGeneratorPage404_4=Ooops\!
WizardGeneratorPage404_5=It seems something is missing from schema.cfg.
WizardGeneratorPageKey_0=wizardPageKey
WizardGeneratorPageKey_1=\ new wizard
WizardGeneratorPageKey_22=\ is empty or does not match required value\n
WizardGeneratorPageTag_0=You need to have a [%s] defined
@ -267,12 +258,10 @@ WizardLauncherPage1_1=Wizard Launcher
WizardLauncherPage1_11=Select a Wizard and then press finish:
WizardLauncherPage1_12=Other
WizardLauncherPage1_13=Custom tag:
WizardLauncherPage1_14=Other
WizardLauncherPage1_2=Select wizard to launch
WizardLauncherPage1_7=Other
WMLJavaValidator_0=Incorrect closing tag name.
WMLJavaValidator_1=There is no such wml tag name.
WMLJavaValidator_2=triggered wmlkey expensive validation.
WMLTools_28=Running
WMLTools_29=\ result:
WMLTools_42=Please set the python executable path in the preferences before you use this feature.
@ -292,7 +281,6 @@ WMLToolsPreferencePage_9=WMLLINT:
WorkspaceUtils_0=Hello\! \nWelcome to 'Wesnoth User Made Content Eclipse Plugin'. \nSince this is the first time you are using it I'll guide you through setting it up. \n\nFirst you'll have to setup your preferences. \nPress OK to continue.
WorkspaceUtils_13=Setting up the workspace...
WorkspaceUtils_18=Do you want me to create for you projects for each of your addon, so you can easily use them?
WorkspaceUtils_20=What about projects for each mainline campaign?
WorkspaceUtils_22=Setting up the workspace...
WorkspaceUtils_25=Congrats\! \nEverything is set up. Now you can use the plugin. \n\nGood luck and have fun\!
WorkspaceUtils_29=Workspace was set up successfully.

View File

@ -71,8 +71,7 @@ public class AddonManagerPreferencePage extends AbstractPreferencePage
addField(
new RegexStringFieldEditor( Preferences.ADDON_MANAGER_ADDRESS,
Messages.AddonManagerPreferencePage_14,
Messages.AddonManagerPreferencePage_15,
Messages.AddonManagerPreferencePage_14, "[^:]*",
Messages.AddonManagerPreferencePage_16,
getFieldEditorParent( ) ),
Messages.AddonManagerPreferencePage_17 );