[kst] [Bug 375612] Session files not portable between different system locales

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Fri Feb 3 21:07:32 UTC 2017


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

netterfield at astro.utoronto.ca changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |CONFIRMED
     Ever confirmed|0                           |1

--- Comment #6 from netterfield at astro.utoronto.ca ---
This is a ... deep bug.

When no column names are provided by the file, the ascii datasource plugin
automatically names the columns "Column 1" etc, and, of course, makes "Column"
a translatable string.  So in German it calls it "Spalte 1" etc.

Kst proper knows nothing of the names being automatic or translated - it just
knows the list of field names that the datasource provides - and when it saves
a vector, it uses the only name it has been given.

Trying to load in a different language fails.

Options:
- don't translate "Column" - field would be called "Column 1", etc, regardless
of language.
- don't add "Column" to the automatically generated name of the field.  So
"Column 1" would just become "1".
- Save the translated name in the data source config section of the session
file, and use that translation regardless of what language the session is
reopened in.
- Apologize that session files are not compatible between languages.

Other options that might be more desirable seem to require significant
re-architecturing how data sources handle field names.

Thoughts?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Kst mailing list