[orca-list] Future possible marking translation the Orca Modifier Keys combobox item names?



Hy,

I reported following I18n related bug with Orca Modifier combo box element names:
https://bugzilla.gnome.org/show_bug.cgi?id=638488
I have got following ydea with I don't no future possible doing or not:
Nov, visual the Orca modifiers combo box presenting the screen following values in preferences dialog/keybindings page:
Insert, KP_Insert
KP_Insert
Insert
Caps_Lock

If I see right, this is real keymap values.
Possible give only the combo box visual values for example following texts and marking translation this texts:
"Insert, Numpad insert (equals with now filled Insert, KP_Insert setting)
Numpad Insert (real KP_Insert setting)
Insert (equals)
Caps Lock (real Caps_Lock setting)"

Perhaps what the advantages if possible doing this?
1. The UI interface containing future human understable setting names with Orca modifiers and looking better. 2. This setting names is translatable, so for example the non english language translators with using different key names possible using another translations both the Orca gui preference window and Orca help page.

For example the documentation translation now I copyed the original english named modifyer related settings, but this is not full beautiful. Not good method only the documentation translating this setting names with hungarian language, because the preferences dialog using another named elements with not translatable now.
For example general the hungarian language the caps lock word
possible translatable with "nagybetű zár" word, and the insert word translatable with "inzert" word. KP_insert or numpad insert word possible hungarian translation is "numerikus inzert".

Perhaps how can possible implementing this change?
1. First, in src/orca/user-settings.ui file the marking translation is easy, need changing following row columns with adding the translatable="yes" tag:
      <row>
        <col id="0">Insert, KP_Insert</col>
      </row>
      <row>
        <col id="0">KP_Insert</col>
      </row>
      <row>
        <col id="0">Insert</col>
      </row>
      <row>
        <col id="0">Caps_Lock</col>
      </row>
I tested this change, this step work, but of course missing the second step with real replacement choosed combo box element names the real setting values if the user apply or reload orca settings.

2. In src/orca/orca_gui_prefs.py file need doing following:
all Orca modifiers combo box element value have perhaps an index value, with possible following, independent the translated visual element name. Need only four case with apply the real need modifier setting if possible determining the index position when the choosed element is changed and the user apply or reload Orca settings:
0: the real modifier setting name  is insert, kp_insert.
If the first item is selected with Orca modifier keys combo box, independent the real translated name need apply this setting, because translation is need
only the better visual appearance.
1: the real modifier setting name  is kp_insert.
If the second item is selected with Orca modifier keys combo box, independent the real translated name need apply this setting, because translation is need only the better visual appearance.
3: the real modifier setting name  is insert
If the firth item is selected with Orca modifier keys combo box, independent the real translated name need apply this setting, because translation is need only the better visual appearance.
4: the real modifier setting name  is caps_lock
If the last item is selected with Orca modifier keys combo box, independent the real translated name need apply this setting, because translation is need only the better visual appearance.

Joanie, my ydea is possible doing? Need doing this change your openion?
Or if you not would like marking translation this item strings because not good ydea, possible replace the Orca modifier combo box element names with better names with better look the visual UI interface?

Attila



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]