Packages::Template::languages(): Do not die if no language name is defined
Packages::Template: Always provide a fallback g() function This will only get used if no catalogue is specified. Fixes the about/debtags page.
Separate handling of po translations and DDTP translations This way we don't need to immediatly fall back to English if people have more than one preferred language for which only part of the page content is available. If e.g. they would have "ca;q=0.9, de;q=0.5, en;q=0.1" in their Accept-Language header (insert any DDTP-only language for ca and any PO-available language for de), we can show the description in Catalan if available, and the po contents in German. The code will usually try to fall back to $po_lang if a description is not available in $ddtp_lang. Not implemented (yet) is a DDTP language negotiation _after_ we actually know which DDTP translations are available. The 'lang' query parameter overrides both values and has only the fallback English (But you shouldn't use it anyway ;).
Handle broken Homepage fields more gracefully They exist, so handle them...
Translation support for remaining scripts
Switch to Locale::Maketext For now the template stuff works ok. The gettext stuff from within the Perl code only returns the English text and create_index_pages is probably completly broken.
Packages::Template: Make one error message internal If initialisation of the TT engine fails, near to nothing has a chance to work, so no need to try to convey this to the user and no need to translate this string.
Always show polangs in footer Since we have now working l10n support, we should at least offer all polangs as alternatives. This is not fully ideal since for some languages we only have translations for a few templates, but everything else is probably too complicated.
Move common functions for template use to Packages::Template Previously they were duplicated in every caller which was very error prone.
Packages::Template: Add target parameter to page method This makes it easier to use this in create_index_pages since we can save all the filehandle handling.
Clean up footer handling Remove Packages::Template->trailer which essentially forced any format to have a foot.tmpl even it made no sense for them. Now formats that want something like that can handle it themself. Fix handling of languages in the footer so that we get a list of available translations again. Currently this only reflects DDTP translations since the po stuff isn't reenabled yet since the switch to templates.
Improve error handling: - Make it possible to control the returned HTTP code - Use always the html error template, we have no others anyway - Try to avoid mixing the apache generated and our own error messages (this needs more work)
The Big, the Fat and the Ugly commit ;) - Make output via Template Toolkit (libtemplate-perl) and not "manual". This should seperate the logic of data retrieval and data display and make adding new output formats and styles easier. Lets see how this turns out :) - While doing this I also reworked most of the site designs and added a lot of new information and hopefully structure to the output Currently broken: - Most of the l10n stuff since I need to find a good way to feed the templates to gettext first. (this is not "RC" for an use on p.d.o) - RSS feed of new packages. Didn't came around yet to convert this one. (this one is "RC") - probably a lot of minor things