Yasuhito FUTATSUKI at POEM has proposed merging 
lp:~futatuki/mailman/i18n-add-whence-to-adminack-templates into lp:mailman/2.1.

Commit message:
Add '%(whence)s' to adminsubscribeack.txt and adminunsubscribeack.txt, for each 
language.

Requested reviews:
  Mailman Coders (mailman-coders)

For more details, see:
https://code.launchpad.net/~futatuki/mailman/i18n-add-whence-to-adminack-templates/+merge/347992

As far as I saw adminsubscribeack.txt and adminunsubscribeack.txt templates 
other than 'en', '%(whence)s' line can be added safely.

So, I did it by using sed and shell script below(in ./templates directory, 
FreeBSD envirionment):
--- begin ---
#!/bin/sh

LC_CTYPE=C
sed='/usr/bin/sed'

for l in * ; do
  if [ -d "${l}" -a ! "$l" = en ] ; then
    if [ -f ${l}/adminsubscribeack.txt ]; then
      ${sed} -I '' -e 's/\(.\)$/\1\
%(whence)s/' ${l}/adminsubscribeack.txt
    fi
    if [ -f ${l}/adminunsubscribeack.txt ]; then
      ${sed} -I '' -e 's/\(.\)$/\1\
%(whence)s/' ${l}/adminunsubscribeack.txt
    fi
  fi
done
--- end ---

-- 
Your team Mailman Checkins is subscribed to branch lp:mailman/2.1.
_______________________________________________
Mailman-checkins mailing list
Mailman-checkins@python.org
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to