nls.patch 857 B

12345678910111213141516171819202122232425262728293031
  1. diff -Nur grub-1.98.orig/include/grub/i18n.h grub-1.98/include/grub/i18n.h
  2. --- grub-1.98.orig/include/grub/i18n.h 2010-03-06 21:51:37.000000000 +0100
  3. +++ grub-1.98/include/grub/i18n.h 2010-11-18 19:46:58.740685644 +0100
  4. @@ -24,18 +24,6 @@
  5. extern const char *(*EXPORT_VAR(grub_gettext)) (const char *s);
  6. -/* NLS can be disabled through the configure --disable-nls option. */
  7. -#if ENABLE_NLS
  8. -
  9. -# ifdef GRUB_UTIL
  10. -
  11. -# include <locale.h>
  12. -# include <libintl.h>
  13. -
  14. -# endif /* GRUB_UTIL */
  15. -
  16. -#else /* ! ENABLE_NLS */
  17. -
  18. /* Disabled NLS.
  19. The casts to 'const char *' serve the purpose of producing warnings
  20. for invalid uses of the value returned from these functions.
  21. @@ -47,8 +35,6 @@
  22. # define grub_gettext(str) ((const char *) (str))
  23. # endif /* GRUB_UTIL */
  24. -#endif /* ENABLE_NLS */
  25. -
  26. #ifdef GRUB_UTIL
  27. # define _(str) gettext(str)
  28. #else