diff --git a/harbour/ChangeLog b/harbour/ChangeLog index b071a2c44c..a4cc8d2545 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,13 @@ past entries belonging to author(s): Viktor Szakats. */ +2009-06-29 16:50 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) + * utils/hbmk2/hbmk2.pt_BR.po + * utils/hbmk2/hbmk2.hu_HU.po + * utils/hbmk2/hbmk2.prg + ! Changed special language ID macro from ${lng} to %{hb_lng} to + avoid collision with normal macros. + 2009-06-29 15:58 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/rtl/filesys.c ! fixed memory corruption in file name conversion diff --git a/harbour/utils/hbmk2/hbmk2.hu_HU.po b/harbour/utils/hbmk2/hbmk2.hu_HU.po index f8a3da94dc..aaa0741633 100644 --- a/harbour/utils/hbmk2/hbmk2.hu_HU.po +++ b/harbour/utils/hbmk2/hbmk2.hu_HU.po @@ -179,8 +179,8 @@ msgstr "Hiba: Harbour k #: hbmk2.prg:5758 hbmk2.prg:6471 #, c-format -msgid "list of languages to be replaced in ${lng} macros in .pot/.po filenames and output .hbl/.po filenames. Comma separared list:\\n-lng=en-EN,hu-HU,de" -msgstr "nyelvek listája, amelyek a .pot/.po és .hbl/.po állományokban levő ${lng} makrókba kerülnek behelyettesítésre. Vesszővel elválasztott lista:\\n-lng=en-EN,hu-HU,de" +msgid "list of languages to be replaced in %1$s macros in .pot/.po filenames and output .hbl/.po filenames. Comma separared list:\\n-lng=en-EN,hu-HU,de" +msgstr "nyelvek listája, amelyek a .pot/.po és .hbl/.po állományokban levő %1$s makrókba kerülnek behelyettesítésre. Vesszővel elválasztott lista:\\n-lng=en-EN,hu-HU,de" #: hbmk2.prg:2737 hbmk2.prg:3108 #, c-format @@ -434,8 +434,8 @@ msgstr "kapcsol #: hbmk2.prg:5758 hbmk2.prg:6471 #, c-format -msgid "output .hbl filename. ${lng} macro is accepted in filename" -msgstr "kimeneti .hbl fájlnév. ${lng} makró használható a fájlnévben" +msgid "output .hbl filename. %1$s macro is accepted in filename" +msgstr "kimeneti .hbl fájlnév. %1$s makró használható a fájlnévben" #: hbmk2.prg:5187 hbmk2.prg:5870 #, c-format @@ -946,4 +946,3 @@ msgstr "" #, c-format msgid "Warning: Cannot create directory for target install %1$s." msgstr "" - diff --git a/harbour/utils/hbmk2/hbmk2.prg b/harbour/utils/hbmk2/hbmk2.prg index 46b29aa9b5..a508199958 100644 --- a/harbour/utils/hbmk2/hbmk2.prg +++ b/harbour/utils/hbmk2/hbmk2.prg @@ -173,10 +173,11 @@ REQUEST hbmk_KEYW #define _MACRO_NORM_PREFIX "$" #define _MACRO_LATE_PREFIX "%" +#define _MACRO_PREFIX_ALL ( _MACRO_NORM_PREFIX + _MACRO_LATE_PREFIX ) #define _MACRO_OPEN "{" #define _MACRO_CLOSE "}" -#define _LNG_MARKER "${lng}" +#define _LNG_MARKER ( _MACRO_LATE_PREFIX + _MACRO_OPEN + "hb_lng" + _MACRO_CLOSE ) #define _HBMK_CFG_NAME "hbmk.cfg" #define _HBMK_AUTOHBM_NAME "hbmk.hbm" @@ -5457,7 +5458,7 @@ STATIC FUNCTION ArchCompFilter( hbmk, cItem ) "hbmk_KEYW( hbmk, Lower( '%1' ) ) )" IF ( nStart := At( _MACRO_OPEN, cItem ) ) > 0 .AND. ; - !( SubStr( cItem, nStart - 1, 1 ) $ ( _MACRO_NORM_PREFIX + _MACRO_LATE_PREFIX ) ) .AND. ; + !( SubStr( cItem, nStart - 1, 1 ) $ _MACRO_PREFIX_ALL ) .AND. ; ( nEnd := hb_At( _MACRO_CLOSE, cItem, nStart ) ) > 0 /* Separate filter from the rest of the item */ @@ -6469,9 +6470,9 @@ STATIC PROCEDURE SetUILang( hbmk ) IF hbmk[ _HBMK_cUILNG ] == "en-EN" hb_i18n_set( NIL ) ELSE - tmp := "${hb_root}hbmk2.${lng}.hbl" + tmp := "${hb_root}hbmk2.${hb_lng}.hbl" tmp := StrTran( tmp, "${hb_root}", PathSepToSelf( DirAddPathSep( hb_DirBase() ) ) ) - tmp := StrTran( tmp, "${lng}", StrTran( hbmk[ _HBMK_cUILNG ], "-", "_" ) ) + tmp := StrTran( tmp, "${hb_lng}", StrTran( hbmk[ _HBMK_cUILNG ], "-", "_" ) ) hb_i18n_set( iif( hb_i18n_check( tmp := hb_MemoRead( tmp ) ), hb_i18n_restoretable( tmp ), NIL ) ) ENDIF @@ -6584,8 +6585,8 @@ STATIC PROCEDURE ShowHelp( hbmk, lLong ) { "-clean" , I_( "clean (in incremental build mode)" ) },; { "-workdir=