~ubuntu-sdk-team/ubuntu-ui-toolkit/trunk

« back to all changes in this revision

Viewing changes to po/generate_mo.sh

  • Committer: Tarmac
  • Author(s): tpeeters
  • Date: 2013-05-31 11:12:02 UTC
  • mfrom: (515.2.11 translations)
  • Revision ID: tarmac-20130531111202-on7yosuk135vfxp5
Enable UI Toolkit translations in Launchpad. Fixes: https://bugs.launchpad.net/bugs/1175724.

Approved by PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
#
 
3
# Copyright 2012 Canonical Ltd.
 
4
#
 
5
# This program is free software; you can redistribute it and/or modify
 
6
# it under the terms of the GNU Lesser General Public License as published by
 
7
# the Free Software Foundation; version 3.
 
8
#
 
9
# This program is distributed in the hope that it will be useful,
 
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
# GNU Lesser General Public License for more details.
 
13
 
14
# You should have received a copy of the GNU Lesser General Public License
 
15
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
16
#
 
17
 
 
18
BUILDDIR=.
 
19
DOMAIN=ubuntu-ui-toolkit
 
20
 
 
21
for f in `find $TARGET -type f -name "*.po"`
 
22
    do
 
23
        LANG=${f%.*}
 
24
        EXTENSION=${f#*.}
 
25
        mkdir -p $BUILDDIR/locale/$LANG/LC_MESSAGES
 
26
        msgfmt $f -o $BUILDDIR/locale/$LANG/LC_MESSAGES/$DOMAIN.mo
 
27
    done