5 Commits
0.8.3 ... 0.8.5

Author SHA1 Message Date
b3f25face3 fixed: I've forgotten to add: menu_view_lang_chinese item in the chinese language
changed: version of the program: 0.8.5 now



git-svn-id: svn://ttmath.org/publicrep/ttcalc/trunk@167 e52654a7-88a9-db11-a3e9-0013d4bc506e
2009-06-18 12:02:50 +00:00
34500e3a5e changed: corrected the chinese translation
(The translation was made by: Juis)
added:   chinese language to the installer


git-svn-id: svn://ttmath.org/publicrep/ttcalc/trunk@162 e52654a7-88a9-db11-a3e9-0013d4bc506e
2009-06-15 02:41:56 +00:00
e841dcfa70 * added: new language: Chinese
translation made by: ... <zhushengyi2008 at 126 dot com>



git-svn-id: svn://ttmath.org/publicrep/ttcalc/trunk@159 e52654a7-88a9-db11-a3e9-0013d4bc506e
2009-06-11 16:07:18 +00:00
ebc5359953 added: Danish language to the setup
changed: version of the program: 0.8.4


git-svn-id: svn://ttmath.org/publicrep/ttcalc/trunk@140 e52654a7-88a9-db11-a3e9-0013d4bc506e
2009-05-09 01:13:54 +00:00
dd32ebd6cd * added: new language: Danish
translation made by: Rune Bisgaard Vammen <runebisgaard at gmail dot com>
* changed status to: 0.8.4 prerelease



git-svn-id: svn://ttmath.org/publicrep/ttcalc/trunk@124 e52654a7-88a9-db11-a3e9-0013d4bc506e
2009-04-30 22:59:06 +00:00
23 changed files with 508 additions and 80 deletions

View File

@@ -1,3 +1,19 @@
Version 0.8.5 (2009.06.18):
* added: new language: Chinese
translation made by: Juis <zsyfly at gmail dot com>
* changed: version of the TTMath library: 0.8.5 now
Changes from TTMath 0.8.5 relating to TTCalc:
* fixed: Big::Mod(x) didn't correctly return a carry
and the result was sometimes very big (even greater than x)
* changed: factorial() function is much faster now
Version 0.8.4 (2009.05.08):
* added: new language: Danish
translation made by: Rune Bisgaard Vammen <runebisgaard at gmail dot com>
Version 0.8.3 (2009.04.06): Version 0.8.3 (2009.04.06):
* fixed: calculating the size of the main window * fixed: calculating the size of the main window
now it looks good on MS Vista and when a user changes size of some now it looks good on MS Vista and when a user changes size of some
@@ -23,7 +39,7 @@ Version 0.8.3 (2009.04.06):
* added: variables and functions can have underline characters * added: variables and functions can have underline characters
in their names in their names
* added: 'remove trailing zeroes' option on 'display' tab * added: 'remove trailing zeroes' option on 'display' tab
* added: new language: spanish * added: new language: Spanish
translation made by Alejandro S. Valdezate translation made by Alejandro S. Valdezate
alesanval at gmail dot com alesanval at gmail dot com
* added: on display tab: we can select 'deg' 'rad' or 'grad' for calculating * added: on display tab: we can select 'deg' 'rad' or 'grad' for calculating
@@ -36,7 +52,7 @@ Version 0.8.3 (2009.04.06):
* removed: 'cut off last non valid digits' on 'rounding' option * removed: 'cut off last non valid digits' on 'rounding' option
on 'display' tab on 'display' tab
Changes from TTMath 0.8.3 relating to TTCalc: Changes from TTMath 0.8.3 relating to TTCalc:
* fixed: Big::Add incorrectly rounded 'this' when both exponents were equal * fixed: Big::Add incorrectly rounded 'this' when both exponents were equal
it caused that sometimes when adding a zero the result has changed it caused that sometimes when adding a zero the result has changed
this had impact among other things on FromString() method this had impact among other things on FromString() method

15
README
View File

@@ -1,10 +1,10 @@
TTCalc TTCalc
TTCalc is an open source mathematical calculator. It features arithmetical TTCalc is an open source bignum mathematical calculator. It features
functions, trigonometric functions, inverse trigonometric functions, arithmetical functions, trigonometric functions, inverse trigonometric
hyperbolic functions, inverse hyperbolic functions, logical operators, functions, hyperbolic functions, inverse hyperbolic functions, logical
logarithms, functions for converting between degrees and radians and operators, logarithms, functions for converting between degrees and radians
so on. Additionally the program allows a user to define his own and so on. Additionally the program allows a user to define his own
variables and functions. variables and functions.
The program possesses an easy to use interface. Calculations are performed The program possesses an easy to use interface. Calculations are performed
@@ -15,8 +15,9 @@ with 258 valid decimal digits. TTCalc independently allows to insert and
display values with the base (radix) from two to sixteen. display values with the base (radix) from two to sixteen.
Author: Tomasz Sowa Author: Tomasz Sowa
Contact: t.sowa@slimaczek.pl Contact: t.sowa@ttmath.org
Licence: BSD (open source) Licence: BSD (open source)
Interface: English, Polish, Spanish Interface: English, Polish, Spanish, Danish, Chinese
Project page: http://ttcalc.sourceforge.net/ Project page: http://ttcalc.sourceforge.net/
Bignum library: TTMath http://www.ttmath.org/
Operating systems: Microsoft Windows 9x/Me/NT/2000/XP/Vista Operating systems: Microsoft Windows 9x/Me/NT/2000/XP/Vista

View File

@@ -102,7 +102,7 @@
<li><a href="other_functions.html">factorial(x)</a></li> <li><a href="other_functions.html">factorial(x)</a></li>
<li><a href="other_functions.html">abs(x)</a></li> <li><a href="other_functions.html">abs(x)</a></li>
<li><a href="other_functions.html">sgn(x)</a></li> <li><a href="other_functions.html">sgn(x)</a></li>
<li><a href="other_functions.html">mod(x,y)</a></li> <li><a href="other_functions.html">mod(x; y)</a></li>
<li><a href="other_functions.html">max(x1; x2; ...)</a></li> <li><a href="other_functions.html">max(x1; x2; ...)</a></li>
<li><a href="other_functions.html">min(x1; x2; ...)</a></li> <li><a href="other_functions.html">min(x1; x2; ...)</a></li>
<li><a href="other_functions.html">sum(x1; x2; ...)</a></li> <li><a href="other_functions.html">sum(x1; x2; ...)</a></li>

View File

@@ -28,17 +28,17 @@ We don't define the BitNot() function too.
<dl> <dl>
<dt>BitAnd(x ; y) or band(x ; y)</dt> <dt>bitand(x ; y) or band(x ; y)</dt>
<dd>Bitwise AND. For example:<br> <dd>Bitwise AND. For example:<br>
bitand(6; 2) = bitand(&amp;110 ; &amp;10) = &amp;10 = 2<br> bitand(6; 2) = bitand(&amp;110 ; &amp;10) = &amp;10 = 2<br>
bitand(6.5; 2.5) = bitand(&amp;110.1 ; &amp;10.1) = &amp;10.1 = 2.5</dd> bitand(6.5; 2.5) = bitand(&amp;110.1 ; &amp;10.1) = &amp;10.1 = 2.5</dd>
<dt>BitOr(x ; y) or bor(x ; y)</dt> <dt>bitor(x ; y) or bor(x ; y)</dt>
<dd>Bitwise OR. For example:<br> <dd>Bitwise OR. For example:<br>
bitor(6; 1) = bitor(&amp;110 ; &amp;1) = &amp;111 = 7<br> bitor(6; 1) = bitor(&amp;110 ; &amp;1) = &amp;111 = 7<br>
bitor(6.5; 1.5) = bitor(&amp;110.1 ; &amp;1.1) = &amp;111.1 = 7.5</dd> bitor(6.5; 1.5) = bitor(&amp;110.1 ; &amp;1.1) = &amp;111.1 = 7.5</dd>
<dt>BitXor(x ; y) or bxor(x ; y)</dt> <dt>bitxor(x ; y) or bxor(x ; y)</dt>
<dd>Bitwise XOR. For example:<br> <dd>Bitwise XOR. For example:<br>
bitxor(6; 3) = bitxor(&amp;110 ; &amp;11) = &amp;101 = 5<br> bitxor(6; 3) = bitxor(&amp;110 ; &amp;11) = &amp;101 = 5<br>
bitxor(6.5; 3.5) = bitxor(&amp;110.1 ; &amp;11.1) = &amp;101.0 = 5</dd> bitxor(6.5; 3.5) = bitxor(&amp;110.1 ; &amp;11.1) = &amp;101.0 = 5</dd>

