HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
src
hikogui
i18n
po_parser.hpp
1
// Copyright Take Vos 2020.
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 <string>
8
#include <vector>
9
#include "../i18n/language_tag.hpp"
10
#include "../resource_view.hpp"
11
#include "../URL.hpp"
12
13
namespace
hi::inline v1 {
14
15
struct
po_translation
{
16
std::string
msgctxt;
17
std::string
msgid;
18
std::string
msgid_plural;
19
std::vector<std::string>
msgstr;
20
};
21
22
struct
po_translations
{
23
language_tag
language
;
24
int
nr_plural_forms;
25
std::string
plural_expression;
26
std::vector<po_translation>
translations;
27
};
28
29
[[nodiscard]]
po_translations
parse_po(
URL
const
&url);
30
31
}
// namespace hi::inline v1
v1::language
Definition
language.hpp:18
v1::language_tag
The IETF BCP 47 language tag.
Definition
language_tag.hpp:26
v1::po_translation
Definition
po_parser.hpp:15
v1::po_translations
Definition
po_parser.hpp:22
v1::URL
Definition
URL.hpp:47
std::string
std::vector
Generated on Mon Apr 22 2024 12:52:40 for HikoGUI by
1.10.0