From e66b2fa73cd18b09750f43601d871fd81d83e796 Mon Sep 17 00:00:00 2001 From: mattias Date: Mon, 21 Mar 2005 09:53:14 +0000 Subject: [PATCH] replaced automatic package header comment to avoid translators bugs git-svn-id: trunk@7004 - --- ide/lazarusidestrconsts.pas | 7 ++++--- packager/pkgmanager.pas | 8 +++++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/ide/lazarusidestrconsts.pas b/ide/lazarusidestrconsts.pas index 275b1e53af..45fbbb9e91 100644 --- a/ide/lazarusidestrconsts.pas +++ b/ide/lazarusidestrconsts.pas @@ -2157,10 +2157,11 @@ resourcestring +'file for package %s is not a valid executable:%s%s'; lisPkgMangPackageHasNoValidOutputDirectory = 'Package %s%s%s has no valid ' +'output directory:%s%s%s%s'; - lisPkgMangThisFileWasAutomaticallyCreatedByLazarusDoNotEdit = '%s This file ' - +'was automatically created by Lazarus. Do not edit!%s This source is ' - +'only used to compile and install%s the package %s.%s'; lisPkgMangpackageMainSourceFile = 'package main source file'; + lisPkgMangThisFileWasAutomaticallyCreatedByLazarusDoNotEdit = 'This file ' + +'was automatically created by Lazarus. Do not edit!'; + lisPkgMangThisSourceIsOnlyUsedToCompileAndInstallThePackage = 'This source ' + +'is only used to compile and install the package.'; lisPkgMangRenameFileInPackage = 'Rename file in package?'; lisPkgMangThePackageOwnsTheFileShouldTheFileBeRenamed = 'The package %s ' +'owns the file%s%s%s%s.%sShould the file be renamed in the package as ' diff --git a/packager/pkgmanager.pas b/packager/pkgmanager.pas index 73ff2b31e5..82a802ea08 100644 --- a/packager/pkgmanager.pas +++ b/packager/pkgmanager.pas @@ -2633,9 +2633,11 @@ begin end; // create source - HeaderSrc:= - Format(lisPkgMangThisFileWasAutomaticallyCreatedByLazarusDoNotEdit, - ['{ ', e, e, APackage.IDAsString, e+' }'+e+e]); + HeaderSrc:=lisPkgMangThisSourceIsOnlyUsedToCompileAndInstallThePackage; + HeaderSrc:= '{ ' + +lisPkgMangThisFileWasAutomaticallyCreatedByLazarusDoNotEdit+e + +lisPkgMangThisSourceIsOnlyUsedToCompileAndInstallThePackage+e + +' }'+e+e; Src:='unit '+APackage.Name+';'+e +e +'interface'+e