Internationalization with Rust and GTK4

Hi,
with

use gtk::glib::setenv;
use gettextrs::{bindtextdomain, bind_textdomain_codeset, textdomain,gettext,setlocale};

and

setenv("LC_ALL", "de_DE.utf8",true);
setenv("LANGUAGE", "de_DE.utf8",true);
setenv("LANG", "de_DE.utf8",true);
setenv("LC_MESSAGES", "de_DE.utf8", true);    
    
setlocale(gettextrs::LocaleCategory::LcAll, "de_DE.utf8");    
bindtextdomain("test",  "locale");
textdomain("test");
bind_textdomain_codeset("test", "UTF-8");

I’m able to see the menu items in German. Per example, _File becomes _Datei. But, the display names for the keyboard keys remain English in Ubuntu. “Ctrl” should become “Strg” in German. In Windows 11, I copied the content from https://github.com/GNOME/gtk/blob/main/po/de.po to my po file, created a mo file and the problem was solved. But, in Ubuntu, that didn’t work. Here is the menu:

<?xml version='1.0' encoding='UTF-8'?>
<interface>
  <requires lib="gio" version="2.0"/>
  <menu id="menubar">
    <submenu>
      <attribute name="label" translatable="yes">_File</attribute>
      <section>
        <item>
          <attribute name="action">app.new</attribute>
          <attribute name="label" translatable="yes" >_New</attribute>
          <attribute name="accel">&lt;Ctrl&gt;n</attribute>
        </item>
        <item>
          <attribute name="label" translatable="yes">_Quit</attribute>
          <attribute name="action">app.quit</attribute>
          <attribute name="accel">&lt;Primary&gt;q</attribute>
       </item>
      </section>
    </submenu>
  </menu>
</interface>

What should I install or how should I change my code that I can test with German and English and that also the display names for the keyboard keys are correctly changed in Ubuntu? If Ubuntu’s user language is German then almost all Ubuntu’s applications show the German “Strg”. But, the gnome text editor, the keyboard shortcuts in Ubuntu’s keyboard settings and my GTK4 program still show “Ctrl”. My Ubuntu version is 24.04.1.

Update: I have created a GTK3 application from https://github.com/gtk-rs/gtk3-rs/tree/master/examples/menu_bar_system without modifications. The quit menu item shows “Strg” with Ubuntu’s user language German. This seems to be a GTK4-specific issue.

Kind regards,
Andreas