2010-01-11 10:21 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbqt/hbqt_destruct.cpp
+ HBQT_SETCODECFORTR()
* contrib/hbxbp/xbpgeneric.prg
+ HbXbp_SetCodecForTr( cCodec )
A step closer to internationalization.
I do not know yet what other steps be needed but...
This commit is contained in:
@@ -17,6 +17,16 @@
|
||||
past entries belonging to author(s): Viktor Szakats.
|
||||
*/
|
||||
|
||||
2010-01-11 10:21 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
|
||||
* contrib/hbqt/hbqt_destruct.cpp
|
||||
+ HBQT_SETCODECFORTR()
|
||||
|
||||
* contrib/hbxbp/xbpgeneric.prg
|
||||
+ HbXbp_SetCodecForTr( cCodec )
|
||||
|
||||
A step closer to internationalization.
|
||||
I do not know yet what other steps be needed but...
|
||||
|
||||
2010-01-11 08:20 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
|
||||
* contrib/hbide/ideprojmanager.prg
|
||||
! Fixed bug reported by Marco Bra
|
||||
|
||||
@@ -133,6 +133,12 @@ HB_FUNC( HBQT_SETCODECFORCSTRINGS )
|
||||
QTextCodec::setCodecForCStrings( codec );
|
||||
}
|
||||
|
||||
HB_FUNC( HBQT_SETCODECFORTR )
|
||||
{
|
||||
QTextCodec * codec = QTextCodec::codecForName( ( char * ) hb_parc( 1 ) );
|
||||
QTextCodec::setCodecForTr( codec );
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#endif // #if QT_VERSION >= 0x040500
|
||||
|
||||
@@ -388,3 +388,11 @@ FUNCTION HbXbp_SetCodec( cCodec )
|
||||
RETURN NIL
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
FUNCTION HbXbp_SetCodecForTr( cCodec )
|
||||
IF !empty( cCodec )
|
||||
hbqt_SetCodecForTr( cCodec )
|
||||
ENDIF
|
||||
RETURN NIL
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user