You are not logged in.
Pages: 1
Topic closed
for cyrillic (russian) symbols on Gantt graphics in Project plugin:
1. in file ./projet/inc/gantt.class.php
remove comments (tip from https://forge.indepnet.net/projects/pro … _UserGuide:
// if (!isset($definitions['text']['ttfont']['file'])) $definitions
['text']['ttfont']['file']= './Arial.ttf'; // set path and filename of
ttf font -> coment to use gd fonts
2. copy font file to /ajax/ and /plugins/projet/front/ (if your path is ./arial.ttf)
3. in file ./projet/inc/projet.class.php find function dropAccent($chaine) and comment like this:
static function dropAccent($chaine) {
// $chaine=utf8_decode($chaine);
// $chaine=strtr( $chaine, 'АБВГДЕабвгдеТУФХЦШтуфхцшИЙКЛийклЗзМНОПмнопЩЪЫЬщъыьяСс', 'AAAAAAaaaaaaOOOOOOooooooEEEEeeeeCcIIIIiiiiUUUUuuuuyNn' );
return $chaine;
}
in russain:
чтобы на диаграммах ганта были видны киррилические (русские) буквы нужно:
1. в файле ./projet/inc/gantt.class.php
раскомментировать строчки:
// if (!isset($definitions['text']['ttfont']['file'])) $definitions
['text']['ttfont']['file']= './Arial.ttf'; // set path and filename of
ttf font -> coment to use gd fonts
2. скопировать файл шрифта в папку /ajax/ и /plugins/projet/front/ (если у вас путь записан как ./arial.ttf)
3. в файле ./projet/inc/projet.class.php найти функцию dropAccent($chaine) и поставить в ней комментарии:
static function dropAccent($chaine) {
// $chaine=utf8_decode($chaine);
// $chaine=strtr( $chaine, 'АБВГДЕабвгдеТУФХЦШтуфхцшИЙКЛийклЗзМНОПмнопЩЪЫЬщъыьяСс', 'AAAAAAaaaaaaOOOOOOooooooEEEEeeeeCcIIIIiiiiUUUUuuuuyNn' );
return $chaine;
}
Last edited by kfmook (2012-07-10 08:28:07)
Offline
Added to wiki plugin. Thanks.
Xavier Caillaud
Blog GLPI Infotel
Offline
Pages: 1
Topic closed