diff options
author | tfesenko | 2011-03-10 16:24:30 +0000 |
---|---|---|
committer | tfesenko | 2011-03-10 16:24:30 +0000 |
commit | 70d5709c51ced65639ef32691493d8c40886f19f (patch) | |
tree | b45846ceb576d78a1d1373a7986aece6511ede97 | |
parent | 82c4184f8e8632bc66e13f592f7630d6f4503d7d (diff) | |
download | org.eclipse.papyrus-70d5709c51ced65639ef32691493d8c40886f19f.tar.gz org.eclipse.papyrus-70d5709c51ced65639ef32691493d8c40886f19f.tar.xz org.eclipse.papyrus-70d5709c51ced65639ef32691493d8c40886f19f.zip |
Bug 339546 - [Wizard] Internationalize the wizard plugin
3 files changed, 8 insertions, 2 deletions
diff --git a/plugins/core/org.eclipse.papyrus.wizards/src/org/eclipse/papyrus/wizards/CreateSeveralModelsWizard.java b/plugins/core/org.eclipse.papyrus.wizards/src/org/eclipse/papyrus/wizards/CreateSeveralModelsWizard.java index 91e0b6ff177..90684d32403 100644 --- a/plugins/core/org.eclipse.papyrus.wizards/src/org/eclipse/papyrus/wizards/CreateSeveralModelsWizard.java +++ b/plugins/core/org.eclipse.papyrus.wizards/src/org/eclipse/papyrus/wizards/CreateSeveralModelsWizard.java @@ -72,7 +72,7 @@ public class CreateSeveralModelsWizard extends CreateModelWizard { protected NewModelFilePage createNewModelFilePage(IStructuredSelection selection, String categoryId) { NewModelFilePage newPage = new NewModelFilePage(createModelFilePageId(categoryId), selection); newPage.setWizard(this); - newPage.setDescription(Messages.bind("Create a new model for {0} category", categoryId)); + newPage.setDescription(Messages.bind(Messages.CreateSeveralModelsWizard_new_model_file_page_title, categoryId)); return newPage; } @@ -131,7 +131,7 @@ public class CreateSeveralModelsWizard extends CreateModelWizard { protected IFile createNewModelFile(String category) { NewModelFilePage newModelFilePage = myCategory2modelFilePageMap.get(category); if (newModelFilePage == null) { - Activator.log.error(Messages.bind("Cannot initiate NewModelFilePage for {0}", category), new Exception()); + Activator.log.error(Messages.bind(Messages.CreateSeveralModelsWizard_cannot_initiate_page, category), new Exception()); return null; } return newModelFilePage.createNewFile(); diff --git a/plugins/core/org.eclipse.papyrus.wizards/src/org/eclipse/papyrus/wizards/Messages.java b/plugins/core/org.eclipse.papyrus.wizards/src/org/eclipse/papyrus/wizards/Messages.java index b60bd500760..b334fa404ec 100644 --- a/plugins/core/org.eclipse.papyrus.wizards/src/org/eclipse/papyrus/wizards/Messages.java +++ b/plugins/core/org.eclipse.papyrus.wizards/src/org/eclipse/papyrus/wizards/Messages.java @@ -8,6 +8,10 @@ public class Messages extends NLS { public static String CreateModelWizard_new_papyrus_model_title; + public static String CreateSeveralModelsWizard_cannot_initiate_page; + + public static String CreateSeveralModelsWizard_new_model_file_page_title; + public static String InitModelWizard_diagram_name_is_different_from_domain_model; public static String InitModelWizard_init_papyrus_diagram; diff --git a/plugins/core/org.eclipse.papyrus.wizards/src/org/eclipse/papyrus/wizards/messages.properties b/plugins/core/org.eclipse.papyrus.wizards/src/org/eclipse/papyrus/wizards/messages.properties index eb720c00a73..df312cdecb4 100644 --- a/plugins/core/org.eclipse.papyrus.wizards/src/org/eclipse/papyrus/wizards/messages.properties +++ b/plugins/core/org.eclipse.papyrus.wizards/src/org/eclipse/papyrus/wizards/messages.properties @@ -1,4 +1,6 @@ CreateModelWizard_new_papyrus_model_title=New Papyrus Model +CreateSeveralModelsWizard_cannot_initiate_page=Cannot initiate NewModelFilePage for {0} +CreateSeveralModelsWizard_new_model_file_page_title=Create a new model for {0} category InitModelWizard_diagram_name_is_different_from_domain_model=Diagram file name should be the same as domain model file name ({0}) InitModelWizard_init_papyrus_diagram=Init Papyrus Diagram InitModelWizard_init_papyrus_model=Init a new Papyrus model |