1
0

Handle translation files

This commit is contained in:
mckaygerhard 2024-06-02 05:11:35 -04:00
parent 6b22510752
commit bc3f43705c

View File

@ -2698,6 +2698,8 @@ void Server::sendMediaAnnouncement(session_t peer_id, const std::string &lang_co
for (const auto &i : m_media) { for (const auto &i : m_media) {
if (str_ends_with(i.first, ".tr") && !str_ends_with(i.first, lang_suffix)) if (str_ends_with(i.first, ".tr") && !str_ends_with(i.first, lang_suffix))
continue; continue;
if (str_ends_with(i.first, ".tr.e") && !str_ends_with(i.first, lang_suffix + ".e"))
continue;
// Skip dummy entries on 5.0+ clients // Skip dummy entries on 5.0+ clients
if (protocol_version >= 37 && i.second.sha1_digest.empty()) if (protocol_version >= 37 && i.second.sha1_digest.empty())
continue; continue;
@ -2709,6 +2711,8 @@ void Server::sendMediaAnnouncement(session_t peer_id, const std::string &lang_co
for (const auto &i : m_media) { for (const auto &i : m_media) {
if (str_ends_with(i.first, ".tr") && !str_ends_with(i.first, lang_suffix)) if (str_ends_with(i.first, ".tr") && !str_ends_with(i.first, lang_suffix))
continue; continue;
if (str_ends_with(i.first, ".tr.e") && !str_ends_with(i.first, lang_suffix + ".e"))
continue;
if (protocol_version >= 37 && i.second.sha1_digest.empty()) if (protocol_version >= 37 && i.second.sha1_digest.empty())
continue; continue;