ES-DE/es-core/src/utils/LocalizationUtil.h

34 lines
727 B
C
Raw Normal View History

2024-06-29 19:24:28 +00:00
// SPDX-License-Identifier: MIT
//
// ES-DE Frontend
// LocalizationUtil.h
//
// Localization functions.
// Provides support for translations using gettext/libintl.
//
#ifndef ES_CORE_UTILS_LOCALIZATION_UTIL_H
#define ES_CORE_UTILS_LOCALIZATION_UTIL_H
#include <libintl.h>
#include <string>
#include <vector>
#define _(STR) std::string(gettext(STR))
namespace Utils
{
namespace Localization
{
extern const std::vector<std::pair<std::string, std::string>> sSupportedLocales;
extern float sMenuTitleScaleFactor;
2024-06-29 19:24:28 +00:00
std::pair<std::string, std::string> getLocale();
void setLocale();
2024-06-29 19:24:28 +00:00
} // namespace Localization
} // namespace Utils
#endif // ES_CORE_UTILS_LOCALIZATION_UTIL_H