Changeset ed5205fe93f276d92c8571c43551d7e0a8c05bab
- 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
| re7467eb |
red5205f |
|
| 1209 | 1209 | # define _(String) (String) |
|---|
| 1210 | 1210 | # define N_(String) (String) |
|---|
| 1211 | | # define gettext(String) (String) |
|---|
| 1212 | 1211 | #endif |
|---|
| 1213 | 1212 | |
|---|
| r3655c1c |
red5205f |
|
| 354 | 354 | desc = "?"; |
|---|
| 355 | 355 | |
|---|
| 356 | | if (fprintf (file, "# %s (%s)\n%s%s=", desc, gettext (type), |
|---|
| | 356 | if (fprintf (file, "# %s (%s)\n%s%s=", desc, _(type), |
|---|
| 357 | 357 | comment ? "#" : "", name) < 0) |
|---|
| 358 | 358 | return -1; |
|---|
| r3ca1fe8 |
red5205f |
|
| 201 | 201 | const char *longtext = va_arg (ap, const char *); |
|---|
| 202 | 202 | |
|---|
| 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; |
|---|
| 205 | 205 | ret = 0; |
|---|
| 206 | 206 | break; |
|---|
| … | … | |
| 353 | 353 | { |
|---|
| 354 | 354 | 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; |
|---|
| 356 | 356 | |
|---|
| 357 | 357 | dtext[len] = NULL; |
|---|
| … | … | |
| 390 | 390 | |
|---|
| 391 | 391 | if (name) |
|---|
| 392 | | tabtext[item->i_action] = strdup (gettext (name)); |
|---|
| | 392 | tabtext[item->i_action] = strdup ( _(name)); |
|---|
| 393 | 393 | else |
|---|
| 394 | 394 | tabtext[item->i_action] = NULL; |
|---|