[Merge] lp:~futatuki/mailman/i18n-add-whence-to-adminack-templates into lp:mailman/2.1
Yasuhito FUTATSUKI at POEM
futatuki at poem.co.jp
Thu Jun 14 12:17:24 EDT 2018
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 Coders is requested to review the proposed merge of lp:~futatuki/mailman/i18n-add-whence-to-adminack-templates into lp:mailman/2.1.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: review-diff.txt
Type: text/x-diff
Size: 21202 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/mailman-coders/attachments/20180614/b535bbf9/attachment-0001.diff>
More information about the Mailman-coders
mailing list