HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
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
13namespace hi::inline v1 {
14
16 std::string msgctxt;
17 std::string msgid;
18 std::string msgid_plural;
20};
21
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
DOXYGEN BUG.
Definition algorithm.hpp:15
Definition language.hpp:18
The IETF BCP 47 language tag.
Definition language_tag.hpp:25
Definition po_parser.hpp:15
Definition po_parser.hpp:22