Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. KGlobal::Locale Warning
Forum Updated to NodeBB v4.3 + New Features

KGlobal::Locale Warning

Scheduled Pinned Locked Moved General and Desktop
8 Posts 3 Posters 6.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RichardM198030
    wrote on last edited by
    #1

    Hello, I'm getting this warning : KGlobalWarning::Locale, I found some solutions online, and am not trying to translate, I know no other language except English, that's all I know, why is it stil giving this warning? Even the Text Editor Example throws this same warning, any ideas?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DenisKormalev
      wrote on last edited by
      #2

      Can you be more detail? As I understood you are using KDE and when you start some Qt app (even from example) you get some warning, am I right? Please describe more. Copy-paste from your console with this warning will be useful also

      1 Reply Last reply
      0
      • R Offline
        R Offline
        RichardM198030
        wrote on last edited by
        #3

        [quote author="Denis Kormalev" date="1310714089"]Can you be more detail? As I understood you are using KDE and when you start some Qt app (even from example) you get some warning, am I right? Please describe more. Copy-paste from your console with this warning will be useful also[/quote]

        Okay : KGlobal::locale::Warning your global KLocale is being recreated with a valid main component instead of a fake component, this usually means you tried to call i18n related functions before your main component was created. You should not do that since it most likely will not work

        When I click Save on the menu item, on the example, it gives that warning, same as the Text Editor I wrote too, only on the SaveAs Link.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DenisKormalev
          wrote on last edited by
          #4

          Maybe some problems in your KDE installation? Looks like it shows when you call file dialog (Qt uses native ones, so it should show KDE one).

          1 Reply Last reply
          0
          • R Offline
            R Offline
            RichardM198030
            wrote on last edited by
            #5

            [quote author="Denis Kormalev" date="1310715496"]Maybe some problems in your KDE installation? Looks like it shows when you call file dialog (Qt uses native ones, so it should show KDE one).[/quote]

            I probably shouldn't worry about it, it still saves the files, just thought I'd ask about it, I use Arch Linux, but don't recall having this issue before, =/.

            1 Reply Last reply
            0
            • D Offline
              D Offline
              DenisKormalev
              wrote on last edited by
              #6

              I think that you will receive similar message if you for example start kwrite or kate from console, launch file dialog there and look into console output.

              1 Reply Last reply
              0
              • R Offline
                R Offline
                RichardM198030
                wrote on last edited by
                #7

                [quote author="Denis Kormalev" date="1310716259"]I think that you will receive similar message if you for example start kwrite or kate from console, launch file dialog there and look into console output. [/quote]

                I'll check it out, maybe it is something to do with my KDE installation. Checked kwrite, didn't say nothing about it, so it's weird..

                1 Reply Last reply
                0
                • L Offline
                  L Offline
                  loladiro
                  wrote on last edited by
                  #8

                  This problem was discussed before "here":http://developer.qt.nokia.com/forums/viewthread/7159 ,although no solution was found. However, I would suggest that you try debugging:

                  From KGlobal.cpp
                  @
                  00173 // If you hit the warning below, here's how to debug it in gdb:
                  00174 // (gdb) set auto-solib-add on
                  00175 // (gdb) b qt_message_output
                  00176 // (gdb) run
                  00177 // It will stop at the "-nograb" information.
                  00178 // (gdb) b KLocalePrivate::KLocalePrivate
                  00179 // (gdb) c
                  00180 // And now it will stop at the first construction of the KLocale object, type bt or go up to find the
                  00181 // guilty i18n call.
                  @

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved