Mitchell,
That's a great tip. It works perfect now. Here is what I have changed: in
SciTEProps.cxx,
line 1385:
SString title = props.Get("interface.language.translation"); // was
="locale.properties";
line 1386: added
const char*titlecstr = title.c_str();
line 1392:
FilePath localePath(propdir, titlecstr); // was line 1391: FilePath
localePath(propdir, title);
No more compiling errors. Setting
interface.language.translation=cn_GB.properties
in my properties file, simplified Chinese interface is brought up. Changing the
last line into
interface.language.translation=cn_BIG5.properties
traditional Chinese interface is up. Of course I have seperately prepared the
two language properties files. Should Neil make the corresponding changes in
the official version? This will greatly help in setting per user language
interfaces for instance.
[EMAIL PROTECTED]
2007-06-13
----- Original Message -----
From: mitchell
To: scite-interest
Sent: 2007-06-13, 11:43:12
Subject: [scite] Re: Multiple language translations
Hi,
>
> const char *title = props.Get("interface.language.translation");
>
> But this causes a compiling error saying that cannot change type const char*
> into SString. I am not good at C programming and cannot figure out how this
> conversion can be done. Any hints/suggestions are welcomed. Thanks.
SString title = props.Get(...)
and
title.c_str() returns a const char*, or maybe just a char*; either way
you can work with it.
-Mitchell;
>
> instanton
>
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest