GNOME Bugzilla – Bug 709254
Translation templates website-dynamic and website-static miss strings
Last modified: 2018-09-24 10:33:16 UTC
There are strings missing, which are obviously part of the website. The user menu is translateable, but e.g the following links are not part of the translation template, and for that can not be translated: "GNOME 3: Ease, comfort and control" "GNOME 3 is an easy and elegant way to use your computer. It is designed to put you in control and bring freedom to everybody. GNOME 3 is developed by the GNOME community, a diverse, international group of contributors that is supported by an independent, non-profit foundation." these are the most obvious ones.
Thanks for finding this! It's in https://git.gnome.org/browse/gnome-web-www/tree/theme/page-home.php Any content there needs to be moved into a page, right? (I'm not fully up to date on how the translation works)
We seem have to update this file: https://l10n.gnome.org/POT/gnome-web-www.master/static.master.pot
Oh and the strings seem have to be included in https://git.gnome.org/browse/gnome-web-www/tree/theme/languages/gnome-grass.pot . We can do this by not writing the HTML directly, but instead replacing the text with like <?php printf( __( 'For now, you may want to go to the <a href="%1$s">home page</a> to start from the beginning, or try your luck in the search form below.', 'grass'), get_bloginfo('url') ); ?> Than it gets part of the gnome-grass.pot file I think, somehow. Than we have to get this pot file to generate po files. I am going to work on doing this now. I start with page-home.php .
Created attachment 256472 [details] [review] Make page-home.php aware of translateable sections
Created attachment 256490 [details] new page-home.php [2] Probably this version is even better, replaced printf with just _e
I still miss some strings, like "GNOME brings companies, volunteers, professionals and non-profits together from around the world. We make GNOME 3: a complete free software solution for everyone." and "We promote software freedom", so basicly http://www.gnome.org/about/
-- 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/Infrastructure/Websites/issues/124.