Browse Source

added: language messages to all widgets

changed: about box:
         added names of translators
         new bitmap
added:   checkbox 'check update on startup' on Update dialog box
         (not implemented yet)



git-svn-id: svn://ttmath.org/publicrep/ttcalc/trunk@235 e52654a7-88a9-db11-a3e9-0013d4bc506e
master
Tomasz Sowa 13 years ago
parent
commit
c0a0660482
  1. BIN
      res/abacus_01.bmp
  2. BIN
      res/aboutbox.bmp
  3. 24
      src/Makefile.dep
  4. 506
      src/languages.cpp
  5. 44
      src/languages.h
  6. 17
      src/mainwindow.cpp
  7. 60
      src/pad.cpp
  8. 1
      src/pad.h
  9. 2
      src/parsermanager.cpp
  10. 3
      src/programresources.cpp
  11. 43
      src/resource.h
  12. 127
      src/resource.rc
  13. 80
      src/tabs.cpp
  14. 38
      src/update.cpp

BIN
res/abacus_01.bmp

Binary file not shown.

Before

Width:  |  Height:  |  Size: 143 KiB

BIN
res/aboutbox.bmp

Binary file not shown.

After

Width:  |  Height:  |  Size: 205 KiB

24
src/Makefile.dep

@ -1,18 +1,18 @@
o = resource.o calculation.o convert.o download.o functions.o iniparser.o languages.o mainwindow.o pad.o parsermanager.o programresources.o tabs.o update.o variables.o winmain.o
calculation.o: calculation.cpp compileconfig.h parsermanager.h resource.h programresources.h iniparser.h languages.h bigtypes.h threadcontroller.h stopcalculating.h convert.h tabs.h messages.h
calculation.o: calculation.cpp compileconfig.h parsermanager.h resource.h programresources.h iniparser.h languages.h bigtypes.h threadcontroller.h stopcalculating.h convert.h tabs.h messages.h
convert.o: convert.cpp convert.h compileconfig.h bigtypes.h
download.o: download.cpp download.h
functions.o: functions.cpp compileconfig.h tabs.h resource.h messages.h programresources.h iniparser.h languages.h bigtypes.h threadcontroller.h stopcalculating.h convert.h
iniparser.o: iniparser.cpp compileconfig.h iniparser.h
languages.o: languages.cpp compileconfig.h languages.h bigtypes.h
mainwindow.o: mainwindow.cpp compileconfig.h winmain.h programresources.h iniparser.h languages.h bigtypes.h threadcontroller.h stopcalculating.h convert.h resource.h messages.h tabs.h pad.h update.h download.h
pad.o: pad.cpp programresources.h compileconfig.h iniparser.h languages.h bigtypes.h threadcontroller.h stopcalculating.h convert.h resource.h messages.h
parsermanager.o: parsermanager.cpp compileconfig.h parsermanager.h resource.h programresources.h iniparser.h languages.h bigtypes.h threadcontroller.h stopcalculating.h convert.h tabs.h messages.h
programresources.o: programresources.cpp compileconfig.h programresources.h iniparser.h languages.h bigtypes.h threadcontroller.h stopcalculating.h convert.h
tabs.o: tabs.cpp compileconfig.h tabs.h resource.h messages.h programresources.h iniparser.h languages.h bigtypes.h threadcontroller.h stopcalculating.h convert.h
update.o: update.cpp update.h download.h programresources.h compileconfig.h iniparser.h languages.h bigtypes.h threadcontroller.h stopcalculating.h convert.h messages.h resource.h winmain.h tabs.h pad.h
variables.o: variables.cpp compileconfig.h tabs.h resource.h messages.h programresources.h iniparser.h languages.h bigtypes.h threadcontroller.h stopcalculating.h convert.h
download.o: download.cpp compileconfig.h download.h
functions.o: functions.cpp compileconfig.h tabs.h resource.h messages.h programresources.h iniparser.h languages.h bigtypes.h threadcontroller.h stopcalculating.h convert.h
iniparser.o: iniparser.cpp compileconfig.h iniparser.h
languages.o: languages.cpp compileconfig.h languages.h bigtypes.h
mainwindow.o: mainwindow.cpp compileconfig.h winmain.h programresources.h iniparser.h languages.h bigtypes.h threadcontroller.h stopcalculating.h convert.h resource.h messages.h tabs.h pad.h update.h download.h
pad.o: pad.cpp programresources.h compileconfig.h iniparser.h languages.h bigtypes.h threadcontroller.h stopcalculating.h convert.h resource.h messages.h pad.h
parsermanager.o: parsermanager.cpp compileconfig.h parsermanager.h resource.h programresources.h iniparser.h languages.h bigtypes.h threadcontroller.h stopcalculating.h convert.h tabs.h messages.h
programresources.o: programresources.cpp compileconfig.h programresources.h iniparser.h languages.h bigtypes.h threadcontroller.h stopcalculating.h convert.h
tabs.o: tabs.cpp compileconfig.h tabs.h resource.h messages.h programresources.h iniparser.h languages.h bigtypes.h threadcontroller.h stopcalculating.h convert.h
update.o: update.cpp compileconfig.h update.h download.h programresources.h iniparser.h languages.h bigtypes.h threadcontroller.h stopcalculating.h convert.h messages.h resource.h winmain.h tabs.h pad.h
variables.o: variables.cpp compileconfig.h tabs.h resource.h messages.h programresources.h iniparser.h languages.h bigtypes.h threadcontroller.h stopcalculating.h convert.h
winmain.o: winmain.cpp compileconfig.h winmain.h programresources.h iniparser.h languages.h bigtypes.h threadcontroller.h stopcalculating.h convert.h resource.h messages.h tabs.h pad.h
.SUFFIXES: .cpp .o

506
src/languages.cpp

