Opened 14 years ago

Closed 8 years ago

#637 closed task (fixed)

enable cyrillic fonts in qgis trac

Reported by: dassau Owned by: sac@…
Priority: normal Milestone:
Component: SysAdmin/Trac Keywords: cyrillic fonts qgis trac
Cc:

Description

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

Change History (9)

comment:1 by neteler, 14 years ago

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)

comment:2 by alexbruy, 14 years ago

Files are in UTF-8 encoding

comment:3 by dr, 14 years ago

Could anybody review this bug?

comment:4 by dr, 14 years ago

bump

in reply to:  1 comment:5 by wildintellect, 13 years ago

Replying to 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.

comment:6 by wildintellect, 13 years ago

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

comment:7 by neteler, 13 years ago

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.

comment:8 by wildintellect, 13 years ago

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.

comment:9 by strk, 8 years ago

Component: Systems AdminTrac
Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.