From: Rico Tzschichholz Date: Thu, 19 Apr 2018 21:58:31 +0000 (+0200) Subject: valadoc: Fix some string escaping which gettext complains about X-Git-Tag: 0.43.1~227 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=790edc8c2608df1a8e30aa35bf2a19426f73e535;p=thirdparty%2Fvala.git valadoc: Fix some string escaping which gettext complains about --- diff --git a/libvaladoc/parser/tokentype.vala b/libvaladoc/parser/tokentype.vala index b5c44375b..218c1dd8d 100644 --- a/libvaladoc/parser/tokentype.vala +++ b/libvaladoc/parser/tokentype.vala @@ -126,7 +126,7 @@ public class Valadoc.TokenType : Object { ALIGN_TOP = new TokenType.basic ("^"); ALIGN_BOTTOM = new TokenType.basic ("v"); SINGLE_QUOTE_2 = new TokenType.basic ("''"); - SLASH_2 = new TokenType.basic ("//"); + SLASH_2 = new TokenType.basic ("""//"""); UNDERSCORE_2 = new TokenType.basic ("__"); BACK_QUOTE_2 = new TokenType.basic ("``"); OPEN_BRACE = new TokenType.basic ("{"); diff --git a/valadoc/doclets/gtkdoc/generator.vala b/valadoc/doclets/gtkdoc/generator.vala index c6f135a8c..6e389d7b7 100644 --- a/valadoc/doclets/gtkdoc/generator.vala +++ b/valadoc/doclets/gtkdoc/generator.vala @@ -537,9 +537,9 @@ public class Gtkdoc.Generator : Api.Visitor { gcomment = add_symbol (filename, cl.get_set_value_function_cname ()); gcomment.brief_comment = "Set the contents of a %s derived GValue to @v_object." .printf (get_docbook_type_link (cl)); - gcomment.long_comment = "%s() increases the reference count of @v_object (the GValue holds a reference to @v_object). If you do not wish to increase the reference count of the object (i.e. you wish to pass your current reference to the GValue because you no longer need it), use %s() instead. + gcomment.long_comment = """%s() increases the reference count of @v_object (the GValue holds a reference to @v_object). If you do not wish to increase the reference count of the object (i.e. you wish to pass your current reference to the GValue because you no longer need it), use %s() instead. -It is important that your GValue holds a reference to @v_object (either its own, or one it has taken) to ensure that the object won't be destroyed while the GValue still exists)." +It is important that your GValue holds a reference to @v_object (either its own, or one it has taken) to ensure that the object won't be destroyed while the GValue still exists).""" .printf (to_docbook_id (cl.get_set_value_function_cname ()), cl.get_set_value_function_cname (), to_docbook_id (cl.get_take_value_function_cname ()),