]> git.deb.at Git - deb/packages.git/log
deb/packages.git
16 years agohtml/foot.tmpl: Overhaul the footer
Frank Lichtenheld [Tue, 5 Aug 2008 20:50:04 +0000 (17:50 -0300)]
html/foot.tmpl: Overhaul the footer

* Make it more compact by not including so many separate paragraphs.
  IMHO readability has not suffered much.
* Remove the home page links. Since we now also have them at the top of
  page I think we can afford to loose them here.
* Add the possibility to add a sponsor statement. This will be needed
  for the Debian instance.

16 years agoFixed two typos.
Peter Karlsson [Thu, 24 Jul 2008 05:02:06 +0000 (06:02 +0100)]
Fixed two typos.

Spotted by Leonard Norrgard <leonard dot norrgard at refactor dot fi> on
debian-l10n-swedish.

16 years agoFixes noted by Jens Seidel <jensseidel@users.sf.net>
Helge Kreutzmann [Fri, 18 Jul 2008 15:45:37 +0000 (17:45 +0200)]
Fixes noted by Jens Seidel <jensseidel@users.sf.net>

16 years agoContinue German translation
Helge Kreutzmann [Thu, 17 Jul 2008 19:49:48 +0000 (21:49 +0200)]
Continue German translation

16 years ago050checkinst: Be more allowing when checking the permissions of the cache directory
Frank Lichtenheld [Fri, 20 Jun 2008 23:23:13 +0000 (01:23 +0200)]
050checkinst: Be more allowing when checking the permissions of the cache directory

Previously this required a specific permission (2770), now only require
that at least one of owner and group is www-data and has write access.

16 years agohtml/search.tmpl: Fix link to general search
Frank Lichtenheld [Fri, 20 Jun 2008 23:18:02 +0000 (01:18 +0200)]
html/search.tmpl: Fix link to general search

Reported by Laurent LĂ©onard <laurent -at- open-minds org>

16 years agoupdate_po: Do not update .pot files if only line numbers got updated
Frank Lichtenheld [Mon, 16 Jun 2008 18:47:27 +0000 (20:47 +0200)]
update_po: Do not update .pot files if only line numbers got updated

In my experience this causes a lot of noise for little gain.

16 years agoPackages::DoSearch: Fix handling of security source versions
Frank Lichtenheld [Mon, 16 Jun 2008 18:40:28 +0000 (20:40 +0200)]
Packages::DoSearch: Fix handling of security source versions

The test that ensured that the newest version would always be taken,
(which e.g. in the case of testing-security isn't always the security
version), was partly broken.

Reported by Michael Banck.

16 years agoPackages::SrcPage::merge_package: Return 1 on success
Frank Lichtenheld [Mon, 16 Jun 2008 18:37:12 +0000 (20:37 +0200)]
Packages::SrcPage::merge_package: Return 1 on success

Some callers expect that and Packages::Page::merge_package does it, too.

16 years agodebian/control: Add dependency on gettext
Frank Lichtenheld [Wed, 11 Jun 2008 23:07:56 +0000 (01:07 +0200)]
debian/control: Add dependency on gettext

We use xgettext and msgfmt in cron.d/500update_po. On most
hosts this is installed anyway, so I didn't notice it earlier.

16 years agoFixes noted by Jens Seidel, thanks!
Helge Kreutzmann [Thu, 5 Jun 2008 19:09:00 +0000 (21:09 +0200)]
Fixes noted by Jens Seidel, thanks!

16 years agoUpdate to (604t0f82u)
Helge Kreutzmann [Thu, 5 Jun 2008 18:35:16 +0000 (20:35 +0200)]
Update to (604t0f82u)

16 years agoUpdate debtags.pot/debtags.*.po for changes in debtags vocabulary
Frank Lichtenheld [Tue, 3 Jun 2008 22:19:32 +0000 (00:19 +0200)]
Update debtags.pot/debtags.*.po for changes in debtags vocabulary

16 years agoapache.conf: Do not redirect /robots.txt
Frank Lichtenheld [Tue, 3 Jun 2008 22:15:42 +0000 (00:15 +0200)]
apache.conf: Do not redirect /robots.txt

