~hamo/ubuntu/precise/grub2/grub2.hi_res

« back to all changes in this revision

Viewing changes to include/grub/i18n.h

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson, Colin Watson, Robert Millan, Updated translations
  • Date: 2010-11-22 12:24:56 UTC
  • mfrom: (1.26.4 upstream) (17.3.36 sid)
  • mto: (17.3.43 sid)
  • mto: This revision was merged to the branch mainline in revision 89.
  • Revision ID: james.westby@ubuntu.com-20101122122456-y82z3sfb7k4zfdcc
Tags: 1.99~20101122-1
[ Colin Watson ]
* New Bazaar snapshot.  Too many changes to list in full, but some of the
  more user-visible ones are as follows:
  - GRUB script:
    + Function parameters, "break", "continue", "shift", "setparams",
      "return", and "!".
    + "export" command supports multiple variable names.
    + Multi-line quoted strings support.
    + Wildcard expansion.
  - sendkey support.
  - USB hotunplugging and USB serial support.
  - Rename CD-ROM to cd on BIOS.
  - Add new --boot-directory option to grub-install, grub-reboot, and
    grub-set-default; the old --root-directory option is still accepted
    but was often confusing.
  - Basic btrfs detection/UUID support (but no file reading yet).
  - bash-completion for utilities.
  - If a device is listed in device.map, always assume that it is
    BIOS-visible rather than using extra layers such as LVM or RAID.
  - Add grub-mknetdir script (closes: #550658).
  - Remove deprecated "root" command.
  - Handle RAID devices containing virtio components.
  - GRUB Legacy configuration file support (via grub-menulst2cfg).
  - Keyboard layout support (via grub-mklayout and grub-kbdcomp).
  - Check generated grub.cfg for syntax errors before saving.
  - Pause execution for at most ten seconds if any errors are displayed,
    so that the user has a chance to see them.
  - Support submenus.
  - Write embedding zone using Reed-Solomon, so that it's robust against
    being partially overwritten (closes: #550702, #591416, #593347).
  - GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY merged
    into a single GRUB_DISABLE_RECOVERY variable.
  - Fix loader memory allocation failure (closes: #551627).
  - Don't call savedefault on recovery entries (closes: #589325).
  - Support triple-indirect blocks on ext2 (closes: #543924).
  - Recognise DDF1 fake RAID (closes: #603354).

[ Robert Millan ]
* Use dpkg architecture wildcards.

[ Updated translations ]
* Slovenian (Vanja Cvelbar).  Closes: #604003
* Dzongkha (dawa pemo via Tenzin Dendup).  Closes: #604102

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include <config.h>
23
23
#include <grub/symbol.h>
24
24
 
25
 
const char *EXPORT_FUNC(grub_gettext_dummy) (const char *s);
 
25
/* NLS can be disabled through the configure --disable-nls option.  */
 
26
#if (defined(ENABLE_NLS) && ENABLE_NLS) || !defined (GRUB_UTIL)
 
27
 
26
28
extern const char *(*EXPORT_VAR(grub_gettext)) (const char *s);
27
29
 
28
 
/* NLS can be disabled through the configure --disable-nls option.  */
29
 
#if ENABLE_NLS
30
 
 
31
30
# ifdef GRUB_UTIL
32
31
 
33
32
#  include <locale.h>
35
34
 
36
35
# endif /* GRUB_UTIL */
37
36
 
38
 
#else /* ! ENABLE_NLS */
 
37
#else /* ! (defined(ENABLE_NLS) && ENABLE_NLS) */
39
38
 
40
39
/* Disabled NLS.
41
40
   The casts to 'const char *' serve the purpose of producing warnings
42
41
   for invalid uses of the value returned from these functions.
43
42
   On pre-ANSI systems without 'const', the config.h file is supposed to
44
43
   contain "#define const".  */
45
 
# ifdef GRUB_UTIL
46
 
#  define gettext(Msgid) ((const char *) (Msgid))
47
 
# else
48
 
#  define grub_gettext(str) ((const char *) (str))
49
 
# endif /* GRUB_UTIL */
 
44
static inline const char * __attribute__ ((always_inline))
 
45
gettext (const char *str)
 
46
{
 
47
  return str;
 
48
}
50
49
 
51
 
#endif /* ENABLE_NLS */
 
50
#endif /* (defined(ENABLE_NLS) && ENABLE_NLS) */
52
51
 
53
52
#ifdef GRUB_UTIL
54
 
# define _(str) gettext(str)
 
53
static inline const char * __attribute__ ((always_inline))
 
54
_ (const char *str)
 
55
{
 
56
  return gettext(str);
 
57
}
55
58
#else
56
 
# define _(str) grub_gettext(str)
 
59
static inline const char * __attribute__ ((always_inline))
 
60
_ (const char *str)
 
61
{
 
62
  return grub_gettext(str);
 
63
}
57
64
#endif /* GRUB_UTIL */
58
65
 
59
66
#define N_(str) str