Modify

Opened 2 years ago

Closed 11 months ago

#6345 closed defect (fixed)

shortcuts info not adjusted to language (Was: shortcuts info not adjusted to language if start option --language is used.)

Reported by: skyper Owned by: team
Priority: normal Component: Core
Version: latest Keywords: shortcut language
Cc:

Description (last modified by Don-vip)

I justed noticed this, but problem seems exist for quite a while (already in r3966)

I started josm with --language and the language is english but the shortcut info is still german (local)

r4079, openjdk

Attachments (0)

Change History (9)

comment:1 Changed 2 years ago by skyper

  • Summary changed from shortcuts info not adjusted to language if start option --language is used. to shortcuts info not adjusted to language (Was: shortcuts info not adjusted to language if start option --language is used.)

This also happens if the language set in preferences is not the default local one.

Or do I miss some java libs on my system ?

r4105, openjdk, Debian stable (with little testing).

Last edited 2 years ago by skyper (previous) (diff)

comment:2 Changed 21 months ago by skyper

Ticket #6841 has been marked as a duplicate of this ticket.

comment:3 follow-up: Changed 21 months ago by dieterdreist

the problem appears also in the console messages (silent shortcut conflicts).

comment:4 in reply to: ↑ 3 ; follow-up: Changed 21 months ago by skyper

Replying to dieterdreist:

the problem appears also in the console messages (silent shortcut conflicts).

Your problems with changing shortcuts has nothing todo with this ticket and belongs to #6840. Please add more information eg the console output there.

Did you try it with a new/empty josm directory ? Have a look at Help/ResetPreferences

comment:5 in reply to: ↑ 4 Changed 21 months ago by dieterdreist

Replying to skyper:

Replying to dieterdreist:

the problem appears also in the console messages (silent shortcut conflicts).

Your problems with changing shortcuts has nothing todo with this ticket and belongs to #6840. Please add more information eg the console output there.

yes, I know that these 2 issues are not connected (I created a separate ticket for the language problem). I found the troublemaker which causes #6840 (utils2 plugin) and already added information regarding this to the ticket.

comment:6 Changed 11 months ago by stoecker

Ticket #7898 has been marked as a duplicate of this ticket.

comment:7 Changed 11 months ago by Don-vip

  • Description modified (diff)

From KeyEvent.getKeyText() javadoc :

These strings can be localized by changing the awt.properties file. 

I do not have any idea how we are supposed to do that. Instead, I found this on Oracle website:

2.3 Key Events

This section describes issues with key events.
2.3.1 General Unresolved Keyboard Issues

The following keyboard issues are currently unresolved.
    Changing the default locale at runtime does not change the text that is displayed for the menu accelerator keys.

Looks like a Java bug to me. They don't even say they will fix it, but I don't see a workaround right now.

comment:8 Changed 11 months ago by Don-vip

Bug found. Reported 7 years ago, it's a shame. There's a dirty hack submitted as a workaround.

EDIT: it works !

Last edited 11 months ago by Don-vip (previous) (diff)

comment:9 Changed 11 months ago by Don-vip

  • Resolution set to fixed
  • Status changed from new to closed

In 5358/josm:

fix #6345 - Display shortcut accelerators in tooltips with the language used by JOSM

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.