mirror of
https://git.freebsd.org/ports.git
synced 2025-06-19 11:40:31 -04:00
Upstream PR: https://github.com/ximion/appstream/pull/484 Sponsored by: Serenity Cybersecurity, LLC
15 lines
596 B
C
15 lines
596 B
C
--- compose/asc-utils-l10n.c.orig 2023-02-10 19:54:13 UTC
|
|
+++ compose/asc-utils-l10n.c
|
|
@@ -390,11 +390,7 @@ asc_l10n_search_translations_qt (AscLocaleContext *ctx
|
|
locale = g_strdup (fname + strlen (qm_root) + 1);
|
|
g_strdelimit (locale, ".", '\0');
|
|
tmp = g_strstr_len (locale, -1, "/");
|
|
- if (tmp != NULL) {
|
|
- /* we have the ${hint}/${locale}.qm form */
|
|
- locale = tmp + 1;
|
|
- }
|
|
- if (!asc_l10n_parse_file_qt (ctx, unit, locale, fname, error))
|
|
+ if (!asc_l10n_parse_file_qt (ctx, unit, tmp == NULL ? locale : tmp + 1, fname, error))
|
|
return FALSE;
|
|
}
|
|
}
|