[Lazarus] PoChecker possible cosmetical patch

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Jun 19 22:59:33 CEST 2014


On Thu, 19 Jun 2014 22:25:49 +0200
Václav Valíček <vaclav at valicek.name> wrote:

> +++ b/components/pochecker/pofamilies.pp
> @@ -23,13 +23,13 @@ const
>      optRunAllTestsOnAllChildren: TPoTestOptions = [];
>  
>      PoTestOptionNames: array[TPoTestOption] of String = (
> -      'Check number of items',
> -      'Check for incompatible format arguments',
> -      'Check missing identifiers',
> -      'Check for mismatches in untranslated strings',
> -      'Check for duplicate untranslated values',
> -      'Check percentage of (un)translated and fuzzy strings',
> -      'Find all translated po-files'
> +      sCheckNumberOfItems,
> +      sCheckForIncompatibleFormatArguments,
> +      sCheckMissingIdentifiers,
> +      sCheckForMismatchesInUntranslatedStrings,
> +      sCheckForDuplicateUntranslatedValues,
> +      sCheckStatistics,
> +      sFindAllTranslatedPoFiles
>      );

ok. That's reduces some redudancy. They are not translated though. You
must replace the array with a function for that.

Mattias




More information about the Lazarus mailing list