OLD | NEW |
1 /* mnote-canon-tag.c | 1 /* mnote-canon-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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 else | 154 else |
155 return NULL; | 155 return NULL; |
156 } | 156 } |
157 | 157 |
158 const char * | 158 const char * |
159 mnote_canon_tag_get_title (MnoteCanonTag t) | 159 mnote_canon_tag_get_title (MnoteCanonTag t) |
160 { | 160 { |
161 unsigned int i; | 161 unsigned int i; |
162 | 162 |
163 #if defined(BIND_TEXTDOMAIN) | 163 #if defined(BIND_TEXTDOMAIN) |
164 » bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR); | 164 bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR); |
165 #endif | 165 #endif |
166 for (i = 0; i < sizeof (table) / sizeof (table[0]); i++) | 166 for (i = 0; i < sizeof (table) / sizeof (table[0]); i++) |
167 if (table[i].tag == t) return (_(table[i].title)); | 167 if (table[i].tag == t) return (_(table[i].title)); |
168 return NULL; | 168 return NULL; |
169 } | 169 } |
170 | 170 |
171 const char * | 171 const char * |
172 mnote_canon_tag_get_title_sub (MnoteCanonTag t, unsigned int s, ExifDataOption o
) | 172 mnote_canon_tag_get_title_sub (MnoteCanonTag t, unsigned int s, ExifDataOption o
) |
173 { | 173 { |
174 unsigned int i; | 174 unsigned int i; |
(...skipping 12 matching lines...) Expand all Loading... |
187 return NULL; | 187 return NULL; |
188 } | 188 } |
189 | 189 |
190 const char * | 190 const char * |
191 mnote_canon_tag_get_description (MnoteCanonTag t) | 191 mnote_canon_tag_get_description (MnoteCanonTag t) |
192 { | 192 { |
193 unsigned int i; | 193 unsigned int i; |
194 | 194 |
195 for (i = 0; i < sizeof (table) / sizeof (table[0]); i++) | 195 for (i = 0; i < sizeof (table) / sizeof (table[0]); i++) |
196 if (table[i].tag == t) { | 196 if (table[i].tag == t) { |
197 » » » if (!*table[i].description) | 197 » » » if (!table[i].description || !*table[i].description) |
198 return ""; | 198 return ""; |
199 #if defined(BIND_TEXTDOMAIN) | 199 #if defined(BIND_TEXTDOMAIN) |
200 » bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR); | 200 » » » bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR); |
201 #endif | 201 #endif |
202 return _(table[i].description); | 202 return _(table[i].description); |
203 } | 203 } |
204 return NULL; | 204 return NULL; |
205 } | 205 } |
OLD | NEW |