status report w24

June 14th, 2008 by antti

Our “manager” is constantly kicking our butts:

(13:08:54) Myrtti: BLOGATKAA PERKELE

So, here it goes 8-)

I’ve been awfully quiet this week. That’s just because I’ve been so busy with the project. I must say I’m very pleased with the work I’ve accomplished. Hopefully I get my svn.gnome.org account soon, so I can have a public repository for my work..

First of all I froze the database specification on Monday. I converted the GPRS EC database and used that to test the XML parser I created. Works very nicely (except for leaking tons of memory, will be fixed next week..)

Armed with a new and shiny  parser I was ready to begin the UI integration. I made a little change to the earlier draft as you can see from the pictures below. The list of available countries is now inside an expander, because the most of the users never have to choose the country.

WTH, is it chosen automagically for them?! I hear you ask. Of course it is! Country is selected based on timezone of the system. For example here in Finland I have Europe/Helsinki and I can get the country code fi from that. Also notice how country names are localized.The first picture has locale fi_FI.UTF-8, but is missing translation file and the second picture has locale ru_RU.UTF-8 and has a proof-of-concept translation that I quickly created with Google Translate.

Under the hood the system timezone is resolved using couple of borrowed files from gnome panel clock applet and the timezone is converted to country code and country names are localized using libgweather (thanks to Vincent Untz and Bastien Nocera).

If you look the pictures very carefully you will notice that the list of service providers has different content for Finland. For locale ru_RU service provider Elisa is named Русский вариант названия. This demonstrates how service provider names can be localized. This feature is not intended for l10n junkies who want to localize everything that even remotely resembles letters. No, this is for situations where a country has multiple official languages.

<provider>
<name>Elisa</name>
<name xml:lang=”ru”>Русский вариант названия</name>
<gsm>
<apn>internet</apn>
</gsm>
</provider>

btw, page headers is not translated because of a bug in glade.

7 Responses to “status report w24”

  1. Tobias Says:

    Don’t forget to add the right amount of padding to your glade designs.
    Only this gives the dialogs the professional and intregrated gnomey look.
    The paddings are defined in the Gnome HIG.

  2. Tobias Says:

    This is the page I guess:
    http://developer.gnome.org/projects/gup/hig/2.0/design-window.html

  3. antti Says:

    I’ve tried to follow the GNOME HIG as closely as possible, but it’s not always easy, because of some mis(sing) features in Glade and of course there might be some inconsistency because of me being a human, too :)

    If you notice some problems, please, inform me about them and I will try to fix them.
    Thanks.

  4. Tobias Says:

    For starters, there should be 12 px padding all around the content. If the lower button are fixed in the template for the assitant then that’s bad.
    And the treeviews should be embedded in some container, right? Because they look unusually flat like this.

  5. antti Says:

    The contents of the assistant has 12px padding, but the lower buttons are part of the widget and can not be controlled easily. I think there is a way to provide completely customized navigation buttons, but I do not see that as a feasible solution. Someone should rather fix the widget.

    What comes to the treeviews I could not find anything from the HIG that talks about container. And I assume by container you mean some visible or embedded borders.

  6. Tobias Says:

    Yes, you can compare your bluez screenshot with the serial screenshot. In the latter there is no border.
    BTW, with HIG I really mean »looks like a Gnome app«

  7. antti Says:

    You are absolutely correct. There should be borders around the lists.

    if application is conforming to GNOME HIG _then_ it »looks like a Gnome app« :-P
    http://bugzilla.gnome.org/show_bug.cgi?id=540723

    Thanks for your time and effort! I fixed my design.

Leave a Reply