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
  • heeringa11's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 6 months ago #206188 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?
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 6 months ago #206192 by Joffm
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

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
  • heeringa11's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 6 months ago #206198 by heeringa11
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

?
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 6 months ago #206199 by Joffm
Exactly there is it.

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
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 6 months ago #206219 by DenisChenu
Here you spoke for assets not cache …
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
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 6 months ago #206267 by holch
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.

Lime-years ahead

Online-surveys for every purse and purpose