16 years agoUpdated translation by Yuri Kozlov <kozlov.y@gmail.com>
Nick Toris [Mon, 12 May 2008 13:48:21 +0000 (19:48 +0600)]
Updated translation by Yuri Kozlov <kozlov.y@gmail.com>

16 years agoapache.conf: Use redirects for short URLs
Frank Lichtenheld [Sun, 11 May 2008 23:37:59 +0000 (01:37 +0200)]
apache.conf: Use redirects for short URLs

The short search URLs previously used [PT], making it
appear as if these are canonical locations. They are not.
Always redirect to /search first.

16 years agoCorrections noticed by Jens Seidel, thanks!
Helge Kreutzmann [Sat, 3 May 2008 15:01:48 +0000 (17:01 +0200)]
Corrections noticed by Jens Seidel, thanks!

16 years agoUpdate debtags.pot and debtags.*.po
Frank Lichtenheld [Fri, 2 May 2008 21:09:06 +0000 (23:09 +0200)]
Update debtags.pot and debtags.*.po

One added tag (works-with::vcs)

16 years agohtml/head.tmpl: Include the language in the search form if needed
Frank Lichtenheld [Fri, 2 May 2008 21:01:39 +0000 (23:01 +0200)]
html/head.tmpl: Include the language in the search form if needed

If the user overrode the content negotiation, it should be preserved
when using the search form at the top of the pages.

16 years agoUpdate to (582t,0f,99u)
Helge Kreutzmann [Fri, 2 May 2008 18:29:13 +0000 (20:29 +0200)]
Update to (582t,0f,99u)

16 years agoFix handling of the base search URL
Frank Lichtenheld [Fri, 2 May 2008 12:29:08 +0000 (14:29 +0200)]
Fix handling of the base search URL

Actually use the template config variable in the templates.
(Re-)Introduce the search_url variable in config.sh so
that make_search_url can actually use it.

16 years ago100syncarchive*: Use check-release to check Release files
Frank Lichtenheld [Sat, 26 Apr 2008 19:59:03 +0000 (21:59 +0200)]
100syncarchive*: Use check-release to check Release files

Failing checks have no consequences yet, but they are at least logged.

16 years agocheck-release: Simple frontend to Packages::Release
Frank Lichtenheld [Fri, 25 Apr 2008 23:53:07 +0000 (01:53 +0200)]
check-release: Simple frontend to Packages::Release

16 years agoPackages::Release: Module for parsing and checking Release file
Frank Lichtenheld [Fri, 25 Apr 2008 20:15:19 +0000 (22:15 +0200)]
Packages::Release: Module for parsing and checking Release file

16 years agohtml/show.tmpl: Don't allow line breaks in some link texts
Frank Lichtenheld [Wed, 23 Apr 2008 02:58:36 +0000 (04:58 +0200)]
html/show.tmpl: Don't allow line breaks in some link texts

If "QA Page" or "Mail Archive" get separated on two lines,
it looks just ugly. Unfuzzy the languages where no space
exists in the translation. Apply the same change for fr
since I'm reasonably certain that's the right thing to do.
Leave the more (to me) more exotic languages alone.

16 years agoMake language override URLs more robust
Frank Lichtenheld [Wed, 23 Apr 2008 02:45:49 +0000 (04:45 +0200)]
Make language override URLs more robust

Previously they were just specified as "?lang=foo" which
broke horribly when the language was already specified in
the path_info.

Use make(_search)_url and fix all templates to provide the
necessary information.

16 years agoPackages::Template: Always provide a fallback g() function
Frank Lichtenheld [Wed, 23 Apr 2008 02:42:55 +0000 (04:42 +0200)]
Packages::Template: Always provide a fallback g() function

This will only get used if no catalogue is specified.
Fixes the about/debtags page.

16 years agohtml/suite_index.tmpl: Fix error in variable name
Frank Lichtenheld [Wed, 23 Apr 2008 00:59:30 +0000 (02:59 +0200)]
html/suite_index.tmpl: Fix error in variable name

I really should only use either is_source or source...

TT really should have a strict mode, too...

