html/foot.tmpl: Fix language links for search pages
We really need to use make_search_url there. We should
use make_url for all other pages but we have currently no
variable to hold the needed information, yet.
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.
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.
When some format specifiers are reordered in a msgstr, it would be
better to specify ordering for all format specifiers in that msgstr to
avoid making mistakes.
Tests have shown that gettext's xgettext doesn't cope well with
the Template Toolkit syntax. Use the xgettext replacement from
the Debian website as a template for a own program.
While Perl has no problems with keywords as hash keys,
the emacs perl mode has. Quote them and fix some whitespace
oddities that were caused by this issue.
While this is only used by Ubuntu atm, it is still useful
to have in the master branch to not have to deal with different
sections.pot files on the different branches.
Packages::I18N::Languages: Sync with webwml/english/template/debian/languages.wml
Includes the following changes:
revision 1.141
date: 2007-04-22 00:37:25 +0200; author: jseidel; state: Exp; lines: +3 -0
Added Persian, thanks Abbas Esmaeeli Some'eh <abbas@gnu.org>
----------------------------
revision 1.140
date: 2005-08-13 00:36:22 +0200; author: djpig; state: Exp; lines: +2 -1
Add native name of Armenian and latin transliteration
----------------------------
revision 1.139
date: 2005-08-12 15:40:53 +0200; author: djpig; state: Exp; lines: +1 -0
Add dummy entry for Armenian to %selflang since this is needed to let
it appear in the language list in the footer
----------------------------
revision 1.138
date: 2005-08-12 15:19:54 +0200; author: djpig; state: Exp; lines: +1 -0
Add armenian
Packages::DoSearchContents: Avoid breaking the grep pipe
Since grep doesn't handle SIGPIPE in any sane way but instead
clutters the error.log with useless comments like
"grep: writing output: Broken pipe" for each and every line it
wants to write, lets make it happy and read all the stuff in even
if we don't use it.
create_index_pages: Make common functions available to all templates
The common functions were only available in suite_index.tmpl, but not
in index.tmpl. Fix that by giving them to the initial Packages::Template->new
call.
Directly imitate the dependency listing in the legend
by using <ul><li> inside the table cells. This makes the
legend autoadjust to any changes in the CSS for the dependency
listing and mirrors the appearance completly.
html/show.tmpl: Improve dependency list readability for blind people
Suggested by Richard Atterer <richard -at- 2007 atterer net>
Use @media to define .visual/.nonvisual to be used instead of the
slightly broken hidecss. Replace <img> by <span> since we don't intend
to show images here most of the time anyway.
Also let the list-style-type differ so that people can see the difference
even without images.
html/show.tmpl: Improve display of VCS-* information
Suggested by Joey Hess <joeyh@debian.org>
Move the detailed VCS-* links below the download table as
these can get very long, and since the URIs can't be
broken, this may make the sidebar very huge and ugly.
Still leave the links available in the sidebar but
don't display the URIs themselves.
Comment clean-up: Remove $Id$, fix FSF address, copyright years
- Remove $Id$ since we don't use them with git
- Fix some old (and some really old) references to the FSF
address
- Update some copyright years
- Add myself to some files as copyright holder
708b1364be58c9b921cc3838d7ed5f5b48959d78 fixed the handling
of ~ but broke the handling of comparing a "normal" letter
with the empty string. A letter sorts earlier than all
non-letter except ~, but of course not earlier as the empty string.
100syncarchive: Really fix retrieval of Release(.gpg) files
7f261c49b0b932c5cf04b107bac3bc8aad5f642c attempted to fix the
retrieval of the Release(.gpg) files from a local mirror but
really didn't because it didn't accounted for the chdir before
the rsync call. Really fix it this time y removing the chdir.
Packages::DoIndex: Ugly hack to fix content negotiation
Since we don't create the static pages for ddtplangs currently,
only for polangs, but we don't discriminate between the two in
the content negotiation we might try to serve a non-existant file.
Fixing the content negoation or the static file generation will
take some time and testing. For now, work around the bug by stat'ing
the requested file in DoIndex and falling back to English in case it doesn't
exist.
Update list of ddtp languages to the ones available on
ddtp.debian.net.
Fix typo in 120synctrans in the remote mirror retrieval
part.
Execute parse-translations before parse-contents in process_archive
because the latter needs way more time.
cron.d/120synctrans: Allow overriding the server for downloading translations
Suggested by Helge Kreutzmann <debian -at- helgefjell de>
Since the translations in the main Debian archive are still way outdated, use
ddtp.debian.net for now. Make overriding $ddtp_ftpsite optional and fall back
to $ftpsite automatically if no seperate $ddtp_ftpsite is defined.