New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Translated metadata is not cached if locale contains country code #166
Comments
|
I couldn't reproduce this, everything seems to work as expected. |
|
LANG=es_ES appstreamcli dump org.kde.dolphin.desktop vs 'LANG=es_ES plasma-discover' shows all descriptions in English, but 'LANG=es plasma-discover' shows them in Spanish. |
|
Looks like the problem is in the cache file. If I delete /var/cache/app-info/gv/es_ES.gvz it works. After recreating the cache it breaks again. |
If the component doesn't contain translated data for the given locale string, try the plain language string before falling back to C Fixes ximion#166
* Check also plain language string in as_component_localized_get If the component doesn't contain translated data for the given locale string, try the plain language string before falling back to C Fixes #166
Using appstream 0.11.7. If LANG=xx_XX and there is no translation in the xml metadata for lang=xx_XX, appstream should use the translation for lang=xx instead. Most packages don't ship specific translations for language variants in their metadata, so this makes descriptions be always untranslated in Discover even if there are available translations in the metadata.
The text was updated successfully, but these errors were encountered: