vdr-arghdirector-0.2.6-i18n.patch 682 B

12345678910111213141516171819202122232425262728293031
  1. diff --git a/arghdirector.c b/arghdirector.c
  2. index f01f11d..56d3fe0 100755
  3. --- a/arghdirector.c
  4. +++ b/arghdirector.c
  5. @@ -85,7 +85,9 @@ bool cPluginDirector::ProcessArgs(int argc, char *argv[])
  6. bool cPluginDirector::Start(void)
  7. {
  8. // Start any background activities the plugin shall perform.
  9. +#if VDRVERSNUM < 10727
  10. RegisterI18n(Phrases);
  11. +#endif
  12. #if VDRVERSNUM >= 10332
  13. if(autoStart == 1)
  14. diff --git a/i18n.h b/i18n.h
  15. index 22cce61..1117745 100755
  16. --- a/i18n.h
  17. +++ b/i18n.h
  18. @@ -9,8 +9,11 @@
  19. #ifndef _I18N__H
  20. #define _I18N__H
  21. +#include <vdr/config.h>
  22. #include <vdr/i18n.h>
  23. +#if VDRVERSNUM < 10727
  24. extern const tI18nPhrase Phrases[];
  25. +#endif
  26. #endif //_I18N__H