diff --git a/uppbox/uppweb/www.cpp b/uppbox/uppweb/www.cpp index fa5819b7d..ccaa4a706 100644 --- a/uppbox/uppweb/www.cpp +++ b/uppbox/uppweb/www.cpp @@ -9,7 +9,7 @@ #define LLOG(x) // LOG(x) -#ifdef PLATFORM_WIN32 +#ifdef PLATFORM_WIN32 String rootdir = "u:\\upp.src"; String uppbox = rootdir + "uppbox"; String uppsrc = rootdir + "uppsrc"; @@ -578,8 +578,8 @@ GUI_APP_MAIN // bi << BarLink("index.html", "Home", false); bi << BarLink(Www("overview", languages[i]), t_("Overview"), false); bi << BarLink(Www("examples", languages[i]), t_("Examples")); - if (i == 0) { - int di = tt.GetCount() - 1; + { + int di = tt.Find("topic://uppweb/www/examples$" + ToLower(LNGAsText(languages[i]))); tt[di].text << MakeExamples(examples, "examples", languages[i]); tt[di].text << GetTopic("topic://uppweb/www/reference$" + ToLower(LNGAsText(languages[i]))).text; tt[di].text << MakeExamples(reference, "reference", languages[i]); @@ -591,23 +591,24 @@ GUI_APP_MAIN bi << BarLink(Www("download", languages[i]), t_("Download")); bi << BarLink(Www("documentation", languages[i]), t_("Manual")); - if (i == 0) { - int di = tt.Find("topic://uppweb/www/documentation$en-us"); - String qtf; - FindFile ff(AppendFileName(uppsrc, "*.*")); - SrcDocs(qtf, "Core"); - SrcDocs(qtf, "Draw"); - SrcDocs(qtf, "CtrlCore"); - SrcDocs(qtf, "CtrlLib"); - SrcDocs(qtf, "RichText"); - SrcDocs(qtf, "RichEdit"); - while(ff) { - if(ff.IsFolder()) - SrcDocs(qtf, ff.GetName()); - ff.Next(); + { + int di = tt.Find("topic://uppweb/www/documentation$" + ToLower(LNGAsText(languages[i]))); + if (di >= 0) { + String qtf; + FindFile ff(AppendFileName(uppsrc, "*.*")); + SrcDocs(qtf, "Core"); + SrcDocs(qtf, "Draw"); + SrcDocs(qtf, "CtrlCore"); + SrcDocs(qtf, "CtrlLib"); + SrcDocs(qtf, "RichText"); + SrcDocs(qtf, "RichEdit"); + while(ff) { + if(ff.IsFolder()) + SrcDocs(qtf, ff.GetName()); + ff.Next(); + } + tt[di].text << qtf; } - - tt[di].text << qtf; } bi << BarLink(Www("bazaar", languages[i]), t_("Bazaar")); bi << BarLink(Www("Roadmap", languages[i]), t_("Status & Roadmap")); diff --git a/uppbox/uppweb/www.tpp/all.i b/uppbox/uppweb/www.tpp/all.i index a6c4edea7..1f95c031c 100644 --- a/uppbox/uppweb/www.tpp/all.i +++ b/uppbox/uppweb/www.tpp/all.i @@ -90,6 +90,10 @@ TOPIC("reference$en-us") #include "reference$en-us.tppi" END_TOPIC +TOPIC("reference$ru-ru") +#include "reference$ru-ru.tppi" +END_TOPIC + TOPIC("Roadmap$en-us") #include "Roadmap$en-us.tppi" END_TOPIC diff --git a/uppbox/uppweb/www.tpp/reference$ru-ru.tpp b/uppbox/uppweb/www.tpp/reference$ru-ru.tpp new file mode 100644 index 000000000..63ef6d43d --- /dev/null +++ b/uppbox/uppweb/www.tpp/reference$ru-ru.tpp @@ -0,0 +1,14 @@ +topic ""; +[ $$0,0#00000000000000000000000000000000:Default] +[b42;a42;2 $$1,1#45413000475342174754091244180557:text] +[a83;*R6 $$2,1#31310162474203024125188417583966:caption] +[{_}%EN-US +[s1; &] +[s1; &] +[s2; Рег примеры&] +[s0; [2 Рег примеров разработаны на документ +U `+ `+ через набор очень простых примерах, +демонстрирующих каждого отдельного +аспекта U `+ `+ библиотеки.]&] +[s0;2 &] +[s0; ] \ No newline at end of file diff --git a/uppbox/uppweb/www.tpp/reference$ru-ru.tppi b/uppbox/uppweb/www.tpp/reference$ru-ru.tppi new file mode 100644 index 000000000..c344e1d29 --- /dev/null +++ b/uppbox/uppweb/www.tpp/reference$ru-ru.tppi @@ -0,0 +1,5 @@ +TITLE("") +COMPRESSED +120,156,133,144,219,74,195,64,16,134,95,101,160,213,11,173,178,167,28,218,220,234,173,23,74,175,66,208,40,21,4,81,193,10,130,8,61,80,138,180,248,12,62,66,180,198,150,212,166,175,48,243,70,206,110,75,65,16,12,187,51,155,153,255,219,249,217,24,170,85,81,19,21,241,207,215,56,104,93,166,15,215,237,36,62,55,42,74,121,43,38,101,77,86,140,103,164,102,133,9,60,109,148,12,56,27,81,151,202,24,25,10,207,11,26,237,214,35,99,105,168,163,157,99,159,33,197,144,150,90,10,233,43,19,24,37,180,80,70,42,79,134,161,145,129,23,234,186,239,55,46,210,187,246,213,237,77,18,63,157,62,111,29,30,237,53,79,32,190,151,17,108,39,155,164,34,192,55,204,113,2,184,164,14,206,240,27,115,234,208,200,246,68,4,177,250,171,141,37,126,0,167,12,167,46,190,99,73,61,206,11,26,1,46,48,3,252,100,73,65,125,43,231,106,15,154,112,182,107,23,13,29,159,227,212,9,29,217,1,14,67,39,28,175,198,148,212,165,30,141,104,240,123,106,70,131, +154,189,58,231,255,146,213,86,196,93,182,219,167,87,122,225,19,3,5,223,250,229,230,79,176,4,103,204,18,115,26,243,192,117,49,163,46,46,185,88,88,215,27,111,108,102,198,123,206,209,82,220,198,217,126,178,122,8,5,235,7,73,126,0,29,174,235,137, +