WeblateOrg / translation-finder

Translation files finder
https://weblate.org/
GNU General Public License v3.0
17 stars 8 forks source link

false positive for Cataclysm-DDA #54

Closed Jibec closed 3 years ago

Jibec commented 3 years ago

here, aresource and po looks fine. but json-nested and yaml are incorrect.

[ { 'file_format': 'aresource',
    'filemask': 'Cataclysm-DDA-0.E-2/android/app/src/experimental/res/values-*/strings.xml',
    'template': 'Cataclysm-DDA-0.E-2/android/app/src/experimental/res/values/strings.xml'},
  { 'file_format': 'aresource',
    'filemask': 'Cataclysm-DDA-0.E-2/android/app/src/main/res/values-*/strings.xml',
    'template': 'Cataclysm-DDA-0.E-2/android/app/src/main/res/values/strings.xml'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/book/*.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/classes/*.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/12mm.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/20x66mm.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/22.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/223.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/270win.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/300.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/3006.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/300BLK.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/308.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/32.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/357sig.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/36paper.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/38.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/380.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/38super.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/40.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/40x46mm.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/40x53mm.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/410shot.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/44.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/44paper.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/45.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/454.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/4570.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/45colt.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/46.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/460.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/50.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/500.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/545x39.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/57.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/5x50.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/66mm.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/700nx.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/762.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/762R.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/762x25.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/84x246mm.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/8x40mm.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/9mm.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/9x18.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/atgm.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/bio.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/blunderbuss.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/chemical_spray.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/combination.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/faults_*.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/flammable.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/flintlock.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/metal_rail.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/monster_*.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/nail.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/paintball.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/shot.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/signal_flare.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/items/*/ups.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/mapgen/*.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/mapgen/*_car_dealership.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/mapgen/*_car_showroom.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/mapgen/*_city_dump_small.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/mapgen/*_gardening_allotment.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/mapgen/*_internet_cafe.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/mapgen/*_market_small.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/mapgen/*_open_sewer_small.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/mapgen/*_private_park.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/mapgen/*_public_art_piece.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/mapgen/*_public_space.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/mapgen/*_sex_shop.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/mapgen/*_tire_shop.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/mapgen/fema/FEMA_*_00.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/mapgen/fema/FEMA_*_01.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/mapgen/fema/FEMA_*_02.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/mapgen/fema/FEMA_*_03.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/mapgen/house/house05_*.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/mapgen/mi-go/*-go_encampment.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/mapgen/mi-go/*-go_nested.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/mapgen/mi-go/*-go_scout_tower.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/mapgen/refugee_center/rc_grounds_*.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/mapgen/s_*.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/mapgen_palettes/*-go_palette.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/monstergroups/*-go.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/monsters/*-go.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/npcs/Backgrounds/gung_*_1.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/npcs/Backgrounds/gung_*_2.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/npcs/Backgrounds/gung_*_3.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/npcs/*_trait_groups.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/npcs/*_traits.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/npcs/holdouts/*_Lapin.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/npcs/prisoners/*-go_prisoners.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/json/overmap/overmap_terrain/overmap_terrain_*-go.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/mods/Aftershock/items/*/5x50.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/mods/Aftershock/items/*/laser.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/mods/CRT_EXPANSION/items/crt_*.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/mods/CRT_EXPANSION/martial/crt_*_techniques.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/mods/CRT_EXPANSION/mutations/vamp_mut_*.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/mods/CRT_EXPANSION/mutations/wendigo_mut_*.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/mods/Graphical_Overmap/go_overmap_terrain_*-go.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/mods/Magiclysm/ter_fur_transform/ter_*_transform.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/mods/more_classes_scenarios/*_classes.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/mods/more_classes_scenarios/*_scenarios.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/mods/more_classes_scenarios/*_start_locations.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/mods/More_Locations/factory/factory_*_01.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/mods/More_Locations/factory/factory_*_02.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/mods/More_Locations/factory/factory_*_03.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/mods/More_Locations/factory/factory_*_04.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/mods/More_Locations/factory/factory_*_05.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/mods/More_Locations/factory/factory_*_gate_01.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/mods/More_Locations/factory/factory_*_gate_02.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/mods/More_Locations/factory/factory_*_gate_03.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/mods/More_Locations/factory/factory_*_06.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/mods/Urban_Development/building_jsons/urban_38_*_hardware_house.json'},
  { 'file_format': 'json-nested',
    'filemask': 'Cataclysm-DDA-0.E-2/data/names/*.json',
    'template': 'Cataclysm-DDA-0.E-2/data/names/en.json'},
  { 'file_format': 'po',
    'filemask': 'Cataclysm-DDA-0.E-2/lang/po/*.po'},
  { 'file_format': 'yaml',
    'filemask': 'Cataclysm-DDA-0.E-2/.github/workflows/*-validator.yml'}]

file comes from https://kojipkgs.fedoraproject.org//packages/cataclysm-dda/0.E.2/1.fc32/src/cataclysm-dda-0.E.2-1.fc32.src.rpm list of files

nijel commented 3 years ago

Most of the issues comes from the fact that "gun" is also ISO code for a language: https://iso639-3.sil.org/code/gun, will add it to codes to ignore.

nijel commented 3 years ago

Besides that there will be always false positives for things like data/json/npcs/BG_trait_groups.json, or data/mods/more_classes_scenarios/cs_scenarios.json - these look like a files with language code in path. The finder is expected to detect anything what might be a translation, so some amount of false positives is expected and the result is supposed to be reviewed by a human.

github-actions[bot] commented 3 years ago

The issue you have reported seems to be resolved now.