[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. 


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

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 ...)


Christian Hamar alias krix
Frugalware Developer Team

More information about the pacman-dev mailing list