From 77594dd2d6c53a0f949607f75825943cc1162615 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Tue, 2 Apr 2013 02:58:06 +0200 Subject: [PATCH] include project name in screen output --- ChangeLog.txt | 4 ++++ config/lang.hb | 12 ++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index f7eb12cfad..b5be619c00 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -10,6 +10,10 @@ * Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment */ +2013-04-02 02:57 UTC+0200 Viktor Szakats (harbour syenar.net) + * config/lang.hb + + include project name in screen output + 2013-04-02 02:43 UTC+0200 Viktor Szakats (harbour syenar.net) * src/rtl/hbi18n2.prg ! __i18n_potArrayClean() to evaluate transformation diff --git a/config/lang.hb b/config/lang.hb index 6f0daebff3..994f839183 100644 --- a/config/lang.hb +++ b/config/lang.hb @@ -70,7 +70,7 @@ STATIC PROCEDURE doc_make( cMain ) cTempHRB := hb_FNameExtSet( hPar[ "entry" ], ".hrb" ) - ? "generating documentation:" + ? hPar[ "name" ], "generating documentation:" hb_run( hb_StrFormat( "hbmk2 -hbraw -q0 %1$s -gh -o%2$s", hPar[ "entry" ], cTempHRB ) ) @@ -112,13 +112,13 @@ STATIC PROCEDURE src_push( cMain ) FClose( hb_FTempCreateEx( @cTempContent, , , ".pot" ) ) FClose( hb_FTempCreateEx( @cTempResult ) ) - ? "generating translation source" + ? hPar[ "name" ], "generating translation source" hb_run( hb_StrFormat( "hbmk2 -hbraw -q0 %1$s -j%2$s -s", hPar[ "entry" ], cTempContent ) ) POT_Sort( cTempContent ) - ? "saving locally" + ? hPar[ "name" ], "saving locally" cContent := hb_StrFormat( ; '#, c-format' + hb_eol() + ; @@ -134,7 +134,7 @@ STATIC PROCEDURE src_push( cMain ) hb_MemoWrit( hPar[ "po" ] + hb_FNameName( hPar[ "entry" ] ) + "." + hPar[ "baselang" ] + ".po", cContent ) - ? "uploading", "size", hb_ntos( Len( cContent ) ) + ? hPar[ "name" ], "uploading", "size", hb_ntos( Len( cContent ) ) hb_MemoWrit( cTempContent, hb_jsonEncode( { "content" => StrTran( cContent, hb_eol(), e"\n" ) } ) ) @@ -182,7 +182,7 @@ STATIC PROCEDURE trs_pull( cMain ) FClose( hb_FTempCreateEx( @cTempResult ) ) - ? "pulling translations:" + ? hPar[ "name" ], "pulling translations:" FOR EACH cLang IN hPar[ "langs" ] @@ -305,7 +305,7 @@ STATIC PROCEDURE trs_push( cMain ) cContent := hb_MemoRead( hPar[ "po" ] + hb_FNameName( hPar[ "entry" ] ) + "." + cLang + ".po" ) - ? "uploading translation", "size", Len( cContent ) + ? hPar[ "name" ], "uploading translation", "size", Len( cContent ) hb_MemoWrit( cTempContent, hb_jsonEncode( { "content" => StrTran( cContent, hb_eol(), e"\n" ) } ) )