16 years ago050checkinst: Really remove locale checks
Frank Lichtenheld [Tue, 22 Apr 2008 20:42:27 +0000 (22:42 +0200)]
050checkinst: Really remove locale checks

Some code was left behind.

16 years agoextract_changelogs: Fix broken current links
Frank Lichtenheld [Wed, 16 Apr 2008 22:36:22 +0000 (00:36 +0200)]
extract_changelogs: Fix broken current links

Happens mostly due to removal of packages from unstable.

16 years agohtml/download.tmpl: Fix apt sources list hint for *-volatile
Frank Lichtenheld [Wed, 16 Apr 2008 21:47:02 +0000 (23:47 +0200)]
html/download.tmpl: Fix apt sources list hint for *-volatile

Noted by Kevin Price <kp -at- kevin-price de>

16 years agohtml/head.tmpl: Remove some XHTML that crept in
Frank Lichtenheld [Wed, 16 Apr 2008 21:44:59 +0000 (23:44 +0200)]
html/head.tmpl: Remove some XHTML that crept in

16 years agoUnfuzzy debtags.de.po
Frank Lichtenheld [Wed, 16 Apr 2008 20:58:27 +0000 (22:58 +0200)]
Unfuzzy debtags.de.po

16 years agoUpdate .po and .pot files
Frank Lichtenheld [Wed, 16 Apr 2008 20:54:34 +0000 (22:54 +0200)]
Update .po and .pot files

16 years agohtml/show.tmpl: Fix several escaping issues
Frank Lichtenheld [Wed, 16 Apr 2008 20:51:12 +0000 (22:51 +0200)]
html/show.tmpl: Fix several escaping issues

The uri filter in TT 2.14 (i.e. the version in Debian etch) is broken
(or at least unusable). So always use URI::Escape::uri_escape instead.

Escaping the Homepage: field makes no sense since there is no reliable
way to decide what needs to be quoted. The URIs need to be correclty
quoted in the original field already. Use HTML quoting though.

16 years agoMerge commit 'alioth/master'
Frank Lichtenheld [Wed, 16 Apr 2008 20:25:57 +0000 (22:25 +0200)]
Merge commit 'alioth/master'

16 years agoFixes noted by Jens Seidel
Helge Kreutzmann [Thu, 3 Apr 2008 18:44:31 +0000 (20:44 +0200)]
Fixes noted by Jens Seidel

16 years agoUpdate to (567t,0f,115u)
Helge Kreutzmann [Thu, 3 Apr 2008 17:05:37 +0000 (19:05 +0200)]
Update to (567t,0f,115u)

16 years agopdo.fr.po: 11t, 8f, 14u
Simon Paillard [Sun, 23 Mar 2008 09:33:25 +0000 (10:33 +0100)]
pdo.fr.po: 11t, 8f, 14u
templates.fr.po: 163t, 27f, 28u

16 years agoMerge branch 'master' of ssh://spaillar-guest@git.debian.org/git/webwml/packages
Simon Paillard [Sun, 23 Mar 2008 09:17:31 +0000 (10:17 +0100)]
Merge branch 'master' of ssh://spaillar-guest@git.debian.org/git/webwml/packages

16 years agotemplates.fr.po: 160t, 30f, 28u
Simon Paillard [Sun, 23 Mar 2008 09:16:43 +0000 (10:16 +0100)]
templates.fr.po: 160t, 30f, 28u

16 years agoCorrect errors noticed by Jens Seidel, thanks!
Helge Kreutzmann [Sun, 16 Mar 2008 21:36:35 +0000 (22:36 +0100)]
Correct errors noticed by Jens Seidel, thanks!

16 years agoUpdated pdo.sv.po.
Peter Karlsson [Sun, 16 Mar 2008 12:55:13 +0000 (13:55 +0100)]
Updated pdo.sv.po.

16 years agoMerge branch 'master' of ssh://spaillar-guest@git.debian.org/git/webwml/packages
Simon Paillard [Sat, 15 Mar 2008 16:27:16 +0000 (17:27 +0100)]
Merge branch 'master' of ssh://spaillar-guest@git.debian.org/git/webwml/packages

16 years agohtml/show.tmpl: Some fixes to the Vcs-* handling
Frank Lichtenheld [Sat, 15 Mar 2008 00:12:35 +0000 (01:12 +0100)]
html/show.tmpl: Some fixes to the Vcs-* handling

