[libreoffice-l10n] translation of keyboard key names

classic Classic list List threaded Threaded
8 messages Options
Jean-Baptiste Faure-3 Jean-Baptiste Faure-3
Reply | Threaded
Open this post in threaded view
|

[libreoffice-l10n] translation of keyboard key names

Hi,

Considering the bug report
https://bugs.documentfoundation.org/show_bug.cgi?id=126999, I need to
know where is defined the translated name of each key of the keyboard.
Does LibreOffice have its own translation or the translation is taken
from the OS ?

Exploring Pootle, I see translation of several key names in the
terminology. Is it enough to modify the translation at this point so
that it is repeated for each keyboard shortcut?

Best regards.
JBF
--
Seuls des formats ouverts peuvent assurer la pérennité de vos documents.

--
To unsubscribe e-mail to: [hidden email]
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/l10n/
Privacy Policy: https://www.documentfoundation.org/privacy
kelemeng kelemeng
Reply | Threaded
Open this post in threaded view
|

Re: [libreoffice-l10n] translation of keyboard key names

Hi Jean-Baptiste


Those key names come from the vcl
      source:
https://cgit.freedesktop.org/libreoffice/core/tree/vcl/unx/generic/app/keysymnames.cxx


You may want to modify the arrayaImplReplacements_FrenchBest regards
Gabor Kelemen
2019. 08. 17. 22:17 keltezéssel,
      Jean-Baptiste Faure írta:
Hi,Considering the bug reporthttps://bugs.documentfoundation.org/show_bug.cgi?id=126999, I need
      to know where is defined the translated name of each key of the
      keyboard. Does LibreOffice have its own translation or the
      translation is taken from the OS ?Exploring Pootle, I see translation of several key names in the
      terminology. Is it enough to modify the translation at this point
      so that it is repeated for each keyboard shortcut?Best regards.JBF




--
To unsubscribe e-mail to: [hidden email]
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/l10n/
Privacy Policy: https://www.documentfoundation.org/privacy
Jean-Baptiste Faure-3 Jean-Baptiste Faure-3
Reply | Threaded
Open this post in threaded view
|

Re: [libreoffice-l10n] translation of keyboard key names

Hi Gabor,

Le 18/08/2019 à 20:10, Gabor Kelemen a écrit :
> Hi Jean-Baptiste
>
>
> Those key names come from the vcl
>        source:
> https://cgit.freedesktop.org/libreoffice/core/tree/vcl/unx/generic/app/keysymnames.cxx

Do you mean this file is not generated from Pootle ?

Best regards.
JBF

>
>
> You may want to modify the arrayaImplReplacements_FrenchBest regards
> Gabor Kelemen
> 2019. 08. 17. 22:17 keltezéssel,
>        Jean-Baptiste Faure írta:
> Hi,Considering the bug reporthttps://bugs.documentfoundation.org/show_bug.cgi?id=126999, I need
>        to know where is defined the translated name of each key of the
>        keyboard. Does LibreOffice have its own translation or the
>        translation is taken from the OS ?Exploring Pootle, I see translation of several key names in the
>        terminology. Is it enough to modify the translation at this point
>        so that it is repeated for each keyboard shortcut?Best regards.JBF
>
>
>
>


--
Seuls des formats ouverts peuvent assurer la pérennité de vos documents.

--
To unsubscribe e-mail to: [hidden email]
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/l10n/
Privacy Policy: https://www.documentfoundation.org/privacy
kelemeng kelemeng
Reply | Threaded
Open this post in threaded view
|

Re: [libreoffice-l10n] translation of keyboard key names

Hi Jean-Baptiste

Of course: no Pootle for these. This in itself might worth a separate
bug report as well.

And to make things funnier: there is a similar file for Windows too:

https://cgit.freedesktop.org/libreoffice/core/tree/vcl/win/window/keynames.cxx

You probably want to keep in sync these for a platform independent user
experience.

Best regards
Gabor

