Files
harbour-core/tests/langchk.hb
vszakats 9687850865 2013-03-16 02:10 UTC+0100 Viktor Szakats (harbour syenar.net)
* (all files)
    * stripped svn header
    * minor cleanups
    ; use following command to find out the history of files:
       git log
       git log --follow
       git blame
       git annotate
2013-03-16 02:11:42 +01:00

46 lines
1.0 KiB
Plaintext

/*
* Check alignment dependent lang item(s)
*
* Copyright 2013 Viktor Szakats (harbour syenar.net)
* www - http://harbour-project.org
*
*/
#pragma -w3
#pragma -km+
#pragma -ko+
#include "hblang.ch"
#define LEFTEQUAL( l, r ) ( Left( l, Len( r ) ) == r )
PROCEDURE Main()
LOCAL tmp
LOCAL nCount
LOCAL cName
LOCAL cPO
cPO := ;
PadR( "en", 6 ) + ' "' + ;
PadR( "", 15, "*" ) + ;
Str( 999999999999, 12 ) + " " + ;
DToC( Date() ) + ;
Str( 999999999999, 12 ) + '"' + hb_eol()
nCount := __dynsCount()
FOR tmp := 1 TO nCount
cName := __dynsGetName( tmp )
IF LEFTEQUAL( cName, "HB_LANG_" )
cName := SubStr( cName, Len( "HB_LANG_" ) + 1 )
IF Len( cName ) != 5 .AND. ;
! "|" + cName + "|" $ "|RUKOI8|UAKOI8|ZHB5|ZHGB|"
cPO += PadR( Lower( cName ), 6 ) + ' "' + hb_langMessage( HB_LANG_ITEM_BASE_NATMSG, cName ) + '"' + hb_eol()
ENDIF
ENDIF
NEXT
hb_MemoWrit( hb_FNameExtSet( __FILE__, ".txt" ), cPO )
RETURN