Sequence of buttons on ribbons no longer kept after upgrading plugin from Trados 2022 to Trados 2024

Dear community,

I have a Trados Studio plugin that creates a RibbonGroup in the Home ribbon. This group features 9 buttons.

I have set the sequence in which the buttons should appear in the ribbon by specifying the ZIndex parameter, e.g.

[ActionLayout(typeof(ERibbonGroup), 10, DisplayType.Large)]

The highest index equals to the first position from the left.

This works reliably on Trados 2022 (2022 SR2 - 17.2.10.19084). However, we are now testing Trados 2024 (2024 SR1 - 18.1.3.6657), so I have updated the plugin according to RWS instructions (https://developers.rws.com/studio-api-docs/articles/hints_tips/Update_Plugins/how_to_update_plugins_to_trados_studio_2024_sr1.html?tabs=standard).

Even though no other change has been applied, the sequence of the buttons appears now random. At the very least, it does not respect the ZIndex parameter.

Has anyone experienced this issue and knows any solution?

Parents
  • Since the issue persists, I would like to bump this question.

  • Hello, I have expeirenced the same problem and worked it out.

    2022 is Zindex, and 2024 is sorted alphabetically by compiled Action ID, please refer to my buttions, same order in 2022 and 2024.

    You need to add prefix like mine:

    Button Source ID Compiled ID Order
    Term Extraction AIHub_01_ExtractTermsFileViewAction Identical 700
    AI Translation AIHub_02_TranslateFileViewAction Identical 600
    AI Review AIHub_03_ReviewFileViewAction Identical 500
    AI Quality Check AIHub_04_QualityCheckFileViewAction Identical 400
    Remove @ Sign AIHub_05_RemoveAtSignFileViewAction Identical 300
    Bilingual File AIHub_06_GenerateBilingualFileViewAction Identical 200
    Settings AIHub_07_SettingsFileViewAction Identical 100

    Note: The first 6 names in the "Button" column are translated from Chinese for reference only — the actual Action IDs embedded in the compiled plugin are the strings shown in the "Source ID" column, which are identical to the "Compiled ID" column.

  • Hi Mike, first of all, thank you for your reply.

    I need some clarification: I assume that the compiled Action ID is the ID passed when defining the Action attribute. So, the first button to appear can be e.g.
    [Action("01_LaunchAction", Icon = "Launch")]

    However, this does not do the trick in my ribbon. Is maybe my assumption wrong and another ID is meant?

Reply Children
No Data