3 # Fix up pidgin-sipe.pot after an update to make it acceptable for Transifex
5 # Transifex update procedure:
8 # $ intltool-update --pot -g pidgin-sipe # update POT file
9 # $ ./transifex-pot-fixup.pl # this script
11 # $ tx push -s # update POT file on Transifex
13 # [optional: update the languages you know on Transifex]
15 # $ tx pull -s # fetch updated translations
16 # $ git add -u po/*.po po/*.pot # add files to next commit
23 open(my $fh, "+<", "pidgin-sipe.pot")
24 or die "$0: can't open POT file: $!\n";
28 my(undef, $min, $hour, $mday, $mon, $year) = gmtime(time());
29 $date = sprintf("%4d-%02d-%02d %02d:%02d+0000",
30 $year + 1900, $mon + 1, $mday, $hour, $min);
33 # Must be 19 lines (same as header created by intltool-update)
34 my @lines = ( <<"END_OF_HEADER"
35 # (English) English User Interface strings for pidgin-sipe.
36 # Copyright (C) 2008-2011 SIPE Project <http://sipe.sourceforge.net/>
37 # This file is distributed under the same license as the pidgin-sipe package.
43 "Project-Id-Version: pidgin sipe\\n"
44 "Report-Msgid-Bugs-To: https://sourceforge.net/p/sipe/bugs/\\n"
45 "POT-Creation-Date: 2010-11-30 23:36+0200\\n"
46 "PO-Revision-Date: $date\\n"
47 "Last-Translator: stefanb <chemobejk\@gmail.com>\\n"
48 "Language-Team: English <LL\@li.org>\\n"
49 "MIME-Version: 1.0\\n"
50 "Content-Type: text/plain; charset=UTF-8\\n"
51 "Content-Transfer-Encoding: 8bit\\n"
53 "Plural-Forms: nplurals=2; plural=(n != 1)\\n"
66 or die "$0: can't rewind POT file: $!\n";
69 or die "$0: can't write to POT file: $!\n";