Re: [gnome-cyr] Broken gdm translation: wrong time format



В Чтв, 13.02.2003, в 11:50, Leonid Kanter написал:
>  From Red Hat bug report:
> ......
> 
> Description of problem:
> 
> Default time format on gdm login screen is wrong. My current 
> time is 23:11, but on gdm login screen it's 11:11 without any am/pm.
> Most European locales (including my Russian) use 24-hours time format.
> 
> Version-Release number of selected component (if applicable):
> 
> 2.4.1.3-1
> 
> /------- Additional Comment #1 
> <https://bugzilla.redhat.com/bugzilla/long_list.cgi?buglist=84157#c1> 
>  From Kjartan Maraas <mailto:kmaraas online no> on 2003-02-12 19:10 
> ------- /
> 
> Turns out the translation was broken. You just change
> 
> "%a %b %d, %I:%M %p" to
> "%a %b %d, %H:%M" in the translation to get the 24 hour equivalent.
> 
> I just checked the Ukrainian translation in GNOME CVS and it is indeed broken
> just like the norwegian one was. I've fixed it upstream for my translation, but
> I can't fix the other ones myself.
> 
> 
> The same for Russian. Please fix.
> 
Исправить-то я могу, но это будет не исправление, а как раз ошибка,
потому что вот такой кусок кода отвечает за вывод времени в
gui/greeter/greeter-item.c:

  if (GdmUse24Clock) 
    {
      return ve_strftime (the_tm, _("%a %b %d, %H:%M"));
    } 
  else 
    {
      return ve_strftime (the_tm, _("%a %b %d, %I:%M %p"));
    }

Понятно, что надо установить переменную, чтобы получить 24-часовое
время. Кстати, в gdmsetup на первой же вкладке есть отметка "Всегда
использовать 24-часовое представление времени".

Дмитрий





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]