Rewrite thumbnailer
[larjonas-mediagoblin.git] / devtools / move_translations_for_pootle.sh
blob553a8c84db6d7ec9f3b9dd015a8f8a30af77c45d
1 #!/bin/bash
3 # GNU MediaGoblin -- federated, autonomous media hosting
4 # Copyright (C) 2011, 2012 GNU MediaGoblin contributors. See AUTHORS.
6 # This program is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU Affero General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU Affero General Public License for more details.
16 # You should have received a copy of the GNU Affero General Public License
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 # exit if anything fails
20 set -e
22 # move the files to Pootle-friendly layout
23 for lang in $(ls mediagoblin/i18n/); do
24 from="mediagoblin/i18n/$lang/LC_MESSAGES/mediagoblin.po"
25 to="mediagoblin/i18n/$lang/mediagoblin.po"
26 git mv $from $to
27 done
29 # english is not required and is Pootle's "template" now
30 mkdir mediagoblin/i18n/templates/
31 git mv mediagoblin/i18n/en/mediagoblin.po \
32 mediagoblin/i18n/templates/mediagoblin.pot