View File

@@ -7,6 +7,7 @@
<link rel="stylesheet" href="styles.css" type="text/css"> <link rel="stylesheet" href="styles.css" type="text/css">
<object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e"> <object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e">
<param name="Keyword" value="TTCalc"> <param name="Keyword" value="TTCalc">
<param name="Keyword" value="TTMath">
<param name="Keyword" value="author"> <param name="Keyword" value="author">
<param name="Keyword" value="contact"> <param name="Keyword" value="contact">
<param name="Keyword" value="licence"> <param name="Keyword" value="licence">
@@ -21,11 +22,11 @@
<h1>TTCalc</h1> <h1>TTCalc</h1>
<p> <p>
TTCalc is an open source mathematical calculator. It features arithmetical TTCalc is an open source bignum mathematical calculator. It features
functions, trigonometric functions, inverse trigonometric functions, arithmetical functions, trigonometric functions, inverse trigonometric
hyperbolic functions, inverse hyperbolic functions, logical operators, functions, hyperbolic functions, inverse hyperbolic functions, logical
logarithms, functions for converting between degrees and radians and operators, logarithms, functions for converting between degrees and radians
so on. Additionally the program allows a user to define his own and so on. Additionally the program allows a user to define his own
variables and functions. variables and functions.
</p> </p>
@@ -41,13 +42,13 @@ display values with the base (radix) from two to sixteen.
<table> <table>
<tr><td>Author:</td><td>Tomasz Sowa</td></tr> <tr><td>Author:</td><td>Tomasz Sowa</td></tr>
<tr><td>Contact:</td><td>t.sowa@slimaczek.pl</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>Licence:</td><td>BSD (open source)</td></tr>
<tr><td>Interface:</td><td>English, Polish, Spanish</td></tr> <tr><td>Interface:</td><td>English, Polish, Spanish, Danish, Chinese</td></tr>
<tr><td>Project page:</td><td><a href="http://ttcalc.sourceforge.net/">http://ttcalc.sourceforge.net/</a></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> <tr><td>Operating systems:</td><td>Microsoft Windows 9x/Me/NT/2000/XP/Vista</td></tr>
</table> </table>
</body> </body>
</html> </html>

View File

@@ -53,7 +53,7 @@ sgn(-10)=-1<br>
sgn(0)=0<br> sgn(0)=0<br>
sgn(5)=1</dd> sgn(5)=1</dd>
<dt>mod(x,y)</dt> <dt>mod(x ; y)</dt>
<dd>Mod returns the remainder from the division x by y<br>mod(10; 2.2)=1.2 because 10=2.2*4 + 1.2</dd> <dd>Mod returns the remainder from the division x by y<br>mod(10; 2.2)=1.2 because 10=2.2*4 + 1.2</dd>

View File

@@ -61,7 +61,7 @@ Unary minus, e.g.: -2</dd>
</dl> </dl>
<p>Of course you can use the parentheses ( and ). Look at the <a href="operators_priority.html">operators priority</a> as well.</p> <p>Of course you can use parentheses ( and ). Look at <a href="operators_priority.html">operators priority</a> as well.</p>
<h1>Built-in variables</h1> <h1>Built-in variables</h1>

View File

@@ -3,8 +3,8 @@
[Setup] [Setup]
AppName=TTCalc AppName=TTCalc
AppVerName=TTCalc 0.8.3 AppVerName=TTCalc 0.8.5
AppVersion=0.8.3 AppVersion=0.8.5
AppPublisher=Tomasz Sowa AppPublisher=Tomasz Sowa
AppPublisherURL=http://ttcalc.sourceforge.net AppPublisherURL=http://ttcalc.sourceforge.net
AppSupportURL=http://ttcalc.sourceforge.net AppSupportURL=http://ttcalc.sourceforge.net
@@ -25,6 +25,8 @@ PrivilegesRequired=none
Name: "english"; MessagesFile: "compiler:Default.isl" Name: "english"; MessagesFile: "compiler:Default.isl"
Name: "polish"; MessagesFile: "compiler:Languages\Polish.isl" Name: "polish"; MessagesFile: "compiler:Languages\Polish.isl"
Name: "spanish"; MessagesFile: "compiler:Languages\Spanish.isl" Name: "spanish"; MessagesFile: "compiler:Languages\Spanish.isl"
Name: "danish"; MessagesFile: "compiler:Languages\Danish.isl"
Name: "chinese"; MessagesFile: "compiler:Languages\ChineseSimp-12-5.1.11.isl"
[InstallDelete] [InstallDelete]
; prior to 0.8.3 we were using mingwm10.dll (now it is not needed and will be deleted if exists) ; prior to 0.8.3 we were using mingwm10.dll (now it is not needed and will be deleted if exists)

View File

@@ -8,7 +8,6 @@ helpname = ttcalc.chm
# the name of the setup is also set in the Inno Setup config file # the name of the setup is also set in the Inno Setup config file
setupname = ttcalc-setup.exe setupname = ttcalc-setup.exe
@@ -17,9 +16,11 @@ all: ttcalc
include Makefile.dep include Makefile.dep
ttcalc: $(o) ttcalc: $(o)
$(CC) -o $(name) $(CFLAGS) $(o) -lcomctl32 $(CC) -o $(name) $(CFLAGS) $(o) -lcomctl32
resource.o: resource.rc resource.o: resource.rc
#windres -DTTCALC_CONVERT resource.rc resource.o #windres -DTTCALC_CONVERT resource.rc resource.o
windres resource.rc resource.o windres resource.rc resource.o
@@ -27,7 +28,8 @@ resource.o: resource.rc
help: $(helpdep) help: $(helpdep)
Makefile.help.sh Makefile.help.sh
setup: $(setupdep) setup: $(setupdep)
iscc ../setup/innosetup.iss iscc ../setup/innosetup.iss
@@ -35,7 +37,6 @@ setup: $(setupdep)
clean: clean:
rm -f *.o rm -f *.o
rm -f *.s
rm -f $(name) rm -f $(name)
rm -f $(helpname) rm -f ../help/$(helpname)
rm -f $(setupname) rm -f ../setup/$(setupname)

View File

