diff --git a/applications/json_packager/deploywin/json_packager.iss b/applications/json_packager/deploywin/json_packager.iss index 959e32d35..fd25bd1ea 100644 --- a/applications/json_packager/deploywin/json_packager.iss +++ b/applications/json_packager/deploywin/json_packager.iss @@ -1,6 +1,6 @@ [Setup] AppName=External OPM JSON package Editor -AppVersion=0.1.16.0 +AppVersion=0.1.17.0 DefaultDirName={pf}\OPMUtilities DefaultGroupName=OPM UninstallDisplayIcon={app}\jsoneditor.exe @@ -35,14 +35,15 @@ InfoAfterFile="readme.txt" Source: "jsoneditor64.exe"; DestDir: "{app}"; DestName: "jsoneditor.exe"; Check: Is64BitInstallMode ; Place all x86 files here, first one should be marked 'solidbreak' Source: "jsoneditor.exe"; DestDir: "{app}"; Check: not Is64BitInstallMode; Flags: solidbreak +; Enable line below if using Lazarus < V1.7 +;Source: "translate.lrs"; DestDir: "{app}"; + ; Place all common files here, first one should be marked 'solidbreak' ; Source: "readmepreinstall.txt"; DestDir: "{app}"; Flags: isreadme ; Source: "readme.txt"; DestDir: "{app}"; Flags: isreadme -Source: ".\locale\jsoneditor.en.po"; DestDir: "{app}\locale"; Flags: solidbreak -Source: ".\locale\jsoneditor.es.po"; DestDir: "{app}\locale"; -Source: ".\locale\jsoneditor.en.mo"; DestDir: "{app}\locale"; -Source: ".\locale\jsoneditor.es.mo"; DestDir: "{app}\locale"; -Source: ".\locale\jsoneditor.po"; DestDir: "{app}\locale"; +; Source: ".\locale\jsoneditor.en.po"; DestDir: "{app}\locale"; Flags: solidbreak +; Source: ".\locale\jsoneditor.es.po"; DestDir: "{app}\locale"; +; Source: ".\locale\jsoneditor.po"; DestDir: "{app}\locale"; [Icons] Name: "{group}\External OPM JSON package Editor"; Filename: "{app}\jsoneditor.exe" diff --git a/applications/json_packager/jsonpackage.lps b/applications/json_packager/jsonpackage.lps index 6b2257e1f..cdca22a12 100644 --- a/applications/json_packager/jsonpackage.lps +++ b/applications/json_packager/jsonpackage.lps @@ -3,7 +3,7 @@ - + @@ -20,12 +20,12 @@ - - + + - - + + @@ -198,123 +198,123 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + diff --git a/applications/json_packager/umain.lfm b/applications/json_packager/umain.lfm index bfe93271f..2fe6caca5 100644 --- a/applications/json_packager/umain.lfm +++ b/applications/json_packager/umain.lfm @@ -19,6 +19,7 @@ object frmMain: TfrmMain OnShow = FormShow Position = poScreenCenter LCLVersion = '1.7' + Scaled = True object lblName: TLabel Left = 8 Height = 15 diff --git a/applications/json_packager/umain.pas b/applications/json_packager/umain.pas index 17d5720c5..2fae9310d 100644 --- a/applications/json_packager/umain.pas +++ b/applications/json_packager/umain.pas @@ -1,6 +1,9 @@ unit umain; {$DEFINE PO_BUILTINRES}// Use built-in resources for .po files +// If compiling with Laz Version < 1.7 then use lazres to make a translate.lrs from the .po files +// If compiling Laz V >=1.7 then add the .po files in Project/Options/resources +// Without this DEFINE, include the /locale folder in the distribution { OnlinePackageManager Update JSON Editor @@ -585,10 +588,8 @@ begin s += RightStr(VInfo.VersionStrings[1], Length(VInfo.VersionStrings[1]) - EqualsPos) + LineEnding; end; - { s+=Format(rsCompiledWith2, [{$I %FPCVERSION%},lcl_major,lcl_minor,LineEnding,{$I %FPCTARGETCPU%},{$I %FPCTARGETOS%},LineEnding,LineEnding]); - } if VInfo.VersionStrings.Count > 1 then begin EqualsPos := Pos('=', VInfo.VersionStrings[0]); // File Deswcription