mirror of
https://github.com/hyprwm/hyprutils.git
synced 2025-12-20 08:10:10 +01:00
e
This commit is contained in:
parent
c012282933
commit
a5b1113633
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ std::string CI18nEngine::localizeEntry(const std::string& locale, uint64_t key,
|
||||||
|
|
||||||
auto stem = locale.substr(0, locale.find('_') + 1);
|
auto stem = locale.substr(0, locale.find('_') + 1);
|
||||||
for (const auto& [k, v] : m_impl->entries) {
|
for (const auto& [k, v] : m_impl->entries) {
|
||||||
if (k.starts_with(stem)) {
|
if (k.starts_with(stem) || k == stem) {
|
||||||
if (m_impl->entries.contains(k) && m_impl->entries[k].size() > key)
|
if (m_impl->entries.contains(k) && m_impl->entries[k].size() > key)
|
||||||
entry = &m_impl->entries[k][key];
|
entry = &m_impl->entries[k][key];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue