Репозитории ALT
S: | 20.03-alt9 |
5.1: | 12.11-alt0.M51.1 |
4.1: | 8.02-alt1 |
4.0: | 1.0-alt0.svn4742 |
Группа :: Разработка/C++
Пакет: codeblocks
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: codeblocks-scriptedwizard-localization.patch
Скачать
Скачать
diff -Nurp trunk/src/plugins/scriptedwizard/resources/c_file/wizard.script codeblocks-8.02/src/plugins/scriptedwizard/resources/c_file/wizard.script
--- trunk/src/plugins/scriptedwizard/resources/c_file/wizard.script 2006-07-25 16:14:42 +0400
+++ codeblocks-8.02/src/plugins/scriptedwizard/resources/c_file/wizard.script 2010-02-12 22:52:20 +0300
@@ -10,13 +10,13 @@
function BeginWizard()
{
// this is the text that will appear in the start (intro) page
- local intro_msg = _T("Welcome to the new C/C++ source file wizard!\n" +
- "This wizard will guide you to create a new C/C++ source file.\n\n" +
- "When you 're ready to proceed, please click \"Next\"...");
+ local intro_msg = _("Welcome to the new C/C++ source file wizard!\n") +
+ _("This wizard will guide you to create a new C/C++ source file.\n\n") +
+ _("When you 're ready to proceed, please click \"Next\"...");
// add builtin pages
Wizard.AddInfoPage(_T("CFileIntro"), intro_msg); // intro
- Wizard.AddGenericSingleChoiceListPage(_T("CFileLanguagePage"), _T("Please select the language for the file."), _T("C;C++"), 1); // select language
+ Wizard.AddGenericSingleChoiceListPage(_T("CFileLanguagePage"), _("Please select the language for the file."), _T("C;C++"), 1); // select language
Wizard.AddFilePathPage(false); // select filename (no header guard for source files)
}
@@ -25,9 +25,9 @@ function OnLeave_CFileLanguagePage(fwd)
if (fwd)
{
if (Wizard.GetListboxSelection(_T("GenericChoiceList")) == 0)
- Wizard.SetFilePathSelectionFilter(_T("C files (*.c;*.C)|*.c;*.C")); // C
+ Wizard.SetFilePathSelectionFilter(_("C files (*.c;*.C)|*.c;*.C")); // C
else
- Wizard.SetFilePathSelectionFilter(_T("C++ files (*.cpp;*.cxx;*.cc)|*.cpp;*.cxx;*.cc")); // C++
+ Wizard.SetFilePathSelectionFilter(_("C++ files (*.cpp;*.cxx;*.cc)|*.cpp;*.cxx;*.cc")); // C++
}
return true; // allow it
}
@@ -38,13 +38,13 @@ function CreateFiles()
local ed = GetEditorManager();
if (IsNull(ed))
{
- ShowError(_T("The wizard could not locate the editor manager."));
+ ShowError(_("The wizard could not locate the editor manager."));
}
local ed_new = ed.New(fname);
if (IsNull(ed_new))
{
- ShowError(_T("The wizard could not create a new file.\n" +
+ ShowError(_("The wizard could not create a new file.\n" +
"Maybe the target folder is write-protected?"));
}
else
diff -Nurp trunk/src/plugins/scriptedwizard/resources/common_functions.script codeblocks-8.02/src/plugins/scriptedwizard/resources/common_functions.script
--- trunk/src/plugins/scriptedwizard/resources/common_functions.script 2009-04-14 19:25:22 +0400
+++ codeblocks-8.02/src/plugins/scriptedwizard/resources/common_functions.script 2010-02-12 22:52:20 +0300
@@ -45,7 +45,7 @@ function WarningsOn(base, compilerID)
}
else
{
- ShowWarning(_T("This wizard doesn't know how to setup warning flags for this compiler.\n"));
+ ShowWarning(_("This wizard doesn't know how to setup warning flags for this compiler.\n"));
}
// TODO: Other compilers, fallback?
}// WarningsOn
@@ -92,7 +92,7 @@ function DebugSymbolsOn(base, compilerID
}
else
{
- ShowWarning(_T("This wizard doesn't know how to setup debug flags for this compiler.\n"));
+ ShowWarning(_("This wizard doesn't know how to setup debug flags for this compiler.\n"));
}
// TODO: Other compilers, fallback?
}// DebugSymbolsOn
@@ -149,7 +149,7 @@ function OptimizationsOn(base, compilerI
}
else
{
- ShowWarning(_T("This wizard doesn't know how to setup optimisation flags for this compiler.\n"));
+ ShowWarning(_("This wizard doesn't know how to setup optimisation flags for this compiler.\n"));
}
// TODO: Other compilers, fallback?
}// OptimizationsOn
@@ -184,7 +184,7 @@ function CppExceptionsOn(base, compilerI
}
else
{
- ShowWarning(_T("This wizard doesn't know how to setup exception flags for this compiler.\n"));
+ ShowWarning(_("This wizard doesn't know how to setup exception flags for this compiler.\n"));
}
// TODO: Other compilers, fallback?
}// CppExceptionsOn
@@ -198,8 +198,8 @@ function VerifyDirectory(dir_or_macro)
if (!IO.DirectoryExists(dir))
{
- ShowError(_T("The directory you entered seems not to be valid.\n" +
- "This wizard cannot continue."));
+ ShowError(_("The directory you entered seems not to be valid.\n") +
+ _("This wizard cannot continue."));
return (_T(""));
}
@@ -237,9 +237,9 @@ function GetCompilerIncludeDir(selection
// no macros used, direct path
if (!IO.DirectoryExists(selection + wxFILE_SEP_PATH + _T("include")))
{
- ShowError(_T("The path you entered seems valid, but the wizard " +
- "can't locate the include directory.\n" +
- "This wizard cannot continue."));
+ ShowError(_("The path you entered seems valid, but the wizard ") +
+ _("can't locate the include directory.\n") +
+ _("This wizard cannot continue."));
return (_T(""));
}
return (selection + wxFILE_SEP_PATH + _T("include"));
@@ -255,9 +255,9 @@ function GetCompilerIncludeDir(selection
local defaultInclude_nomacro = ReplaceMacros(defaultIncludeMacro, true);
if (!IO.DirectoryExists(defaultInclude_nomacro))
{
- ShowError(_T("The macro you entered seems valid, but this wizard can't\n" +
- "locate the include directory based on this macro.\n" +
- "This wizard cannot continue."));
+ ShowError(_("The macro you entered seems valid, but this wizard can't\n") +
+ _("locate the include directory based on this macro.\n") +
+ _("This wizard cannot continue."));
return (_T(""));
}
@@ -269,9 +269,9 @@ function GetCompilerIncludeDir(selection
if (!IO.DirectoryExists(selection_nomacro + wxFILE_SEP_PATH + _T("include")))
{
- ShowError(_T("The macro you entered seems valid, but this wizard can't\n" +
- "compute the include directory based on this macro.\n" +
- "This wizard cannot continue."));
+ ShowError(_("The macro you entered seems valid, but this wizard can't\n") +
+ _("compute the include directory based on this macro.\n") +
+ _("This wizard cannot continue."));
return (_T(""));
}
@@ -335,9 +335,9 @@ function GetCompilerLibDir(selection, de
// no macros used, direct path
if (!IO.DirectoryExists(selection + wxFILE_SEP_PATH + _T("lib")))
{
- ShowError(_T("The path you entered seems valid, but the wizard " +
- "can't locate the library directory.\n" +
- "This wizard cannot continue."));
+ ShowError(_("The path you entered seems valid, but the wizard ") +
+ _("can't locate the library directory.\n") +
+ _("This wizard cannot continue."));
return (_T(""));
}
return (selection + wxFILE_SEP_PATH + _T("lib"));
@@ -353,9 +353,9 @@ function GetCompilerLibDir(selection, de
local defaultInclude_nomacro = ReplaceMacros(defaultLibMacro, true);
if (!IO.DirectoryExists(defaultInclude_nomacro))
{
- ShowError(_T("The macro you entered seems valid, but this wizard can't\n" +
- "locate the library directory based on this macro.\n" +
- "This wizard cannot continue."));
+ ShowError(_("The macro you entered seems valid, but this wizard can't\n") +
+ _("locate the library directory based on this macro.\n") +
+ _("This wizard cannot continue."));
return (_T(""));
}
@@ -367,9 +367,9 @@ function GetCompilerLibDir(selection, de
if (!IO.DirectoryExists(selection_nomacro + wxFILE_SEP_PATH + _T("lib")))
{
- ShowError(_T("The macro you entered seems valid, but this wizard can't\n" +
- "compute the library directory based on this macro.\n" +
- "This wizard cannot continue."));
+ ShowError(_("The macro you entered seems valid, but this wizard can't\n") +
+ _("compute the library directory based on this macro.\n") +
+ _("This wizard cannot continue."));
return (_T(""));
}
@@ -448,9 +448,9 @@ function VerifyFile(dir, file, type)
{
if (!IO.FileExists(dir + wxFILE_SEP_PATH + file))
{
- ShowError(_T("The path you entered seems valid, but this wizard\n" +
- "can't locate the following ") + type + _T(" file:\n") +
- file + _T(" in it."));
+ ShowError(_("The path you entered seems valid, but this wizard\n") +
+ _("can't locate the following ") + type + _(" file:\n") +
+ file + _(" in it."));
return false;
}
return true;
@@ -473,10 +473,10 @@ function VerifyLibFile(dir, file, type)
&& (!IO.FileExists(dir + wxFILE_SEP_PATH + _T("lib") + file + _T(".so"))))
{
- ShowError(_T("The path you entered seems valid, but this wizard\n" +
- "can't locate the following ") + type + _T(" library file:\n") +
- file + _T(" in it.\n" +
- "(Also tried prepending lib and appending .a and .lib)."));
+ ShowError(_("The path you entered seems valid, but this wizard\n") +
+ _("can't locate the following ") + type + _(" library file:\n") +
+ file + _(" in it.\n") +
+ _("(Also tried prepending lib and appending .a and .lib)."));
return false;
}
return true;
diff -Nurp trunk/src/plugins/scriptedwizard/resources/config.script codeblocks-8.02/src/plugins/scriptedwizard/resources/config.script
--- trunk/src/plugins/scriptedwizard/resources/config.script.orig 2010-10-20 13:45:01.000000000 +0400
+++ codeblocks-8.02/src/plugins/scriptedwizard/resources/config.script 2010-10-28 00:36:39.000000000 +0400
@@ -17,62 +17,62 @@ function RegisterWizards()
//
// project wizards
//
- RegisterWizard(wizProject, _T("empty"), _T("Empty project"), _T("Console"));
- RegisterWizard(wizProject, _T("fortran/app"), _T("Fortran application"), _T("Fortran"));
- RegisterWizard(wizProject, _T("fortran/lib"), _T("Fortran library"), _T("Fortran"));
- RegisterWizard(wizProject, _T("fortran/dll"), _T("Fortran DLL"), _T("Fortran"));
- RegisterWizard(wizProject, _T("console"), _T("Console application"), _T("Console"));
- RegisterWizard(wizProject, _T("d"), _T("D application"), _T("D language"));
+ RegisterWizard(wizProject, _T("empty"), _("Empty project"), _("Console"));
+ RegisterWizard(wizProject, _T("fortran/app"), _("Fortran application"), _("Fortran"));
+ RegisterWizard(wizProject, _T("fortran/lib"), _("Fortran library"), _("Fortran"));
+ RegisterWizard(wizProject, _T("fortran/dll"), _("Fortran DLL"), _("Fortran"));
+ RegisterWizard(wizProject, _T("console"), _("Console application"), _("Console"));
+ RegisterWizard(wizProject, _T("d"), _("D application"), _("D language"));
if (PLATFORM == PLATFORM_MSW)
{
- RegisterWizard(wizProject, _T("directx"), _T("Direct/X project"), _T("2D/3D Graphics"));
- RegisterWizard(wizProject, _T("dll"), _T("Dynamic Link Library"), _T("Console"));
- RegisterWizard(wizProject, _T("sys"), _T("Kernel Mode Driver"), _T("Native"));
+ RegisterWizard(wizProject, _T("directx"), _("Direct/X project"), _("2D/3D Graphics"));
+ RegisterWizard(wizProject, _T("dll"), _("Dynamic Link Library"), _("Console"));
+ RegisterWizard(wizProject, _T("sys"), _("Kernel Mode Driver"), _("Native"));
}
- RegisterWizard(wizProject, _T("fltk"), _T("FLTK project"), _T("GUI"));
- RegisterWizard(wizProject, _T("glfw"), _T("GLFW project"), _T("2D/3D Graphics"));
- RegisterWizard(wizProject, _T("glut"), _T("GLUT project"), _T("2D/3D Graphics"));
- RegisterWizard(wizProject, _T("gtk"), _T("GTK+ project"), _T("GUI"));
- RegisterWizard(wizProject, _T("irrlicht"), _T("Irrlicht project"), _T("2D/3D Graphics"));
- RegisterWizard(wizProject, _T("lf"), _T("Lightfeather project"), _T("2D/3D Graphics"));
- if (PLATFORM == PLATFORM_MSW)
- RegisterWizard(wizProject, _T("matlab_csf"), _T("Matlab project"), _T("Console"));
- RegisterWizard(wizProject, _T("opengl"), _T("OpenGL project"), _T("2D/3D Graphics"));
- RegisterWizard(wizProject, _T("ogre"), _T("Ogre project"), _T("2D/3D Graphics"));
- RegisterWizard(wizProject, _T("plugins"), _T("Code::Blocks plugin"), _T("Code::Blocks"));
- RegisterWizard(wizProject, _T("qt4"), _T("QT4 project"), _T("GUI"));
- RegisterWizard(wizProject, _T("sdl"), _T("SDL project"), _T("2D/3D Graphics"));
- RegisterWizard(wizProject, _T("sfml"), _T("SFML project"), _T("2D/3D Graphics"));
+ RegisterWizard(wizProject, _T("fltk"), _("FLTK project"), _("GUI"));
+ RegisterWizard(wizProject, _T("glfw"), _("GLFW project"), _("2D/3D Graphics"));
+ RegisterWizard(wizProject, _T("glut"), _("GLUT project"), _("2D/3D Graphics"));
+ RegisterWizard(wizProject, _T("gtk"), _("GTK+ project"), _("GUI"));
+ RegisterWizard(wizProject, _T("irrlicht"), _("Irrlicht project"), _("2D/3D Graphics"));
+ RegisterWizard(wizProject, _T("lf"), _("Lightfeather project"), _("2D/3D Graphics"));
+ if (PLATFORM == PLATFORM_MSW)
+ RegisterWizard(wizProject, _T("matlab_csf"), _("Matlab project"), _("Console"));
+ RegisterWizard(wizProject, _T("opengl"), _("OpenGL project"), _("2D/3D Graphics"));
+ RegisterWizard(wizProject, _T("ogre"), _("Ogre project"), _("2D/3D Graphics"));
+ RegisterWizard(wizProject, _T("plugins"), _("Code::Blocks plugin"), _("Code::Blocks"));
+ RegisterWizard(wizProject, _T("qt4"), _("QT4 project"), _("GUI"));
+ RegisterWizard(wizProject, _T("sdl"), _("SDL project"), _("2D/3D Graphics"));
+ RegisterWizard(wizProject, _T("sfml"), _("SFML project"), _("2D/3D Graphics"));
if (PLATFORM == PLATFORM_MSW)
- RegisterWizard(wizProject, _T("smartwin"), _T("SmartWin project"), _T("GUI"));
- RegisterWizard(wizProject, _T("staticlib"), _T("Static library"), _T("Console"));
+ RegisterWizard(wizProject, _T("smartwin"), _("SmartWin project"), _("GUI"));
+ RegisterWizard(wizProject, _T("staticlib"), _("Static library"), _("Console"));
if (PLATFORM == PLATFORM_MSW)
- RegisterWizard(wizProject, _T("stlport"), _T("STL port application"), _T("Console"));
- RegisterWizard(wizProject, _T("sharedlib"), _T("Shared library"), _T("Console"));
+ RegisterWizard(wizProject, _T("stlport"), _("STL port application"), _("Console"));
+ RegisterWizard(wizProject, _T("sharedlib"), _("Shared library"), _("Console"));
if (PLATFORM == PLATFORM_MSW)
- RegisterWizard(wizProject, _T("win32gui"), _T("Win32 GUI project"), _T("GUI"));
- RegisterWizard(wizProject, _T("wxwidgets"), _T("wxWidgets project"), _T("GUI"));
+ RegisterWizard(wizProject, _T("win32gui"), _("Win32 GUI project"), _("GUI"));
+ RegisterWizard(wizProject, _T("wxwidgets"), _("wxWidgets project"), _("GUI"));
//
// build target wizards
//
- RegisterWizard(wizTarget, _T("console"), _T("Console"), _T("Console"));
- RegisterWizard(wizTarget, _T("staticlib"), _T("Static library"), _T("Console"));
+ RegisterWizard(wizTarget, _T("console"), _("Console"), _("Console"));
+ RegisterWizard(wizTarget, _T("staticlib"), _("Static library"), _("Console"));
if (PLATFORM == PLATFORM_MSW)
- RegisterWizard(wizTarget, _T("dll"), _T("Dynamic Link Library"), _T("Console"));
- RegisterWizard(wizTarget, _T("wxwidgets"), _T("wxWidgets"), _T("GUI"));
+ RegisterWizard(wizTarget, _T("dll"), _("Dynamic Link Library"), _("Console"));
+ RegisterWizard(wizTarget, _T("wxwidgets"), _("wxWidgets"), _("GUI"));
- RegisterWizard(wizProject, _T("arm"), _T("ARM Project"), _T("Embedded Systems"));
- RegisterWizard(wizProject, _T("avr"), _T("AVR Project"), _T("Embedded Systems"));
- RegisterWizard(wizProject, _T("tricore"), _T("TriCore Project"), _T("Embedded Systems"));
- RegisterWizard(wizProject, _T("ppc"), _T("PowerPC Project"), _T("Embedded Systems"));
+ RegisterWizard(wizProject, _T("arm"), _("ARM Project"), _("Embedded Systems"));
+ RegisterWizard(wizProject, _T("avr"), _("AVR Project"), _("Embedded Systems"));
+ RegisterWizard(wizProject, _T("tricore"), _("TriCore Project"), _("Embedded Systems"));
+ RegisterWizard(wizProject, _T("ppc"), _("PowerPC Project"), _("Embedded Systems"));
//
// file wizards
//
- RegisterWizard(wizFiles, _T("empty_file"), _T("Empty file"), _T("C/C++"));
- RegisterWizard(wizFiles, _T("c_file"), _T("C/C++ source"), _T("C/C++"));
- RegisterWizard(wizFiles, _T("h_file"), _T("C/C++ header"), _T("C/C++"));
- RegisterWizard(wizFiles, _T("fortran/file"), _T("Fortran source"), _T("Fortran"));
+ RegisterWizard(wizFiles, _T("empty_file"), _("Empty file"), _("C/C++"));
+ RegisterWizard(wizFiles, _T("c_file"), _("C/C++ source"), _("C/C++"));
+ RegisterWizard(wizFiles, _T("h_file"), _("C/C++ header"), _("C/C++"));
+ RegisterWizard(wizFiles, _T("fortran/file"), _("Fortran source"), _("Fortran"));
}
function RegisterWizard(type, folder, title, category)
diff -Nurp trunk/src/plugins/scriptedwizard/resources/console/wizard.script codeblocks-8.02/src/plugins/scriptedwizard/resources/console/wizard.script
--- trunk/src/plugins/scriptedwizard/resources/console/wizard.script 2008-01-15 19:15:29 +0300
+++ codeblocks-8.02/src/plugins/scriptedwizard/resources/console/wizard.script 2010-02-12 22:52:20 +0300
@@ -24,14 +24,14 @@ function BeginWizard()
if (wiz_type == wizProject)
{
// this is the text that will appear in the start (intro) page
- local intro_msg = _T("Welcome to the new console application wizard!\n" +
- "This wizard will guide you to create a new console application.\n\n" +
- "When you 're ready to proceed, please click \"Next\"...");
+ local intro_msg = _("Welcome to the new console application wizard!\n") +
+ _("This wizard will guide you to create a new console application.\n\n") +
+ _("When you 're ready to proceed, please click \"Next\"...");
// intro
Wizard.AddInfoPage(_T("ConsoleIntro"), intro_msg);
// select language
- Wizard.AddGenericSingleChoiceListPage(_T("ConsoleLanguagePage"), _T("Please select the language you want to use."), _T("C;C++"), ConsoleLang); // select language
+ Wizard.AddGenericSingleChoiceListPage(_T("ConsoleLanguagePage"), _("Please select the language you want to use."), _T("C;C++"), ConsoleLang); // select language
// select project name and path
Wizard.AddProjectPathPage();
// select compiler and configurations
@@ -40,9 +40,9 @@ function BeginWizard()
else if (wiz_type == wizTarget)
{
WizardType = 1;
- local intro_msg = _T("Welcome to the new console build target wizard!\n" +
- "This wizard will guide you to create a new console build target.\n\n" +
- "When you 're ready to proceed, please click \"Next\"...");
+ local intro_msg = _("Welcome to the new console build target wizard!\n") +
+ _("This wizard will guide you to create a new console build target.\n\n") +
+ _("When you 're ready to proceed, please click \"Next\"...");
Wizard.AddInfoPage(_T("ConsoleIntro"), intro_msg);
Wizard.AddBuildTargetPage(_T(""), false, true, _T(""), _T("*"), true);
}
@@ -78,10 +78,10 @@ function OnLeave_CompilerPage(fwd)
if (GetCompilerFactory().CompilerInheritsFrom(Wizard.GetCompilerID(), _T("msvctk"))
|| GetCompilerFactory().CompilerInheritsFrom(Wizard.GetCompilerID(), _T("msvc8")))
{
- local msg = _T("Wizard will setup the Project in Multi-threaded Dynamic CRT mode by default.\n\n");
- msg = msg + _T("Click Yes to continue with Multi-threaded Dynamic CRT mode\n\n");
- msg = msg + _T("Click No to continue with Multi-threaded Static CRT mode");
- local thread = Message(msg, _T("Console Wizard"), wxICON_QUESTION | wxYES_NO);
+ local msg = _("Wizard will setup the Project in Multi-threaded Dynamic CRT mode by default.\n\n");
+ msg = msg + _("Click Yes to continue with Multi-threaded Dynamic CRT mode\n\n");
+ msg = msg + _("Click No to continue with Multi-threaded Static CRT mode");
+ local thread = Message(msg, _("Console Wizard"), wxICON_QUESTION | wxYES_NO);
if (thread == wxID_YES)
multi_thread_dynamic = true;
else
diff -Nurp trunk/src/plugins/scriptedwizard/resources/empty/wizard.script codeblocks-8.02/src/plugins/scriptedwizard/resources/empty/wizard.script
--- trunk/src/plugins/scriptedwizard/resources/empty/wizard.script 2006-07-19 00:35:10 +0400
+++ codeblocks-8.02/src/plugins/scriptedwizard/resources/empty/wizard.script 2010-02-12 22:52:20 +0300
@@ -10,9 +10,9 @@
function BeginWizard()
{
- local intro_msg = _T("Welcome to the new empty project wizard!\n" +
- "This wizard will guide you to create a new empty project.\n\n" +
- "When you 're ready to proceed, please click \"Next\"...");
+ local intro_msg = _("Welcome to the new empty project wizard!\n") +
+ _("This wizard will guide you to create a new empty project.\n\n") +
+ _("When you 're ready to proceed, please click \"Next\"...");
// intro
Wizard.AddInfoPage(_T("EmptyProjectIntro"), intro_msg);
diff -Nurp trunk/src/plugins/scriptedwizard/resources/empty_file/wizard.script codeblocks-8.02/src/plugins/scriptedwizard/resources/empty_file/wizard.script
--- trunk/src/plugins/scriptedwizard/resources/empty_file/wizard.script 2006-07-25 16:14:42 +0400
+++ codeblocks-8.02/src/plugins/scriptedwizard/resources/empty_file/wizard.script 2010-02-12 22:52:20 +0300
@@ -9,9 +9,9 @@
function BeginWizard()
{
- local info_msg = _T("Welcome to the new empty file wizard!\n" +
- "This wizard will guide you to create a new empty file.\n\n" +
- "When you 're ready to proceed, please click \"Next\"...");
+ local info_msg = _("Welcome to the new empty file wizard!\n") +
+ _("This wizard will guide you to create a new empty file.\n\n") +
+ _("When you 're ready to proceed, please click \"Next\"...");
// add builtin pages
Wizard.AddInfoPage(_T("EmptyFileIntro"), info_msg); // intro
@@ -24,14 +24,14 @@ function CreateFiles()
local ed = GetEditorManager();
if (IsNull(ed))
{
- ShowError(_T("The wizard could not locate the editor manager."));
+ ShowError(_("The wizard could not locate the editor manager."));
}
local ed_new = ed.New(fname);
if (IsNull(ed_new))
{
- ShowError(_T("The wizard could not create a new file.\n" +
- "Maybe the target folder is write-protected?"));
+ ShowError(_("The wizard could not create a new file.\n") +
+ _("Maybe the target folder is write-protected?"));
}
else
{
diff -Nurp trunk/src/plugins/scriptedwizard/resources/h_file/wizard.script codeblocks-8.02/src/plugins/scriptedwizard/resources/h_file/wizard.script
--- trunk/src/plugins/scriptedwizard/resources/h_file/wizard.script 2007-10-06 08:06:05 +0400
+++ codeblocks-8.02/src/plugins/scriptedwizard/resources/h_file/wizard.script 2010-02-12 22:52:20 +0300
@@ -18,15 +18,15 @@ AUTO_GENERATED_CONTENTS
function BeginWizard()
{
// this is the text that will appear in the start (intro) page
- local intro_msg = _T("Welcome to the new C/C++ header file wizard!\n" +
- "This wizard will guide you to create a new C/C++ header file.\n\n" +
- "When you 're ready to proceed, please click \"Next\"...");
+ local intro_msg = _("Welcome to the new C/C++ header file wizard!\n") +
+ _("This wizard will guide you to create a new C/C++ header file.\n\n") +
+ _("When you 're ready to proceed, please click \"Next\"...");
// add builtin pages
Wizard.AddInfoPage(_T("HFileIntro"), intro_msg); // intro
Wizard.AddFilePathPage(true); // select filename (header guard required for header files)
- Wizard.SetFilePathSelectionFilter(_T("C/C++ header files (*.h;*.hpp;*.hxx;*.hh)|*.h;*.hpp;*.hxx;*.hh"));
+ Wizard.SetFilePathSelectionFilter(_("C/C++ header files (*.h;*.hpp;*.hxx;*.hh)|*.h;*.hpp;*.hxx;*.hh"));
}
function CreateFiles()
@@ -35,14 +35,14 @@ function CreateFiles()
local ed = GetEditorManager();
if (IsNull(ed))
{
- ShowError(_T("The wizard could not locate the editor manager."));
+ ShowError(_("The wizard could not locate the editor manager."));
}
local ed_new = ed.New(fname);
if (IsNull(ed_new))
{
- ShowError(_T("The wizard could not create a new file.\n" +
- "Maybe the target folder is write-protected?"));
+ ShowError(_("The wizard could not create a new file.\n") +
+ _("Maybe the target folder is write-protected?"));
}
else
{