I found appr 250 of them, but all of them have a context specified.
I exluded items with a context from the check, based upon the documentation I found in the wiki: http://wiki.lazarus.freepascal.org/Translations_/_i18n_/_localizations_for_programs#Fuzzy_entries.I can simply add a check for all duplicates if you want, but I think 2 (or more) entries with the same text, but with a context specified, should not be considered an error?
Where do you see 250 of them?
for i := FMaster.Count - 1 downto 0 do begin PoItem := FMaster.PoItems[i]; Dup := FMaster.OriginalToItem(PoItem.Original); if Assigned(Dup) and (Dup.Identifier <> PoItem.Identifier) and (Dup.Context = '') then
for i := FMaster.Count - 1 downto 0 do begin PoItem := FMaster.PoItems[i]; Dup := FMaster.OriginalToItem(PoItem.Original); // remove the check for (Dup.Context = '') if Assigned(Dup) and (Dup.Identifier <> PoItem.Identifier) then
--------------------------------------------------Errors reported by CheckDiplicateOriginals for:lazaruside.po--------------------------------------------------[Line: 17722]This resourcestring:#: lazarusidestrconsts.uemsetfreebookmarkmsgid "Set a Free Bookmark"msgctxt "lazarusidestrconsts.uemsetfreebookmark"has the same value as idenftifier lazarusidestrconsts.lismenusetfreebookmark at line 10971For this entry it is recommended to set: msgctxt="lazarusidestrconsts.uemsetfreebookmark"...snip ...[Line: 12]This resourcestring:#: lazarusidestrconsts.dbgbreakgroupdlgcaptionenablemsgid "Select Groups"msgctxt "lazarusidestrconsts.dbgbreakgroupdlgcaptionenable"has the same value as idenftifier lazarusidestrconsts.dbgbreakgroupdlgcaptiondisable at line 7For this entry it is recommended to set: msgctxt="lazarusidestrconsts.dbgbreakgroupdlgcaptionenable"Found 253 errors.--------------------------------------------------Total errors found: 253
We should have seperate Errors and Warnings (and seperate counters for them then)?[...]In pofamilies.pp, procedure TPoFamily.CheckDuplicateOriginals, change these lines