Tłumaczenie LimeSurvey
From LimeSurvey Manual
Tłumaczenie LimeSurvey
Czy nie byłoby wspaniale, gdyby LimeSurvey zostało całkowicie przetłumaczone na Twój język ojczysty? Zespół LimeSurvey zawsze poszukuje nowych tłumaczeń i osób, które pomogą w aktualizacji istniejących. Przeczytaj te instrukcje i nie wahaj się wysłać e-maila na adres Translations@limesurvey.org, jeśli masz wątpliwości lub inne pytania.
Jak tłumaczyć – instrukcje krok po kroku
Aktualizacja istniejącego tłumaczenia
- Zarejestruj się na stronie LimeSurvey, a następnie zaloguj się na swoje konto.
- Przejdź do https://translate.limesurvey.org i zaloguj się tam, podając tę samą nazwę użytkownika i hasło.
- Wybierz wersję LimeSurvey, którą chcesz przetłumaczyć i po prostu zacznij. Po zatwierdzeniu tłumaczenia zostanie ono automatycznie uwzględnione w cotygodniowej stabilnej wersji, a Twoja nazwa użytkownika zostanie zapisana w dzienniku zmian.
- Jeśli chcesz zostać głównym tłumaczem swojego języka z możliwością zatwierdzania nowo przetłumaczonych strings, skontaktuj się z nami pod adresem Translations@limsurvey.org. Takie stanowisko wymaga maksymalnie około godziny pracy tygodniowo – ważne jest dla nas, abyś był w tym rzetelny.
Dostosuj istniejące tłumaczenie
Czasami możesz chcieć zmodyfikować istniejące tłumaczenie, aby lepiej dostosować je do konkretnej sytuacji związanej z ankietą. W takim przypadku wykonaj następujące czynności:
- Przejdź do https://translate.limesurvey.org, wybierz wersję LimeSurvey, którą chcesz przetłumaczyć i konkretny język, który chcesz przetłumaczyć zmodyfikuj.
- Na dole strony tłumaczenia znajdziesz opcję eksportu wszystkich ciągów znaków do pliku *.po. Kliknij eksport i zapisz go jako plik *.po na lokalnym dysku twardym:

- Pobierz i zainstaluj Poedit.
- Rozpocznij Poedytuj i edytuj pobrany plik *.po - zmodyfikuj określone tłumaczenia.
- Po zapisaniu pliku *.po automatycznie tworzony jest plik *.mo. Ten ostatni zostanie odczytany przez LimeSurvey.
- Ostatnim krokiem jest umieszczenie konkretnego pliku *.mo w odpowiednim folderze językowym w /locale poprzez zastąpienie istniejącego.
Uwaga: jeśli korzystasz z LimeSurvey Pro (tylko dla użytkowników Cooperate i Enterprise), zespół będzie chętnie umieścimy plik dla Ciebie. Po prostu utwórz zgłoszenie pomocy technicznej i załącz plik *.po ( „nie” .*mo ).
Creating a new translation
- First of all, get access to the development version of LimeSurvey. For detailed instructions, access the source code.
- Download and install Poedit .
- Now you have to find out the language-code for your language - you can search for your language-code in the 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 [1]. 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 translations@limesurvey.org.
Sample code for add a new language
$supportedLanguages['code']['description'] = gT('Language'); // Your language name in English
$supportedLanguages['code']['nativedescription'] = 'Language in native'; // The native name of your language
$supportedLanguages['code']['rtl'] = (true|false); // RTL
$supportedLanguages['code']['dateformat'] = integer; // See getDateFormatData function
$supportedLanguages['code']['radixpoint'] = (0|1); // 0 : ., 1 : , for radix point
$supportedLanguages['code']['cldr'] = 'code'; // If the related Yii language code differs you can here map your language to a new code
$supportedLanguages['code']['momentjs'] = 'code'; // Used by moment.js
Other part to be translated
- LimeSurvey use moment.js. When you send the message to translations@limesurvey.org check what language code must be used.
- moment.js : method to contribute to moment.js translation are explained at moment.js documentation.