- Posts: 7
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
where to put language mo file and make LimeSurvey using it
- heeringa11
- Topic Author
- Offline
- New Member
Less
More
3 years 6 months ago #206188
by heeringa11
where to put language mo file and make LimeSurvey using it was created by heeringa11
I downloaded a .po file following the steps at:
manual.limesurvey.org/Translating_LimeSurvey/en
I downloaded the Dutch version at:
translate.limesurvey.org/projects/limesurvey-4/
The filename is: limesurvey-4-nl.po .
I edited this file with Poedit. I changed 'Geen antwoord' (= no answer) in 'Nvt'.
After saving I obtained a .mo file: limesurvey-4-nl.mo .
I copied this file to: /usr/share/locale/nl/LC_MESSAGES/
Before I copied, there was no limesurvey mo file in this folder.
Then I opened LimeSurvey, and made an array question optional (instead of obligated).
I saved the changes and viewed the question.
Unfortunately, the result is still a column with 'Geen antwoord'.
So it looks if the .mo file is not taken into account.
Why is this not the case?
Do I need to do some extra things?
manual.limesurvey.org/Translating_LimeSurvey/en
I downloaded the Dutch version at:
translate.limesurvey.org/projects/limesurvey-4/
The filename is: limesurvey-4-nl.po .
I edited this file with Poedit. I changed 'Geen antwoord' (= no answer) in 'Nvt'.
After saving I obtained a .mo file: limesurvey-4-nl.mo .
I copied this file to: /usr/share/locale/nl/LC_MESSAGES/
Before I copied, there was no limesurvey mo file in this folder.
Then I opened LimeSurvey, and made an array question optional (instead of obligated).
I saved the changes and viewed the question.
Unfortunately, the result is still a column with 'Geen antwoord'.
So it looks if the .mo file is not taken into account.
Why is this not the case?
Do I need to do some extra things?
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12908
- Thank you received: 3970
3 years 6 months ago #206192
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic where to put language mo file and make LimeSurvey using it
Hi,
I had a look into my installation.
And there is a file called "nl.mo" in "limesurvey/locale/nl".
I do not see that "/usr/share/locale/nl/LC_MESSAGES/" is a folder inside your LimeSurvey installation.
So you shouldn't rename the file, even if the downloaded file is called "limesurvey-4-..."
You have to upload the "nl.mo":
Furthermore try to clear the asset cache.
Joffm
I had a look into my installation.
And there is a file called "nl.mo" in "limesurvey/locale/nl".
I do not see that "/usr/share/locale/nl/LC_MESSAGES/" is a folder inside your LimeSurvey installation.
So you shouldn't rename the file, even if the downloaded file is called "limesurvey-4-..."
You have to upload the "nl.mo":
Furthermore try to clear the asset cache.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu, heeringa11
The topic has been locked.
- heeringa11
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
3 years 6 months ago #206198
by heeringa11
Replied by heeringa11 on topic where to put language mo file and make LimeSurvey using it
Using Ubuntu 20.04 I found nl.mo in:
/var/www/html/limesurvey/locale/nl
How can I clear the asset cache?
Just empty this folder:
/var/www/html/limesurvey/tmp/assets
?
/var/www/html/limesurvey/locale/nl
How can I clear the asset cache?
Just empty this folder:
/var/www/html/limesurvey/tmp/assets
?
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12908
- Thank you received: 3970
3 years 6 months ago #206199
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic where to put language mo file and make LimeSurvey using it
Exactly there is it.
Empty cache in "Configuration / Global Settings / General"
Joffm
Empty cache in "Configuration / Global Settings / General"
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: heeringa11
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13624
- Thank you received: 2490
3 years 6 months ago #206219
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic where to put language mo file and make LimeSurvey using it
Here you spoke for assets not cache …
It must be inside .tmp/runtime
But : check with debug = 2 before.
It must be inside .tmp/runtime
But : check with debug = 2 before.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11645
- Thank you received: 2738
3 years 6 months ago #206267
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic where to put language mo file and make LimeSurvey using it
Please keep in mind that in LS 4.x a bug prevents some of the strings to be translated. Not sure if this is the case for your string, but it is possible.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The following user(s) said Thank You: heeringa11
The topic has been locked.