* Bug 643954 — Add to_string () to PostalAddress class
* Bug 643955 — Add to_string () to RoleOwner class
* Bug 643957 — Deal handle birthday and postal-addresses.
+* Bug 644457 — Handle structured names
API changes:
* Add RoleDetails interface
* along with this library. If not, see <http://www.gnu.org/licenses/>.
*
* Authors:
- * Marco Barisione <marco.barisione@collabora.co.u>
+ * Marco Barisione <marco.barisione@collabora.co.uk>
+ * Raul Gutierrez Segales <raul.gutierrez.segales@collabora.co.uk>
*/
using GLib;
this._prefixes == "" &&
this._suffixes == "";
}
+
+ /**
+ * Formatted version of the structured name.
+ *
+ * @since 0.3.UNRELEASED
+ */
+ public string to_string ()
+ {
+ /* Translators: format for the formatted structured name.
+ * Parameters (in order) are: prefixes (for the name), given name,
+ * family name, additional names and (name) suffixes */
+ var str = "%s, %s, %s, %s, %s";
+ return str.printf (this.prefixes,
+ this.given_name,
+ this.family_name,
+ this.additional_names,
+ this.suffixes);
+ }
}
/**
return output_string;
}
+ else if (prop_name == "structured-name")
+ {
+ unowned StructuredName sn = (StructuredName) prop_value.get_object ();
+ string ret = null;
+ if (sn != null)
+ ret = sn.to_string ();
+ return ret;
+ }
return Utils.transform_value_to_string (prop_value);
}