[aur-dev] [PATCH 0/2] Format string cleanup

Lukas Fleischer archlinux at cryptocrack.de
Mon Aug 15 04:37:22 EDT 2011

From: Lukas Fleischer <info at cryptocrack.de>

I've wanted to get rid of the "%h" format specifiers for a long time and
somehow lost track of it. Thanks to our translation team for poking me
on this.

First patch was generated by a simple sed(1) invocation. Not so sure if
we should also rewrite some of the crazy stuff like "%s%s%s" and just
use "%s" where suitable. It might make sense here.

Note that this patch set is in my working branch ("wip") and I won't
merge this into master before releasing 1.9.0 (doesn't seem worse a
string freeze break).

Lukas Fleischer (2):
  Use "%s" instead of "%h" in format strings
  web/lib/translator.inc.php: Use vsprintf() in __()

 web/html/index.php         |    4 ++--
 web/html/passreset.php     |    2 +-
 web/html/pkgsubmit.php     |    2 +-
 web/lib/acctfuncs.inc.php  |   12 ++++++------
 web/lib/translator.inc.php |   19 +++++--------------
 5 files changed, 15 insertions(+), 24 deletions(-)


More information about the aur-dev mailing list