Commit 3df3c4bf authored by Nicolas Boichat's avatar Nicolas Boichat

Add support for database translation, and french translation.

parent 41335b5e
This diff is collapsed.
SUBDIRS= db
SUBDIRS= db po
EXTRA_DIST = config.rpath
......@@ -33,10 +33,12 @@ POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
subdir = .
host_triplet = @host@
DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
$(srcdir)/Makefile.in $(top_srcdir)/configure AUTHORS COPYING \
ChangeLog INSTALL NEWS install-sh missing mkinstalldirs
$(srcdir)/Makefile.in $(top_srcdir)/configure ABOUT-NLS \
AUTHORS COPYING ChangeLog INSTALL NEWS config.guess \
config.rpath config.sub install-sh missing mkinstalldirs
subdir = .
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
......@@ -68,24 +70,43 @@ GZIP_ENV = --best
distuninstallcheck_listfiles = find . -type f -print
distcleancheck_listfiles = find . -type f -print
ACLOCAL = @ACLOCAL@
AMDEP_FALSE = @AMDEP_FALSE@
AMDEP_TRUE = @AMDEP_TRUE@
AMTAR = @AMTAR@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CPPFLAGS = @CPPFLAGS@
CYGPATH_W = @CYGPATH_W@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EXEEXT = @EXEEXT@
GMSGFMT = @GMSGFMT@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
INTLLIBS = @INTLLIBS@
LDFLAGS = @LDFLAGS@
LIBICONV = @LIBICONV@
LIBINTL = @LIBINTL@
LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LTLIBICONV = @LTLIBICONV@
LTLIBINTL = @LTLIBINTL@
LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
MKINSTALLDIRS = @MKINSTALLDIRS@
MSGFMT = @MSGFMT@
MSGMERGE = @MSGMERGE@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
......@@ -93,17 +114,33 @@ PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
POSUB = @POSUB@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STRIP = @STRIP@
USE_NLS = @USE_NLS@
VERSION = @VERSION@
XGETTEXT = @XGETTEXT@
ac_ct_CC = @ac_ct_CC@
ac_ct_STRIP = @ac_ct_STRIP@
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
bindir = @bindir@
build = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
datadir = @datadir@
exec_prefix = @exec_prefix@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
......@@ -119,7 +156,8 @@ sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
SUBDIRS = db
SUBDIRS = db po
EXTRA_DIST = config.rpath
all: all-recursive
.SUFFIXES:
......@@ -281,6 +319,7 @@ distclean-tags:
distdir: $(DISTFILES)
$(am__remove_distdir)
mkdir $(distdir)
$(mkdir_p) $(distdir)/po
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
list='$(DISTFILES)'; for file in $$list; do \
......
This diff is collapsed.
This diff is collapsed.
......@@ -4,7 +4,10 @@ AC_INIT([DDC/CI control tool database], [`date +%Y%m%d`],
AM_INIT_AUTOMAKE
AC_PROG_INSTALL
AC_CONFIG_FILES([
AM_GNU_GETTEXT([external])
AC_CONFIG_FILES([
po/Makefile.in
Makefile
db/Makefile])
AC_OUTPUT
datadir=@datadir@/ddccontrol-db
nobase_dist_data_DATA = *.xml */*.xml
\ No newline at end of file
nobase_dist_data_DATA = *.xml */*.xml
options.xml.h: options.xml
perl ../xml2h.pl options.xml
all: options.xml.h
......@@ -34,6 +34,7 @@ POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
host_triplet = @host@
subdir = db
DIST_COMMON = $(nobase_dist_data_DATA) $(srcdir)/Makefile.am \
$(srcdir)/Makefile.in
......@@ -50,24 +51,43 @@ nobase_dist_dataDATA_INSTALL = $(install_sh_DATA)
DATA = $(nobase_dist_data_DATA)
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = @ACLOCAL@
AMDEP_FALSE = @AMDEP_FALSE@
AMDEP_TRUE = @AMDEP_TRUE@
AMTAR = @AMTAR@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CPPFLAGS = @CPPFLAGS@
CYGPATH_W = @CYGPATH_W@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EXEEXT = @EXEEXT@
GMSGFMT = @GMSGFMT@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
INTLLIBS = @INTLLIBS@
LDFLAGS = @LDFLAGS@
LIBICONV = @LIBICONV@
LIBINTL = @LIBINTL@
LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LTLIBICONV = @LTLIBICONV@
LTLIBINTL = @LTLIBINTL@
LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
MKINSTALLDIRS = @MKINSTALLDIRS@
MSGFMT = @MSGFMT@
MSGMERGE = @MSGMERGE@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
......@@ -75,17 +95,33 @@ PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
POSUB = @POSUB@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STRIP = @STRIP@
USE_NLS = @USE_NLS@
VERSION = @VERSION@
XGETTEXT = @XGETTEXT@
ac_ct_CC = @ac_ct_CC@
ac_ct_STRIP = @ac_ct_STRIP@
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
bindir = @bindir@
build = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
datadir = @datadir@/ddccontrol-db
exec_prefix = @exec_prefix@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
......@@ -282,6 +318,11 @@ uninstall-am: uninstall-info-am uninstall-nobase_dist_dataDATA
pdf-am ps ps-am uninstall uninstall-am uninstall-info-am \
uninstall-nobase_dist_dataDATA
options.xml.h: options.xml
perl ../xml2h.pl options.xml
all: options.xml.h
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
......@@ -129,12 +129,13 @@
</control>
<control id="language" type="list" name="Language select" address="0x68">
<value id="english" name="English"/>
<value id="french" name="Francais"/>
<value id="deutsch" name="Deutsch"/>
<value id="italian" name="Italiano"/>
<value id="french" name="French"/>
<value id="deutsch" name="German"/>
<value id="italian" name="Italian"/>
<value id="russian" name="Russian"/>
<value id="spanish" name="Espanol"/>
<value id="svenska" name="Svenska"/>
<value id="spanish" name="Spanish"/>
<value id="swedish" name="Swedish"/>
<value id="chinese" name="Chinese"/>
</control>
</subgroup>
<subgroup name="Input settings">
......
......@@ -4,37 +4,108 @@
# Created: 1993-05-16
# Public domain
# $Id$
errstatus=0
dirmode=""
usage="\
Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..."
# process command line arguments
while test $# -gt 0 ; do
case $1 in
-h | --help | --h*) # -h for help
echo "$usage" 1>&2
exit 0
;;
-m) # -m PERM arg
shift
test $# -eq 0 && { echo "$usage" 1>&2; exit 1; }
dirmode=$1
shift
;;
--) # stop option processing
shift
break
;;
-*) # unknown option
echo "$usage" 1>&2
exit 1
;;
*) # first non-opt arg
break
;;
esac
done
for file
do
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
shift
if test -d "$file"; then
shift
else
break
fi
done
case $# in
0) exit 0 ;;
esac
case $dirmode in
'')
if mkdir -p -- . 2>/dev/null; then
echo "mkdir -p -- $*"
exec mkdir -p -- "$@"
fi
;;
*)
if mkdir -m "$dirmode" -p -- . 2>/dev/null; then
echo "mkdir -m $dirmode -p -- $*"
exec mkdir -m "$dirmode" -p -- "$@"
fi
;;
esac
for file
do
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
shift
pathcomp=
for d
do
pathcomp="$pathcomp$d"
case $pathcomp in
-*) pathcomp=./$pathcomp ;;
esac
pathcomp=
for d
do
pathcomp="$pathcomp$d"
case "$pathcomp" in
-* ) pathcomp=./$pathcomp ;;
esac
if test ! -d "$pathcomp"; then
echo "mkdir $pathcomp"
if test ! -d "$pathcomp"; then
echo "mkdir $pathcomp"
mkdir "$pathcomp" || lasterr=$?
mkdir "$pathcomp" || lasterr=$?
if test ! -d "$pathcomp"; then
errstatus=$lasterr
else
if test ! -z "$dirmode"; then
echo "chmod $dirmode $pathcomp"
lasterr=""
chmod "$dirmode" "$pathcomp" || lasterr=$?
if test ! -d "$pathcomp"; then
errstatus=$lasterr
fi
fi
if test ! -z "$lasterr"; then
errstatus=$lasterr
fi
fi
fi
fi
pathcomp="$pathcomp/"
done
pathcomp="$pathcomp/"
done
done
exit $errstatus
# Local Variables:
# mode: shell-script
# sh-indentation: 2
# End:
# mkinstalldirs ends here
Makefile
Makefile.in
POTFILES
stamp-po
# Set of available languages.
fr
This diff is collapsed.
# Makefile variables for PO directory in any package using GNU gettext.
# Usually the message domain is the same as the package name.
DOMAIN = $(PACKAGE)
# These two variables depend on the location of this directory.
subdir = po
top_builddir = ..
# These options get passed to xgettext.
XGETTEXT_OPTIONS = --keyword=_ --keyword=N_
# This is the copyright holder that gets inserted into the header of the
# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding
# package. (Note that the msgstr strings, extracted from the package's
# sources, belong to the copyright holder of the package.) Translators are
# expected to transfer the copyright for their translations to this person
# or entity, or to disclaim their copyright. The empty string stands for
# the public domain; in this case the translators are expected to disclaim
# their copyright.
COPYRIGHT_HOLDER = Oleg I. Vdovikin and Nicolas Boichat
# This is the email address or URL to which the translators shall report
# bugs in the untranslated strings:
# - Strings which are not entire sentences, see the maintainer guidelines
# in the GNU gettext documentation, section 'Preparing Strings'.
# - Strings which use unclear terms or require additional context to be
# understood.
# - Strings which make invalid assumptions about notation of date, time or
# money.
# - Pluralisation problems.
# - Incorrect English spelling.
# - Incorrect formatting.
# It can be your email address, or a mailing list address where translators
# can write to without being subscribed, or the URL of a web page through
# which the translators can contact you.
MSGID_BUGS_ADDRESS = ddccontrol-devel@lists.sourceforge.net
# This is the list of locale categories, beyond LC_MESSAGES, for which the
# message catalogs shall be used. It is usually empty.
EXTRA_LOCALE_CATEGORIES =
# List of source files containing translatable strings.
db/options.xml.h
# Special Makefile rules for English message catalogs with quotation marks.
DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot
.SUFFIXES: .insert-header .po-update-en
en@quot.po-update: en@quot.po-update-en
en@boldquot.po-update: en@boldquot.po-update-en
.insert-header.po-update-en:
@lang=`echo $@ | sed -e 's/\.po-update-en$$//'`; \
if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd $(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \
tmpdir=`pwd`; \
echo "$$lang:"; \
ll=`echo $$lang | sed -e 's/@.*//'`; \
LC_ALL=C; export LC_ALL; \
cd $(srcdir); \
if $(MSGINIT) -i $(DOMAIN).pot --no-translator -l $$ll -o - 2>/dev/null | sed -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | $(MSGFILTER) sed -f `echo $$lang | sed -e 's/.*@//'`.sed 2>/dev/null > $$tmpdir/$$lang.new.po; then \
if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
rm -f $$tmpdir/$$lang.new.po; \
else \
if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
:; \
else \
echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
exit 1; \
fi; \
fi; \
else \
echo "creation of $$lang.po failed!" 1>&2; \
rm -f $$tmpdir/$$lang.new.po; \
fi
en@quot.insert-header: insert-header.sin
sed -e '/^#/d' -e 's/HEADER/en@quot.header/g' $(srcdir)/insert-header.sin > en@quot.insert-header
en@boldquot.insert-header: insert-header.sin
sed -e '/^#/d' -e 's/HEADER/en@boldquot.header/g' $(srcdir)/insert-header.sin > en@boldquot.insert-header
mostlyclean: mostlyclean-quot
mostlyclean-quot:
rm -f *.insert-header
s/"\([^"]*\)"/\1/g
s/`\([^`']*\)'/\1/g
s/ '\([^`']*\)' /\1/g
s/ '\([^`']*\)'$/\1/g
s/^'\([^`']*\)' /\1/g
s/“”/""/g
s//“/g
s//”/g
s//‘/g
s//’/g
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR Oleg I. Vdovikin and Nicolas Boichat
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: ddccontrol-devel@lists.sourceforge.net\n"
"POT-Creation-Date: 2004-09-13 23:49+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: db/options.xml.h:3
msgid "Color settings"
msgstr ""
#: db/options.xml.h:4
msgid "Brightness and Contrast"
msgstr ""
#: db/options.xml.h:5
msgid "Brightness"
msgstr ""
#: db/options.xml.h:6
msgid "Contrast"
msgstr ""
#: db/options.xml.h:7
msgid "Magic Bright Mode"
msgstr ""
#: db/options.xml.h:8
msgid "Text"
msgstr ""
#: db/options.xml.h:9
msgid "Internet"
msgstr ""
#: db/options.xml.h:10
msgid "Entertain"
msgstr ""
#: db/options.xml.h:11
msgid "Custom"
msgstr ""
#: db/options.xml.h:12
msgid "Color maximum level"
msgstr ""
#: db/options.xml.h:13
msgid "Red maximum level"
msgstr ""
#: db/options.xml.h:14
msgid "Green maximum level"
msgstr ""
#: db/options.xml.h:15
msgid "Blue maximum level"
msgstr ""
#: db/options.xml.h:16
msgid "Color minimum level"
msgstr ""
#: db/options.xml.h:17
msgid "Red minimum level"
msgstr ""
#: db/options.xml.h:18
msgid "Green minimum level"
msgstr ""
#: db/options.xml.h:19
msgid "Blue minimum level"
msgstr ""
#: db/options.xml.h:20
msgid "Various color settings"
msgstr ""
#: db/options.xml.h:21
msgid "Hue"
msgstr ""
#: db/options.xml.h:22
msgid "Saturation"
msgstr ""
#: db/options.xml.h:23
msgid "Color curve adjust"
msgstr ""
#: db/options.xml.h:24
msgid "Color Preset"
msgstr ""
#: db/options.xml.h:25
msgid "Normal"
msgstr ""
#: db/options.xml.h:26
msgid "Warm"
msgstr ""
#: db/options.xml.h:27
msgid "Cool"
msgstr ""
#: db/options.xml.h:28
msgid "Position and size"
msgstr ""
#: db/options.xml.h:29
msgid "Position"
msgstr ""
#: db/options.xml.h:30
msgid "Horizontal Position"
msgstr ""
#: db/options.xml.h:31
msgid "Vertical Position"
msgstr ""
#: db/options.xml.h:32
msgid "Size"
msgstr ""
#: db/options.xml.h:33
msgid "Horizontal Size"
msgstr ""
#: db/options.xml.h:34
msgid "Vertical Size"
msgstr ""
#: db/options.xml.h:35
msgid "Automatic adjustments"
msgstr ""
#: db/options.xml.h:36
msgid "Auto Size Center"
msgstr ""
#: db/options.xml.h:37 db/options.xml.h:98
msgid "Enable"
msgstr ""
#: db/options.xml.h:38 db/options.xml.h:97
msgid "Disable"
msgstr ""
#: db/options.xml.h:39
msgid "Automatically adjust Size and Position"
msgstr ""
#: db/options.xml.h:40
msgid "Geometry"
msgstr ""
#: db/options.xml.h:41
msgid "Pincushion"
msgstr ""
#: db/options.xml.h:42
msgid "Horizontal Pincushion"
msgstr ""
#: db/options.xml.h:43
msgid "Horizontal Pincushion Balance"
msgstr ""
#: db/options.xml.h:44
msgid "Vertical Pincushion"
msgstr ""
#: db/options.xml.h:45
msgid "Vertical Pincushion Balance"
msgstr ""
#: db/options.xml.h:46
msgid "Linearity"
msgstr ""
#: db/options.xml.h:47
msgid "Horizontal Linearity"
msgstr ""
#: db/options.xml.h:48
msgid "Horizontal Linearity Balance"
msgstr ""
#: db/options.xml.h:49
msgid "Vertical Linearity"
msgstr ""
#: db/options.xml.h:50
msgid "Vertical Linearity Balance"
msgstr ""
#: db/options.xml.h:51
msgid "Misconvergence"
msgstr ""
#: db/options.xml.h:52
msgid "Horizontal Misconvergence"
msgstr ""
#: db/options.xml.h:53
msgid "Vertical Misconvergence"
msgstr ""
#: db/options.xml.h:54
msgid "General distortion"
msgstr ""
#: db/options.xml.h:55
msgid "Parallelogram Distortion (Key Balance)"
msgstr ""
#: db/options.xml.h:56
msgid "Trapezoidal Distortion (Key)"
msgstr ""
#: db/options.xml.h:57
msgid "Corners distortion"
msgstr ""
#: db/options.xml.h:58
msgid "Top Corner Distortion Control"
msgstr ""
#: db/options.xml.h:59
msgid "Top Corner Distortion Balance"
msgstr ""
#: db/options.xml.h:60
msgid "Bottom Corner Distortion Control"
msgstr ""
#: db/options.xml.h:61
msgid "Bottom Corner Distortion Balance"
msgstr ""
#: db/options.xml.h:62
msgid "Rotation"