mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
decompiler: Use single quotes
This commit is contained in:
parent
ea92838cf3
commit
3d5a5521aa
15 changed files with 49 additions and 41 deletions
|
@ -2,7 +2,7 @@ using Gtk 4.0;
|
|||
|
||||
Box {
|
||||
accessibility {
|
||||
label: _("Hello, world!");
|
||||
label: _('Hello, world!');
|
||||
labelled-by: my_label;
|
||||
checked: true;
|
||||
}
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
FileFilter {
|
||||
name: "File Filter Name";
|
||||
name: 'File Filter Name';
|
||||
|
||||
mime-types [
|
||||
"text/plain",
|
||||
"image/ *",
|
||||
'text/plain',
|
||||
'image/ *',
|
||||
]
|
||||
|
||||
patterns [
|
||||
"*.txt",
|
||||
'*.txt',
|
||||
]
|
||||
|
||||
suffixes [
|
||||
"png",
|
||||
'png',
|
||||
]
|
||||
}
|
||||
|
|
|
@ -3,8 +3,8 @@ using Gtk 4.0;
|
|||
Grid {
|
||||
Label {
|
||||
layout {
|
||||
column: "0";
|
||||
row: "1";
|
||||
column: '0';
|
||||
row: '1';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,26 +3,26 @@ using Gtk 4.0;
|
|||
menu my-menu {
|
||||
submenu {
|
||||
section {
|
||||
label: "test section";
|
||||
label: 'test section';
|
||||
}
|
||||
|
||||
item {
|
||||
label: C_("context", "test translated item");
|
||||
label: C_('context', 'test translated item');
|
||||
}
|
||||
|
||||
item {
|
||||
label: "test item shorthand 1";
|
||||
label: 'test item shorthand 1';
|
||||
}
|
||||
|
||||
item {
|
||||
label: "test item shorthand 2";
|
||||
action: "app.test-action";
|
||||
label: 'test item shorthand 2';
|
||||
action: 'app.test-action';
|
||||
}
|
||||
|
||||
item {
|
||||
label: "test item shorthand 3";
|
||||
action: "app.test-action";
|
||||
icon: "test-symbolic";
|
||||
label: 'test item shorthand 3';
|
||||
action: 'app.test-action';
|
||||
icon: 'test-symbolic';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,8 +3,8 @@ using Adw 1;
|
|||
|
||||
Adw.MessageDialog {
|
||||
responses [
|
||||
cancel: _("Cancel"),
|
||||
discard: _("Discard") destructive,
|
||||
save: "Save" suggested disabled,
|
||||
cancel: _('Cancel'),
|
||||
discard: _('Discard') destructive,
|
||||
save: 'Save' suggested disabled,
|
||||
]
|
||||
}
|
|
@ -3,7 +3,7 @@ using Gtk 4.0;
|
|||
Scale {
|
||||
marks [
|
||||
mark (-1, bottom),
|
||||
mark (0, top, _("Hello, world!")),
|
||||
mark (0, top, _('Hello, world!')),
|
||||
mark (2),
|
||||
]
|
||||
}
|
||||
|
|
5
tests/samples/strings_dec.blp
Normal file
5
tests/samples/strings_dec.blp
Normal file
|
@ -0,0 +1,5 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
Label {
|
||||
label: '\\\\\'Test 1 2 3\n & 4 "5\' 6 \t';
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
template $TestTemplate : ApplicationWindow {
|
||||
test-property: "Hello, world";
|
||||
test-property: 'Hello, world';
|
||||
test-signal => $on_test_signal();
|
||||
}
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
Label {
|
||||
label: _("Hello, world!");
|
||||
label: _('Hello, world!');
|
||||
}
|
||||
|
||||
Label {
|
||||
label: C_("translation context", "Hello");
|
||||
label: C_('translation context', 'Hello');
|
||||
}
|
||||
|
|
|
@ -2,6 +2,6 @@ using Gtk 4.0;
|
|||
|
||||
$MyComponent component {
|
||||
$MyComponent2 {
|
||||
flags-value: "a|b";
|
||||
flags-value: 'a|b';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -229,7 +229,7 @@ class TestSamples(unittest.TestCase):
|
|||
self.assert_decompile("responses")
|
||||
self.assert_decompile("scale_marks")
|
||||
self.assert_decompile("signal")
|
||||
self.assert_decompile("strings")
|
||||
self.assert_decompile("strings_dec")
|
||||
self.assert_decompile("style_dec")
|
||||
self.assert_decompile("template")
|
||||
self.assert_decompile("translated")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue