Changeset 76774f676dbb8cebd0dc65bfc35eac4986fee104

Show
Ignore:
Timestamp:
05/21/08 17:55:26 (4 months ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1211385326 +0300
git-parent:

[2123e7c23fe7879ed1ddc4efcedcf6da5d16a7f8]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1211385316 +0300
Message:

vlc_config_set: use dgettext() explicitly

This is a cosmetic change at this point as _() invokes dgettext(). This
is just a small step toward supporting out-of-tree plugins. These will
need to use their own text domain.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/modules/entry.c

    r0669643 r76774f6  
    222222            const char *longtext = va_arg (ap, const char *); 
    223223 
    224             item->psz_text = text ? strdup ( _(text)) : NULL; 
    225             item->psz_longtext = longtext ? strdup ( _(longtext)) : NULL; 
     224            item->psz_text = text ? strdup (dgettext (PACKAGE, text)) : NULL; 
     225            item->psz_longtext = 
     226                longtext ? strdup (dgettext (PACKAGE, longtext)) : NULL; 
    226227            ret = 0; 
    227228            break; 
     
    374375            { 
    375376                for (size_t i = 0; i < len; i++) 
    376                     dtext[i] = text[i] ? strdup ( _(text[i])) : NULL; 
     377                    dtext[i] = 
     378                        text[i] ? strdup (dgettext (PACKAGE, text[i])) : NULL; 
    377379 
    378380                dtext[len] = NULL; 
     
    412414 
    413415            if (name) 
    414                 tabtext[item->i_action] = strdup ( _(name)); 
     416                tabtext[item->i_action] = strdup (dgettext (PACKAGE, name)); 
    415417            else 
    416418                tabtext[item->i_action] = NULL;