OLD | NEW |
1 /* mnote-fuji-tag.c | 1 /* mnote-fuji-tag.c |
2 * | 2 * |
3 * Copyright (c) 2002 Lutz Mueller <lutz@users.sourceforge.net> | 3 * Copyright (c) 2002 Lutz Mueller <lutz@users.sourceforge.net> |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Lesser General Public | 6 * modify it under the terms of the GNU Lesser General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 return NULL; | 91 return NULL; |
92 } | 92 } |
93 | 93 |
94 const char * | 94 const char * |
95 mnote_fuji_tag_get_description (MnoteFujiTag t) | 95 mnote_fuji_tag_get_description (MnoteFujiTag t) |
96 { | 96 { |
97 unsigned int i; | 97 unsigned int i; |
98 | 98 |
99 for (i = 0; i < sizeof (table) / sizeof (table[0]); i++) | 99 for (i = 0; i < sizeof (table) / sizeof (table[0]); i++) |
100 if (table[i].tag == t) { | 100 if (table[i].tag == t) { |
101 » » » if (!*table[i].description) | 101 » » » if (!table[i].description || !*table[i].description) |
102 return ""; | 102 return ""; |
103 #if defined(BIND_TEXTDOMAIN) | 103 #if defined(BIND_TEXTDOMAIN) |
104 bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR); | 104 bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR); |
105 #endif | 105 #endif |
106 return _(table[i].description); | 106 return _(table[i].description); |
107 } | 107 } |
108 return NULL; | 108 return NULL; |
109 } | 109 } |
OLD | NEW |