[QGIS-trac] Re: [Quantum GIS] #2315: QGIS exceptions does not support unicode

Quantum GIS qgis at qgis.org
Thu Dec 24 07:09:53 EST 2009


#2315: QGIS exceptions does not support unicode
----------------------------------------------------------+-----------------
        Reporter:  marisn                                 |         Owner:  jef          
            Type:  patch                                  |        Status:  new          
        Priority:  minor: annoyance                       |     Milestone:  Version 2.0.0
       Component:  Translations and internationalisation  |       Version:  HEAD         
      Resolution:                                         |      Keywords:               
Platform_version:                                         |      Platform:  All          
        Must_fix:  No                                     |   Status_info:  0            
----------------------------------------------------------+-----------------
Changes (by marisn):

  * summary:  proj.4 errors garbled => QGIS exceptions does not support
              unicode

Comment:

 Changing bug description back to original, as proj.4 currently does not
 support localized error messages. This is (almost) pure QGIS issue.

 Compiled current QGIS trunk (r12612) without any CMAKE_BUILD_TYPE setting
 with Qt 4.6.0. QGIS displays pop-up with text and after clicking OK, it's
 impossible to close QGIS window (only with xkill):

 {{{
 Neveiksmīgs forward transformēšana no
 (10075.3, 112109)
 ar kļūdu: latitude or longitude exceeded limits
 }}}
 String should read (still it's grammatically incorrect due to how this
 string is represented to translators and hardcoded "forward" word):
 {{{
 Neveiksmīgs forward transformēšana ...
 }}}

 IMHO problem lies here:
 http://trac.osgeo.org/qgis/browser/trunk/qgis/src/core/qgsexception.h#L54
 Conversion between QString and std::string is done via fromAscii() (if I
 understood QString manual correctly).

-- 
Ticket URL: <http://trac.osgeo.org/qgis/ticket/2315#comment:2>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list