WeblateOrg/translation-finder

false positives for calibre

Jibec opened this issue · 1 comments

Jibec commented

when the file organization contain both a folder per language and multiples po files inside it, translation finder propose two filemasks.

'filemask': 'translations/manual//conversion.po' is correct
'filemask': 'translations/manual/am/
.po' is not correct

[ { 'file_format': 'json-nested',
    'filemask': 'translations/manual/*/stats.json'},
  { 'file_format': 'po',
    'filemask': 'translations/calibre/*.po',
    'new_base': 'translations/calibre/main.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/iso_639/*.po',
    'new_base': 'translations/iso_639/iso_639_3.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/*/catalogs.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/*/conversion.po',
    'new_base': 'translations/manual/conversion.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/*/creating_plugins.po',
    'new_base': 'translations/manual/creating_plugins.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/*/customize.po',
    'new_base': 'translations/manual/customize.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/*/db_api.po',
    'new_base': 'translations/manual/db_api.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/*/develop.po',
    'new_base': 'translations/manual/develop.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/*/diff.po',
    'new_base': 'translations/manual/diff.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/*/drm.po',
    'new_base': 'translations/manual/drm.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/*/edit.po',
    'new_base': 'translations/manual/edit.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/*/faq.po',
    'new_base': 'translations/manual/faq.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/*/function_mode.po',
    'new_base': 'translations/manual/function_mode.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/*/glossary.po',
    'new_base': 'translations/manual/glossary.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/*/gui.po',
    'new_base': 'translations/manual/gui.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/*/index.po',
    'new_base': 'translations/manual/index.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/*/metadata.po',
    'new_base': 'translations/manual/metadata.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/*/news.po',
    'new_base': 'translations/manual/news.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/*/news_recipe.po',
    'new_base': 'translations/manual/news_recipe.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/*/plugins.po',
    'new_base': 'translations/manual/plugins.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/*/polish.po',
    'new_base': 'translations/manual/polish.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/af/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/*/regexp.po',
    'new_base': 'translations/manual/regexp.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/*/regexp_quick_reference.po',
    'new_base': 'translations/manual/regexp_quick_reference.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/*/server.po',
    'new_base': 'translations/manual/server.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/*/simple_index.po',
    'new_base': 'translations/manual/simple_index.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/*/snippets.po',
    'new_base': 'translations/manual/snippets.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/*/sphinx.po',
    'new_base': 'translations/manual/sphinx.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/*/sub_groups.po',
    'new_base': 'translations/manual/sub_groups.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/*/template_lang.po',
    'new_base': 'translations/manual/template_lang.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/*/tutorials.po',
    'new_base': 'translations/manual/tutorials.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/*/typesetting_math.po',
    'new_base': 'translations/manual/typesetting_math.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/*/viewer.po',
    'new_base': 'translations/manual/viewer.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/*/virtual_libraries.po',
    'new_base': 'translations/manual/virtual_libraries.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/*/xpath.po',
    'new_base': 'translations/manual/xpath.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/am/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/ar/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/ast/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/az/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/be/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/bg/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/bn/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/bn_BD/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/bn_IN/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/br/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/bs/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/ca/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/crh/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/cs/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/cy/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/da/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/de/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/el/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/en_AU/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/en_CA/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/en_GB/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/eo/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/es/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/es_MX/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/et/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/eu/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/fa/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/fi/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/fil/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/fo/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/fr/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/fr_CA/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/fur/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/ga/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/gl/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/gu/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/he/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/hi/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/hr/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/hu/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/hy/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/id/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/is/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/it/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/ja/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/jv/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/ka/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/km/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/km_KH/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/kn/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/ko/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/ku/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/lt/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/ltg/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/lv/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/mi/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/mk/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/ml/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/mn/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/mr/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/ms/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/mt/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/my/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/nb/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/nds/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/nl/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/nn/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/nso/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/oc/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/or/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/pa/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/pl/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/ps/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/pt/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/pt_BR/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/ro/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/ru/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/rw/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/sc/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/si/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/sk/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/sl/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/sl_SI/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/sq/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/sr/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/sr@latin/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/sv/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/ta/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/te/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/th/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/ti/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/tr/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/tt/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/ug/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/uk/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/ur/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/uz@Latn/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/ve/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/vi/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/wa/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/xh/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/yi/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/zh_CN/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/zh_HK/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/zh_TW/*.po',
    'new_base': 'translations/manual/catalogs.pot'},
  { 'file_format': 'po',
    'filemask': 'translations/manual/zu/*.po',
    'new_base': 'translations/manual/catalogs.pot'}]

files comes from https://kojipkgs.fedoraproject.org//packages/calibre/4.22.0/1.fc32/src/calibre-4.22.0-1.fc32.src.rpm
list of files

The issue you have reported seems to be resolved now.

  • In case you see a similar problem, please open a separate issue.
  • If you are happy with the outcome, consider supporting Weblate by donating.