From 095d6cc9ca9d7a8ff912ee88d14cf4e59a2738f6 Mon Sep 17 00:00:00 2001 From: klugier Date: Mon, 9 Nov 2020 02:01:58 +0000 Subject: [PATCH] CtrlLib, Doc: Tutorial internationalizing application improved. git-svn-id: svn://ultimatepp.org/upp/trunk@15373 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/CtrlLib/srcdoc.tpp/Tutorial_en-us.tpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/uppsrc/CtrlLib/srcdoc.tpp/Tutorial_en-us.tpp b/uppsrc/CtrlLib/srcdoc.tpp/Tutorial_en-us.tpp index f9b63964a..96610b478 100644 --- a/uppsrc/CtrlLib/srcdoc.tpp/Tutorial_en-us.tpp +++ b/uppsrc/CtrlLib/srcdoc.tpp/Tutorial_en-us.tpp @@ -1365,6 +1365,8 @@ inside window and we will add translation support to it:&] [s7; [@(28.127.0) // main.cpp]&] [s0;l321; [C@5;1 #include ]&] [s7; &] +[s7; [@(28.127.0) // The below include needs to be placed in one of +implementation file (.cpp)]&] [s7; #define TFILE &] [s7; #include &] [s7; &] @@ -1458,6 +1460,14 @@ should be used by application. In our case we will use exactly the same language as user operating system is using. This information can be obtained by using [* GetSystemLNG() ]function and passed to [* SetLanguage()].&] +[s5; Translation to work correctly in context of package required +following lines of code to be placed [* in one of implementation +file] (.cpp):&] +[s0; &] +[s7; #define TFILE &] +[s7; #include &] +[s0; &] +[s5; The final results from various language version are as follows:&] [s0; &] [ {{5000:5000RN [s0;= @@rawimage:1758&573