2019. 08. 18. 20:17 keltezéssel, Jean-Baptiste Faure írta:

> Hi Gabor,
>
> Le 18/08/2019 à 20:10, Gabor Kelemen a écrit :
>> Hi Jean-Baptiste
>>
>>
>> Those key names come from the vcl
>>        source:
>> https://cgit.freedesktop.org/libreoffice/core/tree/vcl/unx/generic/app/keysymnames.cxx
>>
>
> Do you mean this file is not generated from Pootle ?
>
> Best regards.
> JBF
>
>>
>>
>> You may want to modify the arrayaImplReplacements_FrenchBest regards
>> Gabor Kelemen
>> 2019. 08. 17. 22:17 keltezéssel,
>>        Jean-Baptiste Faure írta:
>> Hi,Considering the bug
>> reporthttps://bugs.documentfoundation.org/show_bug.cgi?id=126999, I need
>>        to know where is defined the translated name of each key of the
>>        keyboard. Does LibreOffice have its own translation or the
>>        translation is taken from the OS ?Exploring Pootle, I see
>> translation of several key names in the
>>        terminology. Is it enough to modify the translation at this point
>>        so that it is repeated for each keyboard shortcut?Best
>> regards.JBF
>>
>>
>>
>>
>
>



--
To unsubscribe e-mail to: [hidden email]
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/l10n/
Privacy Policy: https://www.documentfoundation.org/privacy
Jean-Baptiste Faure-3 Jean-Baptiste Faure-3
Reply | Threaded
Open this post in threaded view
|

Re: [libreoffice-l10n] translation of keyboard key names

Le 18/08/2019 à 21:11, Gabor Kelemen a écrit :
> Hi Jean-Baptiste
>
> Of course: no Pootle for these. This in itself might worth a separate
> bug report as well.

line 140, I changed:
XK_Return, "Retour"
to
XK_Return, "Entr\303\251e"

and rebuilt the master, but there is no change in the shortcut for page
break, I still see Ctrl+Retour in the French UI.

Did I miss something?

Best regards.
JBF

>
> And to make things funnier: there is a similar file for Windows too:
>
> https://cgit.freedesktop.org/libreoffice/core/tree/vcl/win/window/keynames.cxx
>
> You probably want to keep in sync these for a platform independent user
> experience.
>
> Best regards
> Gabor
>
> 2019. 08. 18. 20:17 keltezéssel, Jean-Baptiste Faure írta:
>> Hi Gabor,
>>
>> Le 18/08/2019 à 20:10, Gabor Kelemen a écrit :
>>> Hi Jean-Baptiste
>>>
>>>
>>> Those key names come from the vcl
>>>         source:
>>> https://cgit.freedesktop.org/libreoffice/core/tree/vcl/unx/generic/app/keysymnames.cxx
>>>
>>
>> Do you mean this file is not generated from Pootle ?
>>
>> Best regards.
>> JBF
>>
>>>
>>>
>>> You may want to modify the arrayaImplReplacements_FrenchBest regards
>>> Gabor Kelemen
>>> 2019. 08. 17. 22:17 keltezéssel,
>>>         Jean-Baptiste Faure írta:
>>> Hi,Considering the bug
>>> reporthttps://bugs.documentfoundation.org/show_bug.cgi?id=126999, I need
>>>         to know where is defined the translated name of each key of the
>>>         keyboard. Does LibreOffice have its own translation or the
>>>         translation is taken from the OS ?Exploring Pootle, I see
>>> translation of several key names in the
>>>         terminology. Is it enough to modify the translation at this point
>>>         so that it is repeated for each keyboard shortcut?Best
>>> regards.JBF
>>>
>>>
>>>
>>>
>>
>>
>
>
>


--
Seuls des formats ouverts peuvent assurer la pérennité de vos documents.

--
To unsubscribe e-mail to: [hidden email]
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/l10n/
Privacy Policy: https://www.documentfoundation.org/privacy
Eike Rathke-2 Eike Rathke-2
Reply | Threaded
Open this post in threaded view
|

