mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.uppdev
git-svn-id: svn://ultimatepp.org/upp/trunk@5060 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
5f95c7402e
commit
d9e51975b0
2 changed files with 54 additions and 24 deletions
|
|
@ -1,12 +1,14 @@
|
|||
uses
|
||||
CtrlLib;
|
||||
|
||||
file
|
||||
D:\Core.t charset "UTF-8",
|
||||
D:\CtrlLib.t,
|
||||
main.cpp charset "windows-1250",
|
||||
test.lay,
|
||||
test.t charset "UTF-8";
|
||||
|
||||
mainconfig
|
||||
"" = "GUI ST";
|
||||
uses
|
||||
CtrlLib;
|
||||
|
||||
file
|
||||
D:\Core.t charset "UTF-8",
|
||||
D:\CtrlLib.t,
|
||||
main.cpp charset "windows-1250",
|
||||
test.lay,
|
||||
test.t charset "UTF-8";
|
||||
|
||||
mainconfig
|
||||
"" = "GUI ST",
|
||||
"" = "GUI MT";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,40 @@
|
|||
#include "CtrlLib/CtrlLib.h"
|
||||
|
||||
using namespace Upp;
|
||||
|
||||
#define TFILE <Lang/test.t>
|
||||
#include <Core/t.h>
|
||||
|
||||
GUI_APP_MAIN
|
||||
{
|
||||
DUMP(LNGFromText(String()));
|
||||
DUMP(LNGAsText(GetSystemLNG()));
|
||||
}
|
||||
#include "CtrlLib/CtrlLib.h"
|
||||
|
||||
using namespace Upp;
|
||||
|
||||
//#define TFILE <Lang/test.t>
|
||||
//#include <Core/t.h>
|
||||
|
||||
void ThreadTest(int lang)
|
||||
{
|
||||
RLOG("In thread0: " << LNGAsText(lang) << ' ' << t_("Invalid date/time:"));
|
||||
RLOG("In thread0: " << LNGAsText(lang) << ' ' << t_("Cancel"));
|
||||
RLOG("In thread0 S: " << LNGAsText(lang) << ' ' << GetLngString("Cancel"));
|
||||
RLOG("In thread0: " << LNGAsText(lang) << ' ' << AsString(GetSysDate()));
|
||||
SetLanguage(lang);
|
||||
for(int i = 0; i < 10; i++) {
|
||||
Sleep(100);
|
||||
RLOG("In thread: " << LNGAsText(lang) << ' ' << t_("Invalid date/time:"));
|
||||
RLOG("In thread: " << LNGAsText(lang) << ' ' << t_("Cancel"));
|
||||
RLOG("In thread S: " << LNGAsText(lang) << ' ' << GetLngString("Cancel"));
|
||||
RLOG("In thread: " << LNGAsText(lang) << ' ' << AsString(GetSysDate()));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
GUI_APP_MAIN
|
||||
{
|
||||
RDUMP(LNGAsText(GetSystemLNG()));
|
||||
RDUMP(t_("Sunday"));
|
||||
Thread::Start(callback1(ThreadTest, LNG_('P','L','P','L')));
|
||||
Thread::Start(callback1(ThreadTest, LNG_('F','R','F','R')));
|
||||
Thread::Start(callback1(ThreadTest, LNG_ENGLISH));
|
||||
SetLanguage(LNG_('C','S','C','Z'));
|
||||
for(int i = 0; i < 10; i++) {
|
||||
Sleep(100);
|
||||
RLOG("Main: " << t_("Sunday"));
|
||||
RLOG("Main: " << t_("Cancel"));
|
||||
RLOG("Main S: " << GetLngString("Cancel"));
|
||||
RLOG("Main: " << AsString(GetSysDate()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue