Browse Source

added: new language: Russian

translation made by: Vladimir Gladilovich <vdgladilovich at gmail dot com>



git-svn-id: svn://ttmath.org/publicrep/ttcalc/trunk@169 e52654a7-88a9-db11-a3e9-0013d4bc506e
0.8.x
Tomasz Sowa 12 years ago
parent
commit
b668b3765c
  1. 5
      CHANGELOG
  2. 2
      README
  3. 2
      help/index.html
  4. 4
      src/compileconfig.h
  5. 175
      src/languages.cpp
  6. 3
      src/languages.h
  7. 17
      src/mainwindow.cpp
  8. 3
      src/programresources.cpp
  9. 1
      src/resource.h
  10. 1
      src/resource.rc

5
CHANGELOG

@ -1,3 +1,8 @@
Version 0.8.6 prerelease (2009.06.25):
* added: new language: Russian
translation made by: Vladimir Gladilovich <vdgladilovich at gmail dot com>
Version 0.8.5 (2009.06.18):
* added: new language: Chinese
translation made by: Juis <zsyfly at gmail dot com>

2
README

@ -17,7 +17,7 @@ display values with the base (radix) from two to sixteen.
Author: Tomasz Sowa
Contact: t.sowa@ttmath.org
Licence: BSD (open source)
Interface: English, Polish, Spanish, Danish, Chinese
Interface: English, Polish, Spanish, Danish, Chinese, Russian
Project page: http://ttcalc.sourceforge.net/
Bignum library: TTMath http://www.ttmath.org/
Operating systems: Microsoft Windows 9x/Me/NT/2000/XP/Vista

2
help/index.html

@ -44,7 +44,7 @@ display values with the base (radix) from two to sixteen.
<tr><td>Author:</td><td>Tomasz Sowa</td></tr>
<tr><td>Contact:</td><td>t.sowa@ttmath.org</td></tr>
<tr><td>Licence:</td><td>BSD (open source)</td></tr>
<tr><td>Interface:</td><td>English, Polish, Spanish, Danish, Chinese</td></tr>
<tr><td>Interface:</td><td>English, Polish, Spanish, Danish, Chinese, Russian</td></tr>
<tr><td>Project page:</td><td><a href="http://ttcalc.sourceforge.net/">http://ttcalc.sourceforge.net/</a></td></tr>
<tr><td>Bignum library:</td><td>TTMath <a href="http://ttmath.org/">http://www.ttmath.org/</a></td></tr>
<tr><td>Operating systems:</td><td>Microsoft Windows 9x/Me/NT/2000/XP/Vista</td></tr>

4
src/compileconfig.h

@ -55,8 +55,8 @@
*/
#define TTCALC_MAJOR_VER 0
#define TTCALC_MINOR_VER 8
#define TTCALC_REVISION_VER 5
#define TTCALC_PRERELEASE_VER 0
#define TTCALC_REVISION_VER 6
#define TTCALC_PRERELEASE_VER 1

175
src/languages.cpp

@ -212,7 +212,7 @@ void Languages::InitErrorMessagesTab()
/*
Chinese messages relating to ttmath library
chinese messages relating to ttmath library
*/
error_messages_tab.push_back( std::map<ttmath::ErrorCode, std::string>() );
@ -241,6 +241,39 @@ void Languages::InitErrorMessagesTab()
InsertErrorPair(ttmath::err_must_be_only_one_value,"变量或函数必须有返回值");
InsertErrorPair(ttmath::err_still_calculating,"正在计算...");
InsertErrorPair(ttmath::err_too_big_factorial,"阶乘函数的参数太大");
/*
russian messages relating to ttmath library
*/
error_messages_tab.push_back( std::map<ttmath::ErrorCode, std::string>() );
InsertErrorPair(ttmath::err_ok,"ok");
InsertErrorPair(ttmath::err_nothing_has_read,"");
InsertErrorPair(ttmath::err_unknown_character,"Íåèçâåñòíûé ñèìâîë");
InsertErrorPair(ttmath::err_unexpected_final_bracket,"Íåîæèäàííàÿ çàêðûâàþùàÿ ñêîáêà");
InsertErrorPair(ttmath::err_stack_not_clear,"Îñòàëñÿ íåèçâåñòíûé ñèìâîë");
InsertErrorPair(ttmath::err_unknown_variable,"Íåèçâåñòíàÿ ïåðåìåííàÿ");
InsertErrorPair(ttmath::err_division_by_zero,"Äåëèòü íà íîëü íåëüçÿ");
InsertErrorPair(ttmath::err_interrupt,"Ïîäñ÷åò ïðåðâàí");
InsertErrorPair(ttmath::err_overflow,"Ïåðåïîëíåíèå");
InsertErrorPair(ttmath::err_unknown_function,"Íåèçâåñòíàÿ ôóíêöèÿ");
InsertErrorPair(ttmath::err_unknown_operator,"Íåèçâåñòíûé îïåðàòîð");
InsertErrorPair(ttmath::err_unexpected_semicolon_operator,"Íåîæèäàííûé îïåðàòîð ñ ;");
InsertErrorPair(ttmath::err_improper_amount_of_arguments,"Íåäîïóñòèìîå êîëè÷åñòâî àðãóìåíòîâ");
InsertErrorPair(ttmath::err_improper_argument,"Íåäîïóñòèìûé àðãóìåíò");
InsertErrorPair(ttmath::err_unexpected_end,"Íåîæèäàííûé êîíåö");
InsertErrorPair(ttmath::err_internal_error,"Âíóòðåííÿÿ îøèáêà");
InsertErrorPair(ttmath::err_incorrect_name,"Íåïðàâèëüíîå èìÿ ïåðåìåííîé èëè ôóíêöèè");
InsertErrorPair(ttmath::err_incorrect_value,"Íåïðàâèëüíîå çíà÷åíèå ïåðåìåííîé èëè ôóíêöèè");
InsertErrorPair(ttmath::err_variable_exists,"Òàêàÿ ïåðåìåííàÿ óæå çàäàíà");
InsertErrorPair(ttmath::err_variable_loop,"Ïåðåìåííûå ðåêóððåíòíû");
InsertErrorPair(ttmath::err_functions_loop,"Ôóíêöèè ðåêóððåíòíû");
InsertErrorPair(ttmath::err_must_be_only_one_value,"Ïåðåìåííûå èëè ôóíêöèè äîëæíû âîçâðàùàòü òîëüêî îäíî çíà÷åíèå");
InsertErrorPair(ttmath::err_still_calculating,"Ïîäñ÷èòûâàåì...");
InsertErrorPair(ttmath::err_too_big_factorial,"Ñëèøêîì áîëüøîé àðãóìåíò äëÿ ôóíêöèè factorial()");
}
@ -377,6 +410,7 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(menu_view_lang_spanish, "&Spanish");
InsertGuiPair(menu_view_lang_danish, "&Danish");
InsertGuiPair(menu_view_lang_chinese, "&Chinese");
InsertGuiPair(menu_view_lang_russian, "&Russian");
InsertGuiPair(menu_view_close_program, "&Close");
InsertGuiPair(menu_edit_undo, "&Undo");
InsertGuiPair(menu_edit_paste, "&Paste");
@ -509,6 +543,7 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(menu_view_lang_spanish, "&Hiszpa駍ki");
InsertGuiPair(menu_view_lang_danish, "&Du駍ki");
InsertGuiPair(menu_view_lang_chinese, "&Chi駍ki");
InsertGuiPair(menu_view_lang_russian, "&Russian");
InsertGuiPair(menu_view_close_program, "&Zamknij");
InsertGuiPair(menu_edit_undo, "&Cofnij");
InsertGuiPair(menu_edit_paste, "&Wklej");
@ -645,6 +680,7 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(menu_view_lang_spanish, "&Espa駉l");
InsertGuiPair(menu_view_lang_danish, "&Dan閟"); // 'Dan閟' is a correct translation for 'Danish'?
InsertGuiPair(menu_view_lang_chinese, "&Chino"); // 'Chino' is a correct translation for 'Chinese'?
InsertGuiPair(menu_view_lang_russian, "&Russian");
InsertGuiPair(menu_view_close_program, "&Close");
InsertGuiPair(menu_edit_undo, "&Deshacer");
InsertGuiPair(menu_edit_paste, "&Pegar");
@ -777,6 +813,7 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(menu_view_lang_spanish, "&Spansk");
InsertGuiPair(menu_view_lang_danish, "&Dansk");
InsertGuiPair(menu_view_lang_chinese, "&Kinesisk"); // 'Kinesisk' is a correct translation for 'Chinese'?
InsertGuiPair(menu_view_lang_russian, "&Russian");
InsertGuiPair(menu_view_close_program, "&Afslut");
InsertGuiPair(menu_edit_undo, "&Fortryd");
InsertGuiPair(menu_edit_paste, "&S鎡 ind");
@ -824,7 +861,7 @@ void Languages::InitGuiMessagesTab()
/*
Chinese gui messages
chinese gui messages
*/
gui_messages_tab.push_back( std::map<GuiMsg, std::string>() );
@ -908,6 +945,7 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(menu_view_lang_spanish, "&西班牙语");
InsertGuiPair(menu_view_lang_danish, "&丹麦语");
InsertGuiPair(menu_view_lang_chinese, "&简体中文");
InsertGuiPair(menu_view_lang_russian, "&Russian");
InsertGuiPair(menu_view_close_program, "&关闭");
InsertGuiPair(menu_edit_undo, "&取消");
InsertGuiPair(menu_edit_paste, "&粘贴");
@ -949,6 +987,139 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(unknown_error, "发生未知错误");
InsertGuiPair(cant_find_help, "没有找到帮助文件");
InsertGuiPair(cant_open_project_page, "不能打开软件主页");
/*
russian gui messages
*/
gui_messages_tab.push_back( std::map<GuiMsg, std::string>() );
InsertGuiPair(button_ok,"Ok");
InsertGuiPair(button_cancel,"Îòìåíà");
InsertGuiPair(message_box_caption,"TTCalc");
InsertGuiPair(dialog_box_add_variable_caption,"Äîáàâèòü íîâóþ ïåðåìåííóþ");
InsertGuiPair(dialog_box_edit_variable_caption,"Ðåäàêòèðîâàòü ïåðåìåííóþ");
InsertGuiPair(dialog_box_add_variable_incorrect_name,"Íåïðàâèëüíîå èìÿ ïåðåìåííîé");
InsertGuiPair(dialog_box_add_variable_incorrect_value,"Íåïðàâèëüíîå çíà÷åíèå ïåðåìåííîé");
InsertGuiPair(dialog_box_add_variable_variable_exists,"Òàêàÿ ïåðåìåííàÿ óæå çàäàíà");
InsertGuiPair(dialog_box_edit_variable_unknown_variable,"Òàêîé ïåðåìåííîé íåò â òàáëèöå. Âåðîÿòíî, âíóòðåííÿÿ îøèáêà!");
InsertGuiPair(dialog_box_delete_variable_confirm,"Óäàëèòü ýòè ïåðåìåííûå?");
InsertGuiPair(dialog_box_variable_not_all_deleted,"Íåêîòîðûå ïåðåìåííûå íå ïîëó÷èëîñü óäàëèòü. Âåðîÿòíî, âíóòðåííÿÿ îøèáêà!");
InsertGuiPair(dialog_box_add_function_caption,"Äîáàâèòü íîâóþ ôóíêöèþ");
InsertGuiPair(dialog_box_edit_function_caption,"Ðåäàêòèðîâàòü íîâóþ ôóíêöèþ");
InsertGuiPair(dialog_box_add_function_function_exists,"Òàêàÿ ôóíêöèÿ óæå çàäàíà");
InsertGuiPair(dialog_box_edit_function_unknown_function,"Òàêîé ôóíêöèè íåò â òàáëèöå. Âåðîÿòíî, âíóòðåííÿÿ îøèáêà!");
InsertGuiPair(dialog_box_delete_function_confirm,"Óäàëèòü ýòè ôóíêöèè?");
InsertGuiPair(dialog_box_function_not_all_deleted,"Íåêîòîðûå ôóíêöèè íå ïîëó÷èëîñü óäàëèòü. Âåðîÿòíî, âíóòðåííÿÿ îøèáêà!");
InsertGuiPair(dialog_box_add_function_incorrect_name,"Íåïðàâèëüíîå èìÿ ôóíêöèè");
InsertGuiPair(list_variables_header_1,"Èìÿ");
InsertGuiPair(list_variables_header_2,"Çíà÷åíèå");
InsertGuiPair(list_functions_header_1,"Èìÿ");
InsertGuiPair(list_functions_header_2,"Ïàðàìåòðû");
InsertGuiPair(list_functions_header_3,"Çíà÷åíèå");
InsertGuiPair(button_add,"Äîáàâèòü");
InsertGuiPair(button_edit,"Ïðàâêà");
InsertGuiPair(button_delete,"Óäàëèòü");
InsertGuiPair(button_clear,"C");
InsertGuiPair(tab_standard,"Ñòàíäàðò");
InsertGuiPair(tab_variables,"Ïåðåìåííûå");
InsertGuiPair(tab_functions,"Ôóíêöèè");
InsertGuiPair(tab_precision,"Òî÷íîñòü");
InsertGuiPair(tab_display,"Âèä");
InsertGuiPair(tab_convert,"Êîíâåðòàöèÿ");
InsertGuiPair(radio_precision_1,"Ìàëàÿ - 96 áèò íà ìàíòèññó, 32 áèòà íà ïîêàçàòåëü ñòåïåíè");
InsertGuiPair(radio_precision_2,"Ñðåäíÿÿ - 288 áèò íà ìàíòèññó, 64 áèòà íà ïîêàçàòåëü ñòåïåíè");
InsertGuiPair(radio_precision_3,"Áîëüøàÿ - 864 áèò íà ìàíòèññó, 128 áèòà íà ïîêàçàòåëü ñòåïåíè");
InsertGuiPair(precision_1_info,"(+/-)6.9 e+646457021, 26 çíà÷àùèõ öèôð (äåñÿòè÷íûõ)");
InsertGuiPair(precision_2_info,"(+/-)3.4e+2776511644261678652, 85 çíà÷àùèõ öèôð");
InsertGuiPair(precision_3_info,"(+/-)6.7e+51217599719369681875006054625051616609, 258 öèôð");
InsertGuiPair(overflow_during_printing,"Ïåðåïîëíåíèå ïðè âûâîäå");
InsertGuiPair(combo_rounding_none,"íåò");
InsertGuiPair(combo_rounding_integer,"äî öåëîãî");
InsertGuiPair(combo_rounding_to_number,"äî");
InsertGuiPair(combo_rounding_after_comma,"çíàêà");
InsertGuiPair(check_remove_zeroes,"Óäàëÿòü êîíöåâûå íóëåâûå áàéòû");
InsertGuiPair(display_input, "Ââîä");
InsertGuiPair(display_output, "Âûâîä");
InsertGuiPair(display_rounding, "Îêðóãëåíèå");
InsertGuiPair(display_always_scientific,"Âñåãäà");
InsertGuiPair(display_not_always_scientific,"Êîãäà ïîêàçàòåëü ñòåïåíè áîëüøå, ÷åì:");
InsertGuiPair(display_group_scientific, "Âûâîäèòü ðåçóëüòàò â ýêñïîíåíöèàëüíîì âèäå");
InsertGuiPair(display_decimal_point, "Äåñÿòè÷íûé çíàê");
InsertGuiPair(display_deg_rad_grad, "sin/cos asin/acos");
InsertGuiPair(convert_type, "Òèï");
InsertGuiPair(convert_input, "Ââîä");
InsertGuiPair(convert_output, "Âûâîä");
InsertGuiPair(convert_dynamic_output, "Àâòîïðåôèêñ");
InsertGuiPair(menu_view, "&Âèä");
InsertGuiPair(menu_edit, "&Ïðàâêà");
InsertGuiPair(menu_help, "Ï&îìîùü");
InsertGuiPair(menu_language, "&ßçûê");
InsertGuiPair(menu_view_new_window, "&Íîâîå îêíî");
InsertGuiPair(menu_view_normal_view, "&Îáû÷íûé âèä");
InsertGuiPair(menu_view_compact_view, "&Êîìïàêòíûé âèä");
InsertGuiPair(menu_view_always_on_top, "&Âñåãäà ïîâåðõ äðóãèõ îêîí");
InsertGuiPair(menu_view_lang_english, "&Àíãëèéñêèé");
InsertGuiPair(menu_view_lang_polish, "&Ïîëüñêèé");
InsertGuiPair(menu_view_lang_spanish, "&Èñïàíñêèé");
InsertGuiPair(menu_view_lang_danish, "&Äàòñêèé");
InsertGuiPair(menu_view_lang_chinese, "&Êèòàéñêèé");
InsertGuiPair(menu_view_lang_russian, "&Russian");
InsertGuiPair(menu_view_close_program, "&Çàêðûòü");
InsertGuiPair(menu_edit_undo, "&Îòìåíèòü äåéñòâèå");
InsertGuiPair(menu_edit_paste, "&Âñòàâèòü");
InsertGuiPair(menu_edit_copy_result, "&Êîïèðîâàòü ðåçóëüòàò");
InsertGuiPair(menu_help_help, "&Ïîìîùü");
InsertGuiPair(menu_help_project_page, "&Ñàéò ïðîåêòà");
InsertGuiPair(menu_help_about, "&Î ïðîãðàììå");
InsertGuiPair(cant_init_calculations, "Íå ìîãó èíèöèàëèçèðîâàòü ìîäóëü äëÿ ðàñ÷åòîâ");
InsertGuiPair(message_box_error_caption,"TTCalc");
InsertGuiPair(cant_create_thread, "Íå ìîãó ñîçäàòü âòîðîé ïîòîê äëÿ ðàñ÷åòîâ");
InsertGuiPair(cant_create_main_window, "Íå ìîãó îòêðûòü ãëàâíîå îêíî ïðîãðàììû");
InsertGuiPair(cant_init_common_controls,"Íå ìîãó èíèöèàëèçèðîâàòü óïðàâëåíèå (InitCommonControlsEx)");
InsertGuiPair(about_text,
"Ìàòåìàòè÷åñêèé êàëüêóëÿòîð TTCalc %d.%d.%d%s%s\r\n"
"Àâòîð: Tomasz Sowa\r\n"
"e-mail: t.sowa@ttmath.org\r\n"
"Ëèöåíçèÿ: BSD (open source)\r\n"
"Ñàéò ïðîåêòà: http://ttcalc.sourceforge.net\r\n"
"Áèáëèîòåêà Bignum: TTMath %d.%d.%d%s\r\n"
"ßçûê ïðîãðàììèðîâàíèÿ: C++\r\n"
"Êîìïèëÿòîð: %s\r\n"
"%s" // for upx
"\r\n"
"TTCalc èñïîëüçóåò áèáëèîòåêó ñâåðõáîëüøèõ ÷èñåë TTMath,"
" êîòîðàÿ íàõîäèòñÿ çäåñü: http://sourceforge.net/projects/ttmath\r\n"
"\r\n"
#ifdef TTCALC_PORTABLE
"Ýòî ïåðåíîñíàÿ âåðñèÿ ïðîãðàììû.  ýòîé âåðñèè ìîæíî ñ÷èòàòü "
"òîëüêî ñ îäíîé (ìàëîé) òî÷íîñòüþ (96 áèò íà ìàíòèññó,"
" 32 áèòà íà ïîêàçàòåëü ñòåïåíè), òî åñòü +/-6.9e+646457021.\r\n"
"\r\n"
#endif
"Åñëè ó Âàñ åñòü êàêèå-ëèáî âîïðîñû, ïîæåëàíèÿ èëè èíòåðåñíûå èäåè äëÿ"
" ýòîé ïðîãðàììû, èëè Âû õîòèòå ïðèñîåäèíèòüñÿ ê ïðîåêòó â êà÷åñòâå"
" ðàçðàáîò÷èêà èëè ïðîãðàììèñòa, íå ñòåñíÿéòåñü íàïèñàòü àâòîðó."
);
InsertGuiPair(about_text_portable_version, " ïåðåíîñíàÿ âåðñèÿ");
InsertGuiPair(about_text_exe_packer, "óïàêîâùèê EXE: UPX 3.03\r\n");
InsertGuiPair(about_box_title, "Î ïðîãðàììå");
InsertGuiPair(about_box_button_close, "Çàêðûòü");
InsertGuiPair(unknown_error, "Íåèçâåñòíàÿ îøèáêà");
InsertGuiPair(cant_find_help, "Íå óäàåòñÿ íàéòè ôàéëû ïîìîùè");
InsertGuiPair(cant_open_project_page, "Íå óäàåòñÿ îòêðûòü ñàéò ïðîåêòà");
}

3
src/languages.h

@ -120,6 +120,7 @@ public:
menu_view_lang_spanish,
menu_view_lang_danish,
menu_view_lang_chinese,
menu_view_lang_russian,
menu_view_close_program,
menu_edit_undo,
menu_edit_paste,
@ -148,7 +149,7 @@ public:
// (after conversion to 'int' we pass it into the std::vector)
enum Country
{
en = 0, pl, sp, da, chn
en = 0, pl, sp, da, chn, ru
};

17
src/mainwindow.cpp

@ -407,6 +407,7 @@ HMENU menu = GetMenu(hWnd);
SetMenuLanguageItem(menu, IDM_LANGUAGE_SPANISH, Languages::menu_view_lang_spanish);
SetMenuLanguageItem(menu, IDM_LANGUAGE_DANISH, Languages::menu_view_lang_danish);
SetMenuLanguageItem(menu, IDM_LANGUAGE_CHINESE, Languages::menu_view_lang_chinese);
SetMenuLanguageItem(menu, IDM_LANGUAGE_RUSSIAN, Languages::menu_view_lang_russian);
SetMenuLanguageItem(menu, IDM_CLOSE_PROGRAM, Languages::menu_view_close_program);
SetMenuLanguageItem(menu, IDM_EDIT_UNDO, Languages::menu_edit_undo);
SetMenuLanguageItem(menu, IDM_EDIT_PASTE, Languages::menu_edit_paste);
@ -770,6 +771,7 @@ void WmInitMenuPopUpView(HMENU menu)
CheckMenuItem(menu, IDM_LANGUAGE_SPANISH, MF_BYCOMMAND|MF_UNCHECKED);
CheckMenuItem(menu, IDM_LANGUAGE_DANISH, MF_BYCOMMAND|MF_UNCHECKED);
CheckMenuItem(menu, IDM_LANGUAGE_CHINESE, MF_BYCOMMAND|MF_UNCHECKED);
CheckMenuItem(menu, IDM_LANGUAGE_RUSSIAN, MF_BYCOMMAND|MF_UNCHECKED);
Languages::Country lang = GetPrgRes()->GetLanguages()->GetCurrentLanguage();
@ -787,6 +789,9 @@ void WmInitMenuPopUpView(HMENU menu)
else
if( lang == Languages::chn )
CheckMenuItem(menu, IDM_LANGUAGE_CHINESE, MF_BYCOMMAND|MF_CHECKED);
else
if( lang == Languages::ru )
CheckMenuItem(menu, IDM_LANGUAGE_RUSSIAN, MF_BYCOMMAND|MF_CHECKED);
}
@ -1071,6 +1076,17 @@ BOOL WmCommand_LanguageChinese(HWND hWnd, UINT message, WPARAM wParam, LPARAM lP
return true;
}
BOOL WmCommand_LanguageRussian(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
GetPrgRes()->GetLanguages()->SetCurrentLanguage(Languages::ru);
SetMenuLanguage(hWnd);
SetOutputEditLanguage(hWnd);
TabWindowFunctions::SetLanguage( GetDlgItem(hWnd, IDC_TAB) );
return true;
}
BOOL WmHelp(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
@ -1142,6 +1158,7 @@ void CreateCommandMessagesTable(Messages & cmessages)
cmessages.Associate(IDM_LANGUAGE_SPANISH, WmCommand_LanguageSpanish);
cmessages.Associate(IDM_LANGUAGE_DANISH, WmCommand_LanguageDanish);
cmessages.Associate(IDM_LANGUAGE_CHINESE, WmCommand_LanguageChinese);
cmessages.Associate(IDM_LANGUAGE_RUSSIAN, WmCommand_LanguageRussian);
cmessages.Associate(IDM_HELP_HELP, WmHelp);
cmessages.Associate(IDM_HELP_PROJECT_PAGE, WmProjectPage);
}

3
src/programresources.cpp

@ -803,6 +803,9 @@ std::string ini_value[20];
SetDisplayRounding( atoi(ini_value[11].c_str()) );
SetRemovingZeroes( bool(atoi(ini_value[15].c_str())) );
if( ini_value[13] == "5" )
languages.SetCurrentLanguage(Languages::ru);
else
if( ini_value[13] == "4" )
languages.SetCurrentLanguage(Languages::chn);
else

1
src/resource.h

@ -197,6 +197,7 @@
#define IDM_LANGUAGE_SPANISH 40012
#define IDM_LANGUAGE_DANISH 40013
#define IDM_LANGUAGE_CHINESE 40014
#define IDM_LANGUAGE_RUSSIAN 40015
#define IDM_CLOSE_PROGRAM 40020
#define IDM_EDIT_UNDO 40030
#define IDM_EDIT_PASTE 40031

1
src/resource.rc

@ -31,6 +31,7 @@ BEGIN
MENUITEM "&Spanish", 40012
MENUITEM "&Danish", 40013
MENUITEM "&Chinese", 40014
MENUITEM "&Russian", 40015
END
MENUITEM SEPARATOR
MENUITEM "&Close", 40020

Loading…
Cancel
Save