Beginner's tutorial on localization lazarus / 31-LCL ---------------------------------------------------------------------- wp · 2013-11-26 23:30 Having seen some questions on practical application of localization in the forum recently I took the time and wrote step-by-step instructions as a wiki tutorial (http://wiki.lazarus.freepascal.org/Step-by- step_instructions_for_creating_multi-language_applications). I hope this is useful to somebody out there. In addition I'd ask somebody with write permission to post the attached tutorial code in the examples folder of the Lazarus installation. ---------------------------------------------------------------------- BigChimp · 2013-11-27 06:49 @wp thanks a lot; if it doesn't get picked up by laz devs, I assume you know what to do: add it to a bugtracker item so they get notified ---------------------------------------------------------------------- exdatis · 2013-11-27 06:55 Thank you very much for your effort, wp. Best regards! ---------------------------------------------------------------------- bigeno · 2013-11-27 08:58 I always wondered why msgid is value of resourcestring instead of resourcestring name, then can by one main/base po file with default language and all others with translations. In current case there is redundant text in exe resources and all msgid in all translated po files. I've project with only 2 languages and in that case does not make sense to set i18n. But maybe I'm wrong. Is it possible to set the translations with out values in resourcestrings ? (only values from po files) ---------------------------------------------------------------------- Windsurfer · 2013-11-27 11:06 Thanks wp, both for this and the help you have given me recently. The older localization/translations documents led me down the wrong and a much mor ecomplicated path. ---------------------------------------------------------------------- desliem · 2015-05-18 21:42 Quote from: wp on November 27, 2013, 12:30:04 amHaving seen some questions on practical application of localization in the forum recently I took the time and wrote step-by-step instructions as a wiki tutorial (http://wiki.lazarus.freepascal.org/Step-by- step_instructions_for_creating_multi-language_applications). I hope this is useful to somebody out there. In addition I'd ask somebody with write permission to post the attached tutorial code in the examples folder of the Lazarus installation. You may want to update the tutorial. In Lazarus 1.4.0, the SetDefaultLang procedure has been moved from unit DefaultTranslator to unit LClTranslator. The procedure is mentionned in the section Switching languages. Thank you for the tutorial. ---------------------------------------------------------------------- wp · 2015-05-19 08:17 Thanks for the note, I updated the article accordingly. BTW: do you know that you can edit wiki articles by yourself? Just register in the wiki, login; then you'll see an "Edit" link which opens the editor for the currently loaded article. Of course, don't vandalize!