be more predictable when falling back to other dialects found on disk

This commit is contained in:
Viktor Szakats
2013-03-29 20:07:46 +01:00
parent 1b6b2ba911
commit e485eed41a
2 changed files with 6 additions and 0 deletions

View File

@@ -10,6 +10,11 @@
* Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment
*/
2013-03-29 20:07 UTC+0100 Viktor Szakats (harbour syenar.net)
* utils/hbmk2/hbmk2.prg
+ be more predictable when falling back to other dialects
found on disk
2013-03-29 19:31 UTC+0100 Viktor Szakats (harbour syenar.net)
* utils/hbmk2/hbmk2.prg
+ better match algrorithm for finding .hbl translation modules

View File

@@ -15509,6 +15509,7 @@ STATIC PROCEDURE SetUILang( hbmk, cUILNG )
IF Empty( aFile := Directory( _LANG_TO_HBL( cLang ) ) )
cFileName := NIL
ELSE
ASort( aFile,,, {| tmp, tmp1 | tmp[ F_NAME ] < tmp1[ F_NAME ] } )
cFileName := aFile[ 1 ][ F_NAME ]
cLang := StrTran( SubStr( hb_FNameExt( hb_FNameName( cFileName ) ), 2 ), "_", "-" )
ENDIF