Menu

#363 Locale support for months and week days missing

closed-fixed
None
5
2005-01-23
2004-07-06
No

Gphoto2 UI does not fetch language-specific names for
month and week day names using locales. As a result,
translators have to retranslate everything in po-files e.g.

> #: gphoto2/main.c:466
> msgid "Jan"
> msgstr "tam"
>
> #: gphoto2/main.c:466
> msgid "January"
> msgstr "tammikuuta"

This could be fixed using locales and parsing the
message strings using functions such as strptime.

Discussion

  • Lauri Nurmi

    Lauri Nurmi - 2004-08-20

    Logged In: YES
    user_id=796550

    It is indeed the wrong solution to have MonthTable and
    WeekdayTable in main.c. And in the code, those tables seem
    to be always used with sprintf.

    All date/time related sprintf calls should be replaced by
    strftime().

     
  • Arnaud Launay

    Arnaud Launay - 2004-09-01

    Logged In: YES
    user_id=18854

    Could you provide us with a patch, please ?

     
  • Arnaud Launay

    Arnaud Launay - 2004-09-01
    • assigned_to: nobody --> asl
     
  • Lauri Nurmi

    Lauri Nurmi - 2004-09-20

    Logged In: YES
    user_id=796550

    I made a patch, which I will submit right away.

    I was unable to compile gphoto, so I couldn't confirm the
    patch actually works.

     
  • Marcus Meissner

    Marcus Meissner - 2005-01-23

    Logged In: YES
    user_id=48092

    we use strptime in current cvs (for 2.1.6 release)

     
  • Marcus Meissner

    Marcus Meissner - 2005-01-23
    • status: open --> closed-fixed
     

Log in to post a comment.