summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/language.h
blob: 73adbb882691ca9ce89c85e3cbfd568be18cbedb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// license:BSD-3-Clause
// copyright-holders:Miodrag Milanovic
/***************************************************************************

    language.h

    Multi-language support.

***************************************************************************/
#ifndef MAME_FRONTEND_MAME_LANGUAGE_H
#define MAME_FRONTEND_MAME_LANGUAGE_H

#pragma once

#ifndef __EMU_H__
#error Dont include this file directly; include emu.h instead.
#endif

//**************************************************************************
//  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 // MAME_FRONTEND_MAME_LANGUAGE_H