Support translation contexts

This commit is contained in:
James Westman 2021-11-24 21:12:26 -06:00
parent b0a8f3e2f5
commit 0e33ce190d
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6
6 changed files with 55 additions and 31 deletions

View file

@ -3,3 +3,6 @@ using Gtk 4.0;
Label {
label: _("Hello, world!");
}
Label {
label: C_("translation context", "Hello");
}

View file

@ -4,4 +4,7 @@
<object class="GtkLabel">
<property name="label" translatable="true">Hello, world!</property>
</object>
<object class="GtkLabel">
<property name="label" translatable="true" context="translation context">Hello</property>
</object>
</interface>