summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/language.h
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-04-23 11:25:03 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-04-23 11:26:47 +0200
commit1c726824f2b2cc7c6c03ff975e548b72f9b2c0a9 (patch)
tree020f20da5a8cd822065c1839bc7a53f826803a3d /src/frontend/mame/language.h
parent01657a63c13c79c5f045ba4ecb4c2fd7f7c5a1f8 (diff)
Split UI and frontend part from core [Miodrag Milanovic]
Diffstat (limited to 'src/frontend/mame/language.h')
-rw-r--r--src/frontend/mame/language.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/frontend/mame/language.h b/src/frontend/mame/language.h
new file mode 100644
index 00000000000..2a9d934576b
--- /dev/null
+++ b/src/frontend/mame/language.h
@@ -0,0 +1,31 @@
+// 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__*/