Browse Source

updated: chinese translation

git-svn-id: svn://ttmath.org/publicrep/ttcalc/trunk@276 e52654a7-88a9-db11-a3e9-0013d4bc506e
master
Tomasz Sowa 13 years ago
parent
commit
47e4d83eab
  1. 7
      CHANGELOG
  2. 125
      src/languages.cpp
  3. 2
      src/parsermanager.h

7
CHANGELOG

@ -1,8 +1,9 @@
Version 0.9.1 prerelease (2009.12.05):
Version 0.9.1 prerelease (2009.01.05):
* fixed: the pad window didn't take into account following options (from display tab):
grouping, input commas and parameter separators
Changes from TTMath 0.9.1 prerelease relating to TTCalc:
* updated: chinese translation
Changes from TTMath 0.9.1 prerelease relating to TTCalc:
* fixed: the parser didn't use characters for changing the base (# and &)
those characters were skipped
(this bug was introduced in 0.9.0)

125
src/languages.cpp

@ -1221,20 +1221,21 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(display_always_scientific,"一直");
InsertGuiPair(display_not_always_scientific,"当指数大于:");
InsertGuiPair(display_group_scientific, "按科学计数法输出结果");
InsertGuiPair(display_deg_rad_grad, "Trigonometric functions");
InsertGuiPair(display_deg_rad_grad, "三角函数");
InsertGuiPair(display_grouping, "分组符"); // e.g. 1`000`000
InsertGuiPair(display_grouping_none, "");
InsertGuiPair(display_grouping_space, "空格");
InsertGuiPair(display_input_decimal_point, "小数点输入格式"); // Decimal point in formula
InsertGuiPair(display_input_decimal_point_item1, " . or ,");
InsertGuiPair(display_output_decimal_point, "小数点输出格式"); // Decimal point in result
InsertGuiPair(display_param_sep, "参数分隔符");
InsertGuiPair(display_param_sep_item2, " ; or .");
InsertGuiPair(display_param_sep_item3, " ; or ,");
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, "&编辑");
@ -1250,24 +1251,25 @@ 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_lang_swedish, "&Swedish");
InsertGuiPair(menu_view_lang_russian, "&俄语");
InsertGuiPair(menu_view_lang_swedish, "&瑞典语");
InsertGuiPair(menu_view_close_program, "&关闭");
InsertGuiPair(menu_edit_undo, "&取消 \tCtrl+Z");
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_cut, "&剪切 \tCtrl+X");
InsertGuiPair(menu_edit_copy, "&复制 \tCtrl+C");
InsertGuiPair(menu_edit_paste, "&粘贴"); // cutting, copying, pasting the the edit which has a focus
InsertGuiPair(menu_edit_del, "&删除 \tDel");
InsertGuiPair(menu_edit_copy_both, "&复制全部(输入=输出) \tCtrl+B"); // copying in this way: "input edit = output edit"
InsertGuiPair(menu_edit_paste_formula, "&粘贴到输入框\tCtrl+V"); // pasting directly to the input edit
InsertGuiPair(menu_edit_copy_result, "&复制结果 \tCtrl+R");
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_edit_select_all, "&全选\tEsc");
InsertGuiPair(menu_edit_bracket, "&加括号 \tCtrl+0"); // inserting brackets: (...)
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(menu_help_check_update, "&检查更新");
InsertGuiPair(menu_update_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, "不能初始化计算器模型");
InsertGuiPair(message_box_error_caption,"TTCalc");
@ -1296,17 +1298,17 @@ void Languages::InitGuiMessagesTab()
"mantissa and 32 bits for the exponent) it's about +/-6.9e+646457021.\r\n"
"\r\n"
#endif
"Translations:\r\n"
"Spanish Alejandro S. Valdezate\r\n"
" alesanval@gmail.com\r\n"
"Danish Rune Bisgaard Vammen\r\n"
" runebisgaard@gmail.com\r\n"
"Chinese Juis\r\n"
" zsyfly@gmail.com\r\n"
"Russian Vladimir Gladilovich\r\n"
" vdgladilovich@gmail.com\r\n"
"Swedish Lars 'Bafvert' Gafvert\r\n"
" lars.gafvert@gmail.com\r\n"
"翻译:\r\n"
"西班牙语 Alejandro S. Valdezate\r\n"
" alesanval@gmail.com\r\n"
"丹麦语 Rune Bisgaard Vammen\r\n"
" runebisgaard@gmail.com\r\n"
"简体中文 Juis\r\n"
" zsyfly@gmail.com\r\n"
"俄语 Vladimir Gladilovich\r\n"
" vdgladilovich@gmail.com\r\n"
"瑞典语 Lars 'Bafvert' Gafvert\r\n"
" lars.gafvert@gmail.com\r\n"
);
InsertGuiPair(about_text_portable_version, " portable version");
InsertGuiPair(about_text_exe_packer, "EXE Packer: UPX 3.04\r\n");
@ -1315,38 +1317,39 @@ 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_version1, "There is not a newer version available.");
InsertGuiPair(update_no_new_version2, "You have the newest version.");
InsertGuiPair(update_download_from, "Downloading from...");
InsertGuiPair(update_title, "检查更新");
InsertGuiPair(update_button_next, "下一步");
InsertGuiPair(update_button_finish, "完成");
InsertGuiPair(update_button_cancel, "取消");
InsertGuiPair(update_check_at_startup, "启动时总是检查更新");
InsertGuiPair(update_check_for_info, "按“下一步”进行更新...");
InsertGuiPair(update_is_new_version, "版本 %d.%d.%d 可用, 按“下一步”下载...");
InsertGuiPair(update_no_new_version1, "没有可用的新版本。");
InsertGuiPair(update_no_new_version2, "");
InsertGuiPair(update_download_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.");
InsertGuiPair(update_downloaded_info1, "新版本安装程序已经下载完毕。");
InsertGuiPair(update_downloaded_info2, "点击完成以关闭程序并开始安装。.");
#else
InsertGuiPair(update_downloaded_info1, "A new version of TTCalc has been downloaded.");
InsertGuiPair(update_downloaded_info1, "新版本安装程序已经下载完毕。");
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");
InsertGuiPair(update_download_error, "下载时出现错误,请稍后重试。");
InsertGuiPair(pad_title, "粘贴板");
InsertGuiPair(pad_menu_file, "&文件");
InsertGuiPair(pad_menu_edit, "&编辑");
InsertGuiPair(pad_menu_file_new, "&新建"); // temporarily not used
InsertGuiPair(pad_menu_file_open, "&打开...");
InsertGuiPair(pad_menu_file_saveas, "&另存为...");
InsertGuiPair(pad_menu_file_close, "&关闭");
InsertGuiPair(pad_menu_edit_undo, "&撤销 \tCtrl+Z");
InsertGuiPair(pad_menu_edit_cut, "&剪切 \tCtrl+X");
InsertGuiPair(pad_menu_edit_copy, "&复制 \tCtrl+C");
InsertGuiPair(pad_menu_edit_paste, "&粘贴 \tCtrl+V");
InsertGuiPair(pad_menu_edit_del, "&删除 \tDel");
InsertGuiPair(pad_menu_edit_select_all, "&全选 \tCtrl+A");

2
src/parsermanager.h

@ -239,7 +239,7 @@ private:
matparser.SetComma(input_comma1, input_comma2);
matparser.SetGroup(grouping);
matparser.SetParamSep(param_sep);
matparser.SetSmallToZero(true);
matparser.SetSmallToZero(true);
code = matparser.Parse(buffer);
}

Loading…
Cancel
Save