[pacman-dev] [PATCH] internationalized package descriptions?

Christian Hamar krics at gds.hu
Sat May 20 10:02:06 EDT 2006


> %DESC%
> en - somedesc
> XX_YY - somethingdesc in other language
> 

Hey there. Patch ready and committed to our pacman tree to darcs. You
can view below at that url. I don't know it is applies to arch pure cvs
version or not. 

http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=pacman;a=plain_commitdiff;h=20060520134111-d209c-482b303fad76173e6b0d82f8e83dbd07c42f4c6c.gz;

Some comments. Choosed the second way so the desc style now looks like
this:

%DESC%
Somedescription       <--- This is default english no langcode need
hu_HU localized desc. <--- Need a langcode (locale) and one space then
translated description
tr_TR another desc.   <---- same

Seems clean. 

The patch is fully backward compatible with old style. No break in
packages which does not contains many translations.

If no translation found for current locale then this patch fallbacks to
english by default. (first line)

Needed to modify in package.c package.h and be_files.c

No need any modification for pacman or anything else. The frontend and
everything gain back only one info->desc stuff. So the old way stay and
we wont break anything with backward compatibility.

Feel to free apply or disband. (as many of my patches pending now
still ...)

Regards

Christian Hamar alias krix
Hungary
Frugalware Developer Team






More information about the pacman-dev mailing list