statistics and graphs in Arabic

More
5 years 1 month ago - 5 years 1 month ago #87099 by sukhon
sukhon created the topic: statistics and graphs in Arabic
Hi,

I have two problems when using Arabic as main language or second language

1- the first problem consists in the report, when i choose to get statistics for the results of any survey to which the language of the questions is in Arabic and choose statistics report language in Arabic and choose to show graphs, the system doesn't generate the report and gives me error message as in the attached file.

Attachment errormessage.png not found



2- if i choose the Statistics report language in English and choose to show graphs, the answers in the graph show squares, as the graphs don't recognize Arabic language. please check the attachment.
Attachments:
Last Edit: 5 years 1 month ago by sukhon. Reason: one of the attachments didn't load

Please Log in to join the conversation.

More
5 years 1 month ago #87176 by sukhon
sukhon replied the topic: statistics and graphs in Arabic
Any reply, any one

Please Log in to join the conversation.

More
5 years 1 month ago #87186 by DenisChenu
DenisChenu replied the topic: statistics and graphs in Arabic
Hello,

What is your version of LimeSUrvey ? It's 1.91/1.92 ? I think we already correct this bug in last 1.92.

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
5 years 1 month ago #87199 by sukhon
sukhon replied the topic: statistics and graphs in Arabic
Version 1.92+ Build 120919

Please Log in to join the conversation.

More
5 years 1 month ago #87207 by DenisChenu
DenisChenu replied the topic: statistics and graphs in Arabic
Your survey is in arabic (ar) ?

In statistics function we test if langage='ar' , if yes : we use KacstOffice.ttf .

Did you have this file in ./fonts/ and is this file is readable by server.

Did you have access to server error log ? (err 500 can came from a lot of possibility).

Denis
PS: can you send me a little survey in arabic, i can test in my server.
PS2: maybe the best is to test with the last LS version 2.0 (in another directory if you xant). We don't have a lot of arabic user's to search specific lang rtl/arabic bugs.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
5 years 1 month ago #87208 by DenisChenu
DenisChenu replied the topic: statistics and graphs in Arabic
Aother thing,

If all of your survey is in arabic, i think you can try with:
[code type=php-brief]$chartfontfile='KacstOffice.ttf';[/code]
in config.php

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
5 years 1 month ago #87209 by sukhon
sukhon replied the topic: statistics and graphs in Arabic

File Attachment:

File Name: limesurvey...vey_.lss
File Size:48 KB


attached is a survey in Arabic

I just downloaded the 2.0+ version to test on live server, please let me know what happends with your testing
Attachments:

Please Log in to join the conversation.

More
5 years 1 month ago #87210 by DenisChenu
DenisChenu replied the topic: statistics and graphs in Arabic
Err 500:
include_once(/home/myuser/htdocs/limesurvey/classes/core/Arabic.php)

But with rename /classes/core/arabic.php to /classes/core/Arabic.php it don't work better.

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
5 years 1 month ago #87211 by sukhon
sukhon replied the topic: statistics and graphs in Arabic
So what do you suggest I do to fix this??

Please Log in to join the conversation.

More
5 years 1 month ago #87212 by DenisChenu
DenisChenu replied the topic: statistics and graphs in Arabic
Hello,

At line 3224, replace
[code type=php-brief]if ($language=='ar') [/code]
by
[code type=php-brief]if ($language=='ar' && false) [/code]

Add this:
[code type=php-brief]$chartfontfile='KacstOffice.ttf';[/code]to your config.php.

Remove all png files from temp/ directory.

And try again the HTML statistics.

PDF stats don't work.

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
5 years 1 month ago #87214 by DenisChenu
DenisChenu replied the topic: statistics and graphs in Arabic

DenisChenu wrote: PDF stats don't work.

For pdf stats with graph and tyext in arabic.

[code type=php-brief]$pdfdefaultfont = 'dejavusans';[/code]in config.php .

And see included files.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Attachments:

Please Log in to join the conversation.

More
5 years 1 month ago - 5 years 1 month ago #87215 by sukhon
sukhon replied the topic: statistics and graphs in Arabic
In the file config.php on the root has only 61 lines, which config.php
Last Edit: 5 years 1 month ago by sukhon.

Please Log in to join the conversation.

More
5 years 1 month ago - 5 years 1 month ago #87218 by DenisChenu
DenisChenu replied the topic: statistics and graphs in Arabic
The /limesurvey-install-directory/config.php

Where you have already something like this:
[code type=php-brief]$rootdir = dirname(__FILE__); // This is the physical disk location for your limesurvey installation. Normally you don't have to touch this[/code]

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Last Edit: 5 years 1 month ago by DenisChenu.

Please Log in to join the conversation.

More
5 years 1 month ago #87221 by sukhon
sukhon replied the topic: statistics and graphs in Arabic
I am going to switch to 2.0+, will import the database and see how things work on it, instead of wasting your time on the older version, after a while will get back to you with results. :(

Regards,

Please Log in to join the conversation.

More
5 years 2 weeks ago #89050 by sukhon
sukhon replied the topic: statistics and graphs in Arabic
We installed the new Version 2.00+ Build 121121 and worked out one survey, the Arabic fonts now appear in the chart but not attached for example

انا اسمي

looks like
ا ن ا ا س م ي

which is not readable any clue how to fix it


Arabic chart.png

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!