1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Checking the string for NULL in I18nTranslate()

This commit is contained in:
Klaus Schmidinger 2007-08-15 14:18:26 +02:00
parent 3883fb8e16
commit e48d4293e5
2 changed files with 4 additions and 1 deletions

View File

@ -5361,3 +5361,4 @@ Video Disk Recorder Revision History
- Updated the Finnish OSD texts (thanks to Rolf Ahrenberg). - Updated the Finnish OSD texts (thanks to Rolf Ahrenberg).
- Added internationalization to the "skincurses" plugin (thanks to Rolf - Added internationalization to the "skincurses" plugin (thanks to Rolf
Ahrenberg). Ahrenberg).
- Checking the string for NULL in I18nTranslate().

4
i18n.c
View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: i18n.c 1.308 2007/08/12 12:15:29 kls Exp $ * $Id: i18n.c 1.309 2007/08/15 14:17:56 kls Exp $
* *
* *
*/ */
@ -180,6 +180,8 @@ const cStringList *I18nLanguages(void)
const char *I18nTranslate(const char *s, const char *Plugin) const char *I18nTranslate(const char *s, const char *Plugin)
{ {
if (!s)
return s;
if (CurrentLanguage) { if (CurrentLanguage) {
const char *t = s; const char *t = s;
if (Plugin) if (Plugin)