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:
Pritpal Bedi
2010-01-12 18:25:14 +00:00
parent bd9a97a63c
commit 86a3a2056a
3 changed files with 24 additions and 0 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -388,3 +388,11 @@ FUNCTION HbXbp_SetCodec( cCodec )
RETURN NIL
/*----------------------------------------------------------------------*/
FUNCTION HbXbp_SetCodecForTr( cCodec )
IF !empty( cCodec )
hbqt_SetCodecForTr( cCodec )
ENDIF
RETURN NIL
/*----------------------------------------------------------------------*/