Fix broken HTML in sidebar.

Don't require a Vcs-* tag in order for Vcs-Browser to be displayed at the
page bottom.

16 years agohtml/show.tmpl: Escape maintainer mail address in PTS link
Frank Lichtenheld [Fri, 14 Mar 2008 23:34:34 +0000 (00:34 +0100)]
html/show.tmpl: Escape maintainer mail address in PTS link

Reported by Ryan Finnie <ryan -at- finnie org>

16 years agomerge with recent templates.fr.po
Simon Paillard [Fri, 14 Mar 2008 22:45:41 +0000 (23:45 +0100)]
merge with recent templates.fr.po

16 years agoUpdate to (557t,0f,125u)
Helge Kreutzmann [Fri, 14 Mar 2008 17:40:06 +0000 (18:40 +0100)]
Update to (557t,0f,125u)

16 years agoUnfuzzy
Helge Kreutzmann [Fri, 14 Mar 2008 17:39:30 +0000 (18:39 +0100)]
Unfuzzy

16 years agotemplates.fr.po: 144t, 42f, 31u
Simon Paillard [Tue, 11 Mar 2008 20:15:03 +0000 (21:15 +0100)]
templates.fr.po: 144t, 42f, 31u

16 years agoDutch translation update
Frans Pop [Mon, 10 Mar 2008 21:35:14 +0000 (22:35 +0100)]
Dutch translation update

16 years agoDutch translation update
Frans Pop [Mon, 10 Mar 2008 21:01:33 +0000 (22:01 +0100)]
Dutch translation update

16 years agopdo.ja.po: Make translations up-to-date.
Noritada Kobayashi [Tue, 4 Mar 2008 09:58:06 +0000 (18:58 +0900)]
pdo.ja.po: Make translations up-to-date.

Current status:
- pdo.ja.po: 33t+5o

16 years agoUpdate pdo.pot and pdo.*.po
Frank Lichtenheld [Mon, 3 Mar 2008 14:12:23 +0000 (15:12 +0100)]
Update pdo.pot and pdo.*.po

16 years ago[UBUNTU] Packages::DoSearchContents: Don't die when no information is available
Frank Lichtenheld [Mon, 3 Mar 2008 14:02:13 +0000 (15:02 +0100)]
[UBUNTU] Packages::DoSearchContents: Don't die when no information is available

Issue a real error message if no contents database is available for the suite
in question.

This isn't exposed on the Debian site since we actually have _some_ contents
for every suite (experimental has contents for debian-ports.org). But on
the Ubuntu site we have no information at all for *-backports and *-updates.
(cherry picked from commit 3eda9fe5cb2a6fe0fc67493c2147d8a3ff2d904d)

16 years agoSome defuzzing
Simon Paillard [Fri, 29 Feb 2008 18:16:55 +0000 (19:16 +0100)]
Some defuzzing

16 years agoMerge branch 'master' of ssh://spaillar-guest@git.debian.org/git/webwml/packages
Simon Paillard [Fri, 29 Feb 2008 09:53:39 +0000 (10:53 +0100)]
Merge branch 'master' of ssh://spaillar-guest@git.debian.org/git/webwml/packages

Conflicts:

po/pdo.fr.po
po/templates.fr.po

16 years agopdo.fr.po: 10t, 7f, 14u
Simon Paillard [Thu, 28 Feb 2008 17:58:42 +0000 (18:58 +0100)]
pdo.fr.po: 10t, 7f, 14u
langs.fr.po: 37t
sections.fr.po: 72t
templates.fr.po: 134t, 44f, 38u

16 years agoconfig.sh: Add armel to lenny
Frank Lichtenheld [Thu, 28 Feb 2008 15:34:06 +0000 (16:34 +0100)]
config.sh: Add armel to lenny

16 years agoPackages::Config: Add en to DDTP_LANGUAGES as well
Frank Lichtenheld [Sun, 24 Feb 2008 22:06:25 +0000 (23:06 +0100)]
Packages::Config: Add en to DDTP_LANGUAGES as well

Previously when we used DDTP_LANGUAGES and LANGUAGES together
this didn't cause any problems, but now that we evaluate them
separatly, this causes other languages to be preferred over
English, even though the user assigned a lower quality to them.

16 years agoUdpated translation by Yuri Kozlov <kozlov.y@gmail.com>
Nick Toris [Sat, 23 Feb 2008 21:30:39 +0000 (02:30 +0500)]
Udpated translation by Yuri Kozlov <kozlov.y@gmail.com>

16 years agohtml/show.tmpl: Remove one hardcoded "Debian"
Frank Lichtenheld [Fri, 22 Feb 2008 17:19:58 +0000 (18:19 +0100)]
html/show.tmpl: Remove one hardcoded "Debian"

Reported by Greg Grossmeier <greg grossmeier -at gmail com>

16 years agoconfig.tmpl: Rename homepage to project_homepage
Frank Lichtenheld [Thu, 21 Feb 2008 13:24:58 +0000 (14:24 +0100)]
config.tmpl: Rename homepage to project_homepage

This avoids accidentially clashing with the homepage field,
like I did on the download pages.

16 years agoPackages::Page: Don't support the old Url field anymore
Frank Lichtenheld [Thu, 21 Feb 2008 13:23:43 +0000 (14:23 +0100)]
Packages::Page: Don't support the old Url field anymore

16 years agoparse-contents: Create "all" symlinks relative instead of absolute
Frank Lichtenheld [Thu, 21 Feb 2008 01:27:57 +0000 (02:27 +0100)]
parse-contents: Create "all" symlinks relative instead of absolute

No need to break them if you move the directories around.

16 years agoapache.conf: Issue a correct 404 for /favicon.ico
Frank Lichtenheld [Wed, 20 Feb 2008 02:11:44 +0000 (03:11 +0100)]
apache.conf: Issue a correct 404 for /favicon.ico

Maybe that will teach some browsers not to request it so often...

16 years agoapache.conf: Increase expire dates for images
Frank Lichtenheld [Wed, 20 Feb 2008 01:13:23 +0000 (02:13 +0100)]
apache.conf: Increase expire dates for images

The images have not changed in ages. Increate the expire date
from one week to one year.

16 years agoUpdated Swedish translation.
Peter Karlsson [Tue, 19 Feb 2008 20:40:03 +0000 (21:40 +0100)]
Updated Swedish translation.

16 years agoUpdates by Yuri Kozlov <kozlov.y@gmail.com>
Nick Toris [Mon, 18 Feb 2008 03:46:46 +0000 (08:46 +0500)]
Updates by Yuri Kozlov <kozlov.y@gmail.com>

16 years agocreate_index_pages: Open less files simultaniously
Frank Lichtenheld [Sun, 17 Feb 2008 17:40:35 +0000 (18:40 +0100)]
create_index_pages: Open less files simultaniously

The Ubuntu version ran out of allowed open filehandles.
Don't open the files for source and binary packages
simultaniously since that is not needed and thereby
reduce the number by 50%.

16 years agotemplates.pot: Update
Frank Lichtenheld [Sun, 17 Feb 2008 17:38:34 +0000 (18:38 +0100)]
templates.pot: Update

Unfuzzy strings affected by the typo fixed in
3473fbb148f956cde4eedea954e1a7dbae88a0ab

16 years ago[UBUNTU] static/index.tmpl: Add version numbers to release names
Frank Lichtenheld [Wed, 6 Feb 2008 16:55:36 +0000 (17:55 +0100)]
[UBUNTU] static/index.tmpl: Add version numbers to release names

Merged from CVS
(cherry-picked from df06c83004cc5dc74e969a8b2f99beb67d7849ac
and adapted to Debian)

16 years agostatic/index.tmpl: Fix wrong link to newpkg site
Frank Lichtenheld [Sat, 16 Feb 2008 18:18:57 +0000 (19:18 +0100)]
static/index.tmpl: Fix wrong link to newpkg site

16 years agohtml/search.tmpl: Fix a typo in a message.
Noritada Kobayashi [Sun, 17 Feb 2008 04:35:50 +0000 (13:35 +0900)]
html/search.tmpl: Fix a typo in a message.

16 years agotemplates.ja.po: Improve a bit.
Noritada Kobayashi [Sun, 17 Feb 2008 04:26:41 +0000 (13:26 +0900)]
templates.ja.po: Improve a bit.

16 years agotemplates.ja.po: Make translations up-to-date.
Noritada Kobayashi [Sun, 17 Feb 2008 04:24:22 +0000 (13:24 +0900)]
templates.ja.po: Make translations up-to-date.

Current status:
- templates.ja.po: 218t+6o

16 years ago[UBUNTU] Add mailing lists archive urls for lists.ubuntu.com
Frank Lichtenheld [Wed, 6 Feb 2008 16:42:24 +0000 (17:42 +0100)]
[UBUNTU] Add mailing lists archive urls for lists.ubuntu.com
(cherry picked from commit bc89ba053f3a65e2b66add50846f071bf035d101)

16 years agoPackages::DoIndex: No translated allpackages.*.txt.gz available
Frank Lichtenheld [Fri, 15 Feb 2008 01:04:10 +0000 (02:04 +0100)]
Packages::DoIndex: No translated allpackages.*.txt.gz available

The reimplementation of create_index_pages dropped the translated
allpackages.*.txt.gz, so don't try to serve them.

16 years agoindex_pages: Optimise find call by using -maxdepth
Frank Lichtenheld [Fri, 15 Feb 2008 01:01:26 +0000 (02:01 +0100)]
index_pages: Optimise find call by using -maxdepth

This avoids having to search all of changelogs/

16 years ago300maintainerdb: Don't enable by default
Frank Lichtenheld [Sat, 16 Feb 2008 00:31:38 +0000 (01:31 +0100)]
300maintainerdb: Don't enable by default

Add some warnings here that you don't want to use this
unless the people you will spam with this agreed to it.

Also saves some time on the unofficial sites ;)

16 years agoFixed several typos noted by Jens Seidel, thanks!
Helge Kreutzmann [Fri, 15 Feb 2008 16:31:28 +0000 (17:31 +0100)]
Fixed several typos noted by Jens Seidel, thanks!

16 years agoINSTALL: Improve documentation
Frank Lichtenheld [Thu, 14 Feb 2008 21:56:10 +0000 (22:56 +0100)]
INSTALL: Improve documentation

Based on a patch by Franklin PIAT <fpiat -at- bigfoot com>

16 years agoUpdate to (543t0f139u)
Helge Kreutzmann [Thu, 14 Feb 2008 19:49:31 +0000 (20:49 +0100)]
Update to (543t0f139u)

16 years agoUpdated translation by Yuri Kozlov <kozlov.y@gmail.com>
Nick Toris [Mon, 11 Feb 2008 19:03:23 +0000 (00:03 +0500)]
Updated translation by Yuri Kozlov <kozlov.y@gmail.com>

16 years agoPackages::CommonCode::activate(): Die on error
Frank Lichtenheld [Sat, 9 Feb 2008 19:08:33 +0000 (20:08 +0100)]
Packages::CommonCode::activate(): Die on error

16 years agotrivial_slice: Try to rename the right file
Frank Lichtenheld [Sat, 9 Feb 2008 17:33:58 +0000 (18:33 +0100)]
trivial_slice: Try to rename the right file

Don't try to rename foo.EN.html.new, but foo.en.html.new

16 years agoPackages::Dispatcher: Don't issue bogus 406 errors for index
Frank Lichtenheld [Sat, 9 Feb 2008 17:32:33 +0000 (18:32 +0100)]
Packages::Dispatcher: Don't issue bogus 406 errors for index

This hack really, really needs to be replaced with something more
robust. Anyway...

16 years agotrivial_slice: Use .new as suffix for created files as all other scripts do
Frank Lichtenheld [Sat, 9 Feb 2008 01:40:14 +0000 (02:40 +0100)]
trivial_slice: Use .new as suffix for created files as all other scripts do

Most importantly Packages::CommonCode::active depends on that

16 years agocreate_index_pages: Fix slices output
Frank Lichtenheld [Sat, 9 Feb 2008 01:39:20 +0000 (02:39 +0100)]
create_index_pages: Fix slices output

trivial_slice is *very* picky ;)

16 years ago900index_pages: Make call to trivial_slice more robust
Frank Lichtenheld [Sat, 9 Feb 2008 00:28:22 +0000 (01:28 +0100)]
900index_pages: Make call to trivial_slice more robust

Avoid shell globbing and use absolute paths.

16 years agocreate_index_pages: Avoid needless slices due to unused translations
Frank Lichtenheld [Sat, 9 Feb 2008 00:24:29 +0000 (01:24 +0100)]
create_index_pages: Avoid needless slices due to unused translations

Ignore DDTP translations of languages that have no po translation.
We will not use them here and we might create needless slices
otherwise.

16 years agoUpdate .po and .pot files
Frank Lichtenheld [Fri, 8 Feb 2008 23:39:44 +0000 (00:39 +0100)]
Update .po and .pot files

One additional string now unfortunatly is in both
pdo.pot and templates.pot. I copied existing translations.

16 years agoComplete rewrite of create_index_pages
Frank Lichtenheld [Fri, 8 Feb 2008 00:06:00 +0000 (01:06 +0100)]
Complete rewrite of create_index_pages

The old version was very hard on all of CPU, memory,
and I/O. The new version tries to at least lessen the
burden on memory (and to a lesser extend on CPU), in the
hopes that this will indirectly (by lesser swapping) also
reduce the stress on I/O.

In the old version we first collected all the information
about all packages and then wrote the index files one after
one with TT.

The newer version tries to write all of the index files while
collecting the package information, therefor eliminating the
need to store any information longer than needed. Because the
amount of files we can open simulaniously is limited though,
we can't write all the index files at once. Instead we write
one index files for all languages, and in a second step then
use these files to write one file per language. I tried to
use the "slice" program for that, but it also computes all
the results in memory, while I wanted to have a concurrent
approach here as well.
Since we only use a very limited subset of the features of slice
I wrote a simple replacement that supports the bare minimum of
what we need with the price that we need to be a bit careful
about the format of the slice source files.

I also don't use TT for the package entries anymore since here
as well we only used a very limited set of features and I wanted
to make this script as fast as possible (without having to rewrite
it in C ;). The header and footer still use TT since this part isn't
speed critical and we can reuse the templates we have for the dynamic
pages.

16 years agoSplit the creation of the suite index pages out of create_index_pages
Frank Lichtenheld [Thu, 7 Feb 2008 15:23:33 +0000 (16:23 +0100)]
Split the creation of the suite index pages out of create_index_pages

The whole index page stuff needs some serious tweaking because it just
doesn't scale very well with the growing number of packages and languages.

The creation of the suite index pages is not affected by this however, so
separate these two tasks.

16 years agoarmel is now an official architecture
Frank Lichtenheld [Thu, 7 Feb 2008 13:36:39 +0000 (14:36 +0100)]
armel is now an official architecture

16 years agoDon't hardcode packages.debian.org in sitewidemsg
Frank Lichtenheld [Wed, 6 Feb 2008 21:00:01 +0000 (22:00 +0100)]
Don't hardcode packages.debian.org in sitewidemsg

I use this for the Ubuntu site now, too, so I want to
avoid string differences. Also unfuzzy existing translations.

16 years agoupdate_po: Output some useful statistics about the .po files
Frank Lichtenheld [Wed, 6 Feb 2008 19:44:27 +0000 (20:44 +0100)]
update_po: Output some useful statistics about the .po files

16 years agoupdate_po: Fix reference to renamed menu.inc -> util.inc
Frank Lichtenheld [Wed, 6 Feb 2008 19:43:31 +0000 (20:43 +0100)]
update_po: Fix reference to renamed menu.inc -> util.inc

16 years agoSeparate handling of po translations and DDTP translations
Frank Lichtenheld [Tue, 5 Feb 2008 21:15:59 +0000 (22:15 +0100)]
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 ;).

16 years agohtml/menu.inc: rename to html/util.inc
Frank Lichtenheld [Tue, 5 Feb 2008 21:10:22 +0000 (22:10 +0100)]
html/menu.inc: rename to html/util.inc

No reason to include yet another include file, so
give this one a more general name.