https://bugs.kde.org/show_bug.cgi?id=520802

            Bug ID: 520802
           Summary: Number of Translations of ExtraFields don't match
    Classification: Frameworks and Libraries
           Product: frameworks-kio
      Version First 6.25.0
       Reported In:
          Platform: unspecified
                OS: All
            Status: REPORTED
          Severity: major
          Priority: NOR
         Component: Trash
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

DESCRIPTION
Every worker .so file provides a metadata JSON file (e.g., trash.json) that
defines its capabilities and custom fields. Currently, the trash worker's JSON
file contains a mismatch between the number of expected extra fields and the
actual number of translations provided for various languages.

The ExtraNames array defines exactly 2 extra fields for the job (Original Path
and Deletion Date). 
However:
Some language translations contain too many entries (e.g., Finnish has 5
translation strings).
Other languages contain too few entries (e.g., some languages provide only 1
translation string).

This mismatch yields a log warning at application launch, but more importantly,
it results in corrupted or missing UI translations for users running those
locales, as the fields fail to map correctly to the two available fields
provided by the job.

STEPS TO REPRODUCE
Launch any application that initializes the KDE KIO framework.
Observe the application behavior or terminal output under affected locales.
Inspect the trash.json file directly to see the mismatched array sizes in the
localized ExtraNames[lang] fields.

OBSERVED RESULT
A warning is printed to the console at application launch indicating a mismatch
in the translation array size for the trash worker metadata. 
Warning: "Malformed JSON protocol file for protocol: json, number of the
ExtraNames fields should match the number of ExtraTypes fields" (Comming from
kprotocolinfo.cpp:123)

EXPECTED RESULT
The number of translated strings in the ExtraNames[lang] arrays must strictly
equal the number of elements defined in the base ExtraNames array (exactly 2)
across all localized entries to ensure correct UI mapping and prevent
launch-time warnings.

SOFTWARE/OS VERSIONS
Operating System: Linux
KDE Plasma Version: 6.25
KDE Frameworks Version: 6.25
Qt Version: 6.10.0

ADDITIONAL INFORMATION
The defect introduces potential UI bugs where users may see missing or
incorrect column/field labels depending on their system language. The
translation files (.po / .json) for the trash worker need to be audited and
cleaned up so that every language maps exactly two strings to the two fields.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to