Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-22489

Localization files can no longer be loaded using relative path in latest Qt release (4.7.4)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 4.7.4
    • Core: Locales (i18n)
    • None
    • Qt 4.7.4, Public Transportation v1.50
    •  865ad5053f053c9274973bb07e9f0ca04fd043d3

    Description

      Localization files can no longer be loaded using relative path in latest Qt release

      Previously it was possible to pass a relative path to the QTranslator::load function. This no longer works for us on Symbian, probably since the Qt commits
      http://qt.gitorious.org/qt/qt/commit/5dec90ff13cd96ca4f341cf5e8360037edf5eeb3
      http://qt.gitorious.org/qt/qt/commit/3ae56c0e4cfdd30579dbbff97fbf37af1da73a78
      We could fix this by passing the complete path to the translation file into the load function.
      Unfortunately this issue broke our ovi store release because the latest Qt version is loaded by the smart installer. Also we had to quick fix the SoLo release in last minute.

      A possible reason why it doesn't work for us might be in line 415 of qtranslator.cpp:
      if (prefix.length() > 2 && prefix.at(1) == QLatin1Char(':') && prefix.at(0).isLetter())
      prefix[0] = QLatin1Char('Y');
      This might result in not finding the file when the app is installed on C: (This is just guessing)

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            shkearns Shane Kearns
            kljohans Klaus Johansson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes