Menu

#1314 Right-click error when duplicate element

6.0.2
open
None
5
2 days ago
2026-01-26
No

When trying to right-click on an element which has/is a duplicate, there doesn't appear any menu. The following error is logged:

79771: Fout: Uncatched exception in thread [AWT-EventQueue-0]
79771: Fout: java.lang.IllegalArgumentException: unknown format type: nummer
79771: Fout:    at java.base/java.text.MessageFormat.makeFormat(MessageFormat.java:1587)
79771: Fout:    at java.base/java.text.MessageFormat.applyPattern(MessageFormat.java:512)
79771: Fout:    at java.base/java.text.MessageFormat.<init>(MessageFormat.java:383)
79771: Fout:    at java.base/java.text.MessageFormat.format(MessageFormat.java:883)
79771: Fout:    at org.omegat.util.StringUtil.format(StringUtil.java:617)
79771: Fout:    at org.omegat.gui.editor.EditorPopups$DuplicateSegmentsPopup.addItems(EditorPopups.java:345)
79771: Fout:    at org.omegat.gui.editor.EditorTextArea3.makePopupMenu(EditorTextArea3.java:292)
79771: Fout:    at org.omegat.gui.editor.EditorTextArea3$2.doPopup(EditorTextArea3.java:262)
79771: Fout:    at org.omegat.gui.editor.EditorTextArea3$2.mouseReleased(EditorTextArea3.java:256)
79771: Fout:    at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:298)
79771: Fout:    at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:297)
79771: Fout:    at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:297)
79771: Fout:    at java.desktop/java.awt.Component.processMouseEvent(Component.java:6621)
79771: Fout:    at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3398)
79771: Fout:    at java.desktop/java.awt.Component.processEvent(Component.java:6386)
79771: Fout:    at java.desktop/java.awt.Container.processEvent(Container.java:2266)
79771: Fout:    at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4996)
79771: Fout:    at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324)
79771: Fout:    at java.desktop/java.awt.Component.dispatchEvent(Component.java:4828)
79771: Fout:    at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948)
79771: Fout:    at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4575)
79771: Fout:    at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516)
79771: Fout:    at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310)
79771: Fout:    at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780)
79771: Fout:    at java.desktop/java.awt.Component.dispatchEvent(Component.java:4828)
79771: Fout:    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:775)
79771: Fout:    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
79771: Fout:    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
79771: Fout:    at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
79771: Fout:    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
79771: Fout:    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:98)
79771: Fout:    at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:747)
79771: Fout:    at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
79771: Fout:    at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
79771: Fout:    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
79771: Fout:    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:744)
79771: Fout:    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
79771: Fout:    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
79771: Fout:    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
79771: Fout:    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
79771: Fout:    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
79771: Fout:    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

Discussion

  • Hiroshi Miura

    Hiroshi Miura - 2026-01-27

    This is why NL localization team wrongly translate a format character into Dutch.

    Bundle_nl.properties:416:MW_GO_TO_DUPLICATE_ITEM=Segment {0,nummer,#}
    

    Other languages keeps format token as "number".

    There is a similar bug in CO and FI.

    Bundle.properties:MW_GO_TO_DUPLICATE_ITEM=Segment {0,number,#}
    Bundle_be.properties:MW_GO_TO_DUPLICATE_ITEM=\u0421\u044d\u0433\u043c\u044d\u043d\u0442 {0,number,#}
    Bundle_ca.properties:MW_GO_TO_DUPLICATE_ITEM=Segment {0,number,#}
    Bundle_co.properties:MW_GO_TO_DUPLICATE_ITEM=Segmentu {0,numeru,#}
    Bundle_cs.properties:MW_GO_TO_DUPLICATE_ITEM=Segment {0,number,#}
    Bundle_de.properties:MW_GO_TO_DUPLICATE_ITEM=Segment {0,number,#}
    Bundle_es.properties:MW_GO_TO_DUPLICATE_ITEM=Segmento {0,number,#}
    Bundle_eu.properties:MW_GO_TO_DUPLICATE_ITEM=Segmentua {0,number,#}
    Bundle_fi.properties:MW_GO_TO_DUPLICATE_ITEM=Segmentti {0,numero,#}
    Bundle_fr.properties:MW_GO_TO_DUPLICATE_ITEM=Segment {0,number,#}
    Bundle_hr.properties:MW_GO_TO_DUPLICATE_ITEM=Segment {0,number,#}
    Bundle_hu.properties:MW_GO_TO_DUPLICATE_ITEM=Sz\u00F6vegegys\u00E9g {0,number,#}
    Bundle_ia.properties:MW_GO_TO_DUPLICATE_ITEM=Segmento {0,number,#}
    Bundle_it.properties:MW_GO_TO_DUPLICATE_ITEM=Segmento {0,number,#}
    Bundle_ja.properties:MW_GO_TO_DUPLICATE_ITEM=\u5206\u7BC0 {0,number,#}
    Bundle_mfe.properties:MW_GO_TO_DUPLICATE_ITEM=Segman {0,number,#}
    Bundle_nl.properties:MW_GO_TO_DUPLICATE_ITEM=Segment {0,nummer,#}
    Bundle_no.properties:MW_GO_TO_DUPLICATE_ITEM=Segment {0,number,#}
    Bundle_pl.properties:MW_GO_TO_DUPLICATE_ITEM=Segment {0,number,#}
    Bundle_pt.properties:MW_GO_TO_DUPLICATE_ITEM=Segmento {0,number,#}
    Bundle_pt_BR.properties:MW_GO_TO_DUPLICATE_ITEM=Segmento {0,number,#}
    Bundle_ru.properties:MW_GO_TO_DUPLICATE_ITEM=\u0421\u0435\u0433\u043C\u0435\u043D\u0442 {0,number,#}
    Bundle_sc.properties:MW_GO_TO_DUPLICATE_ITEM=Segmentu {0,number,#}
    Bundle_sv.properties:MW_GO_TO_DUPLICATE_ITEM=Segment {0,number,#}
    Bundle_tk.properties:MW_GO_TO_DUPLICATE_ITEM=Dilim {0,number,#}
    Bundle_tr.properties:MW_GO_TO_DUPLICATE_ITEM=Dilim {0,number,#}
    Bundle_uk.properties:MW_GO_TO_DUPLICATE_ITEM=\u0421\u0435\u0433\u043C\u0435\u043D\u0442 {0,number,#}
    Bundle_us.properties:MW_GO_TO_DUPLICATE_ITEM=Segment {0,number,#}
    Bundle_zh_CN.properties:MW_GO_TO_DUPLICATE_ITEM=\u7247\u6BB5 {0,number,#}
    Bundle_zh_TW.properties:MW_GO_TO_DUPLICATE_ITEM=\u5206\u7BC0 {0,number,#}
    
     
  • Hiroshi Miura

    Hiroshi Miura - 2026-01-27

    There is also the same issue on master branch / 6.1.0 Beta version.

     
  • Hiroshi Miura

    Hiroshi Miura - 2026-01-27
    • assigned_to: Hiroshi Miura
     
  • Hiroshi Miura

    Hiroshi Miura - 2026-01-27

    Raised Pull Request for master branch
    https://github.com/omegat-org/omegat/pull/1886

     
  • Hiroshi Miura

    Hiroshi Miura - 2026-01-27

    Raised the Pull Request for releases/6.0 branch for 6.0.2 release fix.
    https://github.com/omegat-org/omegat/pull/1887

     
    • Erik De Boeck

      Erik De Boeck - 3 days ago

      I see the PR is merged. So I assume I can download the next weekly release and it should work?

       
      • Hiroshi Miura

        Hiroshi Miura - 2 days ago

        Yes, I hope it solves the problem.

         
      • Hiroshi Miura

        Hiroshi Miura - 2 days ago

        v6.0.2 weekly is built manually. I will trigger it.

         

Log in to post a comment.