mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Support translation contexts
This commit is contained in:
parent
b0a8f3e2f5
commit
0e33ce190d
6 changed files with 55 additions and 31 deletions
|
@ -3,3 +3,6 @@ using Gtk 4.0;
|
|||
Label {
|
||||
label: _("Hello, world!");
|
||||
}
|
||||
Label {
|
||||
label: C_("translation context", "Hello");
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue