grub/grub-core/normal
Vladimir 'phcoder' Serbinenko 17f38c0f8c Fix gettext reload bugs (e.g. inability to disable gettext
once enabled).

	* grub-core/gettext/gettext.c: Encapsulate all static variables in
	main_context and secondary_context. All functions updated.
	(grub_gettext_translate): Rename to ...
	(grub_gettext_translate_real): ... this. Return NULL on failed
	translate.
	(grub_gettext_translate): Handle secondary context.
	(grub_gettext_delete_list): Close file and zero-out the context.
	(grub_mofile_open): Don't call grub_gettext_delete_list.
	Don't close file.
	(grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
	if locale="" to avoid pointless error message.
	(grub_gettext_env_write_lang): Update lang even if load fails.
	Handle secondary context.
	(grub_gettext_reread_prefix): New function.
	(read_main): Likewise.
	(read_secondary): Likewise.
	(GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
	(GRUB_MOD_FINI): Handle secondary context. Don't close file.
	* grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
	* include/grub/normal.h (grub_gettext_reread_prefix): New proto.
2012-03-10 23:25:34 +01:00
..
auth.c Improve gettext support. Stylistic fixes and error handling fixes while 2012-02-08 19:26:01 +01:00
autofs.c Move platform-dependent files from $prefix to $prefix/$platform. 2012-02-04 21:47:29 +01:00
charset.c * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning. 2012-03-08 19:05:43 +01:00
cmdline.c * grub-core/net/http.c: Add TRANSLATORS comments. 2012-03-05 16:42:26 +01:00
color.c Add missing const qualifiers. 2011-11-30 16:20:13 +01:00
completion.c Remove prio_list 2012-02-12 03:52:17 +01:00
context.c Improve string. Gettextize. 2012-02-12 15:25:25 +01:00
crypto.c Move platform-dependent files from $prefix to $prefix/$platform. 2012-02-04 21:47:29 +01:00
datetime.c * grub-core/normal/datetime.c (grub_weekday_names): Make const. 2011-12-13 01:45:38 +01:00
dyncmd.c Fix `help' with unloaded modules. 2012-02-09 14:38:34 +01:00
main.c Fix gettext reload bugs (e.g. inability to disable gettext 2012-03-10 23:25:34 +01:00
menu.c Fix menu title instability bug. 2012-03-04 14:55:13 +01:00
menu_entry.c * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one 2012-03-05 00:02:17 +01:00
menu_text.c * grub-core/commands/gptsync.c: Fix typographic quoting. 2012-03-03 13:05:08 +01:00
misc.c * grub-core/net/http.c: Add TRANSLATORS comments. 2012-03-05 16:42:26 +01:00
term.c Move platform-dependent files from $prefix to $prefix/$platform. 2012-02-04 21:47:29 +01:00