~ubuntu-branches/ubuntu/dapper/xfce-mcs-plugins/dapper

« back to all changes in this revision

Viewing changes to m4/i18n.m4

  • Committer: Bazaar Package Importer
  • Author(s): Simon Huggins
  • Date: 2004-04-27 22:08:03 UTC
  • Revision ID: james.westby@ubuntu.com-20040427220803-vhxi3wkask9cku5d
Tags: upstream-4.0.5
ImportĀ upstreamĀ versionĀ 4.0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl I18n support
 
2
dnl
 
3
dnl Copyright (c) 2003  Benedikt Meurer <benedikt.meurer@unix-ag.uni-siegen.de>
 
4
dnl
 
5
 
 
6
dnl BM_I18N(pkgname, languages)
 
7
AC_DEFUN([BM_I18N],
 
8
[
 
9
  GETTEXT_PACKAGE=$1
 
10
  AC_SUBST([GETTEXT_PACKAGE])
 
11
  AC_DEFINE([GETTEXT_PACKAGE], ["$1"], [Name of default gettext domain])
 
12
 
 
13
  ALL_LINGUAS="$2"
 
14
 
 
15
  AM_GLIB_GNU_GETTEXT
 
16
 
 
17
  dnl This is required on some linux systems
 
18
  AC_CHECK_FUNC([bind_textdomain_codeset])
 
19
 
 
20
  AC_MSG_CHECKING([for locales directory])
 
21
  AC_ARG_WITH([locales-dir],
 
22
    AC_HELP_STRING([--with-locales-dir=DIR], [Install locales into DIR]),
 
23
    [localedir=$withval],
 
24
    [localedir=$datadir/locale])
 
25
  AC_MSG_RESULT([$localedir])
 
26
  AC_SUBST([localedir])
 
27
])