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 "../i18n/module.hpp"
8#include <string>
9#include <vector>
10#include <filesystem>
11
12namespace hi::inline v1 {
13
15 std::string msgctxt;
16 std::string msgid;
17 std::string msgid_plural;
19};
20
22 language_tag language;
23 int nr_plural_forms;
24 std::string plural_expression;
25 std::vector<po_translation> translations;
26};
27
28[[nodiscard]] po_translations parse_po(std::filesystem::path const &path);
29
30} // namespace hi::inline v1
DOXYGEN BUG.
Definition algorithm.hpp:13
The IETF BCP 47 language tag.
Definition language_tag.hpp:25
Definition po_parser.hpp:14
Definition po_parser.hpp:21