[Pkg-shadow-devel] Not so dumb Questions:

Christian Perrier bubulle@debian.org
Thu, 16 Jun 2005 08:44:07 +0200


--GvXjxJ+pjyke8COw
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Quoting Christine Spang (spangarang@twcny.rr.com):
> Well, if I'm not mistaken, it seems that the the new translation patch
> is good, as Christian did mention earlier -- it's more complete than the
> older one (though I can't understand a word of the Malagasy :)). 
> 
> I would think that the only thing that needs to be done for this is to
> commit the new translation? Is this the sort of thing that needs to be
> proposed to upstream? It would seem logical, unless a) upstream already
> has this patch, or b) upstream has a better one.

Yes. Commit by replacing the debian/po/mg.po file

Checking it is also a good idea:

msgmerge -U debian/po/mg.po debian/po/templates.pot
msgfmt -o /dev/null -c --statistics debian/po/mg.po

See my small mini script named "po_test" attached. Very crappy, but efficient.

> 
> I assume that commits cannot be made anonymously? If I need to remind
> you sometime to add me to the project, that's fine. Also, I was glancing
> through debian/patches, and patches are added through the "quilt"
> command, right? I need to do a little learning on both svn and that.

I've just added you because I'm very clever and guessed your Alioth
login is christine-guest..:-)

About quilt, there's the README.patches in debian/patches.

And, anyway, we have the quilt wizard around here (Martin). He'll be
delighted to answer any question and this will help him to wait for
the baby feed hours without having stupid ideas about his Debian
commitment..:-)

> Thank you all for bearing with me here. I know right now someone could
> have done this a ton faster than I'm doing. :)

I absolutely do not care of speed. Seeing that you already figured out
a lot of things is much important to me.



--GvXjxJ+pjyke8COw
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=po_test

#!/bin/sh

temp=`tempfile`
trap "rm -f $temp $temp.new" 1 2 3 15

clean_and_die() {
    rm -f $temp $temp.new
    if [ "$1" = "2" ] ; then
	echo Invalid encoding. Please check the file.
    fi
    exit $1
}


if [ -z $1 ]
then
  echo Usage $0 fichier
  clean_and_die 1
fi
if [ ! -f $1 ]
then
  echo $1 not found.
  clean_and_die 1
fi

if [ `ls -1 *pot 2>/dev/null | wc -l` != "1" ] ; then 
  echo No POT file \(or more than one\) in current directory
  clean_and_die 1
fi

potfile=`ls -1 *pot`
msgmerge -U $1 $potfile


enc=$(grep -E "^\"Content-Type" $1 | cut -f2 -d= | sed 's/\\n\"//g')

echo -n "Charset is $enc. Stats: "


if test -n "$enc" ; then
  iconv -f $enc -t UTF-8 $1 >$temp >/dev/null 2>&1 || clean_and_die 2
  if [ -x $HOME/bin/check_var.pl ] ; then
    $HOME/bin/check_var.pl $1 || clean_and_die 3
  else
    echo $HOME/bin/check_var.pl not found
    clean_and_die 1
  fi
  LC_ALL=C msgfmt -c -v -o /dev/null --statistics $1
fi


clean_and_die 0

--GvXjxJ+pjyke8COw--