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
|
@ -231,7 +231,7 @@ def decompile_relation(ctx, gir, name, cdata):
|
|||
@decompiler("state", cdata=True)
|
||||
def decompile_state(ctx, gir, name, cdata, translatable="false"):
|
||||
if decompile.truthy(translatable):
|
||||
ctx.print(f'{name}: _("{escape_quote(cdata)}");')
|
||||
ctx.print(f"{name}: _({escape_quote(cdata)});")
|
||||
else:
|
||||
ctx.print_attribute(name, cdata, get_types(ctx.gir).get(name))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue