[Pidgin] #56: Use of PIDGIN_NAME breaks translation tools

Pidgin trac at pidgin.im
Sat Apr 7 17:36:37 EDT 2007


#56: Use of PIDGIN_NAME breaks translation tools
---------------------------+------------------------------------------------
  Reporter:  zongo         |       Owner:     
      Type:  defect        |      Status:  new
  Priority:  major         |   Milestone:     
 Component:  pidgin (gtk)  |     Version:  2.0
Resolution:                |    Keywords:     
---------------------------+------------------------------------------------
Comment (by bjoernv):

 Intltool (and especially xgettext from gettext) can can not use the C
 preprocessor. Therefore something like

 _("<span weight='bold' size='larger'>Welcome to " PIDGIN_NAME "...")

 does not work. If the macro PIDGIN_NAME is important, we should use a
 sprintf-like function, e.g.:

 text= g_strdup_printf(_("<span weight='bold' size='larger'>Welcome to %s
 ..."), PIDGIN_NAME);

-- 
Ticket URL: <http://developer.pidgin.im/ticket/56#comment:3>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list