Hi, I have made improvement for PoChecker package/app for lazarus. I'm sending screenshot and asking if do you think it is usefull.... If yes, I'll export patches from git... If not, I'll keep it for myself. Another thing is patch to source of PoChecker, where I'm replacing raw strings with their existing resourcestring variants - whose are untranslated as origin strings at time of declaration, so the code does not lost functions...

Attaching: screenshot, path for strings (apply with patch -p1 < 0001-blah-blah-blah.patch)


--
Václav Valíček
[email protected]

>From d99f6fc12b367db284a1f661e086bf9ac02fb84e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?V=C3=A1clav=20Val=C3=AD=C4=8Dek?= <[email protected]>
Date: Thu, 19 Jun 2014 11:27:47 +0200
Subject: [PATCH 1/6] Replace raw strings with their existing resourcestring
 equivalent - this time untranslated...

---
 components/pochecker/pofamilies.pp | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/components/pochecker/pofamilies.pp b/components/pochecker/pofamilies.pp
index 05d1167..84a986c 100644
--- a/components/pochecker/pofamilies.pp
+++ 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
     );
 
 Type
-- 
1.9.1

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to