After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 709254 - Translation templates website-dynamic and website-static miss strings
Translation templates website-dynamic and website-static miss strings
Status: RESOLVED OBSOLETE
Product: website
Classification: Infrastructure
Component: www.gnome.org
current
Other All
: Normal normal
: ---
Assigned To: GNOME Web maintainers
GNOME Web maintainers
Depends on:
Blocks:
 
 
Reported: 2013-10-02 11:23 UTC by Eduard Gotwig
Modified: 2018-09-24 10:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Make page-home.php aware of translateable sections (3.79 KB, patch)
2013-10-04 12:26 UTC, Eduard Gotwig
none Details | Review
new page-home.php [2] (3.57 KB, application/octet-stream)
2013-10-04 17:33 UTC, Eduard Gotwig
  Details

Description Eduard Gotwig 2013-10-02 11:23:29 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.
Comment 1 Andreas Nilsson 2013-10-04 08:12:25 UTC
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)
Comment 2 Eduard Gotwig 2013-10-04 11:52:24 UTC
We seem have to update this file: https://l10n.gnome.org/POT/gnome-web-www.master/static.master.pot
Comment 3 Eduard Gotwig 2013-10-04 12:01:11 UTC
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 .
Comment 4 Eduard Gotwig 2013-10-04 12:26:32 UTC
Created attachment 256472 [details] [review]
Make page-home.php aware of translateable sections
Comment 5 Eduard Gotwig 2013-10-04 17:33:23 UTC
Created attachment 256490 [details]
new page-home.php  [2]

Probably this version is even better, replaced printf with just _e
Comment 6 Eduard Gotwig 2013-10-04 17:35:51 UTC
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/
Comment 7 GNOME Infrastructure Team 2018-09-24 10:33:16 UTC
-- 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.