Best way to format a name string in Folks



Hello,

I'm currently adding a new display-name property in FolksIndividual as discussed in bug #651672 (https://bugzilla.gnome.org/show_bug.cgi?id=651672). One of the possible values we'd like to set this value to would use the given_name and the family_name of the contact. Currently, I'm simply doing 

    var name = structured_name.given_name + " " + structured_name.family_name;

which outputs a string containing exactly "$given_name $family_name".

Is this the best way of doing this or should, for example, the string format be translatable?


Thanks in advance for your opinions on this.


Best regards,

Laurent Contzen



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]