source: branches/gettext/tools/compile.sh @ 5167

Last change on this file since 5167 was 5167, checked in by nikrou, 14 years ago

Feature 1451 :

  • improve speed to generate pages when locales is not present on system
  • default domain in now piwigo
  • each plugin can have is own domain ({'...'|@translate:my_plugin})
  • Property svn:executable set to *
File size: 271 bytes
Line 
1#!/bin/sh
2
3if [ $# -lt 1 ]
4then
5  echo
6  echo 'usage : '$(basename $0)' <language code> [domain]'
7  echo
8  exit 1
9fi
10
11language=$1
12if [ $2 ];then
13domain=$2
14else
15domain=piwigo
16fi
17
18msgfmt language/$language/LC_MESSAGES/$domain.po -o language/$language/LC_MESSAGES/$domain.mo
Note: See TracBrowser for help on using the repository browser.