Changeset 12412 for trunk/gtk/util.c


Ignore:
Timestamp:
May 2, 2011, 5:58:27 PM (11 years ago)
Author:
jordan
Message:

(trunk gtk) use ngettext() instead of gtr_dngettext() to address https://bugs.launchpad.net/ubuntu/+source/transmission/+bug/760761

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/util.c

    r12396 r12412  
    161161    seconds = ( seconds % 3600 ) % 60;
    162162
    163     g_snprintf( d, sizeof( d ), gtr_ngettext( "%'d day", "%'d days", days ), days );
    164     g_snprintf( h, sizeof( h ), gtr_ngettext( "%'d hour", "%'d hours", hours ), hours );
    165     g_snprintf( m, sizeof( m ), gtr_ngettext( "%'d minute", "%'d minutes", minutes ), minutes );
    166     g_snprintf( s, sizeof( s ), gtr_ngettext( "%'d second", "%'d seconds", seconds ), seconds );
     163    g_snprintf( d, sizeof( d ), ngettext( "%'d day", "%'d days", days ), days );
     164    g_snprintf( h, sizeof( h ), ngettext( "%'d hour", "%'d hours", hours ), hours );
     165    g_snprintf( m, sizeof( m ), ngettext( "%'d minute", "%'d minutes", minutes ), minutes );
     166    g_snprintf( s, sizeof( s ), ngettext( "%'d second", "%'d seconds", seconds ), seconds );
    167167
    168168    if( days )
     
    372372#endif
    373373    return object;
    374 }
    375 
    376 const gchar *
    377 gtr_ngettext( const gchar * msgid,
    378               const gchar * msgid_plural,
    379               gulong n )
    380 {
    381 #if GLIB_CHECK_VERSION( 2, 18, 0 )
    382     return g_dngettext( NULL, msgid, msgid_plural, n );
    383 #else
    384     return ngettext( msgid, msgid_plural, n );
    385 #endif
    386374}
    387375
Note: See TracChangeset for help on using the changeset viewer.