So you're working on the NetBeans Translators project and you run the application, with its translated bundles, and then you see this error message:
WARNING [org.openide.awt.Toolbar]: Error in AWT task java.lang.AssertionError at org.openide.awt.Actions.setMenuText(Actions.java:290) at org.openide.awt.Actions$MenuBridge.updateState(Actions.java:1266) at org.openide.awt.Actions$Bridge.prepare(Actions.java:902) at org.openide.awt.Actions$MenuBridge.prepare(Actions.java:1221) at org.openide.awt.Actions.connect(Actions.java:201) at org.openide.awt.Actions$MenuItem.(Actions.java:1571) at org.openide.awt.DynaMenuModel.loadSubmenu(DynaMenuModel.java:138)
You also, assuming you're translating into French and have already translated the text in the error dialog below, see this dialog, once the application has started:
And you're unable to access any of the menu items in the menubar.
An error message that contains "setMenuText(Actions.java:290)" is one that can be figured out by thinking about where menus are defined, in the NetBeans Platform source code. This is done in the UI Utilities API module, which is org-openide-awt.jar.
When I went there, in "LocalizedNetBeans", I found that there are two translated bundle files there, both in French:
Notice the one in blue above. Through a process of trial and error, I discovered that the key "USE_MNEMONICS" should NOT be translated. If you translate USE_MNEMONICS, the error described above occurs. Simply do not include it in the bundle file shown in blue above, in the 'branding/modules/org-openide-awt.jar' folder. Delete it from there, as I did (which is why the file is shown in blue) if you have it there.
And then the problem is solved: the error message above is not shown and menu items can be accessed again, as normal.
PS: Also see tip #1.