HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
translation.hpp
1// Copyright Take Vos 2020-2021.
2// Distributed under the Boost Software License, Version 1.0.
3// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
4
5#pragma once
6
7#include "../i18n/module.hpp"
8#include "../formula/formula.hpp"
9#include "../utility/module.hpp"
10#include "../os_settings.hpp"
11#include <string>
12#include <string_view>
13#include <vector>
14#include <unordered_map>
15#include <tuple>
16
17namespace hi {
18inline namespace v1 {
19
20[[nodiscard]] std::pair<std::string_view, language_tag> get_translation(
21 std::string_view msgid,
22 long long n = 0,
23 std::vector<language_tag> const &languages = os_settings::language_tags()) noexcept;
24
25void add_translation(std::string_view msgid, language_tag language, std::vector<std::string> const &plural_forms) noexcept;
26
27struct po_translations;
28void add_translation(po_translations const &translations, language_tag const &language) noexcept;
29
30}} // namespace hi::inline v1
STL namespace.
DOXYGEN BUG.
Definition algorithm.hpp:13
geometry/margins.hpp
Definition cache.hpp:11