@ -110,7 +110,7 @@ void Languages::InitErrorMessagesTab()
InsertErrorPair(ttmath::err_must_be_only_one_value,"Variables or functions must return only one value");
InsertErrorPair(ttmath::err_still_calculating,"Calculating...");
InsertErrorPair(ttmath::err_percent_from,"Incorrectly used percentage operator");
// other english translation: the percentage operator used in incorrect way
/*
@ -362,6 +362,13 @@ void Languages::InitGuiMessagesTab()
{
/*
english gui messages
& - (ampersand) used in menus or buttons, means the key shortcut
(when left Alt is pressed you see a small line at the bottom of a specified letter)
\t - tabulator
\r\n - new line
%d - another integer value (leave it)
%s - another string (leave it)
*/
gui_messages_tab.push_back( std::map<GuiMsg, std::string>() );
@ -413,7 +420,7 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(overflow_during_printing,"Overflow during printing");
InsertGuiPair(combo_rounding_none,"None");
InsertGuiPair(combo_rounding_none,"none");
InsertGuiPair(combo_rounding_integer,"to integer");
InsertGuiPair(combo_rounding_to_number,"to");
InsertGuiPair(combo_rounding_after_comma,"digit(s)");
@ -425,8 +432,18 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(display_always_scientific,"Always");
InsertGuiPair(display_not_always_scientific,"When the exponent is greater than:");
InsertGuiPair(display_group_scientific, "Print the result as the scientific value");
InsertGuiPair(display_decimal_point, "Output decimal point");
InsertGuiPair(display_deg_rad_grad, "sin/cos asin/acos");
InsertGuiPair(display_deg_rad_grad, "Trigonometric functions");
InsertGuiPair(display_grouping, "Grouping"); // e.g. 1`000`000
InsertGuiPair(display_grouping_none, "none");
InsertGuiPair(display_grouping_space, "space");
InsertGuiPair(display_input_decimal_point, "Input decimal point"); // Decimal point in formula
InsertGuiPair(display_input_decimal_point_item1, " . or ,");
InsertGuiPair(display_output_decimal_point, "Output decimal point"); // Decimal point in result
InsertGuiPair(display_param_sep, "Parameters separated by");
InsertGuiPair(display_param_sep_item2, " ; or .");
InsertGuiPair(display_param_sep_item3, " ; or ,");
InsertGuiPair(convert_type, "Type");
InsertGuiPair(convert_input, "Input");
InsertGuiPair(convert_output, "Output");
@ -439,8 +456,8 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(menu_view_new_window, "&New window");
InsertGuiPair(menu_view_normal_view, "No&rmal view");
InsertGuiPair(menu_view_compact_view, "C&ompact view");
InsertGuiPair(menu_view_pad, "&Pad");
InsertGuiPair(menu_view_always_on_top, "&Always on top");
InsertGuiPair(menu_view_pad, "&Pad");
InsertGuiPair(menu_view_lang_english, "&English");
InsertGuiPair(menu_view_lang_polish, "&Polish");
InsertGuiPair(menu_view_lang_spanish, "&Spanish");
@ -450,11 +467,22 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(menu_view_lang_swedish, "&Swedish");
InsertGuiPair(menu_view_close_program, "&Close");
InsertGuiPair(menu_edit_undo, "&Undo \tCtrl+Z");
InsertGuiPair(menu_edit_paste_formula, "&Paste formula\tCtrl+V");
InsertGuiPair(menu_edit_copy_result, "&Copy result \tCtrl+R");
InsertGuiPair(menu_edit_cut, "Cu&t \tCtrl+X");
InsertGuiPair(menu_edit_copy, "&Copy \tCtrl+C");
InsertGuiPair(menu_edit_paste, "&Paste"); // cutting, copying, pasting the the edit which has a focus
InsertGuiPair(menu_edit_del, "&Delete \tDel");
InsertGuiPair(menu_edit_paste_formula, "Paste &formula\tCtrl+V"); // pasting directly to input edit
InsertGuiPair(menu_edit_copy_result, "Copy &result \tCtrl+R");
InsertGuiPair(menu_edit_copy_both, "Copy &both \tCtrl+B"); // copying in this way: "input edit = output edit"
InsertGuiPair(menu_edit_select_all, "Select &all \tEsc");
InsertGuiPair(menu_edit_bracket, "Bracke&t \tCtrl+0"); // inserting brackets: (...)
InsertGuiPair(menu_help_help, "&Help");
InsertGuiPair(menu_help_project_page, "&Project page");
InsertGuiPair(menu_help_check_update, "&Check update...");
InsertGuiPair(menu_help_about, "&About");
InsertGuiPair(menu_update_available, "&New version is available"); // not implemented yet
// this will be a new main menu item (one after 'help') visible only if there is an update
InsertGuiPair(cant_init_calculations, "I could not initialize the module for calculations");
InsertGuiPair(message_box_error_caption,"TTCalc");
InsertGuiPair(cant_create_thread, "I could not create the second thread for calculating");
@ -462,18 +490,19 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(cant_create_main_window, "I could not create the main window of the application");
InsertGuiPair(cant_init_common_controls,"I could not initialize the common controls (InitCommonControlsEx)");
InsertGuiPair(about_text,
"Mathematical calculator TTCalc %d.%d.%d%s%s\r\n"
"Mathematical calculator TTCalc %d.%d.%d%s%s\r\n\r\n"
"Author: Tomasz Sowa\r\n"
"Contact: t.sowa@ttmath.org\r\n"
"Licence: BSD (open source)\r\n"
"Project page: http://ttcalc.sourceforge.net\r\n"
"Bignum library: TTMath %d.%d.%d%s\r\n"
"Bignum type: binary floating point numbers\r\n"
"Programming language: C++\r\n"
"Compiler: %s\r\n"
"%s" // for upx
"\r\n"
"TTCalc uses the TTMath bignum library"
" which can be found at http://sourceforge.net/projects/ttmath\r\n"
" which can be found at http://www.ttmath.org\r\n"
"\r\n"
#ifdef TTCALC_PORTABLE
"This is the portable version of the program TTCalc. In this version "
@ -481,9 +510,14 @@ void Languages::InitGuiMessagesTab()
"mantissa and 32 bits for the exponent) it's about +/-6.9e+646457021.\r\n"
"\r\n"
#endif
"If you have any questions, advices or interesting ideas about"
" this program or if you want to join to this project as"
" a developer or a programmer feel free to contant with the author."
"Translations:\r\n"
"English Author\r\n" // one tabulator between language and the name of the author
"Polish Author\r\n"
"Spanish Alejandro S. Valdezate <alesanval@gmail.com>\r\n"
"Danish Rune Bisgaard Vammen <runebisgaard@gmail.com>\r\n"
"Chinese Juis <zsyfly@gmail.com>\r\n"
"Russian Vladimir Gladilovich <vdgladilovich@gmail.com>\r\n"
"Swedish Lars 'Bafvert' Gafvert <lars.gafvert@gmail.com>\r\n"
);
InsertGuiPair(about_text_portable_version, " portable version");
InsertGuiPair(about_text_exe_packer, "EXE Packer: UPX 3.03\r\n");
@ -492,6 +526,37 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(unknown_error, "An unknown error has occurred");
InsertGuiPair(cant_find_help, "I can't find any help files");
InsertGuiPair(cant_open_project_page, "I can't open the project webpage");
InsertGuiPair(update_title, "Check for a new version");
InsertGuiPair(update_button_next, "Next");
InsertGuiPair(update_button_finish, "Finish");
InsertGuiPair(update_button_cancel, "Cancel");
InsertGuiPair(update_check_at_startup, "Always check for the update on startup");
InsertGuiPair(update_check_for_info, "Press Next to check for the update...");
InsertGuiPair(update_is_new_version, "Version %d.%d.%d is available, press Next to download...");
InsertGuiPair(update_no_new_version, "There is not a new version available.");
InsertGuiPair(update_download_from, "Downloading from...");
#ifndef TTCALC_PORTABLE
InsertGuiPair(update_downloaded_info1, "A new setup program has been downloaded.");
InsertGuiPair(update_downloaded_info2, "Press Finish to close TTCalc and run the installer.");
#else
InsertGuiPair(update_downloaded_info1, "A new version of TTCalc has been downloaded.");
InsertGuiPair(update_downloaded_info2, "");
#endif
InsertGuiPair(update_download_error, "There was a problem with downloading, please try again later.");
InsertGuiPair(pad_title, "Pad");
InsertGuiPair(pad_menu_file, "&File");
InsertGuiPair(pad_menu_edit, "&Edit");
InsertGuiPair(pad_menu_file_new, "&New"); // temporarily not used
InsertGuiPair(pad_menu_file_open, "&Open...");
InsertGuiPair(pad_menu_file_saveas, "Save &as...");
InsertGuiPair(pad_menu_file_close, "&Close");
InsertGuiPair(pad_menu_edit_undo, "&Undo \tCtrl+Z");
InsertGuiPair(pad_menu_edit_cut, "Cu&t \tCtrl+X");
InsertGuiPair(pad_menu_edit_copy, "&Copy \tCtrl+C");
InsertGuiPair(pad_menu_edit_paste, "&Paste \tCtrl+V");
InsertGuiPair(pad_menu_edit_del, "&Del \tDel");
InsertGuiPair(pad_menu_edit_select_all, "Select &all \tCtrl+A");
@ -561,8 +626,17 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(display_always_scientific,"Zawsze");
InsertGuiPair(display_not_always_scientific,"Jeล“li eksponent jest wiรชkszy niยฟ:");
InsertGuiPair(display_group_scientific, "Wyล“wietl wynik w postaci naukowej");
InsertGuiPair(display_decimal_point, "Przecinek dziesiรชtny");
InsertGuiPair(display_deg_rad_grad, "sin/cos asin/acos");
InsertGuiPair(display_deg_rad_grad, "Funkcje trygonometryczne");
InsertGuiPair(display_grouping, "Grupowanie");
InsertGuiPair(display_grouping_none, "brak");
InsertGuiPair(display_grouping_space, "spacja");
InsertGuiPair(display_input_decimal_point, "Przecinek w formule");
InsertGuiPair(display_input_decimal_point_item1, " . lub ,");
InsertGuiPair(display_output_decimal_point, "Przecinek w wyniku");
InsertGuiPair(display_param_sep, "Parametry oddzielane przez");
InsertGuiPair(display_param_sep_item2, " ; lub .");
InsertGuiPair(display_param_sep_item3, " ; lub ,");
InsertGuiPair(convert_type, "Typ");
InsertGuiPair(convert_input, "Wejล“cie");
InsertGuiPair(convert_output, "Wyjล“cie");
@ -586,11 +660,21 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(menu_view_lang_swedish, "&Szwedzki");
InsertGuiPair(menu_view_close_program, "&Zamknij");
InsertGuiPair(menu_edit_undo, "&Cofnij");
InsertGuiPair(menu_edit_paste_formula, "&Wklej");
InsertGuiPair(menu_edit_copy_result, "&Kopiuj wynik");
InsertGuiPair(menu_edit_cut, "Wy&tnij \tCtrl+X");
InsertGuiPair(menu_edit_copy, "&Kopiuj \tCtrl+C");
InsertGuiPair(menu_edit_paste, "&Wklej");
InsertGuiPair(menu_edit_del, "&Usuรฑ \tDel");
InsertGuiPair(menu_edit_paste_formula, "&Wklej formuยณรช \tCtrl+V");
InsertGuiPair(menu_edit_copy_result, "&Kopiuj wynik \tCtrl+R");
InsertGuiPair(menu_edit_copy_both, "Kopiuj &obydwa \tCtrl+B");
InsertGuiPair(menu_edit_select_all, "Zaznacz &wszystko \tEsc");
InsertGuiPair(menu_edit_bracket, "&Nawiasy \tCtrl+0");
InsertGuiPair(menu_help_help, "&Pomoc");
InsertGuiPair(menu_help_project_page, "&Strona projektu");
InsertGuiPair(menu_help_check_update, "Sprawdลธ &aktualizacjรช...");
InsertGuiPair(menu_help_about, "&O programie");
InsertGuiPair(menu_update_available, "&Jest nowa wersja programu");
InsertGuiPair(cant_init_calculations, "Nie udaยณo siรช zainicjalizowaรฆ moduยณu obsยณugi obliczeรฑ");
InsertGuiPair(message_box_error_caption,"TTCalc");
InsertGuiPair(cant_create_thread, "Nie udaยณo siรช utworzyรฆ drugiego wยนtku do obliczeรฑ");
@ -598,18 +682,19 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(cant_create_main_window, "Nie udaยณo siรช utworzyรฆ gยณรณwnego okna aplikacji");
InsertGuiPair(cant_init_common_controls,"Nie udaยณo siรช zainicjalizowaรฆ obsยณugi Common Controls (InitCommonControlsEx)");
InsertGuiPair(about_text,
"Kalkulator matematyczny TTCalc %d.%d.%d%s%s\r\n"
"Kalkulator matematyczny TTCalc %d.%d.%d%s%s\r\n\r\n"
"Autor: Tomasz Sowa\r\n"
"Kontakt: t.sowa@ttmath.org\r\n"
"Licencja: BSD (open source)\r\n"
"Strona projektu: http://ttcalc.sourceforge.net\r\n"
"Biblioteka duยฟych liczb: TTMath %d.%d.%d%s\r\n"
"Rodzaj duยฟych liczb: liczby binarne zmiennoprzecinkowe\r\n"
"Jรชzyk programowania: C++\r\n"
"Kompilator: %s\r\n"
"%s" // for upx
"\r\n"
"Ten program uยฟywa biblioteki duยฟych liczb TTMath"
" ktรณra jest dostรชpna na http://sourceforge.net/projects/ttmath\r\n"
" ktรณra jest dostรชpna na http://www.ttmath.org\r\n"
"\r\n"
#ifdef TTCALC_PORTABLE
"To jest wersja portable programu TTCalc. W tej wersji moยฟesz dokonywaรฆ "
@ -617,9 +702,14 @@ void Languages::InitGuiMessagesTab()
"oraz 32 bitowy wykยณadnik) to jest okoยณo +/-6.9e+646457021.\r\n"
"\r\n"
#endif
"Jeยฟeli masz jakieล“ pytania, rady, ciekawe pomysยณy dotyczยนce"
" tego programu lub chciaยณbyล“ doยณยนczyรฆ jako projektant/programista"
" poprostu skontaktuj siรช z autorem."
"Tยณumaczenie:\r\n"
"Angielski Author\r\n" // tab + two spaces
"Polski Author\r\n"
"Hiszpaรฑski Alejandro S. Valdezate <alesanval@gmail.com>\r\n" // only one space
"Duรฑski Rune Bisgaard Vammen <runebisgaard@gmail.com>\r\n"
"Chiรฑski Juis <zsyfly@gmail.com>\r\n"
"Rosyjski Vladimir Gladilovich <vdgladilovich@gmail.com>\r\n"
"Szwedzki Lars 'Bafvert' Gafvert <lars.gafvert@gmail.com>\r\n"
);
InsertGuiPair(about_text_portable_version, " wersja portable");
InsertGuiPair(about_text_exe_packer, "Paker exe: UPX 3.03\r\n");
@ -628,7 +718,37 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(unknown_error, "Nieznany kod bยณรชdu");
InsertGuiPair(cant_find_help, "Nie mogรช znaleยฟรฆ ยฟadnych plikรณw pomocy");
InsertGuiPair(cant_open_project_page, "Nie mogรช otworzyรฆ strony projektu");
InsertGuiPair(update_title, "Sprawdลธ dostรชpnoล“รฆ nowej wersji");
InsertGuiPair(update_button_next, "Dalej");
InsertGuiPair(update_button_finish, "Zakoรฑcz");
InsertGuiPair(update_button_cancel, "Anuluj");
InsertGuiPair(update_check_at_startup, "Zawsze sprawdzaj aktualizacje podczas uruchamiania");
InsertGuiPair(update_check_for_info, "Wciล“nij Dalej aby sprawdziรฆ dostรชpnoล“รฆ aktualizacji...");
InsertGuiPair(update_is_new_version, "Wersja %d.%d.%d jest dostรชpna, wciล“nij Dalej aby jยน pobraรฆ...");
InsertGuiPair(update_no_new_version, "Nie ma dostรชpnej nowej wersji programu.");
InsertGuiPair(update_download_from, "Pobieranie z...");
#ifndef TTCALC_PORTABLE
InsertGuiPair(update_downloaded_info1, "Nowy instalator zostaยณ ล“ciยนgniรชty.");
InsertGuiPair(update_downloaded_info2, "Wciล“nij Zakoรฑcz aby zamknยนรฆ program TTCalc i uruchomiรฆ pobrany instalator.");
#else
InsertGuiPair(update_downloaded_info1, "Nowa wersja programu TTCalc zostaยณa ล“ciยนgniรชta");
InsertGuiPair(update_downloaded_info2, "");
#endif
InsertGuiPair(update_download_error, "Wystยนpiยณy problemy ze ล“ciยนganiem, proszรช sprรณbowaรฆ ponownie pรณลธniej");
InsertGuiPair(pad_title, "Padzzzzz");
InsertGuiPair(pad_menu_file, "&Plik");
InsertGuiPair(pad_menu_edit, "&Edycja");
InsertGuiPair(pad_menu_file_new, "&Nowy"); // temporarily not used
InsertGuiPair(pad_menu_file_open, "&Otwรณrz...");
InsertGuiPair(pad_menu_file_saveas, "Zapisz &jako...");
InsertGuiPair(pad_menu_file_close, "&Zamknij");
InsertGuiPair(pad_menu_edit_undo, "&Cofnij \tCtrl+Z");
InsertGuiPair(pad_menu_edit_cut, "Wy&tnij \tCtrl+X");
InsertGuiPair(pad_menu_edit_copy, "&Kopiuj \tCtrl+C");
InsertGuiPair(pad_menu_edit_paste, "&Wklej \tCtrl+V");
InsertGuiPair(pad_menu_edit_del, "&Usuรฑ \tDel");
InsertGuiPair(pad_menu_edit_select_all, "Zaznacz wszystko \tCtrl+A");
@ -700,12 +820,20 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(display_always_scientific,"Siempre");
InsertGuiPair(display_not_always_scientific,"Cuando el exponente es mas grande que:");
InsertGuiPair(display_group_scientific, "Imprimir el resultado como valor cientifico");
InsertGuiPair(display_decimal_point, "Decimal point");
InsertGuiPair(display_deg_rad_grad, "sin/cos asin/acos");
InsertGuiPair(display_deg_rad_grad, "Trigonometric functions");
InsertGuiPair(convert_type, "Tipo");
InsertGuiPair(convert_input, "Entrada");
InsertGuiPair(convert_output, "Salida");
InsertGuiPair(convert_dynamic_output, "Auto prefijo");
InsertGuiPair(display_grouping, "Grouping");
InsertGuiPair(display_grouping_none, "None");
InsertGuiPair(display_grouping_space, "Space");
InsertGuiPair(display_input_decimal_point, "Input decimal point");
InsertGuiPair(display_input_decimal_point_item1, " . or ,");
InsertGuiPair(display_output_decimal_point, "Output decimal point");
InsertGuiPair(display_param_sep, "Parameters separated by");
InsertGuiPair(display_param_sep_item2, " ; or .");
InsertGuiPair(display_param_sep_item3, " ; or ,");
InsertGuiPair(menu_view, "&Ver");
InsertGuiPair(menu_edit, "&Editar");
@ -725,11 +853,21 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(menu_view_lang_swedish, "&Swedish");
InsertGuiPair(menu_view_close_program, "&Close");
InsertGuiPair(menu_edit_undo, "&Deshacer");
InsertGuiPair(menu_edit_cut, "Cu&t \tCtrl+X");
InsertGuiPair(menu_edit_copy, "&Copy \tCtrl+C");
InsertGuiPair(menu_edit_paste, "&Paste");
InsertGuiPair(menu_edit_del, "&Delete \tDel");
InsertGuiPair(menu_edit_paste_formula, "&Pegar");
InsertGuiPair(menu_edit_copy_result, "&Copiar resultado");
InsertGuiPair(menu_edit_copy_both, "Copy &both \tCtrl+B");
InsertGuiPair(menu_edit_select_all, "Select &all \tEsc");
InsertGuiPair(menu_edit_bracket, "Bracke&t \tCtrl+0");
InsertGuiPair(menu_help_help, "&Ayuda");
InsertGuiPair(menu_help_project_page, "&Pagina del proyecto");
InsertGuiPair(menu_help_check_update, "&Check update...");
InsertGuiPair(menu_help_about, "&Acerca de");
InsertGuiPair(menu_update_available, "&New version is available");
InsertGuiPair(cant_init_calculations, "No se puede inicializar el modulo de calculo");
InsertGuiPair(message_box_error_caption,"TTCalc");
InsertGuiPair(cant_create_thread, "No se puede crear la segunda hebra para calcular");
@ -737,18 +875,19 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(cant_create_main_window, "No se puede crear la ventana principal par ala aplicacion");
InsertGuiPair(cant_init_common_controls,"No se pueden inicializar los controles comunes (InitCommonControlsEx)");
InsertGuiPair(about_text,
"Calculadora matematica TTCalc %d.%d.%d%s%s\r\n"
"Calculadora matematica TTCalc %d.%d.%d%s%s\r\n\r\n"
"Autor: Tomasz Sowa\r\n"
"Contacto: t.sowa@ttmath.org\r\n"
"Licencia: BSD (open source)\r\n"
"Pagina del proyecto: http://ttcalc.sourceforge.net\r\n"
"Biblioteca Bignum: TTMath %d.%d.%d%s\r\n"
"Bignum type: binary floating point numbers\r\n"
"Lenguaje de programacion: C++\r\n"
"Compilador: %s\r\n"
"%s" // for upx
"\r\n"
"TTCalc usa la biblioteca TTMath bignum"
" la cual puede ser encontrada en http://sourceforge.net/projects/ttmath\r\n"
" la cual puede ser encontrada en http://www.ttmath.org\r\n"
"\r\n"
#ifdef TTCALC_PORTABLE
"Esta es la version portatil del programa TTCalc. En esta version "
@ -756,9 +895,14 @@ void Languages::InitGuiMessagesTab()
"mantisa y 32 bits para el exponente) que es aproximadamente +/-6.9e+646457021.\r\n"
"\r\n"
#endif
"Si tienes preguntas, consejos o ideas interesantes sobre"
" este programa o si quieres unirte a este proyecto como"
" desarrollador o programador, no dudes en contactar con el autor."
"Translations:\r\n"
"English Author\r\n" // one tabulator between language and the name of the author
"Polish Author\r\n"
"Spanish Alejandro S. Valdezate <alesanval@gmail.com>\r\n"
"Danish Rune Bisgaard Vammen <runebisgaard@gmail.com>\r\n"
"Chinese Juis <zsyfly@gmail.com>\r\n"
"Russian Vladimir Gladilovich <vdgladilovich@gmail.com>\r\n"
"Swedish Lars 'Bafvert' Gafvert <lars.gafvert@gmail.com>\r\n"
);
InsertGuiPair(about_text_portable_version, " version portatil");
InsertGuiPair(about_text_exe_packer, "EXE Packer: UPX 3.03\r\n");
@ -767,6 +911,37 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(unknown_error, "Ocurrio un error desconocido");
InsertGuiPair(cant_find_help, "No se encuentran los ficheros de ayuda");
InsertGuiPair(cant_open_project_page, "No se puede abrir la pagina dle proyecto");
InsertGuiPair(update_title, "Check for a new version");
InsertGuiPair(update_button_next, "Next");
InsertGuiPair(update_button_finish, "Finish");
InsertGuiPair(update_button_cancel, "Cancel");
InsertGuiPair(update_check_at_startup, "Always check for the update on startup");
InsertGuiPair(update_check_for_info, "Press Next to check for the update...");
InsertGuiPair(update_is_new_version, "Version %d.%d.%d is available, press Next to download...");
InsertGuiPair(update_no_new_version, "There is not a new version available.");
InsertGuiPair(update_download_from, "Downloading from...");
#ifndef TTCALC_PORTABLE
InsertGuiPair(update_downloaded_info1, "A new setup program has been downloaded.");
InsertGuiPair(update_downloaded_info2, "Press Finish to close TTCalc and run the installer.");
#else
InsertGuiPair(update_downloaded_info1, "A new version of TTCalc has been downloaded.");
InsertGuiPair(update_downloaded_info2, "");
#endif
InsertGuiPair(update_download_error, "There was a problem with downloading, please try again later.");
InsertGuiPair(pad_title, "Pad");
InsertGuiPair(pad_menu_file, "&File");
InsertGuiPair(pad_menu_edit, "&Edit");
InsertGuiPair(pad_menu_file_new, "&New"); // temporarily not used
InsertGuiPair(pad_menu_file_open, "&Open...");
InsertGuiPair(pad_menu_file_saveas, "Save &as...");
InsertGuiPair(pad_menu_file_close, "&Close");
InsertGuiPair(pad_menu_edit_undo, "&Undo \tCtrl+Z");
InsertGuiPair(pad_menu_edit_cut, "Cu&t \tCtrl+X");
InsertGuiPair(pad_menu_edit_copy, "&Copy \tCtrl+C");
InsertGuiPair(pad_menu_edit_paste, "&Paste \tCtrl+V");
InsertGuiPair(pad_menu_edit_del, "&Del \tDel");
InsertGuiPair(pad_menu_edit_select_all, "Select &all \tCtrl+A");
@ -836,12 +1011,20 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(display_always_scientific,"Altid");
InsertGuiPair(display_not_always_scientific,"Nรฅr exponenten er stรธrre end:");
InsertGuiPair(display_group_scientific, "Print resultatet som den videnskablige vรฆrdi");
InsertGuiPair(display_decimal_point, "Decimal punkt");
InsertGuiPair(display_deg_rad_grad, "sin/cos asin/acos");
InsertGuiPair(display_deg_rad_grad, "Trigonometric functions");
InsertGuiPair(convert_type, "Type");
InsertGuiPair(convert_input, "Input");
InsertGuiPair(convert_output, "Udput");
InsertGuiPair(convert_dynamic_output, "Auto prรฆfix");
InsertGuiPair(display_grouping, "Grouping");
InsertGuiPair(display_grouping_none, "None");
InsertGuiPair(display_grouping_space, "Space");
InsertGuiPair(display_input_decimal_point, "Input decimal point");
InsertGuiPair(display_input_decimal_point_item1, " . or ,");
InsertGuiPair(display_output_decimal_point, "Output decimal point");
InsertGuiPair(display_param_sep, "Parameters separated by");
InsertGuiPair(display_param_sep_item2, " ; or .");
InsertGuiPair(display_param_sep_item3, " ; or ,");
InsertGuiPair(menu_view, "&Vis");
InsertGuiPair(menu_edit, "&Rediger");
@ -861,11 +1044,21 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(menu_view_lang_swedish, "S&wedish");
InsertGuiPair(menu_view_close_program, "&Afslut");
InsertGuiPair(menu_edit_undo, "&Fortryd");
InsertGuiPair(menu_edit_cut, "Cu&t \tCtrl+X");
InsertGuiPair(menu_edit_copy, "&Copy \tCtrl+C");
InsertGuiPair(menu_edit_paste, "&Paste");
InsertGuiPair(menu_edit_del, "&Delete \tDel");
InsertGuiPair(menu_edit_paste_formula, "&Sรฆt ind");
InsertGuiPair(menu_edit_copy_result, "&Kopier resultatet");
InsertGuiPair(menu_edit_copy_both, "Copy &both \tCtrl+B");
InsertGuiPair(menu_edit_select_all, "Select &all \tEsc");
InsertGuiPair(menu_edit_bracket, "Bracke&t \tCtrl+0");
InsertGuiPair(menu_help_help, "&Hjรฆlp");
InsertGuiPair(menu_help_project_page, "&Projekt side");
InsertGuiPair(menu_help_check_update, "&Check update...");
InsertGuiPair(menu_help_about, "&Om");
InsertGuiPair(menu_update_available, "&New version is available");
InsertGuiPair(cant_init_calculations, "Moduelt for uregninger kunne ikke sรฆttes i gang");
InsertGuiPair(message_box_error_caption,"TTCalc");
InsertGuiPair(cant_create_thread, "Den anden trรฅd for udregning kunne ikke laves");
@ -873,18 +1066,19 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(cant_create_main_window, "Applikationens hovedvindue kunne ikke laves");
InsertGuiPair(cant_init_common_controls,"De fรฆlles kontrol indstillinger kunne ikke sรฆttes i gang (InitCommonControlsEx)");
InsertGuiPair(about_text,
"Matematisk lommeregner TTCalc %d.%d.%d%s%s\r\n"
"Matematisk lommeregner TTCalc %d.%d.%d%s%s\r\n\r\n"
"Forfatter: Tomasz Sowa\r\n"
"Kontakt: t.sowa@ttmath.org\r\n"
"Licens: BSD (open source)\r\n"
"Projekt side: http://ttcalc.sourceforge.net\r\n"
"Bignum biblotek: TTMath %d.%d.%d%s\r\n"
"Bignum type: binary floating point numbers\r\n"
"Programmerings sprog: C++\r\n"
"Kompilator: %s\r\n"
"%s" // for upx
"\r\n"
"TTCalc bruger TTMath bignum bibloteket"
" som kan findes ved http://sourceforge.net/projects/ttmath\r\n"
" som kan findes ved http://www.ttmath.org\r\n"
"\r\n"
#ifdef TTCALC_PORTABLE
"Dette er den transportable version af programmet TTCalc. I denne version "
@ -892,9 +1086,14 @@ void Languages::InitGuiMessagesTab()
"mantissen og 32 bits for exponenten) det er omkring +/-6.9e+646457021.\r\n"
"\r\n"
#endif
"Hvis du har spรธrgsmรฅl, gode rรฅd eller interessante idรฉr vedrรธrende"
" dette program eller hvis du vil tilslutte dig dette projekt som"
" en udvikler eller en programmรธr er du velkommen til at kontakte forfatteren."
"Translations:\r\n"
"English Author\r\n" // one tabulator between language and the name of the author
"Polish Author\r\n"
"Spanish Alejandro S. Valdezate <alesanval@gmail.com>\r\n"
"Danish Rune Bisgaard Vammen <runebisgaard@gmail.com>\r\n"
"Chinese Juis <zsyfly@gmail.com>\r\n"
"Russian Vladimir Gladilovich <vdgladilovich@gmail.com>\r\n"
"Swedish Lars 'Bafvert' Gafvert <lars.gafvert@gmail.com>\r\n"
);
InsertGuiPair(about_text_portable_version, " transportabel version");
InsertGuiPair(about_text_exe_packer, "EXE Packer: UPX 3.03\r\n");
@ -903,7 +1102,37 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(unknown_error, "Der er sket en ukendt fejl");
InsertGuiPair(cant_find_help, "Der kunne ikke findes nogen hjรฆlp filer");
InsertGuiPair(cant_open_project_page, "Projekt siden kunne ikke รฅbnes");
InsertGuiPair(update_title, "Check for a new version");
InsertGuiPair(update_button_next, "Next");
InsertGuiPair(update_button_finish, "Finish");
InsertGuiPair(update_button_cancel, "Cancel");
InsertGuiPair(update_check_at_startup, "Always check for the update on startup");
InsertGuiPair(update_check_for_info, "Press Next to check for the update...");
InsertGuiPair(update_is_new_version, "Version %d.%d.%d is available, press Next to download...");
InsertGuiPair(update_no_new_version, "There is not a new version available.");
InsertGuiPair(update_download_from, "Downloading from...");
#ifndef TTCALC_PORTABLE
InsertGuiPair(update_downloaded_info1, "A new setup program has been downloaded.");
InsertGuiPair(update_downloaded_info2, "Press Finish to close TTCalc and run the installer.");
#else
InsertGuiPair(update_downloaded_info1, "A new version of TTCalc has been downloaded.");
InsertGuiPair(update_downloaded_info2, "");
#endif
InsertGuiPair(update_download_error, "There was a problem with downloading, please try again later.");
InsertGuiPair(pad_title, "Pad");
InsertGuiPair(pad_menu_file, "&File");
InsertGuiPair(pad_menu_edit, "&Edit");
InsertGuiPair(pad_menu_file_new, "&New"); // temporarily not used
InsertGuiPair(pad_menu_file_open, "&Open...");
InsertGuiPair(pad_menu_file_saveas, "Save &as...");
InsertGuiPair(pad_menu_file_close, "&Close");
InsertGuiPair(pad_menu_edit_undo, "&Undo \tCtrl+Z");
InsertGuiPair(pad_menu_edit_cut, "Cu&t \tCtrl+X");
InsertGuiPair(pad_menu_edit_copy, "&Copy \tCtrl+C");
InsertGuiPair(pad_menu_edit_paste, "&Paste \tCtrl+V");
InsertGuiPair(pad_menu_edit_del, "&Del \tDel");
InsertGuiPair(pad_menu_edit_select_all, "Select &all \tCtrl+A");
/*
@ -971,12 +1200,20 @@ void Languages::InitGuiMessagesTab()
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(display_deg_rad_grad, "Trigonometric functions");
InsertGuiPair(convert_type, "ร€ร รร");
InsertGuiPair(convert_input, "รŠรครˆรซ");
InsertGuiPair(convert_output, "รŠรคยณรถ");
InsertGuiPair(convert_dynamic_output, "ร—ร”ยถยฏ");
InsertGuiPair(display_grouping, "Grouping");
InsertGuiPair(display_grouping_none, "None");
InsertGuiPair(display_grouping_space, "Space");
InsertGuiPair(display_input_decimal_point, "Input decimal point");
InsertGuiPair(display_input_decimal_point_item1, " . or ,");
InsertGuiPair(display_output_decimal_point, "Output decimal point");
InsertGuiPair(display_param_sep, "Parameters separated by");
InsertGuiPair(display_param_sep_item2, " ; or .");
InsertGuiPair(display_param_sep_item3, " ; or ,");
InsertGuiPair(menu_view, "&ยฒรฉยฟยด");
InsertGuiPair(menu_edit, "&ยฑร ยผยญ");
@ -996,11 +1233,21 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(menu_view_lang_swedish, "&Swedish");
InsertGuiPair(menu_view_close_program, "&ยนร˜ยฑร•");
InsertGuiPair(menu_edit_undo, "&รˆยกรรป");
InsertGuiPair(menu_edit_cut, "Cu&t \tCtrl+X");
InsertGuiPair(menu_edit_copy, "&Copy \tCtrl+C");
InsertGuiPair(menu_edit_paste, "&Paste");
InsertGuiPair(menu_edit_del, "&Delete \tDel");
InsertGuiPair(menu_edit_paste_formula, "&ร•ยณรŒรน");
InsertGuiPair(menu_edit_copy_result, "&ยธยดร–ร†ยฝรกยนรป");
InsertGuiPair(menu_edit_copy_both, "Copy &both \tCtrl+B");
InsertGuiPair(menu_edit_select_all, "Select &all \tEsc");
InsertGuiPair(menu_edit_bracket, "Bracke&t \tCtrl+0");
InsertGuiPair(menu_help_help, "&ยฐรฏร–รบ");
InsertGuiPair(menu_help_project_page, "&รˆรญยผรพร–รทร’ยณ");
InsertGuiPair(menu_help_check_update, "&Check update...");
InsertGuiPair(menu_help_about, "&ยนร˜ร“รš");
InsertGuiPair(menu_update_available, "&New version is available");
InsertGuiPair(cant_init_calculations, "ยฒยปร„รœยณรตรŠยผยปยฏยผร†ร‹รฃร†รทร„ยฃรร");
InsertGuiPair(message_box_error_caption,"TTCalc");
InsertGuiPair(cant_create_thread, "ยฒยปร„รœยดยดยฝยจรยฝยธรถรรŸยณรŒร€ยดร”ร‹ร‹รฃ");
@ -1008,18 +1255,19 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(cant_create_main_window, "ยฒยปร„รœยดยดยฝยจร“ยฆร“รƒยณรŒรรฒร–รทยดยฐยฟรš");
InsertGuiPair(cant_init_common_controls,"ยฒยปร„รœยณรตรŠยผยปยฏรยจร“รƒยฟร˜ยผรพ(InitCommonControlsEx)");
InsertGuiPair(about_text,
"Mathematical calculator TTCalc %d.%d.%d%s%s\r\n"
"Mathematical calculator TTCalc %d.%d.%d%s%s\r\n\r\n"
"ยฟยชยทยขรˆร‹: Tomasz Sowa\r\n"
"รยชรยต: t.sowa@ttmath.org\r\n"
"รรญยฟร‰: BSD (ยฟยชร”ยดรรฎร„ยฟ)\r\n"
"ร–รทร’ยณ: http://ttcalc.sourceforge.net\r\n"
"Bignum library: TTMath %d.%d.%d%s\r\n"
"Bignum type: binary floating point numbers\r\n"
"Programming language: C++\r\n"
"Compiler: %s\r\n"
"%s" // for upx
"\r\n"
"TTCalc uses the TTMath bignum library"
" which can be found at http://sourceforge.net/projects/ttmath\r\n"
" which can be found at http://www.ttmath.org\r\n"
"\r\n"
#ifdef TTCALC_PORTABLE
"This is the portable version of the program TTCalc. In this version "
@ -1027,7 +1275,14 @@ void Languages::InitGuiMessagesTab()
"mantissa and 32 bits for the exponent) it's about +/-6.9e+646457021.\r\n"
"\r\n"
#endif
"รˆรงยนรปร„รฃร“รรˆรŽยบรŽยดร‹รˆรญยผรพยตร„รŽรŠรŒรขยกยขยฝยจร’รฉยบรร“รรˆยคยตร„รรซยทยจยฃยฌยปรฒร•รŸร„รฃรรซยฐรฏร–รบร’ยปร†รฐยผร“รˆรซยฟยชยทยขรˆรญยผรพยตร„ยปยฐยฃยฌรŽร’ยฝยซร‹รฆรŠยฑรˆรˆร‡รฉยตร„ยปยถร“ยญร„รฃรƒร‡ยฃยก"
"Translations:\r\n"
"English Author\r\n" // one tabulator between language and the name of the author
"Polish Author\r\n"
"Spanish Alejandro S. Valdezate <alesanval@gmail.com>\r\n"
"Danish Rune Bisgaard Vammen <runebisgaard@gmail.com>\r\n"
"Chinese Juis <zsyfly@gmail.com>\r\n"
"Russian Vladimir Gladilovich <vdgladilovich@gmail.com>\r\n"
"Swedish Lars 'Bafvert' Gafvert <lars.gafvert@gmail.com>\r\n"
);
InsertGuiPair(about_text_portable_version, " portable version");
InsertGuiPair(about_text_exe_packer, "EXE Packer: UPX 3.03\r\n");
@ -1036,6 +1291,37 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(unknown_error, "ยทยขร‰รบรŽยดร–ยชยดรญรŽรณ");
InsertGuiPair(cant_find_help, "รƒยปร“รร•ร’ยตยฝยฐรฏร–รบรŽร„ยผรพ");
InsertGuiPair(cant_open_project_page, "ยฒยปร„รœยดรฒยฟยชรˆรญยผรพร–รทร’ยณ");
InsertGuiPair(update_title, "Check for a new version");
InsertGuiPair(update_button_next, "Next");
InsertGuiPair(update_button_finish, "Finish");
InsertGuiPair(update_button_cancel, "Cancel");
InsertGuiPair(update_check_at_startup, "Always check for the update on startup");
InsertGuiPair(update_check_for_info, "Press Next to check for the update...");
InsertGuiPair(update_is_new_version, "Version %d.%d.%d is available, press Next to download...");
InsertGuiPair(update_no_new_version, "There is not a new version available.");
InsertGuiPair(update_download_from, "Downloading from...");
#ifndef TTCALC_PORTABLE
InsertGuiPair(update_downloaded_info1, "A new setup program has been downloaded.");
InsertGuiPair(update_downloaded_info2, "Press Finish to close TTCalc and run the installer.");
#else
InsertGuiPair(update_downloaded_info1, "A new version of TTCalc has been downloaded.");
InsertGuiPair(update_downloaded_info2, "");
#endif
InsertGuiPair(update_download_error, "There was a problem with downloading, please try again later.");
InsertGuiPair(pad_title, "Pad");
InsertGuiPair(pad_menu_file, "&File");
InsertGuiPair(pad_menu_edit, "&Edit");
InsertGuiPair(pad_menu_file_new, "&New"); // temporarily not used
InsertGuiPair(pad_menu_file_open, "&Open...");
InsertGuiPair(pad_menu_file_saveas, "Save &as...");
InsertGuiPair(pad_menu_file_close, "&Close");
InsertGuiPair(pad_menu_edit_undo, "&Undo \tCtrl+Z");
InsertGuiPair(pad_menu_edit_cut, "Cu&t \tCtrl+X");
InsertGuiPair(pad_menu_edit_copy, "&Copy \tCtrl+C");
InsertGuiPair(pad_menu_edit_paste, "&Paste \tCtrl+V");
InsertGuiPair(pad_menu_edit_del, "&Del \tDel");
InsertGuiPair(pad_menu_edit_select_all, "Select &all \tCtrl+A");
@ -1104,12 +1390,20 @@ void Languages::InitGuiMessagesTab()
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(display_deg_rad_grad, "Trigonometric functions");
InsertGuiPair(convert_type, "ร’รจรฏ");
InsertGuiPair(convert_input, "ร‚รขรฎรค");
InsertGuiPair(convert_output, "ร‚รปรขรฎรค");
InsertGuiPair(convert_dynamic_output, "ร€รขรฒรฎรฏรฐรฅรดรจรชรฑ");
InsertGuiPair(display_grouping, "Grouping");
InsertGuiPair(display_grouping_none, "None");
InsertGuiPair(display_grouping_space, "Space");
InsertGuiPair(display_input_decimal_point, "Input decimal point");
InsertGuiPair(display_input_decimal_point_item1, " . or ,");
InsertGuiPair(display_output_decimal_point, "Output decimal point");
InsertGuiPair(display_param_sep, "Parameters separated by");
InsertGuiPair(display_param_sep_item2, " ; or .");
InsertGuiPair(display_param_sep_item3, " ; or ,");
InsertGuiPair(menu_view, "&ร‚รจรค");
InsertGuiPair(menu_edit, "&รรฐร รขรชร ");
@ -1129,11 +1423,21 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(menu_view_lang_swedish, "&Swedish");
InsertGuiPair(menu_view_close_program, "&ร‡ร รชรฐรปรฒรผ");
InsertGuiPair(menu_edit_undo, "&รŽรฒรฌรฅรญรจรฒรผ รครฅรฉรฑรฒรขรจรฅ");
InsertGuiPair(menu_edit_cut, "Cu&t \tCtrl+X");
InsertGuiPair(menu_edit_copy, "&Copy \tCtrl+C");
InsertGuiPair(menu_edit_paste, "&Paste");
InsertGuiPair(menu_edit_del, "&Delete \tDel");
InsertGuiPair(menu_edit_paste_formula, "&ร‚รฑรฒร รขรจรฒรผ");
InsertGuiPair(menu_edit_copy_result, "&รŠรฎรฏรจรฐรฎรขร รฒรผ รฐรฅรงรณรซรผรฒร รฒ");
InsertGuiPair(menu_edit_copy_both, "Copy &both \tCtrl+B");
InsertGuiPair(menu_edit_select_all, "Select &all \tEsc");
InsertGuiPair(menu_edit_bracket, "Bracke&t \tCtrl+0");
InsertGuiPair(menu_help_help, "&รรฎรฌรฎรนรผ");
InsertGuiPair(menu_help_project_page, "&ร‘ร รฉรฒ รฏรฐรฎรฅรชรฒร ");
InsertGuiPair(menu_help_check_update, "&Check update...");
InsertGuiPair(menu_help_about, "&รŽ รฏรฐรฎรฃรฐร รฌรฌรฅ");
InsertGuiPair(menu_update_available, "&New version is available");
InsertGuiPair(cant_init_calculations, "รรฅ รฌรฎรฃรณ รจรญรจรถรจร รซรจรงรจรฐรฎรขร รฒรผ รฌรฎรครณรซรผ รครซรฟ รฐร รฑรทรฅรฒรฎรข");
InsertGuiPair(message_box_error_caption,"TTCalc");
InsertGuiPair(cant_create_thread, "รรฅ รฌรฎรฃรณ รฑรฎรงรคร รฒรผ รขรฒรฎรฐรฎรฉ รฏรฎรฒรฎรช รครซรฟ รฐร รฑรทรฅรฒรฎรข");
@ -1141,18 +1445,19 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(cant_create_main_window, "รรฅ รฌรฎรฃรณ รฎรฒรชรฐรปรฒรผ รฃรซร รขรญรฎรฅ รฎรชรญรฎ รฏรฐรฎรฃรฐร รฌรฌรป");
InsertGuiPair(cant_init_common_controls,"รรฅ รฌรฎรฃรณ รจรญรจรถรจร รซรจรงรจรฐรฎรขร รฒรผ รณรฏรฐร รขรซรฅรญรจรฅ (InitCommonControlsEx)");
InsertGuiPair(about_text,
"รŒร รฒรฅรฌร รฒรจรทรฅรฑรชรจรฉ รชร รซรผรชรณรซรฟรฒรฎรฐ TTCalc %d.%d.%d%s%s\r\n"
"รŒร รฒรฅรฌร รฒรจรทรฅรฑรชรจรฉ รชร รซรผรชรณรซรฟรฒรฎรฐ TTCalc %d.%d.%d%s%s\r\n\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"
"Bignum type: binary floating point numbers\r\n"
"รŸรงรปรช รฏรฐรฎรฃรฐร รฌรฌรจรฐรฎรขร รญรจรฟ: C++\r\n"
"รŠรฎรฌรฏรจรซรฟรฒรฎรฐ: %s\r\n"
"%s" // for upx
"\r\n"
"TTCalc รจรฑรฏรฎรซรผรงรณรฅรฒ รกรจรกรซรจรฎรฒรฅรชรณ รฑรขรฅรฐรตรกรฎรซรผรธรจรต รทรจรฑรฅรซ TTMath,"
" รชรฎรฒรฎรฐร รฟ รญร รตรฎรครจรฒรฑรฟ รงรครฅรฑรผ: http://sourceforge.net/projects/ttmath\r\n"
" รชรฎรฒรฎรฐร รฟ รญร รตรฎรครจรฒรฑรฟ รงรครฅรฑรผ: http://www.ttmath.org\r\n"
"\r\n"
#ifdef TTCALC_PORTABLE
"รรฒรฎ รฏรฅรฐรฅรญรฎรฑรญร รฟ รขรฅรฐรฑรจรฟ รฏรฐรฎรฃรฐร รฌรฌรป. ร‚ รฝรฒรฎรฉ รขรฅรฐรฑรจรจ รฌรฎรฆรญรฎ รฑรทรจรฒร รฒรผ "
@ -1160,9 +1465,14 @@ void Languages::InitGuiMessagesTab()
" 32 รกรจรฒร  รญร  รฏรฎรชร รงร รฒรฅรซรผ รฑรฒรฅรฏรฅรญรจ), รฒรฎ รฅรฑรฒรผ +/-6.9e+646457021.\r\n"
"\r\n"
#endif
"ร…รฑรซรจ รณ ร‚ร รฑ รฅรฑรฒรผ รชร รชรจรฅ-รซรจรกรฎ รขรฎรฏรฐรฎรฑรป, รฏรฎรฆรฅรซร รญรจรฟ รจรซรจ รจรญรฒรฅรฐรฅรฑรญรปรฅ รจรครฅรจ รครซรฟ"
" รฝรฒรฎรฉ รฏรฐรฎรฃรฐร รฌรฌรป, รจรซรจ ร‚รป รตรฎรฒรจรฒรฅ รฏรฐรจรฑรฎรฅรครจรญรจรฒรผรฑรฟ รช รฏรฐรฎรฅรชรฒรณ รข รชร รทรฅรฑรฒรขรฅ"
" รฐร รงรฐร รกรฎรฒรทรจรชร  รจรซรจ รฏรฐรฎรฃรฐร รฌรฌรจรฑรฒa, รญรฅ รฑรฒรฅรฑรญรฟรฉรฒรฅรฑรผ รญร รฏรจรฑร รฒรผ ร รขรฒรฎรฐรณ."
"Translations:\r\n"
"English Author\r\n" // one tabulator between language and the name of the author
"Polish Author\r\n"
"Spanish Alejandro S. Valdezate <alesanval@gmail.com>\r\n"
"Danish Rune Bisgaard Vammen <runebisgaard@gmail.com>\r\n"
"Chinese Juis <zsyfly@gmail.com>\r\n"
"Russian Vladimir Gladilovich <vdgladilovich@gmail.com>\r\n"
"Swedish Lars 'Bafvert' Gafvert <lars.gafvert@gmail.com>\r\n"
);
InsertGuiPair(about_text_portable_version, " รฏรฅรฐรฅรญรฎรฑรญร รฟ รขรฅรฐรฑรจรฟ");
InsertGuiPair(about_text_exe_packer, "รณรฏร รชรฎรขรนรจรช EXE: UPX 3.03\r\n");
@ -1171,6 +1481,37 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(unknown_error, "รรฅรจรงรขรฅรฑรฒรญร รฟ รฎรธรจรกรชร ");
InsertGuiPair(cant_find_help, "รรฅ รณรคร รฅรฒรฑรฟ รญร รฉรฒรจ รดร รฉรซรป รฏรฎรฌรฎรนรจ");
InsertGuiPair(cant_open_project_page, "รรฅ รณรคร รฅรฒรฑรฟ รฎรฒรชรฐรปรฒรผ รฑร รฉรฒ รฏรฐรฎรฅรชรฒร ");
InsertGuiPair(update_title, "Check for a new version");
InsertGuiPair(update_button_next, "Next");
InsertGuiPair(update_button_finish, "Finish");
InsertGuiPair(update_button_cancel, "Cancel");
InsertGuiPair(update_check_at_startup, "Always check for the update on startup");
InsertGuiPair(update_check_for_info, "Press Next to check for the update...");
InsertGuiPair(update_is_new_version, "Version %d.%d.%d is available, press Next to download...");
InsertGuiPair(update_no_new_version, "There is not a new version available.");
InsertGuiPair(update_download_from, "Downloading from...");
#ifndef TTCALC_PORTABLE
InsertGuiPair(update_downloaded_info1, "A new setup program has been downloaded.");
InsertGuiPair(update_downloaded_info2, "Press Finish to close TTCalc and run the installer.");
#else
InsertGuiPair(update_downloaded_info1, "A new version of TTCalc has been downloaded.");
InsertGuiPair(update_downloaded_info2, "");
#endif
InsertGuiPair(update_download_error, "There was a problem with downloading, please try again later.");
InsertGuiPair(pad_title, "Pad");
InsertGuiPair(pad_menu_file, "&File");
InsertGuiPair(pad_menu_edit, "&Edit");
InsertGuiPair(pad_menu_file_new, "&New"); // temporarily not used
InsertGuiPair(pad_menu_file_open, "&Open...");
InsertGuiPair(pad_menu_file_saveas, "Save &as...");
InsertGuiPair(pad_menu_file_close, "&Close");
InsertGuiPair(pad_menu_edit_undo, "&Undo \tCtrl+Z");
InsertGuiPair(pad_menu_edit_cut, "Cu&t \tCtrl+X");
InsertGuiPair(pad_menu_edit_copy, "&Copy \tCtrl+C");
InsertGuiPair(pad_menu_edit_paste, "&Paste \tCtrl+V");
InsertGuiPair(pad_menu_edit_del, "&Del \tDel");
InsertGuiPair(pad_menu_edit_select_all, "Select &all \tCtrl+A");
@ -1240,12 +1581,20 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(display_always_scientific,"Alltid");
InsertGuiPair(display_not_always_scientific,"Nรคr exponenten รคr stรถrre รคn:");
InsertGuiPair(display_group_scientific, "Visa resultatet som vetenskapligt vรคrde");
InsertGuiPair(display_decimal_point, "Decimalpunkt");
InsertGuiPair(display_deg_rad_grad, "sin/cos asin/acos");
InsertGuiPair(display_deg_rad_grad, "Trigonometric functions");
InsertGuiPair(convert_type, "Type");
InsertGuiPair(convert_input, "Input");
InsertGuiPair(convert_output, "Output");
InsertGuiPair(convert_dynamic_output, "Auto prefix");
InsertGuiPair(display_grouping, "Grouping");
InsertGuiPair(display_grouping_none, "None");
InsertGuiPair(display_grouping_space, "Space");
InsertGuiPair(display_input_decimal_point, "Input decimal point");
InsertGuiPair(display_input_decimal_point_item1, " . or ,");
InsertGuiPair(display_output_decimal_point, "Output decimal point");
InsertGuiPair(display_param_sep, "Parameters separated by");
InsertGuiPair(display_param_sep_item2, " ; or .");
InsertGuiPair(display_param_sep_item3, " ; or ,");
InsertGuiPair(menu_view, "&Visa");
InsertGuiPair(menu_edit, "&Redigera");
@ -1265,11 +1614,21 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(menu_view_lang_swedish, "S&venska");
InsertGuiPair(menu_view_close_program, "&Avsluta");
InsertGuiPair(menu_edit_undo, "&ร…ngra");
InsertGuiPair(menu_edit_cut, "Cu&t \tCtrl+X");
InsertGuiPair(menu_edit_copy, "&Copy \tCtrl+C");
InsertGuiPair(menu_edit_paste, "&Paste");
InsertGuiPair(menu_edit_del, "&Delete \tDel");
InsertGuiPair(menu_edit_paste_formula, "&Klistra in");
InsertGuiPair(menu_edit_copy_result, "&Kopiera result");
InsertGuiPair(menu_edit_copy_both, "Copy &both \tCtrl+B");
InsertGuiPair(menu_edit_select_all, "Select &all \tEsc");
InsertGuiPair(menu_edit_bracket, "Bracke&t \tCtrl+0");
InsertGuiPair(menu_help_help, "&Hjรคlp");
InsertGuiPair(menu_help_project_page, "&Projektsida");
InsertGuiPair(menu_help_check_update, "&Check update...");
InsertGuiPair(menu_help_about, "&Om");
InsertGuiPair(menu_update_available, "&New version is available");
InsertGuiPair(cant_init_calculations, "Berรคkningen kunde inte initieras!");
InsertGuiPair(message_box_error_caption,"TTCalc");
InsertGuiPair(cant_create_thread, "Den andra trรฅden fรถr utrรคkning kunde inte skapas");
@ -1277,18 +1636,19 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(cant_create_main_window, "Applikationens huvudfรถnster kunde inte skapas");
InsertGuiPair(cant_init_common_controls,"Instรคllningarna kunde inte initieras (InitCommonControlsEx)");
InsertGuiPair(about_text,
"Matematisk kalkylator TTCalc %d.%d.%d%s%s\r\n"
"Matematisk kalkylator TTCalc %d.%d.%d%s%s\r\n\r\n"
"Upphovsman: Tomasz Sowa\r\n"
"Kontakt: t.sowa@ttmath.org\r\n"
"Licens: BSD (open source)\r\n"
"Projektsida: http://ttcalc.sourceforge.net\r\n"
"Bignumbiblotek: TTMath %d.%d.%d%s\r\n"
"Bignum type: binary floating point numbers\r\n"
"Programmeringssprรฅk: C++\r\n"
"Kompilator: %s\r\n"
"%s" // for upx
"\r\n"
"TTCalc anvรคnder sig av TTMath bignum bibloteket"
" som kan hittas hรคr: http://sourceforge.net/projects/ttmath\r\n"
" som kan hittas hรคr: http://www.ttmath.org\r\n"
"\r\n"
#ifdef TTCALC_PORTABLE
"Detta รคr den portabla versionen av TTCalc. I denna version "
@ -1296,9 +1656,14 @@ void Languages::InitGuiMessagesTab()
"mantissan och 32 bitar fรถr exponenten) det รคr omkring +/-6.9e+646457021.\r\n"
"\r\n"
#endif
"Har du frรฅgor, goda rรฅd eller interessanta idรฉer betrรคffande"
" detta program eller vill du rentav bidra med din kompetens som"
" utvecklare eller programmerare รคr du vรคlkommen att kontakta upphovsmannen."
"Translations:\r\n"
"English Author\r\n" // one tabulator between language and the name of the author
"Polish Author\r\n"
"Spanish Alejandro S. Valdezate <alesanval@gmail.com>\r\n"
"Danish Rune Bisgaard Vammen <runebisgaard@gmail.com>\r\n"
"Chinese Juis <zsyfly@gmail.com>\r\n"
"Russian Vladimir Gladilovich <vdgladilovich@gmail.com>\r\n"
"Swedish Lars 'Bafvert' Gafvert <lars.gafvert@gmail.com>\r\n"
);
InsertGuiPair(about_text_portable_version, " transportabel version");
InsertGuiPair(about_text_exe_packer, "EXE Packer: UPX 3.03\r\n");
@ -1307,6 +1672,37 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(unknown_error, "Det har intrรคffat ett okรคnt fel");
InsertGuiPair(cant_find_help, "Kunde inte hitta nรฅgra hjรคlpfiler");
InsertGuiPair(cant_open_project_page, "Projektsidan kunde inte รถppnas");
InsertGuiPair(update_title, "Check for a new version");
InsertGuiPair(update_button_next, "Next");
InsertGuiPair(update_button_finish, "Finish");
InsertGuiPair(update_button_cancel, "Cancel");
InsertGuiPair(update_check_at_startup, "Always check for the update on startup");
InsertGuiPair(update_check_for_info, "Press Next to check for the update...");
InsertGuiPair(update_is_new_version, "Version %d.%d.%d is available, press Next to download...");
InsertGuiPair(update_no_new_version, "There is not a new version available.");
InsertGuiPair(update_download_from, "Downloading from...");
#ifndef TTCALC_PORTABLE
InsertGuiPair(update_downloaded_info1, "A new setup program has been downloaded.");
InsertGuiPair(update_downloaded_info2, "Press Finish to close TTCalc and run the installer.");
#else
InsertGuiPair(update_downloaded_info1, "A new version of TTCalc has been downloaded.");
InsertGuiPair(update_downloaded_info2, "");
#endif
InsertGuiPair(update_download_error, "There was a problem with downloading, please try again later.");
InsertGuiPair(pad_title, "Pad");
InsertGuiPair(pad_menu_file, "&File");
InsertGuiPair(pad_menu_edit, "&Edit");
InsertGuiPair(pad_menu_file_new, "&New"); // temporarily not used
InsertGuiPair(pad_menu_file_open, "&Open...");
InsertGuiPair(pad_menu_file_saveas, "Save &as...");
InsertGuiPair(pad_menu_file_close, "&Close");
InsertGuiPair(pad_menu_edit_undo, "&Undo \tCtrl+Z");
InsertGuiPair(pad_menu_edit_cut, "Cu&t \tCtrl+X");
InsertGuiPair(pad_menu_edit_copy, "&Copy \tCtrl+C");
InsertGuiPair(pad_menu_edit_paste, "&Paste \tCtrl+V");
InsertGuiPair(pad_menu_edit_del, "&Del \tDel");
InsertGuiPair(pad_menu_edit_select_all, "Select &all \tCtrl+A");
}

44
src/languages.h

@ -101,8 +101,16 @@ public:
display_rounding,
display_always_scientific,
display_not_always_scientific,
display_decimal_point,
display_deg_rad_grad,
display_grouping,
display_grouping_none,
display_grouping_space,
display_input_decimal_point,
display_input_decimal_point_item1,
display_output_decimal_point,
display_param_sep,
display_param_sep_item2,
display_param_sep_item3,
convert_type,
convert_input,
convert_output,
@ -125,11 +133,20 @@ public:
menu_view_lang_swedish,
menu_view_close_program,
menu_edit_undo,
menu_edit_cut,
menu_edit_copy,
menu_edit_paste,
menu_edit_del,
menu_edit_paste_formula,
menu_edit_copy_result,
menu_edit_copy_both,
menu_edit_select_all,
menu_edit_bracket,
menu_help_help,
menu_help_project_page,
menu_help_check_update,
menu_help_about,
menu_update_available,
cant_init_calculations,
message_box_error_caption,
cant_create_thread,
@ -138,12 +155,37 @@ public:
cant_init_common_controls,
cant_find_help,
cant_open_project_page,
update_title,
update_button_next,
update_button_finish,
update_button_cancel,
update_check_at_startup,
update_check_for_info,
update_is_new_version,
update_no_new_version,
update_download_from,
update_downloaded_info1,
update_downloaded_info2,
update_download_error,
about_text,
about_text_portable_version,
about_text_exe_packer,
about_box_title,
about_box_button_close,
display_group_scientific,
pad_title,
pad_menu_file,
pad_menu_edit,
pad_menu_file_new,
pad_menu_file_open,
pad_menu_file_saveas,
pad_menu_file_close,
pad_menu_edit_undo,
pad_menu_edit_cut,
pad_menu_edit_copy,
pad_menu_edit_paste,
pad_menu_edit_del,
pad_menu_edit_select_all,
unknown_error
};

17
src/mainwindow.cpp

@ -39,6 +39,7 @@
#include "compileconfig.h"
#include "winmain.h"
#include "update.h"
#include "pad.h"
@ -417,10 +418,18 @@ HMENU menu = GetMenu(hWnd);
SetMenuLanguageItem(menu, IDM_LANGUAGE_SWEDISH, Languages::menu_view_lang_swedish);
SetMenuLanguageItem(menu, IDM_CLOSE_PROGRAM, Languages::menu_view_close_program);
SetMenuLanguageItem(menu, IDM_EDIT_UNDO, Languages::menu_edit_undo);
SetMenuLanguageItem(menu, IDM_EDIT_CUT, Languages::menu_edit_cut);
SetMenuLanguageItem(menu, IDM_EDIT_COPY, Languages::menu_edit_copy);
SetMenuLanguageItem(menu, IDM_EDIT_PASTE, Languages::menu_edit_paste);
SetMenuLanguageItem(menu, IDM_EDIT_DEL, Languages::menu_edit_del);
SetMenuLanguageItem(menu, IDM_EDIT_PASTE_FORMULA, Languages::menu_edit_paste_formula);
SetMenuLanguageItem(menu, IDM_EDIT_COPY_RESULT, Languages::menu_edit_copy_result);
SetMenuLanguageItem(menu, IDM_EDIT_COPY_BOTH, Languages::menu_edit_copy_both);
SetMenuLanguageItem(menu, IDM_EDIT_SELECT_ALL, Languages::menu_edit_select_all);
SetMenuLanguageItem(menu, IDM_EDIT_BRACKET, Languages::menu_edit_bracket);
SetMenuLanguageItem(menu, IDM_HELP_HELP, Languages::menu_help_help);
SetMenuLanguageItem(menu, IDM_HELP_PROJECT_PAGE, Languages::menu_help_project_page);
SetMenuLanguageItem(menu, IDM_HELP_CHECK_UPDATE, Languages::menu_help_check_update);
SetMenuLanguageItem(menu, IDM_HELP_ABOUT, Languages::menu_help_about);
DrawMenuBar(hWnd);
@ -822,7 +831,6 @@ void WmInitMenuPopUpEdit(HWND hWnd, HMENU menu)
bool edit = false; // an edit control has the focus
bool edit_sel = false; // there is something selected on the edit
bool edit_readonly = false; // the edit is read only
bool can_undo = false;
HWND focus = GetFocus();
edit = IsEditControl(focus);
@ -1220,6 +1228,7 @@ BOOL WmCommand_LanguageEnglish(HWND hWnd, UINT message, WPARAM wParam, LPARAM lP
SetMenuLanguage(hWnd);
SetOutputEditLanguage(hWnd);
TabWindowFunctions::SetLanguage( GetDlgItem(hWnd, IDC_TAB) );
SetPadLanguage();
return true;
}
@ -1232,6 +1241,7 @@ BOOL WmCommand_LanguagePolish(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
SetMenuLanguage(hWnd);
SetOutputEditLanguage(hWnd);
TabWindowFunctions::SetLanguage( GetDlgItem(hWnd, IDC_TAB) );
SetPadLanguage();
return true;
}
@ -1244,6 +1254,7 @@ BOOL WmCommand_LanguageSpanish(HWND hWnd, UINT message, WPARAM wParam, LPARAM lP
SetMenuLanguage(hWnd);
SetOutputEditLanguage(hWnd);
TabWindowFunctions::SetLanguage( GetDlgItem(hWnd, IDC_TAB) );
SetPadLanguage();
return true;
}
@ -1255,6 +1266,7 @@ BOOL WmCommand_LanguageDanish(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
SetMenuLanguage(hWnd);
SetOutputEditLanguage(hWnd);
TabWindowFunctions::SetLanguage( GetDlgItem(hWnd, IDC_TAB) );
SetPadLanguage();
return true;
}
@ -1266,6 +1278,7 @@ BOOL WmCommand_LanguageChinese(HWND hWnd, UINT message, WPARAM wParam, LPARAM lP
SetMenuLanguage(hWnd);
SetOutputEditLanguage(hWnd);
TabWindowFunctions::SetLanguage( GetDlgItem(hWnd, IDC_TAB) );
SetPadLanguage();
return true;
}
@ -1277,6 +1290,7 @@ BOOL WmCommand_LanguageRussian(HWND hWnd, UINT message, WPARAM wParam, LPARAM lP
SetMenuLanguage(hWnd);
SetOutputEditLanguage(hWnd);
TabWindowFunctions::SetLanguage( GetDlgItem(hWnd, IDC_TAB) );
SetPadLanguage();
return true;
}
@ -1288,6 +1302,7 @@ BOOL WmCommand_LanguageSwedish(HWND hWnd, UINT message, WPARAM wParam, LPARAM lP
SetMenuLanguage(hWnd);
SetOutputEditLanguage(hWnd);
TabWindowFunctions::SetLanguage( GetDlgItem(hWnd, IDC_TAB) );
SetPadLanguage();
return true;
}

60
src/pad.cpp

@ -43,6 +43,7 @@
#include "resource.h"
#include "messages.h"
#include "bigtypes.h"
#include "pad.h"
namespace Pad
@ -330,6 +331,47 @@ return CallWindowProc(old_edit_proc, hwnd, msg, wParam, lParam);
inline void SetMenuLanguageItem(HMENU menu, DWORD menu_id, Languages::GuiMsg msg)
{
Languages * pLang = GetPrgRes()->GetLanguages();
ModifyMenu(menu, menu_id, MF_BYCOMMAND|MF_STRING, menu_id, pLang->GuiMessage(msg) );
}
void SetPadMenuLanguage(HWND hWnd)
{
HMENU menu = GetMenu(hWnd);
if( !menu )
return;
MENUITEMINFO mi;
mi.cbSize = sizeof(mi);
mi.fMask = MIIM_TYPE;
mi.fType = MFT_STRING;
// on popup menus we're using indexes because they don't want to work correctly
// with the identifiers
mi.dwTypeData = const_cast<char*>( GetPrgRes()->GetLanguages()->GuiMessage(Languages::pad_menu_file) );
SetMenuItemInfo(menu, MENUPAD_FILE_INDEX, true, &mi);
mi.dwTypeData = const_cast<char*>( GetPrgRes()->GetLanguages()->GuiMessage(Languages::pad_menu_edit) );
SetMenuItemInfo(menu, MENUPAD_EDIT_INDEX, true, &mi);
SetMenuLanguageItem(menu, MENUPAD_FILE_OPEN, Languages::pad_menu_file_open);
SetMenuLanguageItem(menu, MENUPAD_FILE_SAVE, Languages::pad_menu_file_saveas);
SetMenuLanguageItem(menu, MENUPAD_FILE_CLOSE, Languages::pad_menu_file_close);
SetMenuLanguageItem(menu, MENUPAD_EDIT_UNDO, Languages::pad_menu_edit_undo);
SetMenuLanguageItem(menu, MENUPAD_EDIT_CUT, Languages::pad_menu_edit_cut);
SetMenuLanguageItem(menu, MENUPAD_EDIT_COPY, Languages::pad_menu_edit_copy);
SetMenuLanguageItem(menu, MENUPAD_EDIT_PASTE, Languages::pad_menu_edit_paste);
SetMenuLanguageItem(menu, MENUPAD_EDIT_DEL, Languages::pad_menu_edit_del);
SetMenuLanguageItem(menu, MENUPAD_EDIT_SELECTALL, Languages::pad_menu_edit_select_all);
DrawMenuBar(hWnd);
}
LRESULT PadCreate(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
edit = CreateWindow("edit", "",