forked from ximion/appstream
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
component: Don't strip ";" from keywords before translating them
We're failing to translate strings now, when the keywords ends with a ";" as they almost always do, e.g.: Keywords=Drivers;Repositories;Repository;PPA; because we strip the trailing semicolon off before translating, in order to avoid having empty elements in the output. Instead what we can do is process the list passed to `as_component_set_keywords` and remove empties at that point. This allows us to not modify the string retrieved from the desktop file, and fixes finding translations.
- Loading branch information
Showing
2 changed files
with
12 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters