GNOME Bugzilla – Bug 766874
self-contained featured banner
Last modified: 2018-01-24 17:07:36 UTC
To keep banners localizable, we don't just use images. However the stylesheet snippet inside an ini file isn't particularly nice to work with from the artist perspective. I think it would be desirable to be able to have a self contained banner image (SVG) that worked as a template, including strings like %%title or %%description. Producing such banner would not require rebuilding of Software and even allowed better decentralization of it. Here's a mockup of how featured banners might look like -- https://raw.githubusercontent.com/gnome-design-team/gnome-mockups-software/master/high-fidelity-mockups/landing-page/banners-maps.png
So we can certainly do this; you can already specify an SVG in the CSS and do some simple replacements, although I think at the moment they're limited to DATADIR and other uninteresting things. Can you do me an example and I'll see if I can make it work. Thanks!
I quickly jumped into a solution with my template idea. Another one might be using a standard translation tool we used for getting started -- itstool. That was we could really just have plain SVG files and provide translations using standard pot files.
So itstool isn't going to work great as we'd need to translate the images according to the freezes etc; using the existing data from the AppData file means we get localized strings for free.
*** Bug 768512 has been marked as a duplicate of this bug. ***
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-software/issues/61.