Results 1 to 4 of 4

Thread: edit QLocale

  1. #1
    Join Date
    Mar 2012
    Location
    Lesotho
    Posts
    33
    Qt products
    Qt4 Qt/Embedded Qt Jambi
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default edit QLocale

    I've app that I've to add QCalendarWidget. I want both months and days to be in my own language.QLocale seems to be a solution but there are some months that are not written correctly.my questions is how can I modify or re-implement this class to fit my solution?

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: edit QLocale

    Have you checked if it is a problem of the locale setup, e.g. the locale being use not matching your target locale, or the locale not formatting things correctly?

    Cheers,
    _

  3. #3
    Join Date
    Mar 2012
    Location
    Lesotho
    Posts
    33
    Qt products
    Qt4 Qt/Embedded Qt Jambi
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: edit QLocale

    It matches with the one I need, but the problem is that some of the words are written incorrectly. I need both months and days however some of them are written incorrectly so I want to format them.

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: edit QLocale

    That sounds like a bug then.
    Can you check the Qt bug tracker if it already knows about it?
    It could even contain a solution or workaround already.

    Cheers,
    _

Similar Threads

  1. QLocale and date
    By jiveaxe in forum Newbie
    Replies: 2
    Last Post: 21st May 2012, 09:37
  2. QLocale not retreiving language right
    By jfjf in forum Newbie
    Replies: 2
    Last Post: 5th February 2011, 08:42
  3. Set QLocale local once or in every class?
    By homerun4711 in forum Newbie
    Replies: 1
    Last Post: 19th January 2011, 10:54
  4. QLocale/Resource
    By coderbob in forum Newbie
    Replies: 4
    Last Post: 21st November 2007, 20:51
  5. QLocale confusion :(
    By gri in forum Qt Programming
    Replies: 6
    Last Post: 15th June 2007, 13:09

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.