Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2000:
[Freeciv-Dev] Re: po errors (PR#252)
Home

[Freeciv-Dev] Re: po errors (PR#252)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: po errors (PR#252)
From: David Pfitzner <dwp@xxxxxxxxxxxxxx>
Date: Fri, 4 Feb 2000 23:31:15 +1100 (EST)

I have added an updated/improved check_po.pl to cvs (though it
is only available by cvs, and will not be in release tgz, partly
because I'm not sure how best to add files to dist in po directory;
but should be ok, since developers updating po files should be
using cvs or cvs-snapshots).

The new script has options to do some additional checks requested
(optional because they generally find many non-errors as well as 
possible errors).  From the comments at the start of the script:

# Various checks on po file translations:
# - printf-style format strings;
# - differences in trailing newlines;
# - empty (non-fuzzy) msgid;
# - likely whitespace errors on joining multi-line entries
# Ignores all fuzzy entries.
#
# Options:
#  -x  Don't do standard checks above (eg, just check one of below).
#  -n  Check newlines within strings; ie, that have equal numbers
#      of newlines in msgstr and msgid.  (Optional because this may
#      happen legitimately.)
#  -w  Check leading whitespace.  Sometimes whitespace is simply 
#      spacing (eg, for widget labels etc), or punctuation differences,
#      so this may be ok.
#  -W  Check trailing whitespace.  See -w above.
#  -p  Check trailing punctuation.
#  -c  Check capitalization of first non-whitespace character 
#      (only if [a-zA-Z]).

-- David

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