As said before, I've completed internationalization support into DL.
You can grab a snapshot here:

http://www.thregr.org/~wavexx/tmp/dl-20100115.tar.gz

or pull the sources from git.

This is a snapshot, there are a couple of unfinished tasks:

- You'll need to configure your server to generate the locales you need.
  On debian, this means running 'dpkg-reconfigure locales'.

- You'll need to have 'gettext' installed, and go to

  cd dl/htdocs/include/locale/*/LC_MESSAGES/
  msgfmt message.po

  to generate the locale files you're using.

- To add a new translation, simply create a new directory in locale/
  with the same structure, and translate the messages.po file. You can
  copy the it_IT/LC_MESSAGES/message.po as a starting point.

  You can use several tools to edit the file (like "poedit"), but I
  simply edited the file with a text editor.

  You also need to add the locale alias into dl/include/lang.php (at
  the very top).

- The german translation is in the works, so I've not included it (yet).
  Should be finished shortly next week.

My hope is to provide a script to generate the locales upon
installation automatically to simplify the procedure (something to run
like ./setup.php after a new installation and be done).

DL accepts a "preferred" language in the config.php file now. DL will
try to find a locale as accepted by the browser, then revert to this
default. The user can switch the language anytime.

The e-mails sent by DL are sent with the same locale as what the user
was using. I think this is fine for the 'send link to ...'
functionality, but should probably be reverted to use the default
locale for notifications. The log file is always in english.

The snapshot includes a lot of minor fixes (including progress bar
support for chrome and safari).

I'm accepting suggestions.


Reply via email to