Actions

Translations

Translating LimeSurvey/9/nl: Difference between revisions

From LimeSurvey Manual

(Created page with "==Een tekst vertalen== #Zorg dat je toegang hebt tot de ontwikkelversie van LimeSurvey. Lees hiervoor Accessing the source code #Download en installeer [http://www.poedit....")
 
No edit summary
Line 1: Line 1:
==Een tekst vertalen==
==Een nieuwe taal toevoegen==
#Zorg dat je toegang hebt tot de ontwikkelversie van LimeSurvey. Lees hiervoor [[Accessing the source code]]
#Zorg dat je toegang hebt tot de ontwikkelversie van LimeSurvey. Lees hiervoor [[Accessing the source code]]
#Download en installeer [http://www.poedit.net/download.php poEDIT]
#Download en installeer [http://www.poedit.net/download.php poEDIT]

Revision as of 20:27, 24 May 2013

Message definition (Translating LimeSurvey)
==Creating a new translation==
#First of all, get access to the development version of LimeSurvey. For detailed instructions, access the [[Accessing the source code|source code]].
#Download and install [https://www.poedit.net/download.php Poedit] .
#Now you have to find out the language-code for your language - you can search for your language-code in the [https://r12a.github.io/app-subtags/ IANA Language Subtag Registry].
#Go into the /locale directory (located in the LimeSurvey root directory) and create a directory named after your language code.
#Download your language template by going to on the following link [https://translate.limesurvey.org/projects/]. Select the project, then any language (e.g. go for the English entry), and scroll to the bottom. There you have the possibility to export the language file as <your_language_code>.po file.
#Copy the <your_language_code>.po file to the newly created folder located in the /locale directory.
#Open the file with Poedit and translate everything you need to translate.
#To make LimeSurvey know about your language, you must add it in application/helpers/surveytranslator_helper.php (located in the LimeSurvey root directory). Open that file with a text editor and add your language in the same way the other languages are defined in that file.
#Save - in order to allow LimeSurvey to see the newly added language, save the modified *.po file. This will automatically generate the *.mo file in the same folder, which will be read by LimeSurvey. 
#Send the new *.po file and the updated surveytranslator_helper.php file to [mailto:translations@limesurvey.org translations@limesurvey.org].

Een nieuwe taal toevoegen

  1. Zorg dat je toegang hebt tot de ontwikkelversie van LimeSurvey. Lees hiervoor Accessing the source code
  2. Download en installeer poEDIT
  3. Bepaal de language-code van je taal, Zie: IANA Language Subtag Registry.
  4. Ga naar de map /locale en maak een map aan net de language-code.
  5. Inside that directory create a directory named LC_MESSAGES.
  6. Download the language template file from http://www.limesurvey.org/translationstatus/limesurvey.pot and rename it to <your_language_code>.po.
  7. Save the (yet) empty file to that dir (in the /locale/your_language_code/LC_MESSAGES/ folder).
  8. Now open the file with poEdit and translate everything you need to translate.
  9. To make LimeSurvey know about your language you must add it to the file application/helpers/surveytranslator_helper.php. Open that file with a text editor and add your language in the same way the other languages in that file are defined.
  10. Save - make sure that beside the .po file also the binary .mo file is created (that's the one LimeSurvey is reading from).
  11. Send the new .po-File and the updated surveytranslator_helper.php file to translations@limesurvey.org . If you want your name to be linked from/shown on the team-page please write so in the e-mail!