Bug #11209
openseems some strings, for example "Name" and "Skip" columns are missing from translations.
100%
Description
and also, somehow some strings seems are being selft-translated by CHIRP itself, but how is that possible? I've tested it removing Spanish files from CHIRP manually and when I open it again it still shown some strings translated to Spanish, like if translation were hardcoded somewhere.
this is really weird xD
Files
Updated by Dan Smith 11 months ago
Most of the things you're showing in the images are "stock items". They're things that are common to all applications (File->Exit, Copy, Paste, etc). Applications are supposed to use those things when possible because they automatically get things like translations, keyboard shortcuts. But also because automation tools (and screen readers) will issue commands to a window by name/function instead of clicking on the actual menu items.
As far as the Name and Skip columns, I'm not positive, but I suspect those are so simple that they're translated in the base code already and we're inheriting them. Not sure if I can prevent that. Is it a problem because they are the wrong "type" of name/skip?
Updated by Dan Smith 11 months ago
Okay, so it's right in the translation file:
https://github.com/kk7ds/chirp/blob/master/chirp/locale/es.po#L3402
but it's just not getting used I guess. Hmm.
Updated by Dan Smith 11 months ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Applied in changeset github|5cd1388e5b2d590cbb4992e7b8e2f02e26456b18.
Updated by Dan Smith 11 months ago
Hmm, yeah:
https://github.com/kk7ds/chirp/blame/master/chirp/locale/es.po#L3413
For some reason the automatic refreshing of the .po file is commenting-out some of those translations instead of keeping them. I will have to do some more digging into what is going on there. I'm very busy with some other stuff this week, so it might not be soon. Don't let me forget though, I definitely want to get that resolved. Thanks for your diligence :)
Updated by Dan Smith 30 days ago
Okay, @MELERIX . I think I finally figured out what's going on (with "Skip" at least). We don't actually mark "Skip" in the code for translation, so when you add it to the es.po
file, the next time we merge new strings into it, that string is commented-out as "old, no longer used". It was probably marked explicitly in the old version of the UI, but not the current one (we generate "Skip" from the code object Memory.skip
and thus never mark it).
So, I still think that re-translating the default items (File->New, File->Open, OK, Cancel, etc) is not expected by the framework since those are supposed to be platform-default strings. But, if there are other chirp-specific things like Skip that are not being translated, please help me identify them and I can apply the same tweak for those. I'll leave this open assuming there are more.
Thanks!