diff options
Diffstat (limited to 'src/emu/language.h')
-rw-r--r-- | src/emu/language.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/emu/language.h b/src/emu/language.h new file mode 100644 index 00000000000..ce536531d89 --- /dev/null +++ b/src/emu/language.h @@ -0,0 +1,32 @@ +// license:BSD-3-Clause +// copyright-holders:Miodrag Milanovic +/*************************************************************************** + + language.h + + Multi-language support. + +***************************************************************************/ +#pragma once + +#ifndef __EMU_H__ +#error Dont include this file directly; include emu.h instead. +#endif + +#ifndef __LANGUAGE_H__ +#define __LANGUAGE_H__ + +//************************************************************************** +// LOCALIZATION SUPPORT +//************************************************************************** + +#define _(param) lang_translate(param) +// Fake one to make possible using it in static text definitions, on those +// lang_translate must be called afterwards +#define __(param) param + +void load_translation(emu_options &option); +const char *lang_translate(const char *word); + +#endif /*__LANGUAGE_H__*/ + |