@@ -19,26 +19,27 @@ winmain.o: winmain.cpp compileconfig.h winmain.h programresources.h iniparser.
$(CC) -c $(CFLAGS) $< $(CC) -c $(CFLAGS) $<
helpdep = ../help/arithmetic_functions.html \ helpdep = ../help/accuracy.html \
../help/logarithm_exponential.html \ ../help/arithmetic_functions.html \
../help/trigonometric_functions.html \ ../help/bitwise_functions.html \
../help/inverse_trigonometric_functions.html \ ../help/conversions_deg_rad_grad.html \
../help/hyperbolic_functions.html \ ../help/help.hhp \
../help/inverse_hyperbolic_functions.html \ ../help/hyperbolic_functions.html \
../help/conversions_deg_rad_grad.html \ ../help/index.hhk \
../help/rounding_functions.html \ ../help/index.html \
../help/other_functions.html \ ../help/inverse_hyperbolic_functions.html \
../help/operators_priority.html \ ../help/inverse_trigonometric_functions.html \
../help/bitwise_functions.html \ ../help/logarithm_exponential.html \
../help/index.html \ ../help/logical_functions.html \
../help/userfunctions.html \ ../help/operators_priority.html \
../help/logical_functions.html \ ../help/other_functions.html \
../help/accuracy.html \ ../help/rounding_functions.html \
../help/tips.html \ ../help/styles.css \
../help/values_and_std_operators.html \ ../help/tips.html \
../help/styles.css \ ../help/toc.hhc \
../help/index.hhk \ ../help/trigonometric_functions.html \
../help/toc.hhc \ ../help/userfunctions.html \
../help/help.hhp ../help/values_and_std_operators.html
setupdep = ttcalc help ../setup/innosetup.iss ../setup/COPYRIGHT ../COPYRIGHT ../CHANGELOG ../README setupdep = ttcalc help ../setup/innosetup.iss ../setup/COPYRIGHT ../COPYRIGHT ../CHANGELOG ../README

View File

@@ -13,3 +13,9 @@ ttcalc: $(o)
resource.o: resource.rc resource.o: resource.rc
windres -DTTCALC_PORTABLE resource.rc resource.o windres -DTTCALC_PORTABLE resource.rc resource.o
clean:
rm -f *.o
rm -f $(name)
rm -f ../help/$(helpname)

View File

@@ -39,6 +39,8 @@
#define bigtypesheader #define bigtypesheader
#include "compileconfig.h" #include "compileconfig.h"
//#define TTMATH_RELEASE
#include <ttmath/ttmath.h> #include <ttmath/ttmath.h>

View File

@@ -55,7 +55,7 @@
*/ */
#define TTCALC_MAJOR_VER 0 #define TTCALC_MAJOR_VER 0
#define TTCALC_MINOR_VER 8 #define TTCALC_MINOR_VER 8
#define TTCALC_REVISION_VER 3 #define TTCALC_REVISION_VER 5
#define TTCALC_PRERELEASE_VER 0 #define TTCALC_PRERELEASE_VER 0
@@ -68,6 +68,8 @@
#pragma warning (disable : 4800) #pragma warning (disable : 4800)
#endif #endif
#ifndef _WIN32_IE
#define _WIN32_IE 0x0501 #define _WIN32_IE 0x0501
#endif
#endif #endif

View File

