source: branches/gettext/tools/merge.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: 422 bytes
Line 
1#!/bin/sh
2
3if [ $# -lt 1 ]
4then
5  echo
6  echo 'usage : '$(basename $0)' <language code>'
7  echo
8  exit 1
9fi
10
11language=$1
12
13if [ ! -f language/$language/LC_MESSAGES/messages.po ];then
14    msgmerge -v language/$language/LC_MESSAGES/messages.po language/templates/messages.pot -o language/$language/LC_MESSAGES/messages.po
15else
16    msgmerge -v -U language/$language/LC_MESSAGES/messages.po language/templates/messages.pot
17fi
Note: See TracBrowser for help on using the repository browser.