From 525b6865814caecbe96332f3c2a72e9ce4eb4fb4 Mon Sep 17 00:00:00 2001 From: gambas Date: Sat, 19 Jan 2019 01:05:48 +0100 Subject: [PATCH] Do not call 'msgfmt' anymore, this is automatically done by the compiler now. [DEVELOPMENT ENVIRONMENT] * NEW: Do not call 'msgfmt' anymore, this is automatically done by the compiler now. --- app/src/gambas3/.src/Project.module | 2 +- app/src/gambas3/.src/Translation/FTranslate.class | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/gambas3/.src/Project.module b/app/src/gambas3/.src/Project.module index d07f9ab19..b5f0e497a 100644 --- a/app/src/gambas3/.src/Project.module +++ b/app/src/gambas3/.src/Project.module @@ -2514,7 +2514,7 @@ Public Function Compile(Optional bAll As Boolean, Optional bNoDebug As Boolean, iPos = InStr(sTrans, "#,") If iPos Then sTrans = Mid$(sTrans, iPos) File.Save(sDir &/ ".lang/.pot", sTrans) - CompileTranslation(bAll) + 'CompileTranslation(bAll) Endif 'SetMessage(("OK")) diff --git a/app/src/gambas3/.src/Translation/FTranslate.class b/app/src/gambas3/.src/Translation/FTranslate.class index 54dcb5093..9ea0fcc25 100644 --- a/app/src/gambas3/.src/Translation/FTranslate.class +++ b/app/src/gambas3/.src/Translation/FTranslate.class @@ -507,7 +507,8 @@ Private Sub SaveTranslate(Optional bForce As Boolean) Move $sPath & ".new" To $sPath - Project.CompileTranslation(True, $sLang) + 'Project.CompileTranslation(True, $sLang) + Project.Compile() 'Shell "msgfmt -o " & Shell$(sPathMO) & " " & Shell$($sPath) Wait