Bug#298834: adduser: [INTL:nb] Translation of program for Norwegian Bokmal

2005-03-18 Thread Marc Haber
On Tue, Mar 15, 2005 at 01:25:02PM +0100, Hans Fr. Nordhaug wrote:
 I sent this message directly to the maintainer, but maybe it got
 stopped by spam filters. Adding it to this bug report even though it
 maybe should have been a new seperate report - removed quotes.

Sorry for taking long to reply, real life took its toll.

 OK, I'm not a gettext expert myself, but reading the info pages I found out
 that you can update the pot file (the basis for all po files) with the
 following command (executed in the po directory):
 
 xgettext -k_ -L Perl ../adduser ../deluser ../AdduserCommon.pm -o adduser.pot
 
 After doing this I 
 1) discovered that this hadn't been done for a while - explaining why
not all of my translations appeared.
 2) there where bugs in some gettext commands in deluser.
 
 I have attatched a patch for deluser, updated Norwegian translation and
 updated pot-file. If you think I should file a new bug report, I'll do so, but
 maybe it's easier that you directly submit to svn.

Committed to svn. Thank you very much. Is there an automatism that
allows me to notify the translators of the new .pot file?

Greetings
Marc

-- 
-
Marc Haber | I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things.Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#298834: adduser: [INTL:nb] Translation of program for Norwegian Bokmal

2005-03-15 Thread Hans Fr. Nordhaug
I sent this message directly to the maintainer, but maybe it got
stopped by spam filters. Adding it to this bug report even though it
maybe should have been a new seperate report - removed quotes.

- Original message -

Date: Thu, 10 Mar 2005 15:23:08 +0100
From: Hans F. Nordhaug [EMAIL PROTECTED]
To: Marc Haber [EMAIL PROTECTED]
Subject: Re: adduser: [INTL:nb] Translation of program for Norwegian Bokmal

[cut away old text]

OK, I'm not a gettext expert myself, but reading the info pages I found out
that you can update the pot file (the basis for all po files) with the
following command (executed in the po directory):

xgettext -k_ -L Perl ../adduser ../deluser ../AdduserCommon.pm -o adduser.pot

After doing this I 
1) discovered that this hadn't been done for a while - explaining why
   not all of my translations appeared.
2) there where bugs in some gettext commands in deluser.

I have attatched a patch for deluser, updated Norwegian translation and
updated pot-file. If you think I should file a new bug report, I'll do so, but
maybe it's easier that you directly submit to svn.

Best regards,
Hans Nordhaug

PS! The usage subroutine for adduser seem outdated compared to the header of
the file - which is correct? 
--- deluser 2005-03-04 07:35:18.0 +0100
+++ deluser.new 2005-03-10 15:01:12.0 +0100
@@ -282,14 +282,14 @@
  sub home_match {
foreach my $mount (@mountpoints) {
  if( $File::Find::name eq $mount ) {
-   s_print(_(Not backing up/removing $File::Find::name, it is a 
mount point.\n));
+   s_print(_(Not backing up/removing `%s', it is a mount 
point.\n),$File::Find::name);
$File::Find::prune=1;
return;
  }
}
foreach my $re ( split ' ', $config{no_del_paths} ) {
  if( $File::Find::name =~ qr/$re/ ) {
-   s_print(_(Not backing up/removing $File::Find::name, it 
matches $re.\n));
+   s_print(_(Not backing up/removing `%s', it matches 
%s.\n),$File::Find::name,$re);
$File::Find::prune=1;
return;
  }
@@ -438,7 +438,7 @@
 sub usage {
 printf(deluser: %s $version\n\n,_(removing user and groups from the 
system. Version:));
 
-print(deluser user
+printf(_(deluser user
   remove a normal user from the system
   example: deluser mike
 
@@ -467,7 +467,7 @@
   --quiet | -q  don't give process information to stdout
   --help | -h   usage message
   --version | -vversion number and copyright
-  --conf | -c FILE  use FILE instead of $defaults\n\n);
+  --conf | -c FILE  use FILE instead of %s\n\n),$defaults);
 
 printf(_(Global configuration is in the file %s.\n), $defaults);
 }
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR [EMAIL PROTECTED], YEAR.
#
#, fuzzy
msgid 
msgstr 
Project-Id-Version: PACKAGE VERSION\n
Report-Msgid-Bugs-To: \n
POT-Creation-Date: 2005-03-10 15:09+0100\n
PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n
Last-Translator: FULL NAME [EMAIL PROTECTED]\n
Language-Team: LANGUAGE [EMAIL PROTECTED]\n
MIME-Version: 1.0\n
Content-Type: text/plain; charset=CHARSET\n
Content-Transfer-Encoding: 8bit\n

#: ../adduser:126 ../deluser:133
msgid No options allowed after names.\n
msgstr 

#: ../adduser:145
msgid --ingroup requires an argument.\n
msgstr 

#: ../adduser:148 ../deluser:158
msgid --home requires an argument.\n
msgstr 

#: ../adduser:150
msgid The home dir must be an absolute path.\n
msgstr 

#: ../adduser:153
msgid --gecos requires an argument.\n
msgstr 

#: ../adduser:156
msgid --shell requires an argument.\n
msgstr 

#: ../adduser:165
msgid --uid requires a numeric argument.\n
msgstr 

#: ../adduser:168
msgid --firstuid requires a numeric argument.\n
msgstr 

#: ../adduser:171
msgid --lastuid requires a numeric argument.\n
msgstr 

#: ../adduser:174
msgid --gid requires a numeric argument.\n
msgstr 

#: ../adduser:177 ../deluser:149
msgid --conf requires an argument.\n
msgstr 

#: ../adduser:179 ../deluser:151
#, perl-format
msgid `%s' does not exist.\n
msgstr 

#: ../adduser:186 ../deluser:170
#, perl-format
msgid Unknown argument `%s'.\n
msgstr 

#: ../adduser:192
msgid Only root may add a user or group to the system.\n
msgstr 

#: ../adduser:195
msgid Warning: The home dir you specified already exists.\n
msgstr 

#: ../adduser:197
msgid Warning: The home dir you specified does not exist.\n
msgstr 

#: ../adduser:204
msgid Enter a groupname to add: 
msgstr 

#: ../adduser:208
msgid Enter a username to add: 
msgstr 

#: ../adduser:213
msgid I need a name to add.\n
msgstr 

#: ../adduser:214 ../deluser:201
msgid No more than two names.\n
msgstr 

#: ../adduser:216 ../deluser:204
msgid Specify only one name in this mode.\n
msgstr 

#: ../adduser:237
msgid The --group, --ingroup, 

Bug#298834: adduser: [INTL:nb] Translation of program for Norwegian Bokmal

2005-03-10 Thread Marc Haber
On Thu, Mar 10, 2005 at 10:31:54AM +0100, Hans Fredrik Nordhaug wrote:
 Attached is updated translation of the program and the deb-conf
 template. 

Committed to svn

 While testing my updated translation I could get adduser to display the 
 translated help message (adduser --help) - verything else was displaying
 Norwegian Bokmål texts. (I'm running adduser 3.63.) Please check that I
 haven't done anyhting wrong. I also noticed this message:
 
  adduser 12
 adduser: Please enter a username matching the regular expression configured
 via the name_regex configuration variable.  Use the `--force-badname'
 option to relax this check or reconfigure name_regex.
 
 which I could find in the po-file.

I will have to investigate that. However, I do not know too much about
gettext and would appreciate help.

Greetings
Marc

-- 
-
Marc Haber | I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things.Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]