View Issue Details

IDProjectCategoryView StatusLast Update
0011588mantisbtreportspublic2016-07-09 19:28
Reporterliyf Assigned Tovboctor  
PrioritynormalSeveritytweakReproducibilityalways
Status closedResolutionduplicate 
PlatformIntelOSwindows 2003OS VersionR2
Product Version1.2.0 
Summary0011588: Graphical statistical reports can not be displayed in Chinese
Description

Use JPGraph, in order to be able to display Chinese, the mantis1.1.8 or previous versions, we have achieved by modifying the configuration file graph_api.php, but in 1.2.0, even if we have changed according to the old methods of configuration files, in the interface can not be Select this item

TagsNo tags attached.
Attached Files
2.jpg (37,799 bytes)   
2.jpg (37,799 bytes)   
3.jpg (79,233 bytes)   
3.jpg (79,233 bytes)   

Relationships

duplicate of 0007937 closedatrol Special characters not correctly displayed in graphs 

Activities

liyf

liyf

2010-03-02 05:00

reporter   ~0024587

Has been resolved, please close this issue

1.If it is 1.2.0, modify <mantis directory> / plugins / MantisGraph / pages / config.php
$ t_current_font_selected = array (
'arial' => false,
'verdana' => false,
'trebuchet' => false,
'verasans' => false,
'chinese_gbk' => false, / / newly added
'times' => false,
'georgia' => false,
'veraserif' => false,
'courier' => false,
'veramono' => false,
);

Also a need to modify the local (the last one label, and on top of the br)
<td style="vertical-align: top">
Sans-serif:

<label> <input type = "radio" name = "font" value = "arial" <? php echo print_font_checked ( 'arial' )?>/> Arial </ label>

<label> <input type = "radio" name = "font" value = "verdana" <? php echo print_font_checked ( 'verdana' )?>/> Verdana </ label>

<label> <input type = "radio" name = "font" value = "trebuchet" <? php echo print_font_checked ( 'trebuchet' )?>/> Trebuchet </ label>

<label> <input type = "radio" name = "font" value = "verasans" <? php echo print_font_checked ( 'verasans' )?>/> Vera Sans </ label>

<label> <input type = "radio" name = "font" value = "chinese_gbk" <? php echo print_font_checked ( 'chinese_gbk' )?>/> chinese_gbk </ label>
</ td>

2.If it is 1.2.0, modify <mantis directory> / plugins / MantisGraph / pages / config_edit.php
if (plugin_config_get ( 'font')! = $ f_font) (
switch ($ f_font) (
case 'arial':
case 'verdana':
case 'trebuchet':
case 'verasans':
case 'chinese_gbk': / / newly added
case 'times':
case 'georgia':
case 'veraserif':
case 'courier':
case 'veramono':
plugin_config_set ( 'font', $ f_font);
break;
default:
plugin_config_set ( 'font', 'chinese_gbk'); / / where to change the default values, do not change, then you can manually select what
)
)

After completing these steps, to system management - plug-in management-Mantis Graphs 1.0, went in to see should have been set to chinese_gbk