@@ -82,6 +82,9 @@ void Languages::InitErrorMessagesTab()
{ {
error_messages_tab.push_back( std::map<ttmath::ErrorCode, std::string>() ); error_messages_tab.push_back( std::map<ttmath::ErrorCode, std::string>() );
/*
english messages relating to ttmath library
*/
InsertErrorPair(ttmath::err_ok,"ok"); InsertErrorPair(ttmath::err_ok,"ok");
InsertErrorPair(ttmath::err_nothing_has_read,""); InsertErrorPair(ttmath::err_nothing_has_read,"");
InsertErrorPair(ttmath::err_unknown_character,"An unknown character"); InsertErrorPair(ttmath::err_unknown_character,"An unknown character");
@@ -108,7 +111,11 @@ void Languages::InitErrorMessagesTab()
InsertErrorPair(ttmath::err_still_calculating,"Calculating..."); InsertErrorPair(ttmath::err_still_calculating,"Calculating...");
InsertErrorPair(ttmath::err_too_big_factorial,"A too big argument for the factorial() function"); InsertErrorPair(ttmath::err_too_big_factorial,"A too big argument for the factorial() function");
// pl
/*
polish messages relating to ttmath library
*/
error_messages_tab.push_back( std::map<ttmath::ErrorCode, std::string>() ); error_messages_tab.push_back( std::map<ttmath::ErrorCode, std::string>() );
@@ -139,7 +146,9 @@ void Languages::InitErrorMessagesTab()
InsertErrorPair(ttmath::err_too_big_factorial,"Zbyt du<64>y argument dla funkcji factorial()"); InsertErrorPair(ttmath::err_too_big_factorial,"Zbyt du<64>y argument dla funkcji factorial()");
// sp /*
spanish messages relating to ttmath library
*/
error_messages_tab.push_back( std::map<ttmath::ErrorCode, std::string>() ); error_messages_tab.push_back( std::map<ttmath::ErrorCode, std::string>() );
@@ -169,6 +178,69 @@ void Languages::InitErrorMessagesTab()
InsertErrorPair(ttmath::err_still_calculating,"Calculando ..."); InsertErrorPair(ttmath::err_still_calculating,"Calculando ...");
InsertErrorPair(ttmath::err_too_big_factorial,"Argumento muy grande para la funcion factorial()"); InsertErrorPair(ttmath::err_too_big_factorial,"Argumento muy grande para la funcion factorial()");
/*
danish 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,"Et ukendt tegn");
InsertErrorPair(ttmath::err_unexpected_final_bracket,"En uforventet endelig klasse");
InsertErrorPair(ttmath::err_stack_not_clear,"Et ukendt tegn er v<>k");
InsertErrorPair(ttmath::err_unknown_variable,"En ukendt variabel");
InsertErrorPair(ttmath::err_division_by_zero,"Division med nul");
InsertErrorPair(ttmath::err_interrupt,"Beregningen er blevet afbrydt");
InsertErrorPair(ttmath::err_overflow,"Overflow fejl");
InsertErrorPair(ttmath::err_unknown_function,"En ukendt funktion");
InsertErrorPair(ttmath::err_unknown_operator,"En ukendt operator");
InsertErrorPair(ttmath::err_unexpected_semicolon_operator,"En ukendt semikolon operator");
InsertErrorPair(ttmath::err_improper_amount_of_arguments,"Ukorrekt m<>ngde af argumenter");
InsertErrorPair(ttmath::err_improper_argument,"U<EFBFBD>gte argumentation");
InsertErrorPair(ttmath::err_unexpected_end,"Uforventet slutning");
InsertErrorPair(ttmath::err_internal_error,"En intern fejl");
InsertErrorPair(ttmath::err_incorrect_name,"Ukorrekt navn for en variabel eller function");
InsertErrorPair(ttmath::err_incorrect_value,"Ukorrekt v<>rdi for en variabel eller funktion");
InsertErrorPair(ttmath::err_variable_exists,"Denne variabel eksisterer allerede");
InsertErrorPair(ttmath::err_variable_loop,"Det er en gentagelse mellem variabler");
InsertErrorPair(ttmath::err_functions_loop,"Der er en gentagelse mellem funktioner");
InsertErrorPair(ttmath::err_must_be_only_one_value,"Variabler eller funktioner skal kun returnere <20>n v<>rdi");
InsertErrorPair(ttmath::err_still_calculating,"Regner...");
InsertErrorPair(ttmath::err_too_big_factorial,"Et for stort argument for factorial() funktionen");
/*
Chinese messages relating to ttmath library
*/
error_messages_tab.push_back( std::map<ttmath::ErrorCode, std::string>() );
InsertErrorPair(ttmath::err_ok,"ȷ<EFBFBD><EFBFBD>");
InsertErrorPair(ttmath::err_nothing_has_read,"");
InsertErrorPair(ttmath::err_unknown_character,"δ֪<EFBFBD>ַ<EFBFBD>");
InsertErrorPair(ttmath::err_unexpected_final_bracket,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertErrorPair(ttmath::err_stack_not_clear,"δ֪<EFBFBD>ַ<EFBFBD>û<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertErrorPair(ttmath::err_unknown_variable,"δ֪<EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertErrorPair(ttmath::err_division_by_zero,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><EFBFBD>");
InsertErrorPair(ttmath::err_interrupt,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD>");
InsertErrorPair(ttmath::err_overflow,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertErrorPair(ttmath::err_unknown_function,"δ֪<EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertErrorPair(ttmath::err_unknown_operator,"δ֪<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertErrorPair(ttmath::err_unexpected_semicolon_operator,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ķֺ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertErrorPair(ttmath::err_improper_amount_of_arguments,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertErrorPair(ttmath::err_improper_argument,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertErrorPair(ttmath::err_unexpected_end,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ĩ<EFBFBD><EFBFBD>");
InsertErrorPair(ttmath::err_internal_error,"<EFBFBD>ڲ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertErrorPair(ttmath::err_incorrect_name,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ı<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertErrorPair(ttmath::err_incorrect_value,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ı<EFBFBD><EFBFBD><EFBFBD>ֵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ");
InsertErrorPair(ttmath::err_variable_exists,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ѿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertErrorPair(ttmath::err_variable_loop,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѭ<EFBFBD><EFBFBD>");
InsertErrorPair(ttmath::err_functions_loop,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѭ<EFBFBD><EFBFBD>");
InsertErrorPair(ttmath::err_must_be_only_one_value,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>з<EFBFBD><EFBFBD><EFBFBD>ֵ");
InsertErrorPair(ttmath::err_still_calculating,"<EFBFBD><EFBFBD><EFBFBD>ڼ<EFBFBD><EFBFBD><EFBFBD>...");
InsertErrorPair(ttmath::err_too_big_factorial,"<EFBFBD>׳˺<EFBFBD><EFBFBD><EFBFBD><EFBFBD>IJ<EFBFBD><EFBFBD><EFBFBD>̫<EFBFBD><EFBFBD>");
} }
@@ -219,7 +291,10 @@ void Languages::InsertGuiPair(GuiMsg code, const char * message)
void Languages::InitGuiMessagesTab() void Languages::InitGuiMessagesTab()
{ {
// en /*
english gui messages
*/
gui_messages_tab.push_back( std::map<GuiMsg, std::string>() ); gui_messages_tab.push_back( std::map<GuiMsg, std::string>() );
InsertGuiPair(button_ok,"Ok"); InsertGuiPair(button_ok,"Ok");
@@ -283,7 +358,7 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(display_not_always_scientific,"When the exponent is greater than:"); InsertGuiPair(display_not_always_scientific,"When the exponent is greater than:");
InsertGuiPair(display_group_scientific, "Print the result as the scientific value"); InsertGuiPair(display_group_scientific, "Print the result as the scientific value");
InsertGuiPair(display_decimal_point, "Decimal point"); InsertGuiPair(display_decimal_point, "Decimal point");
InsertGuiPair(display_deg_red_grad, "sin/cos asin/acos"); InsertGuiPair(display_deg_rad_grad, "sin/cos asin/acos");
InsertGuiPair(convert_type, "Type"); InsertGuiPair(convert_type, "Type");
InsertGuiPair(convert_input, "Input"); InsertGuiPair(convert_input, "Input");
InsertGuiPair(convert_output, "Output"); InsertGuiPair(convert_output, "Output");
@@ -300,6 +375,8 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(menu_view_lang_english, "&English"); InsertGuiPair(menu_view_lang_english, "&English");
InsertGuiPair(menu_view_lang_polish, "&Polish"); InsertGuiPair(menu_view_lang_polish, "&Polish");
InsertGuiPair(menu_view_lang_spanish, "&Spanish"); InsertGuiPair(menu_view_lang_spanish, "&Spanish");
InsertGuiPair(menu_view_lang_danish, "&Danish");
InsertGuiPair(menu_view_lang_chinese, "&Chinese");
InsertGuiPair(menu_view_close_program, "&Close"); InsertGuiPair(menu_view_close_program, "&Close");
InsertGuiPair(menu_edit_undo, "&Undo"); InsertGuiPair(menu_edit_undo, "&Undo");
InsertGuiPair(menu_edit_paste, "&Paste"); InsertGuiPair(menu_edit_paste, "&Paste");
@@ -315,7 +392,7 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(about_text, InsertGuiPair(about_text,
"Mathematical calculator TTCalc %d.%d.%d%s%s\r\n" "Mathematical calculator TTCalc %d.%d.%d%s%s\r\n"
"Author: Tomasz Sowa\r\n" "Author: Tomasz Sowa\r\n"
"Contact: t.sowa@slimaczek.pl\r\n" "Contact: t.sowa@ttmath.org\r\n"
"Licence: BSD (open source)\r\n" "Licence: BSD (open source)\r\n"
"Project page: http://ttcalc.sourceforge.net\r\n" "Project page: http://ttcalc.sourceforge.net\r\n"
"Bignum library: TTMath %d.%d.%d%s\r\n" "Bignum library: TTMath %d.%d.%d%s\r\n"
@@ -344,7 +421,12 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(cant_find_help, "I can't find any help files"); InsertGuiPair(cant_find_help, "I can't find any help files");
InsertGuiPair(cant_open_project_page, "I can't open the project webpage"); InsertGuiPair(cant_open_project_page, "I can't open the project webpage");
// pl
/*
polish gui messages
*/
gui_messages_tab.push_back( std::map<GuiMsg, std::string>() ); gui_messages_tab.push_back( std::map<GuiMsg, std::string>() );
InsertGuiPair(button_ok,"Ok"); InsertGuiPair(button_ok,"Ok");
@@ -408,7 +490,7 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(display_not_always_scientific,"Je<EFBFBD>li eksponent jest wi<77>kszy ni<6E>:"); InsertGuiPair(display_not_always_scientific,"Je<EFBFBD>li eksponent jest wi<77>kszy ni<6E>:");
InsertGuiPair(display_group_scientific, "Wy<EFBFBD>wietl wynik w postaci naukowej"); InsertGuiPair(display_group_scientific, "Wy<EFBFBD>wietl wynik w postaci naukowej");
InsertGuiPair(display_decimal_point, "Przecinek dziesi<73>tny"); InsertGuiPair(display_decimal_point, "Przecinek dziesi<73>tny");
InsertGuiPair(display_deg_red_grad, "sin/cos asin/acos"); InsertGuiPair(display_deg_rad_grad, "sin/cos asin/acos");
InsertGuiPair(convert_type, "Typ"); InsertGuiPair(convert_type, "Typ");
InsertGuiPair(convert_input, "Wej<EFBFBD>cie"); InsertGuiPair(convert_input, "Wej<EFBFBD>cie");
InsertGuiPair(convert_output, "Wyj<EFBFBD>cie"); InsertGuiPair(convert_output, "Wyj<EFBFBD>cie");
@@ -425,6 +507,8 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(menu_view_lang_english, "&Angielski"); InsertGuiPair(menu_view_lang_english, "&Angielski");
InsertGuiPair(menu_view_lang_polish, "&Polski"); InsertGuiPair(menu_view_lang_polish, "&Polski");
InsertGuiPair(menu_view_lang_spanish, "&Hiszpa<70>ski"); InsertGuiPair(menu_view_lang_spanish, "&Hiszpa<70>ski");
InsertGuiPair(menu_view_lang_danish, "&Du<44>ski");
InsertGuiPair(menu_view_lang_chinese, "&Chi<68>ski");
InsertGuiPair(menu_view_close_program, "&Zamknij"); InsertGuiPair(menu_view_close_program, "&Zamknij");
InsertGuiPair(menu_edit_undo, "&Cofnij"); InsertGuiPair(menu_edit_undo, "&Cofnij");
InsertGuiPair(menu_edit_paste, "&Wklej"); InsertGuiPair(menu_edit_paste, "&Wklej");
@@ -440,7 +524,7 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(about_text, InsertGuiPair(about_text,
"Kalkulator matematyczny TTCalc %d.%d.%d%s%s\r\n" "Kalkulator matematyczny TTCalc %d.%d.%d%s%s\r\n"
"Autor: Tomasz Sowa\r\n" "Autor: Tomasz Sowa\r\n"
"Kontakt: t.sowa@slimaczek.pl\r\n" "Kontakt: t.sowa@ttmath.org\r\n"
"Licencja: BSD (open source)\r\n" "Licencja: BSD (open source)\r\n"
"Strona projektu: http://ttcalc.sourceforge.net\r\n" "Strona projektu: http://ttcalc.sourceforge.net\r\n"
"Biblioteka du<64>ych liczb: TTMath %d.%d.%d%s\r\n" "Biblioteka du<64>ych liczb: TTMath %d.%d.%d%s\r\n"
@@ -470,7 +554,12 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(cant_open_project_page, "Nie mog<6F> otworzy<7A> strony projektu"); InsertGuiPair(cant_open_project_page, "Nie mog<6F> otworzy<7A> strony projektu");
// sp
/*
spanish gui messages
*/
gui_messages_tab.push_back( std::map<GuiMsg, std::string>() ); gui_messages_tab.push_back( std::map<GuiMsg, std::string>() );
@@ -537,7 +626,7 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(display_not_always_scientific,"Cuando el exponente es mas grande que:"); InsertGuiPair(display_not_always_scientific,"Cuando el exponente es mas grande que:");
InsertGuiPair(display_group_scientific, "Imprimir el resultado como valor cientifico"); InsertGuiPair(display_group_scientific, "Imprimir el resultado como valor cientifico");
InsertGuiPair(display_decimal_point, "Decimal point"); InsertGuiPair(display_decimal_point, "Decimal point");
InsertGuiPair(display_deg_red_grad, "sin/cos asin/acos"); InsertGuiPair(display_deg_rad_grad, "sin/cos asin/acos");
InsertGuiPair(convert_type, "Tipo"); InsertGuiPair(convert_type, "Tipo");
InsertGuiPair(convert_input, "Entrada"); InsertGuiPair(convert_input, "Entrada");
InsertGuiPair(convert_output, "Salida"); InsertGuiPair(convert_output, "Salida");
@@ -554,6 +643,8 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(menu_view_lang_english, "&Ingles"); InsertGuiPair(menu_view_lang_english, "&Ingles");
InsertGuiPair(menu_view_lang_polish, "&Polaco"); InsertGuiPair(menu_view_lang_polish, "&Polaco");
InsertGuiPair(menu_view_lang_spanish, "&Espa<70>ol"); InsertGuiPair(menu_view_lang_spanish, "&Espa<70>ol");
InsertGuiPair(menu_view_lang_danish, "&Dan<61>s"); // 'Dan<61>s' is a correct translation for 'Danish'?
InsertGuiPair(menu_view_lang_chinese, "&Chino"); // 'Chino' is a correct translation for 'Chinese'?
InsertGuiPair(menu_view_close_program, "&Close"); InsertGuiPair(menu_view_close_program, "&Close");
InsertGuiPair(menu_edit_undo, "&Deshacer"); InsertGuiPair(menu_edit_undo, "&Deshacer");
InsertGuiPair(menu_edit_paste, "&Pegar"); InsertGuiPair(menu_edit_paste, "&Pegar");
@@ -569,7 +660,7 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(about_text, InsertGuiPair(about_text,
"Calculadora matematica TTCalc %d.%d.%d%s%s\r\n" "Calculadora matematica TTCalc %d.%d.%d%s%s\r\n"
"Autor: Tomasz Sowa\r\n" "Autor: Tomasz Sowa\r\n"
"Contacto: t.sowa@slimaczek.pl\r\n" "Contacto: t.sowa@ttmath.org\r\n"
"Licencia: BSD (open source)\r\n" "Licencia: BSD (open source)\r\n"
"Pagina del proyecto: http://ttcalc.sourceforge.net\r\n" "Pagina del proyecto: http://ttcalc.sourceforge.net\r\n"
"Biblioteca Bignum: TTMath %d.%d.%d%s\r\n" "Biblioteca Bignum: TTMath %d.%d.%d%s\r\n"
@@ -598,6 +689,266 @@ void Languages::InitGuiMessagesTab()
InsertGuiPair(cant_find_help, "No se encuentran los ficheros de ayuda"); 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(cant_open_project_page, "No se puede abrir la pagina dle proyecto");
/*
danish gui messages
*/
gui_messages_tab.push_back( std::map<GuiMsg, std::string>() );
InsertGuiPair(button_ok,"Ok");
InsertGuiPair(button_cancel,"Anuller");
InsertGuiPair(message_box_caption,"TTCalc");
InsertGuiPair(dialog_box_add_variable_caption,"Tilf<EFBFBD>j en ny variabel");
InsertGuiPair(dialog_box_edit_variable_caption,"Rediger en variabel");
InsertGuiPair(dialog_box_add_variable_incorrect_name,"Et ukorrekt navn for variablen");
InsertGuiPair(dialog_box_add_variable_incorrect_value,"En ukorrekt v<>rdi for variablen");
InsertGuiPair(dialog_box_add_variable_variable_exists,"Denne variabel eksisterer allerede");
InsertGuiPair(dialog_box_edit_variable_unknown_variable,"Der er ikke denne variabel i min tabel. Der er sandsynligvis en intern fejl!");
InsertGuiPair(dialog_box_delete_variable_confirm,"Vil du slette disse variabler?");
InsertGuiPair(dialog_box_variable_not_all_deleted,"Der er nogle variabler det ikke var mugligt at slette. Sandsynligvis en intern fejl!");
InsertGuiPair(dialog_box_add_function_caption,"Tilf<EFBFBD>j en ny funktion");
InsertGuiPair(dialog_box_edit_function_caption,"Rediger en funktion");
InsertGuiPair(dialog_box_add_function_function_exists,"Denne funktion eksisterer allerede");
InsertGuiPair(dialog_box_edit_function_unknown_function,"Der er ikke denne funktion i min tabel. Der er sandsynligvis en intern fejl!");
InsertGuiPair(dialog_box_delete_function_confirm,"Vil du slette disse funktioner?");
InsertGuiPair(dialog_box_function_not_all_deleted,"Der er nogle funktioner det ikke var mugligt at slette. Sandsynligvis en intern fejl!");
InsertGuiPair(dialog_box_add_function_incorrect_name,"Et ukorrekt navn for funktionen");
InsertGuiPair(list_variables_header_1,"Navn");
InsertGuiPair(list_variables_header_2,"V<EFBFBD>rdi");
InsertGuiPair(list_functions_header_1,"Navn");
InsertGuiPair(list_functions_header_2,"Param.");
InsertGuiPair(list_functions_header_3,"V<EFBFBD>rdi");
InsertGuiPair(button_add,"Tilf<EFBFBD>j");
InsertGuiPair(button_edit,"Rediger");
InsertGuiPair(button_delete,"Slet");
InsertGuiPair(button_clear,"C");
InsertGuiPair(tab_standard,"Standard");
InsertGuiPair(tab_variables,"Variabler");
InsertGuiPair(tab_functions,"Funktioner");
InsertGuiPair(tab_precision,"Pr<EFBFBD>cision");
InsertGuiPair(tab_display,"Visning");
InsertGuiPair(tab_convert,"Konverter");
InsertGuiPair(radio_precision_1,"Lille - 96 bits for mantissen, 32 bits for exponenten");
InsertGuiPair(radio_precision_2,"Mellem - 288 bits for mantissen, 64 bits for exponenten");
InsertGuiPair(radio_precision_3,"Stor - 864 bits for mantissen, 128 bits for exponenten");
InsertGuiPair(precision_1_info,"(+/-)6.9 e+646457021, 26 gyldige cifre (decimaler)");
InsertGuiPair(precision_2_info,"(+/-)3.4e+2776511644261678652, 85 gyldige cifre");
InsertGuiPair(precision_3_info,"(+/-)6.7e+51217599719369681875006054625051616609, 258 cifre");
InsertGuiPair(overflow_during_printing,"Overflow under printning");
InsertGuiPair(combo_rounding_none,"Ingen");
InsertGuiPair(combo_rounding_integer,"til heltal");
InsertGuiPair(combo_rounding_to_number,"til");
InsertGuiPair(combo_rounding_after_comma,"ciffer(cifre)");
InsertGuiPair(check_remove_zeroes,"Fjern sidste overfl<66>dige nuller");
InsertGuiPair(display_input, "Input");
InsertGuiPair(display_output, "Output");
InsertGuiPair(display_rounding, "Afrunding");
InsertGuiPair(display_always_scientific,"Altid");
InsertGuiPair(display_not_always_scientific,"N<EFBFBD>r exponenten er st<73>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(convert_type, "Type");
InsertGuiPair(convert_input, "Input");
InsertGuiPair(convert_output, "Udput");
InsertGuiPair(convert_dynamic_output, "Auto pr<70>fix");
InsertGuiPair(menu_view, "&Vis");
InsertGuiPair(menu_edit, "&Rediger");
InsertGuiPair(menu_help, "&Hj<48>lp");
InsertGuiPair(menu_language, "&Sprog");
InsertGuiPair(menu_view_new_window, "&Nyt vindue");
InsertGuiPair(menu_view_normal_view, "No&rmal visning");
InsertGuiPair(menu_view_compact_view, "K&ompakt visning");
InsertGuiPair(menu_view_always_on_top, "&Altid <20>verst");
InsertGuiPair(menu_view_lang_english, "&Engelsk");
InsertGuiPair(menu_view_lang_polish, "&Polsk");
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_close_program, "&Afslut");
InsertGuiPair(menu_edit_undo, "&Fortryd");
InsertGuiPair(menu_edit_paste, "&S<>t ind");
InsertGuiPair(menu_edit_copy_result, "&Kopier resultatet");
InsertGuiPair(menu_help_help, "&Hj<48>lp");
InsertGuiPair(menu_help_project_page, "&Projekt side");
InsertGuiPair(menu_help_about, "&Om");
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<74>d for udregning kunne ikke laves");
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"
"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"
"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"
"\r\n"
#ifdef TTCALC_PORTABLE
"Dette er den transportable version af programmet TTCalc. I denne version "
"kan du kun udregne med <20>n slags pr<70>cision (96 bits for "
"mantissen og 32 bits for exponenten) det er omkring +/-6.9e+646457021.\r\n"
"\r\n"
#endif
"Hvis du har sp<73>rgsm<73>l, gode r<>d eller interessante id<69>r vedr<64>rende"
" dette program eller hvis du vil tilslutte dig dette projekt som"
" en udvikler eller en programm<6D>r er du velkommen til at kontakte forfatteren."
);
InsertGuiPair(about_text_portable_version, " transportabel version");
InsertGuiPair(about_text_exe_packer, "EXE Packer: UPX 3.03\r\n");
InsertGuiPair(about_box_title, "Om");
InsertGuiPair(about_box_button_close, "Luk");
InsertGuiPair(unknown_error, "Der er sket en ukendt fejl");
InsertGuiPair(cant_find_help, "Der kunne ikke findes nogen hj<68>lp filer");
InsertGuiPair(cant_open_project_page, "Projekt siden kunne ikke <20>bnes");
/*
Chinese gui messages
*/
gui_messages_tab.push_back( std::map<GuiMsg, std::string>() );
InsertGuiPair(button_ok,"ȷ<EFBFBD><EFBFBD>");
InsertGuiPair(button_cancel,"ȡ<EFBFBD><EFBFBD>");
InsertGuiPair(message_box_caption,"TTCalc");
InsertGuiPair(dialog_box_add_variable_caption,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>±<EFBFBD><EFBFBD><EFBFBD>");
InsertGuiPair(dialog_box_edit_variable_caption,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertGuiPair(dialog_box_add_variable_incorrect_name,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ı<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertGuiPair(dialog_box_add_variable_incorrect_value,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ı<EFBFBD><EFBFBD><EFBFBD>ֵ");
InsertGuiPair(dialog_box_add_variable_variable_exists,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ѿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertGuiPair(dialog_box_edit_variable_unknown_variable,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD>д˱<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڲ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertGuiPair(dialog_box_delete_variable_confirm,"<EFBFBD><EFBFBD>ȷ<EFBFBD><EFBFBD>Ҫɾ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Щ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertGuiPair(dialog_box_variable_not_all_deleted,"һЩ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɾ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڲ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertGuiPair(dialog_box_add_function_caption,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>º<EFBFBD><EFBFBD><EFBFBD>");
InsertGuiPair(dialog_box_edit_function_caption,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertGuiPair(dialog_box_add_function_function_exists,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ѿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertGuiPair(dialog_box_edit_function_unknown_function,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD>д˺<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڲ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertGuiPair(dialog_box_delete_function_confirm,"<EFBFBD><EFBFBD>ȷ<EFBFBD><EFBFBD>Ҫɾ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Щ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertGuiPair(dialog_box_function_not_all_deleted,"һЩ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɾ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڲ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertGuiPair(dialog_box_add_function_incorrect_name,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ĺ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertGuiPair(list_variables_header_1,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertGuiPair(list_variables_header_2,"ֵ");
InsertGuiPair(list_functions_header_1,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertGuiPair(list_functions_header_2,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertGuiPair(list_functions_header_3,"ֵ");
InsertGuiPair(button_add,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertGuiPair(button_edit,"<EFBFBD>");
InsertGuiPair(button_delete,"ɾ<EFBFBD><EFBFBD>");
InsertGuiPair(button_clear,"C");
InsertGuiPair(tab_standard,"<EFBFBD><EFBFBD>׼");
InsertGuiPair(tab_variables,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertGuiPair(tab_functions,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertGuiPair(tab_precision,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertGuiPair(tab_display,"<EFBFBD><EFBFBD>ʾ");
InsertGuiPair(tab_convert,"ת<EFBFBD><EFBFBD>");
InsertGuiPair(radio_precision_1,"С - 96 bits β<><CEB2>, 32 bits ָ<><D6B8>");
InsertGuiPair(radio_precision_2,"<EFBFBD><EFBFBD> - 288 bits β<><CEB2>, 64 bits ָ<><D6B8>");
InsertGuiPair(radio_precision_3,"<EFBFBD><EFBFBD> - 864 bits β<><CEB2>, 128 bits for ָ<><D6B8>");
InsertGuiPair(precision_1_info,"(+/-)6.9 e+646457021, 26λ<36><CEBB>Ч<EFBFBD><D0A7><EFBFBD><EFBFBD><><CAAE><EFBFBD><EFBFBD>)");
InsertGuiPair(precision_2_info,"(+/-)3.4e+2776511644261678652, 85λ<35><CEBB>Ч<EFBFBD><D0A7><EFBFBD><EFBFBD>");
InsertGuiPair(precision_3_info,"(+/-)6.7e+51217599719369681875006054625051616609, 258λ<38><CEBB>Ч<EFBFBD><D0A7><EFBFBD><EFBFBD>");
InsertGuiPair(overflow_during_printing,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertGuiPair(combo_rounding_none,"<EFBFBD><EFBFBD>");
InsertGuiPair(combo_rounding_integer,"<EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertGuiPair(combo_rounding_to_number,"ת<EFBFBD><EFBFBD>");
InsertGuiPair(combo_rounding_after_comma,"λ<EFBFBD><EFBFBD>");
InsertGuiPair(check_remove_zeroes,"ȥ<EFBFBD><EFBFBD>β<EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertGuiPair(display_input, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertGuiPair(display_output, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertGuiPair(display_rounding, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertGuiPair(display_always_scientific,"һֱ");
InsertGuiPair(display_not_always_scientific,"<EFBFBD><EFBFBD>ָ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:");
InsertGuiPair(display_group_scientific, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertGuiPair(display_decimal_point, "С<EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertGuiPair(display_deg_rad_grad, "sin/cos asin/acos");
InsertGuiPair(convert_type, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertGuiPair(convert_input, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertGuiPair(convert_output, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertGuiPair(convert_dynamic_output, "<EFBFBD>Զ<EFBFBD>");
InsertGuiPair(menu_view, "&<26>");
InsertGuiPair(menu_edit, "&<26>");
InsertGuiPair(menu_help, "&<26><><EFBFBD><EFBFBD>");
InsertGuiPair(menu_language, "&<26><><EFBFBD><EFBFBD>");
InsertGuiPair(menu_view_new_window, "&<26>´<EFBFBD><C2B4><EFBFBD>");
InsertGuiPair(menu_view_normal_view, "&<26><>ͨ<EFBFBD><CDA8>ͼ");
InsertGuiPair(menu_view_compact_view, "&<26><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͼ");
InsertGuiPair(menu_view_always_on_top, "&<26><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǰ");
InsertGuiPair(menu_view_lang_english, "<><D3A2>");
InsertGuiPair(menu_view_lang_polish, "&<26><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertGuiPair(menu_view_lang_spanish, "&<26><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertGuiPair(menu_view_lang_danish, "&<26><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertGuiPair(menu_view_lang_chinese, "&<26><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertGuiPair(menu_view_close_program, "&<26>ر<EFBFBD>");
InsertGuiPair(menu_edit_undo, "<><C8A1>");
InsertGuiPair(menu_edit_paste, "<><D5B3>");
InsertGuiPair(menu_edit_copy_result, "&<26><><EFBFBD>ƽ<EFBFBD><C6BD><EFBFBD>");
InsertGuiPair(menu_help_help, "&<26><><EFBFBD><EFBFBD>");
InsertGuiPair(menu_help_project_page, "&<26><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҳ");
InsertGuiPair(menu_help_about, "&<26><><EFBFBD><EFBFBD>");
InsertGuiPair(cant_init_calculations, "<EFBFBD><EFBFBD><EFBFBD>ܳ<EFBFBD>ʼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģ<EFBFBD><EFBFBD>");
InsertGuiPair(message_box_error_caption,"TTCalc");
InsertGuiPair(cant_create_thread, "<EFBFBD><EFBFBD><EFBFBD>ܴ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>߳<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertGuiPair(cant_create_main_window, "<EFBFBD><EFBFBD><EFBFBD>ܴ<EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD>ó<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertGuiPair(cant_init_common_controls,"<EFBFBD><EFBFBD><EFBFBD>ܳ<EFBFBD>ʼ<EFBFBD><EFBFBD>ͨ<EFBFBD>ÿؼ<EFBFBD>(InitCommonControlsEx)");
InsertGuiPair(about_text,
"Mathematical calculator TTCalc %d.%d.%d%s%s\r\n"
"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: Tomasz Sowa\r\n"
"<EFBFBD><EFBFBD>ϵ: t.sowa@ttmath.org\r\n"
"<EFBFBD><EFBFBD><EFBFBD><EFBFBD>: BSD (<28><>Դ<EFBFBD><D4B4>Ŀ)\r\n"
"<EFBFBD><EFBFBD>ҳ: http://ttcalc.sourceforge.net\r\n"
"Bignum library: TTMath %d.%d.%d%s\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"
"\r\n"
#ifdef TTCALC_PORTABLE
"This is the portable version of the program TTCalc. In this version "
"you can calculate only with one kind of precision (96 bits for the "
"mantissa and 32 bits for the exponent) it's about +/-6.9e+646457021.\r\n"
"\r\n"
#endif
"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>κδ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ļ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҽ<EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ļ<EFBFBD>ӭ<EFBFBD><EFBFBD><EFBFBD>ǣ<EFBFBD>"
);
InsertGuiPair(about_text_portable_version, " portable version");
InsertGuiPair(about_text_exe_packer, "EXE Packer: UPX 3.03\r\n");
InsertGuiPair(about_box_title, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertGuiPair(about_box_button_close, "<EFBFBD>ر<EFBFBD>");
InsertGuiPair(unknown_error, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>δ֪<EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
InsertGuiPair(cant_find_help, "û<EFBFBD><EFBFBD><EFBFBD>ҵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>");
InsertGuiPair(cant_open_project_page, "<EFBFBD><EFBFBD><EFBFBD>ܴ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҳ");
} }

View File

@@ -102,7 +102,7 @@ public:
display_always_scientific, display_always_scientific,
display_not_always_scientific, display_not_always_scientific,
display_decimal_point, display_decimal_point,
display_deg_red_grad, display_deg_rad_grad,
convert_type, convert_type,
convert_input, convert_input,
convert_output, convert_output,
@@ -118,6 +118,8 @@ public:
menu_view_lang_english, menu_view_lang_english,
menu_view_lang_polish, menu_view_lang_polish,
menu_view_lang_spanish, menu_view_lang_spanish,
menu_view_lang_danish,
menu_view_lang_chinese,
menu_view_close_program, menu_view_close_program,
menu_edit_undo, menu_edit_undo,
menu_edit_paste, menu_edit_paste,
@@ -146,7 +148,7 @@ public:
// (after conversion to 'int' we pass it into the std::vector) // (after conversion to 'int' we pass it into the std::vector)
enum Country enum Country
{ {
en = 0, pl, sp en = 0, pl, sp, da, chn
}; };

View File

@@ -405,6 +405,8 @@ HMENU menu = GetMenu(hWnd);
SetMenuLanguageItem(menu, IDM_LANGUAGE_ENGLISH, Languages::menu_view_lang_english); SetMenuLanguageItem(menu, IDM_LANGUAGE_ENGLISH, Languages::menu_view_lang_english);
SetMenuLanguageItem(menu, IDM_LANGUAGE_POLISH, Languages::menu_view_lang_polish); SetMenuLanguageItem(menu, IDM_LANGUAGE_POLISH, Languages::menu_view_lang_polish);
SetMenuLanguageItem(menu, IDM_LANGUAGE_SPANISH, Languages::menu_view_lang_spanish); 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_CLOSE_PROGRAM, Languages::menu_view_close_program); SetMenuLanguageItem(menu, IDM_CLOSE_PROGRAM, Languages::menu_view_close_program);
SetMenuLanguageItem(menu, IDM_EDIT_UNDO, Languages::menu_edit_undo); SetMenuLanguageItem(menu, IDM_EDIT_UNDO, Languages::menu_edit_undo);
SetMenuLanguageItem(menu, IDM_EDIT_PASTE, Languages::menu_edit_paste); SetMenuLanguageItem(menu, IDM_EDIT_PASTE, Languages::menu_edit_paste);
@@ -766,15 +768,25 @@ void WmInitMenuPopUpView(HMENU menu)
CheckMenuItem(menu, IDM_LANGUAGE_ENGLISH, MF_BYCOMMAND|MF_UNCHECKED); CheckMenuItem(menu, IDM_LANGUAGE_ENGLISH, MF_BYCOMMAND|MF_UNCHECKED);
CheckMenuItem(menu, IDM_LANGUAGE_POLISH, MF_BYCOMMAND|MF_UNCHECKED); CheckMenuItem(menu, IDM_LANGUAGE_POLISH, MF_BYCOMMAND|MF_UNCHECKED);
CheckMenuItem(menu, IDM_LANGUAGE_SPANISH, MF_BYCOMMAND|MF_UNCHECKED); 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);
if( GetPrgRes()->GetLanguages()->GetCurrentLanguage() == Languages::en ) Languages::Country lang = GetPrgRes()->GetLanguages()->GetCurrentLanguage();
if( lang == Languages::en )
CheckMenuItem(menu, IDM_LANGUAGE_ENGLISH, MF_BYCOMMAND|MF_CHECKED); CheckMenuItem(menu, IDM_LANGUAGE_ENGLISH, MF_BYCOMMAND|MF_CHECKED);
else else
if( GetPrgRes()->GetLanguages()->GetCurrentLanguage() == Languages::pl ) if( lang == Languages::pl )
CheckMenuItem(menu, IDM_LANGUAGE_POLISH, MF_BYCOMMAND|MF_CHECKED); CheckMenuItem(menu, IDM_LANGUAGE_POLISH, MF_BYCOMMAND|MF_CHECKED);
else else
if( GetPrgRes()->GetLanguages()->GetCurrentLanguage() == Languages::sp ) if( lang == Languages::sp )
CheckMenuItem(menu, IDM_LANGUAGE_SPANISH, MF_BYCOMMAND|MF_CHECKED); CheckMenuItem(menu, IDM_LANGUAGE_SPANISH, MF_BYCOMMAND|MF_CHECKED);
else
if( lang == Languages::da )
CheckMenuItem(menu, IDM_LANGUAGE_DANISH, MF_BYCOMMAND|MF_CHECKED);
else
if( lang == Languages::chn )
CheckMenuItem(menu, IDM_LANGUAGE_CHINESE, MF_BYCOMMAND|MF_CHECKED);
} }
@@ -1037,7 +1049,27 @@ BOOL WmCommand_LanguageSpanish(HWND hWnd, UINT message, WPARAM wParam, LPARAM lP
return true; return true;
} }
BOOL WmCommand_LanguageDanish(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
GetPrgRes()->GetLanguages()->SetCurrentLanguage(Languages::da);
SetMenuLanguage(hWnd);
SetOutputEditLanguage(hWnd);
TabWindowFunctions::SetLanguage( GetDlgItem(hWnd, IDC_TAB) );
return true;
}
BOOL WmCommand_LanguageChinese(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
GetPrgRes()->GetLanguages()->SetCurrentLanguage(Languages::chn);
SetMenuLanguage(hWnd);
SetOutputEditLanguage(hWnd);
TabWindowFunctions::SetLanguage( GetDlgItem(hWnd, IDC_TAB) );
return true;
}
@@ -1108,6 +1140,8 @@ void CreateCommandMessagesTable(Messages & cmessages)
cmessages.Associate(IDM_LANGUAGE_ENGLISH, WmCommand_LanguageEnglish); cmessages.Associate(IDM_LANGUAGE_ENGLISH, WmCommand_LanguageEnglish);
cmessages.Associate(IDM_LANGUAGE_POLISH, WmCommand_LanguagePolish); cmessages.Associate(IDM_LANGUAGE_POLISH, WmCommand_LanguagePolish);
cmessages.Associate(IDM_LANGUAGE_SPANISH, WmCommand_LanguageSpanish); cmessages.Associate(IDM_LANGUAGE_SPANISH, WmCommand_LanguageSpanish);
cmessages.Associate(IDM_LANGUAGE_DANISH, WmCommand_LanguageDanish);
cmessages.Associate(IDM_LANGUAGE_CHINESE, WmCommand_LanguageChinese);
cmessages.Associate(IDM_HELP_HELP, WmHelp); cmessages.Associate(IDM_HELP_HELP, WmHelp);
cmessages.Associate(IDM_HELP_PROJECT_PAGE, WmProjectPage); cmessages.Associate(IDM_HELP_PROJECT_PAGE, WmProjectPage);
} }

View File

@@ -57,19 +57,19 @@ ParserManager::ParserManager() : buffer_len(2048)
ParserManager::ParserManager(const ParserManager & p) : buffer_len(p.buffer_len) ParserManager::ParserManager(const ParserManager & p) : buffer_len(p.buffer_len)
{ {
buffer = 0; buffer = 0;
base_input = p.base_input; base_input = p.base_input;
base_output = p.base_output; base_output = p.base_output;
always_scientific = p.always_scientific; always_scientific = p.always_scientific;
when_scientific = p.when_scientific; when_scientific = p.when_scientific;
rounding = p.rounding; rounding = p.rounding;
remove_zeroes = p.remove_zeroes; remove_zeroes = p.remove_zeroes;
last_variables_id = p.last_variables_id; last_variables_id = p.last_variables_id;
last_functions_id = p.last_functions_id; last_functions_id = p.last_functions_id;
} }
ParserManager & ParserManager::operator=(const ParserManager & p) ParserManager & ParserManager::operator=(const ParserManager &)
{ {
buffer = 0; buffer = 0;

View File

@@ -44,9 +44,7 @@
*/ */
#include "resource.h" #include "resource.h"
#include <ttmath/ttmath.h>
#include "programresources.h" #include "programresources.h"
#include <windows.h> #include <windows.h>

View File

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

View File

@@ -195,6 +195,8 @@
#define IDM_LANGUAGE_ENGLISH 40010 #define IDM_LANGUAGE_ENGLISH 40010
#define IDM_LANGUAGE_POLISH 40011 #define IDM_LANGUAGE_POLISH 40011
#define IDM_LANGUAGE_SPANISH 40012 #define IDM_LANGUAGE_SPANISH 40012
#define IDM_LANGUAGE_DANISH 40013
#define IDM_LANGUAGE_CHINESE 40014
#define IDM_CLOSE_PROGRAM 40020 #define IDM_CLOSE_PROGRAM 40020
#define IDM_EDIT_UNDO 40030 #define IDM_EDIT_UNDO 40030
#define IDM_EDIT_PASTE 40031 #define IDM_EDIT_PASTE 40031

View File

@@ -1,7 +1,8 @@
#define APSTUDIO_READONLY_SYMBOLS #define APSTUDIO_READONLY_SYMBOLS
#include "afxres.h" //#include "afxres.h"
#undef APSTUDIO_READONLY_SYMBOLS #undef APSTUDIO_READONLY_SYMBOLS
#include "windows.h"
LANGUAGE LANG_POLISH, 1 LANGUAGE LANG_POLISH, 1
104 ICON "..\\res\\icon02.ico" 104 ICON "..\\res\\icon02.ico"
@@ -28,6 +29,8 @@ BEGIN
MENUITEM "&English", 40010 MENUITEM "&English", 40010
MENUITEM "&Polish", 40011 MENUITEM "&Polish", 40011
MENUITEM "&Spanish", 40012 MENUITEM "&Spanish", 40012
MENUITEM "&Danish", 40013
MENUITEM "&Chinese", 40014
END END
MENUITEM SEPARATOR MENUITEM SEPARATOR
MENUITEM "&Close", 40020 MENUITEM "&Close", 40020

View File

@@ -447,7 +447,7 @@ int i;
SetDlgItemText(hWnd, IDC_CHECK_REMOVE_ZEROES, GetPrgRes()->GetLanguages()->GuiMessage(Languages::check_remove_zeroes)); SetDlgItemText(hWnd, IDC_CHECK_REMOVE_ZEROES, GetPrgRes()->GetLanguages()->GuiMessage(Languages::check_remove_zeroes));
SetDlgItemText(hWnd, IDC_LABEL_DISPLAY_DEG_RAD_GRAD, GetPrgRes()->GetLanguages()->GuiMessage(Languages::display_deg_red_grad)); SetDlgItemText(hWnd, IDC_LABEL_DISPLAY_DEG_RAD_GRAD, GetPrgRes()->GetLanguages()->GuiMessage(Languages::display_deg_rad_grad));
} }

View File

@@ -243,7 +243,7 @@ NewStopCalculating stop_calculating;
we make the copy-constructor private so that nobody will be able we make the copy-constructor private so that nobody will be able
to make a copy of the one object of this class to make a copy of the one object of this class
*/ */
ThreadController(const ThreadController & c) ThreadController(const ThreadController &)
{ {
} }
}; };