HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
src
ttauri
text
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
6
#pragma once
7
8
#include <string>
9
#include <vector>
10
#include "language_tag.hpp"
11
#include "../resource_view.hpp"
12
#include "../URL.hpp"
13
14
namespace
tt {
15
16
struct
po_translation
{
17
std::string
msgctxt;
18
std::string
msgid;
19
std::string
msgid_plural;
20
std::vector<std::string>
msgstr;
21
};
22
23
struct
po_translations
{
24
language_tag
language
;
25
int
nr_plural_forms;
26
std::string
plural_expression;
27
std::vector<po_translation>
translations;
28
};
29
30
[[nodiscard]]
po_translations
parse_po(
URL
const
&url);
31
32
}
33
tt::language
Definition
language.hpp:22
tt::language_tag
An IETF BCP 47 Language tag.
Definition
language_tag.hpp:15
tt::po_translation
Definition
po_parser.hpp:16
tt::po_translations
Definition
po_parser.hpp:23
tt::URL
Definition
URL.hpp:47
std::string
std::vector
Generated on Mon Apr 22 2024 12:53:34 for HikoGUI by
1.10.0