Changeset ed5205fe93f276d92c8571c43551d7e0a8c05bab

Show
Ignore:
Timestamp:
12/22/07 23:01:56 (8 months ago)
Author:
Christophe Mutricy <xtophe@videolan.org>
git-committer:
Christophe Mutricy <xtophe@videolan.org> 1198360916 +0000
git-parent:

[636e7566f068ee6578c73e5e55b2c10efd824b7d]

git-author:
Christophe Mutricy <xtophe@videolan.org> 1198360916 +0000
Message:

Use dgettext() (aka _() ) rather than gettext().

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • include/vlc_common.h

    re7467eb red5205f  
    12091209#   define _(String) (String) 
    12101210#   define N_(String) (String) 
    1211 #   define gettext(String) (String) 
    12121211#endif 
    12131212 
  • src/config/file.c

    r3655c1c red5205f  
    354354        desc = "?"; 
    355355 
    356     if (fprintf (file, "# %s (%s)\n%s%s=", desc, gettext (type), 
     356    if (fprintf (file, "# %s (%s)\n%s%s=", desc, _(type), 
    357357                 comment ? "#" : "", name) < 0) 
    358358        return -1; 
  • src/modules/entry.c

    r3ca1fe8 red5205f  
    201201            const char *longtext = va_arg (ap, const char *); 
    202202 
    203             item->psz_text = text ? strdup (gettext (text)) : NULL; 
    204             item->psz_longtext = longtext ? strdup (gettext (text)) : NULL; 
     203            item->psz_text = text ? strdup ( _(text)) : NULL; 
     204            item->psz_longtext = longtext ? strdup ( _(text)) : NULL; 
    205205            ret = 0; 
    206206            break; 
     
    353353            { 
    354354                for (size_t i = 0; i < len; i++) 
    355                     dtext[i] = text[i] ? strdup (gettext (text[i])) : NULL; 
     355                    dtext[i] = text[i] ? strdup ( _(text[i])) : NULL; 
    356356 
    357357                dtext[len] = NULL; 
     
    390390 
    391391            if (name) 
    392                 tabtext[item->i_action] = strdup (gettext (name)); 
     392                tabtext[item->i_action] = strdup ( _(name)); 
    393393            else 
    394394                tabtext[item->i_action] = NULL;