On Mon, 21 Jun 2010 14:41:38 +0200 "MOKRANI Rachid" <[email protected]> wrote:
> Hi, > > I would like to do French translation. > > How can I do that ? what I need ? Hi Mokrani, sorry for the delay. You will need to download and install "gettext" from here www.gnu.org/software/gettext/. If you're using ubuntu/debian, you can simply run: apt-get install gettext as root. In the last version of dl, edit the file htdocs/include/lang.php, and on line 9 add the line: "FR" => "fr_FR", (including the last comma). Then copy an existing translation from htdocs/include/locale over to fr_FR: cd htdocs/include/locale cp -R de_DE fr_FR edit the file htdocs/include/locale/fr_FR/LC_MESSAGES/messages.po. It is simply a text file. Replace the german of each message with french. You can also use special tools, like "poedit" (http://www.poedit.net/) to open this file, but any text editor will do. To test your translation, run msgfmt as follows: cd htdocs/include/locale/fr_FR/LC_MESSAGES/messages.po msgfmt message.po After that, you should see a new button "FR" appear and be able to use your translation. If you need to make changes, just run msgfmt again. Let me know if you have questions.