Re: [libreoffice-l10n] translation of keyboard key names

In reply to this post by kelemeng
Hi,

On Sunday, 2019-08-18 21:11:33 +0200, Gabor Kelemen wrote:

> Of course: no Pootle for these. This in itself might worth a separate
> bug report as well.

It's not so straight forward.

> And to make things funnier: there is a similar file for Windows too:
> https://cgit.freedesktop.org/libreoffice/core/tree/vcl/win/window/keynames.cxx

Because Windows uses different key codes than X, and may use different
names for certain keys. Also, historically Unix keyboards differ from
Windows keyboards. Additionally there's OSX of course..

> You probably want to keep in sync these for a platform independent user
> experience.

Au contraire. If possible you want to display the names or symbols the
user sees on the keyboard, which of course depends on the hardware, not
the installed UI language. We just assume that if the user uses
a certain UI translation s/he's familiar enough with the language to see
some key names in that language.

Also note that only a few keys are translated, and the amount differs
between languages. If a key does not explicitly have a name assigned,
the system is asked for the key name. So usually only the key names are
listed that for some reason need to be overridden with a specific
assignment in a given UI translation.

  Eike

--
GPG key 0x6A6CD5B765632D3A - 2265 D7F3 A7B0 95CC 3918  630B 6A6C D5B7 6563 2D3A

--
To unsubscribe e-mail to: [hidden email]
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/l10n/
Privacy Policy: https://www.documentfoundation.org/privacy

Eike Rathke-2 Eike Rathke-2
Reply | Threaded
Open this post in threaded view
|

Re: [libreoffice-l10n] translation of keyboard key names

In reply to this post by Jean-Baptiste Faure-3
Hi Jean-Baptiste,

On Sunday, 2019-08-18 22:31:59 +0200, Jean-Baptiste Faure wrote:

> line 140, I changed:
> XK_Return, "Retour"
> to
> XK_Return, "Entr\303\251e"

So you're talking of vcl/unx/generic/app/keysymnames.cxx.

Note the /generic/, that mapping nowadays is only used with the
SAL_USE_VCLPLUGIN=gen backend.

All modern frameworks like gtk3 and even gtk2 already come with their
own key name mapping. The LibreOffice internal key code is converted to
the current backend's framework key code and for that the key name is
obtained.

  Eike

--
GPG key 0x6A6CD5B765632D3A - 2265 D7F3 A7B0 95CC 3918  630B 6A6C D5B7 6563 2D3A

--
To unsubscribe e-mail to: [hidden email]
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/l10n/
Privacy Policy: https://www.documentfoundation.org/privacy

Jean-Baptiste Faure-3 Jean-Baptiste Faure-3
Reply | Threaded
Open this post in threaded view
|

Re: [libreoffice-l10n] translation of keyboard key names

Hi Eike,

Le 20/08/2019 à 00:12, Eike Rathke a écrit :

> Hi Jean-Baptiste,
>
> On Sunday, 2019-08-18 22:31:59 +0200, Jean-Baptiste Faure wrote:
>
>> line 140, I changed:
>> XK_Return, "Retour"
>> to
>> XK_Return, "Entr\303\251e"
>
> So you're talking of vcl/unx/generic/app/keysymnames.cxx.
>
> Note the /generic/, that mapping nowadays is only used with the
> SAL_USE_VCLPLUGIN=gen backend.

Indeed, my change works as expected if I use the gen backend.
>
> All modern frameworks like gtk3 and even gtk2 already come with their
> own key name mapping. The LibreOffice internal key code is converted to
> the current backend's framework key code and for that the key name is
> obtained.

Ok, so I can close bug 126999 as NotOurBug.

Thank you very much for your explanations.

Best regards.
JBF

--
Seuls des formats ouverts peuvent assurer la pérennité de vos documents.

--
To unsubscribe e-mail to: [hidden email]
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/l10n/
Privacy Policy: https://www.documentfoundation.org/privacy