Adding a new language

More
6 years 9 months ago #54125 by Mike1985
Mike1985 created the topic: Adding a new language
I have been advised to create my own language file as I'd like to make some changes to certain blurbs on the questionnaires..

I can see that in order to change a language you have to go in to Global Setting -> General -> Default site language, correct?

From there I pick a language but where are these files located? I have searched through all my folders and cannot find them. I want to take a copy of English and call it say "Mikes Language" and then choose and edit that - where do I do that?

Cheers,

Mike

Please Log in to join the conversation.

More
6 years 9 months ago #54134 by Mazi
Mazi replied the topic: Adding a new language
All language files are located in /limesurvey/locale/<languageshortcut>.

If you want to edit a translation, please follow the instructions at our manual.


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
6 years 7 months ago #56339 by Mike1985
Mike1985 replied the topic: Adding a new language
I have found the en.po file and I have found the line I want to change. I just wanted to change "This is a controlled survey. You need a valid token to participate" to something more meaningful. Because some of my customers have complained saying they "don't know what a 'token' is".

I edited the file and uploaded it but nothing happened. So I went searching for other appearances of "This is a controlled survey". I found it in the index.php and when I edited that code, the changes worked.

I have been warned before not to edit the index.php so I was hoping to use the en.po file but the changes wouldn't take. Am I misudnerstanding what the point of the .po actually is?

I even looked in config-default.php and the language is set to en. And I tried putting that line in to the config.php anyway. And all my files are running off the same Group/Owner so it shouldn't be a premissions issue...

Any ideas anyone?

Please Log in to join the conversation.

More
6 years 7 months ago #56342 by DenisChenu
DenisChenu replied the topic: Adding a new language
Hello,

To edit the langage file, you need to do it with poedit !

And send po and mo files.

Like Mazi: look at our manual ;)

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
6 years 7 months ago #56354 by Mike1985
Mike1985 replied the topic: Adding a new language
Am I to understand that once LimeSurvey has installed, it no longer uses these .po and .mo files? Does it actually use them to create the text that I have seen in index.php? Is that how it works?

Because I don't think changing "This is a controlled survey. You need a valid token to participate" to "This is a controlled survey. You need to have been invited" warrants the download of a totally new bit of software AND having to registar a free account.. I don't want to "commit files" - the changes I want to make are SO small..

Please Log in to join the conversation.

More
6 years 7 months ago #56356 by holch
holch replied the topic: Adding a new language
No, changes made to the .po and .mo files should show up in your interface.

There must be something wrong.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
6 years 7 months ago #56358 by Mike1985
Mike1985 replied the topic: Adding a new language
Ok. now we're getting somewhere. So how do I get them working again? I've got the debug set but that's not showing anything...

Please Log in to join the conversation.

More
6 years 7 months ago #56625 by Mazi
Mazi replied the topic: Adding a new language
This string can be edited by changing the translation files as shown at our manual. You just have to use poedit and then replace the .mo file on your server.
You also have to reload the whole page so that no strings are taken from cached files.


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
1 year 4 weeks ago #141038 by raygain
raygain replied the topic: Adding a new language
Hi Mike ,

I want to add new language i.e Bengali (This language not in Lime Survey List ) Please Suggest how to add new Language

Regards
Rajesh

Please Log in to join the conversation.

More
1 year 4 weeks ago #141042 by holch
holch replied the topic: Adding a new language
This is described in the documentation:
manual.limesurvey.org/Translating_LimeSu...ng_a_new_translation

If you are not very experienced in programming I would suggest to get in touch with the development team and see if they can set up the new language for you so that you can translate it here in the web interface:
manual.limesurvey.org/Translating_LimeSu...ng_a_new_translation

Actually, looking at this page there is already Bengali set up:
translate.limesurvey.org/projects/limesurvey-25/ (end of the list).

You can login with your account from the forum and start translating.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now