[SAC] [OSGeo] #637: enable cyrillic fonts in qgis trac

#637: enable cyrillic fonts in qgis trac
---------------------------+------------------------------------------------
Reporter: dassau | Owner: sac@…
     Type: task | Status: new
Priority: normal | Milestone:
Component: Systems Admin | Keywords: cyrillic fonts qgis trac
---------------------------+------------------------------------------------
Dear SAC,

can you please enable cyrillic fonts in qgis trac to make the russian
translation of the manual appear as it should? See link below:

http://trac.osgeo.org/qgis/changeset/14297

Thanks a lot
  Otto

--
Ticket URL: <http://trac.osgeo.org/osgeo/ticket/637&gt;
OSGeo <http://www.osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#637: enable cyrillic fonts in qgis trac
---------------------------+------------------------------------------------
Reporter: dassau | Owner: sac@…
     Type: task | Status: new
Priority: normal | Milestone:
Component: Systems Admin | Keywords: cyrillic fonts qgis trac
---------------------------+------------------------------------------------

Comment(by neteler):

Otto: please ensure that your files are in UTF8.

If so, it may be a Unicode issue:

Unicode Support in Trac
http://trac.edgewall.org/wiki/TracUnicode

"If your encoding is not UTF-8, you can use mod_python to handle it..."
(see there)

--
Ticket URL: <http://trac.osgeo.org/osgeo/ticket/637#comment:1&gt;
OSGeo <http://www.osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#637: enable cyrillic fonts in qgis trac
---------------------------+------------------------------------------------
Reporter: dassau | Owner: sac@…
     Type: task | Status: new
Priority: normal | Milestone:
Component: Systems Admin | Keywords: cyrillic fonts qgis trac
---------------------------+------------------------------------------------

Comment(by alexbruy):

Files are in UTF-8 encoding

--
Ticket URL: <http://trac.osgeo.org/osgeo/ticket/637#comment:2&gt;
OSGeo <http://www.osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#637: enable cyrillic fonts in qgis trac
---------------------------+------------------------------------------------
Reporter: dassau | Owner: sac@…
     Type: task | Status: new
Priority: normal | Milestone:
Component: Systems Admin | Keywords: cyrillic fonts qgis trac
---------------------------+------------------------------------------------

Comment(by dr):

Could anybody review this bug?

--
Ticket URL: <http://trac.osgeo.org/osgeo/ticket/637#comment:3&gt;
OSGeo <http://www.osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#637: enable cyrillic fonts in qgis trac
---------------------------+------------------------------------------------
Reporter: dassau | Owner: sac@…
     Type: task | Status: new
Priority: normal | Milestone:
Component: Systems Admin | Keywords: cyrillic fonts qgis trac
---------------------------+------------------------------------------------

Comment(by dr):

bump

--
Ticket URL: <http://trac.osgeo.org/osgeo/ticket/637#comment:4&gt;
OSGeo <http://www.osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#637: enable cyrillic fonts in qgis trac
---------------------------+------------------------------------------------
Reporter: dassau | Owner: sac@…
     Type: task | Status: new
Priority: normal | Milestone:
Component: Systems Admin | Keywords: cyrillic fonts qgis trac
---------------------------+------------------------------------------------

Comment(by wildintellect):

Replying to [comment:1 neteler]:
> Otto: please ensure that your files are in UTF8.
>
> If so, it may be a Unicode issue:
>
> Unicode Support in Trac
> http://trac.edgewall.org/wiki/TracUnicode
>
> "If your encoding is not UTF-8, you can use mod_python to handle it..."
(see there)

On quick review, the UTF-8 support of Trac pages - wiki, etc is covered.
What appears to be at issue here is Trac's parsing of files in the repo
for diffs, changelogs etc which are not stored in Trac itself, hence the
link above has no relevance on this issue.

I'm continuing to look into a solution, if anyone knows of a trac site
they've seen that handles this properly (any language) that would be
helpful.

--
Ticket URL: <http://trac.osgeo.org/osgeo/ticket/637#comment:5&gt;
OSGeo <http://www.osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#637: enable cyrillic fonts in qgis trac
---------------------------+------------------------------------------------
Reporter: dassau | Owner: sac@…
     Type: task | Status: new
Priority: normal | Milestone:
Component: Systems Admin | Keywords: cyrillic fonts qgis trac
---------------------------+------------------------------------------------

Comment(by wildintellect):

There are all sorts of old Trac tickets about this that might be relevant.
Specifically one that points out that setting the svn mime-type might
solve this.
{{{
svn propset svn:mime-type 'text/plain; charset=iso-8859-1' README
}}}
http://trac.edgewall.org/ticket/513
http://trac.edgewall.org/ticket/1457
http://trac.edgewall.org/ticket/7160

Another possibility to try is setting the default_charset in the trac.ini
to UTF-8

--
Ticket URL: <http://trac.osgeo.org/osgeo/ticket/637#comment:6&gt;
OSGeo <http://www.osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#637: enable cyrillic fonts in qgis trac
---------------------------+------------------------------------------------
Reporter: dassau | Owner: sac@…
     Type: task | Status: new
Priority: normal | Milestone:
Component: Systems Admin | Keywords: cyrillic fonts qgis trac
---------------------------+------------------------------------------------

Comment(by neteler):

You could check the svn properties. A similar problem has been fixed
yesterday in GRASS:

{{{
Author: msieczka
Date: 2011-02-10 11:16:15 -0800 (Thu, 10 Feb 2011)
New Revision: 45361

Modified:
   grass/branches/releasebranch_6_4/locale/po/grasslibs_pl.po
Log:
Trying svn:mime-type 'text/x-plain; charset=utf-8' to fix UTF8 rendering
in Trac browser.

Property changes on:
grass/branches/releasebranch_6_4/locale/po/grasslibs_pl.po
___________________________________________________________________
Modified: svn:mime-type
   - text/x-plain
   + text/x-plain; charset=utf-8
}}}

This change helped.

--
Ticket URL: <http://trac.osgeo.org/osgeo/ticket/637#comment:7&gt;
OSGeo <http://www.osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#637: enable cyrillic fonts in qgis trac
---------------------------+------------------------------------------------
Reporter: dassau | Owner: sac@…
     Type: task | Status: new
Priority: normal | Milestone:
Component: Systems Admin | Keywords: cyrillic fonts qgis trac
---------------------------+------------------------------------------------

Comment(by wildintellect):

I found the real culprit/possible solution to this. The default charset in
the trac.ini is set to IEC_8859-15 (aka Latin 9). Theoretically changing
that to UTF-8 would fix.

The workaround as mentioned above is to use svn propset like so
{{{
svn:mime-type to text/html;charset=utf-8
}}}

I propose we test on a copy of one of our trac's to see if the default
charset change is clean. If so I recommend all trac instances be changed
to have that as the default in order to better support
internationalization.

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/637#comment:8&gt;
OSGeo <http://www.osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#637: enable cyrillic fonts in qgis trac
--------------------------------------+---------------------
Reporter: dassau | Owner: sac@…
     Type: task | Status: closed
Priority: normal | Milestone:
Component: Trac | Resolution: fixed
Keywords: cyrillic fonts qgis trac |
--------------------------------------+---------------------
Changes (by strk):

* status: new => closed
* resolution: => fixed
* component: Systems Admin => Trac

Comment:

It seems to work now, closing as fixed. (I recently forced UTF-8, maybe
that was the fix)

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/637#comment:9&gt;
OSGeo <http://www.osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.