bug-fileutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fileutils french translation patch


From: Thomas Morin
Subject: Fileutils french translation patch
Date: Mon, 10 Jun 2002 17:03:14 +0200
User-agent: Internet Messaging Program (IMP) 3.1

Hi,

Here is a patch to the fr.po file of fileutils :
 - it corrects a few wrong translations and typos, and improves a bit 
   (I think) some others [fr.po-patch]
 - it corrects column alignment on 'df' output [fr.po-patch]
 - adds one gettext string (one liner for df.c and 5-liner for fileutils.pot:
   fileutils-patch and dfc-patch) needed for nice column size adjustement in
   df.

On the last point here is some detail : the 'df' output in french was garbled,
because 'df' code doesn't make any 'smart' adjustment and padding 
to handle different column title sizes. So what I made in the fr.po file 
was hand tunning of those titles to enhance the output. I added a gettext
string to handle space padding between two strings, so there is one line to
modify in df.c too.  The result is a nice column alignment for 'df -[hiP]*' 
(-T flag is not well handled).

Output before patch:

Système de fichiers           Tail. Util.Disp. Uti% Monté sur
/dev/hda5             5.5G  3.3G  1.9G  63% /
/dev/hda7             2.6G   33M  2.4G   2% /spare
none                  156M  2.0M  154M   2% /tmp
//L-sd4lan/morinth     85G   73G   11G  87% /home/thomas/.smb

Output after patch:

Système de fichiers  Tail. Util. Disp. Uti% Monté sur
/dev/hda5             5.5G  3.3G  1.9G  63% /
/dev/hda7             2.6G   33M  2.4G   2% /spare
none                  156M  2.0M  154M   2% /tmp
//L-sd4lan/morinth     85G   73G   11G  87% /home/thomas/.smb


I guess the right solution would be to automatically tune column titles
display, and column sizes depending on gettext string. But fileutils is
important enough to make me think I'm not experimented enough in C to make
such a thing cleanly in the time I can spent on that. So here is just my
working solution, which I know isn't the most elegant.

I Hope this will be appreciated !

-Thomas

--
== Thomas Morin -- address@hidden -- (+33) 2 98 05 98 54 
== PGP Id:8CEA233D   Key FP:503BF6CFD3AE8719377B832A02FB94E08CEA233D
--



Attachment: fileutils-fr.po-.patch
Description: Binary data

Attachment: fileutils-pot-patch
Description: Binary data

Attachment: fileutils-df.c-patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]