Removed i18n - burden to maintain and does not worth the effort
This commit is contained in:
parent
9c55e48f43
commit
60b6b8cb49
|
@ -1,9 +1,8 @@
|
|||
## Process this file with automake to generate a Makefile.in
|
||||
|
||||
#SUBDIRS = m4 po src
|
||||
SUBDIRS = po src
|
||||
SUBDIRS = src
|
||||
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
|
||||
EXTRA_DIST = mkinstalldirs Doxyfile REPORT-BUGS PLANS po/LINGUAS
|
||||
EXTRA_DIST = mkinstalldirs Doxyfile REPORT-BUGS PLANS
|
||||
|
||||
|
|
52
autogen.sh
52
autogen.sh
|
@ -24,9 +24,6 @@ srcdir=${srcdir:-.}
|
|||
REQUIRED_AUTOCONF_VERSION=${REQUIRED_AUTOCONF_VERSION:-2.61}
|
||||
REQUIRED_AUTOMAKE_VERSION=${REQUIRED_AUTOMAKE_VERSION:-1.9}
|
||||
REQUIRED_LIBTOOL_VERSION=${REQUIRED_LIBTOOL_VERSION:-1.4.3}
|
||||
REQUIRED_GETTEXT_VERSION=${REQUIRED_GETTEXT_VERSION:-0.10.40}
|
||||
REQUIRED_GLIB_GETTEXT_VERSION=${REQUIRED_GLIB_GETTEXT_VERSION:-2.2.0}
|
||||
#REQUIRED_INTLTOOL_VERSION=${REQUIRED_INTLTOOL_VERSION:-0.25}
|
||||
REQUIRED_PKG_CONFIG_VERSION=${REQUIRED_PKG_CONFIG_VERSION:-0.14.0}
|
||||
#REQUIRED_GTK_DOC_VERSION=${REQUIRED_GTK_DOC_VERSION:-1.0}
|
||||
#REQUIRED_DOC_COMMON_VERSION=${REQUIRED_DOC_COMMON_VERSION:-2.3.0}
|
||||
|
@ -271,9 +268,6 @@ check_m4macros() {
|
|||
forbid_m4macro gnome-cxx-check.m4
|
||||
|
||||
want_libtool=false
|
||||
want_gettext=false
|
||||
want_glib_gettext=false
|
||||
want_intltool=false
|
||||
want_pkg_config=false
|
||||
want_gtk_doc=false
|
||||
want_gnome_doc_utils=false
|
||||
|
@ -290,16 +284,6 @@ for configure_ac in $configure_files; do
|
|||
grep "^LT_INIT" $configure_ac >/dev/null; then
|
||||
want_libtool=true
|
||||
fi
|
||||
if grep "^AM_GNU_GETTEXT" $configure_ac >/dev/null; then
|
||||
want_gettext=true
|
||||
fi
|
||||
if grep "^AM_GLIB_GNU_GETTEXT" $configure_ac >/dev/null; then
|
||||
want_glib_gettext=true
|
||||
fi
|
||||
if grep "^AC_PROG_INTLTOOL" $configure_ac >/dev/null ||
|
||||
grep "^IT_PROG_INTLTOOL" $configure_ac >/dev/null; then
|
||||
want_intltool=true
|
||||
fi
|
||||
if grep "^PKG_CHECK_MODULES" $configure_ac >/dev/null; then
|
||||
want_pkg_config=true
|
||||
fi
|
||||
|
@ -358,24 +342,6 @@ if $want_libtool; then
|
|||
require_m4macro libtool.m4
|
||||
fi
|
||||
|
||||
if $want_gettext; then
|
||||
version_check gettext GETTEXTIZE gettextize $REQUIRED_GETTEXT_VERSION \
|
||||
"http://ftp.gnu.org/pub/gnu/gettext/gettext-$REQUIRED_GETTEXT_VERSION.tar.gz"
|
||||
require_m4macro gettext.m4
|
||||
fi
|
||||
|
||||
if $want_glib_gettext; then
|
||||
version_check glib-gettext GLIB_GETTEXTIZE glib-gettextize $REQUIRED_GLIB_GETTEXT_VERSION \
|
||||
"ftp://ftp.gtk.org/pub/gtk/v2.2/glib-$REQUIRED_GLIB_GETTEXT_VERSION.tar.gz"
|
||||
require_m4macro glib-gettext.m4
|
||||
fi
|
||||
|
||||
if $want_intltool; then
|
||||
version_check intltool INTLTOOLIZE intltoolize $REQUIRED_INTLTOOL_VERSION \
|
||||
"http://ftp.gnome.org/pub/GNOME/sources/intltool/"
|
||||
require_m4macro intltool.m4
|
||||
fi
|
||||
|
||||
if $want_pkg_config; then
|
||||
version_check pkg-config PKG_CONFIG pkg-config $REQUIRED_PKG_CONFIG_VERSION \
|
||||
"'http://www.freedesktop.org/software/pkgconfig/releases/pkgconfig-$REQUIRED_PKG_CONFIG_VERSION.tar.gz"
|
||||
|
@ -430,24 +396,6 @@ for configure_ac in $configure_files; do
|
|||
$LIBTOOLIZE --force --copy || exit 1
|
||||
fi
|
||||
|
||||
if grep "^AM_GLIB_GNU_GETTEXT" $basename >/dev/null; then
|
||||
printbold "Running $GLIB_GETTEXTIZE... Ignore non-fatal messages."
|
||||
echo "no" | $GLIB_GETTEXTIZE --force --copy || exit 1
|
||||
elif grep "^AM_GNU_GETTEXT" $basename >/dev/null; then
|
||||
if grep "^AM_GNU_GETTEXT_VERSION" $basename > /dev/null; then
|
||||
printbold "Running autopoint..."
|
||||
autopoint --force || exit 1
|
||||
else
|
||||
printbold "Running $GETTEXTIZE... Ignore non-fatal messages."
|
||||
echo "no" | $GETTEXTIZE --force --copy || exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if grep "^AC_PROG_INTLTOOL" $basename >/dev/null ||
|
||||
grep "^IT_PROG_INTLTOOL" $basename >/dev/null; then
|
||||
printbold "Running $INTLTOOLIZE..."
|
||||
$INTLTOOLIZE --force --copy --automake || exit 1
|
||||
fi
|
||||
if grep "^GTK_DOC_CHECK" $basename >/dev/null; then
|
||||
printbold "Running $GTKDOCIZE..."
|
||||
$GTKDOCIZE --copy || exit 1
|
||||
|
|
24
config.h.in
24
config.h.in
|
@ -3,17 +3,8 @@
|
|||
/* Define if building universal (internal helper macro) */
|
||||
#undef AC_APPLE_UNIVERSAL_BUILD
|
||||
|
||||
/* always defined to indicate that i18n is enabled */
|
||||
#undef ENABLE_NLS
|
||||
|
||||
/* GETTEXT package name */
|
||||
#undef GETTEXT_PACKAGE
|
||||
|
||||
/* Define to 1 if you have the `bind_textdomain_codeset' function. */
|
||||
#undef HAVE_BIND_TEXTDOMAIN_CODESET
|
||||
|
||||
/* Define to 1 if you have the `dcgettext' function. */
|
||||
#undef HAVE_DCGETTEXT
|
||||
/* Compiler syntax for export of public symbols */
|
||||
#undef EXPORT
|
||||
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||
#undef HAVE_DLFCN_H
|
||||
|
@ -21,15 +12,9 @@
|
|||
/* Define to 1 if you have the `floor' function. */
|
||||
#undef HAVE_FLOOR
|
||||
|
||||
/* Define if the GNU gettext() function is already present or preinstalled. */
|
||||
#undef HAVE_GETTEXT
|
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
#undef HAVE_INTTYPES_H
|
||||
|
||||
/* Define if your <locale.h> file defines LC_MESSAGES. */
|
||||
#undef HAVE_LC_MESSAGES
|
||||
|
||||
/* Define to 1 if you have the <libintl.h> header file. */
|
||||
#undef HAVE_LIBINTL_H
|
||||
|
||||
|
@ -66,11 +51,10 @@
|
|||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#undef HAVE_UNISTD_H
|
||||
|
||||
/* Activate Infinity's debugging */
|
||||
/* Activate Infinity debugging */
|
||||
#undef INFINITY_DEBUG
|
||||
|
||||
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
||||
*/
|
||||
/* Define to the sub-directory where libtool stores uninstalled libraries. */
|
||||
#undef LT_OBJDIR
|
||||
|
||||
/* Activate MMX Extensions support */
|
||||
|
|
14
configure.ac
14
configure.ac
|
@ -109,14 +109,6 @@ else
|
|||
AC_MSG_RESULT([no])
|
||||
fi
|
||||
|
||||
# Internationalization
|
||||
ALL_LINGUAS="es es_AR"
|
||||
GETTEXT_PACKAGE=infinity
|
||||
AC_SUBST(GETTEXT_PACKAGE)
|
||||
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])
|
||||
AM_GLIB_GNU_GETTEXT
|
||||
#AC_PROG_INTLTOOL
|
||||
|
||||
INF_CFLAGS_EXTRA=''
|
||||
|
||||
if test x"$GCC" = xyes; then
|
||||
|
@ -167,8 +159,7 @@ fi
|
|||
|
||||
AC_SUBST(INF_CFLAGS_EXTRA)
|
||||
|
||||
dnl Prevent symbol collisions
|
||||
dnl =========================
|
||||
# Define EXPORT
|
||||
if test "x$HAVE_MSWINDOWS" = "xyes" ; then
|
||||
EXPORT="__declspec(dllexport)"
|
||||
elif test "x$GCC" = "xyes" ; then
|
||||
|
@ -191,8 +182,7 @@ AC_SUBST(libdir)
|
|||
AC_SUBST(pkglibdir)
|
||||
|
||||
AC_CONFIG_FILES([Makefile
|
||||
po/Makefile.in
|
||||
src/Makefile])
|
||||
src/Makefile])
|
||||
AC_OUTPUT
|
||||
|
||||
echo "
|
||||
|
|
19
po/ChangeLog
19
po/ChangeLog
|
@ -1,19 +0,0 @@
|
|||
2005-07-18 Duilio Protti <dprotti@users.sourceforge.net>
|
||||
|
||||
* es.po: Spanish translation updated.
|
||||
|
||||
2005-04-15 Duilio Protti <dprotti@users.sourceforge.net>
|
||||
|
||||
* es.po: Spanish translation updated.
|
||||
|
||||
2004-03-31 gettextize <bug-gnu-gettext@gnu.org>
|
||||
|
||||
* Makefile.in.in: New file, from gettext-0.11.4.
|
||||
* boldquot.sed: New file, from gettext-0.11.4.
|
||||
* en@boldquot.header: New file, from gettext-0.11.4.
|
||||
* en@quot.header: New file, from gettext-0.11.4.
|
||||
* insert-header.sin: New file, from gettext-0.11.4.
|
||||
* quot.sed: New file, from gettext-0.11.4.
|
||||
* remove-potcdate.sin: New file, from gettext-0.11.4.
|
||||
* Rules-quot: New file, from gettext-0.11.4.
|
||||
|
|
@ -1 +0,0 @@
|
|||
en es es_AR
|
|
@ -1,279 +0,0 @@
|
|||
# Makefile for program source directory in GNU NLS utilities package.
|
||||
# Copyright (C) 1995, 1996, 1997 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
|
||||
#
|
||||
# This file file be copied and used freely without restrictions. It can
|
||||
# be used in projects which are not available under the GNU Public License
|
||||
# but which still want to provide support for the GNU gettext functionality.
|
||||
# Please note that the actual code is *not* freely available.
|
||||
#
|
||||
# - Modified by Owen Taylor <otaylor@redhat.com> to use GETTEXT_PACKAGE
|
||||
# instead of PACKAGE and to look for po2tbl in ./ not in intl/
|
||||
#
|
||||
# - Modified by jacob berkman <jacob@ximian.com> to install
|
||||
# Makefile.in.in and po2tbl.sed.in for use with glib-gettextize
|
||||
|
||||
GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
|
||||
PACKAGE = @PACKAGE@
|
||||
VERSION = @VERSION@
|
||||
|
||||
SHELL = @SHELL@
|
||||
@SET_MAKE@
|
||||
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
prefix = @prefix@
|
||||
exec_prefix = @exec_prefix@
|
||||
datarootdir = @datarootdir@
|
||||
datadir = @datadir@
|
||||
libdir = @libdir@
|
||||
localedir = $(libdir)/locale
|
||||
gnulocaledir = $(datadir)/locale
|
||||
gettextsrcdir = $(datadir)/glib-2.0/gettext/po
|
||||
subdir = po
|
||||
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
MKINSTALLDIRS = $(top_srcdir)/@MKINSTALLDIRS@
|
||||
|
||||
CC = @CC@
|
||||
GENCAT = @GENCAT@
|
||||
GMSGFMT = @GMSGFMT@
|
||||
MSGFMT = @MSGFMT@
|
||||
MSGFMT_OPTS = @MSGFMT_OPTS@
|
||||
XGETTEXT = @XGETTEXT@
|
||||
MSGMERGE = msgmerge
|
||||
|
||||
DEFS = @DEFS@
|
||||
CFLAGS = @CFLAGS@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
|
||||
INCLUDES = -I.. -I$(top_srcdir)/intl
|
||||
|
||||
COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
|
||||
|
||||
SOURCES =
|
||||
POFILES = @POFILES@
|
||||
GMOFILES = @GMOFILES@
|
||||
DISTFILES = LINGUAS ChangeLog Makefile.in.in POTFILES.in $(GETTEXT_PACKAGE).pot \
|
||||
$(POFILES) $(GMOFILES) $(SOURCES)
|
||||
|
||||
POTFILES = \
|
||||
|
||||
CATALOGS = @CATALOGS@
|
||||
CATOBJEXT = @CATOBJEXT@
|
||||
INSTOBJEXT = @INSTOBJEXT@
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .c .o .po .pox .gmo .mo .msg .cat
|
||||
|
||||
.c.o:
|
||||
$(COMPILE) $<
|
||||
|
||||
.po.pox:
|
||||
$(MAKE) $(GETTEXT_PACKAGE).pot
|
||||
$(MSGMERGE) $< $(srcdir)/$(GETTEXT_PACKAGE).pot -o $*.pox
|
||||
|
||||
.po.mo:
|
||||
$(MSGFMT) -o $@ $<
|
||||
|
||||
.po.gmo:
|
||||
file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \
|
||||
&& rm -f $$file && $(GMSGFMT) $(MSGFMT_OPTS) -o $$file $<
|
||||
|
||||
.po.cat:
|
||||
sed -f ../intl/po2msg.sed < $< > $*.msg \
|
||||
&& rm -f $@ && $(GENCAT) $@ $*.msg
|
||||
|
||||
|
||||
all: all-@USE_NLS@
|
||||
|
||||
all-yes: $(CATALOGS)
|
||||
all-no:
|
||||
|
||||
$(srcdir)/$(GETTEXT_PACKAGE).pot: $(POTFILES)
|
||||
$(XGETTEXT) --default-domain=$(GETTEXT_PACKAGE) --directory=$(top_srcdir) \
|
||||
--add-comments --keyword=_ --keyword=N_ \
|
||||
--keyword=C_:1c,2 \
|
||||
--keyword=NC_:1c,2 \
|
||||
--keyword=g_dcgettext:2 \
|
||||
--keyword=g_dngettext:2,3 \
|
||||
--keyword=g_dpgettext2:2c,3 \
|
||||
--flag=N_:1:pass-c-format \
|
||||
--flag=C_:2:pass-c-format \
|
||||
--flag=NC_:2:pass-c-format \
|
||||
--flag=g_dngettext:2:pass-c-format \
|
||||
--flag=g_strdup_printf:1:c-format \
|
||||
--flag=g_string_printf:2:c-format \
|
||||
--flag=g_string_append_printf:2:c-format \
|
||||
--flag=g_error_new:3:c-format \
|
||||
--flag=g_set_error:4:c-format \
|
||||
--flag=g_markup_printf_escaped:1:c-format \
|
||||
--flag=g_log:3:c-format \
|
||||
--flag=g_print:1:c-format \
|
||||
--flag=g_printerr:1:c-format \
|
||||
--flag=g_printf:1:c-format \
|
||||
--flag=g_fprintf:2:c-format \
|
||||
--flag=g_sprintf:2:c-format \
|
||||
--flag=g_snprintf:3:c-format \
|
||||
--flag=g_scanner_error:2:c-format \
|
||||
--flag=g_scanner_warn:2:c-format \
|
||||
--files-from=$(srcdir)/POTFILES.in \
|
||||
&& test ! -f $(GETTEXT_PACKAGE).po \
|
||||
|| ( rm -f $(srcdir)/$(GETTEXT_PACKAGE).pot \
|
||||
&& mv $(GETTEXT_PACKAGE).po $(srcdir)/$(GETTEXT_PACKAGE).pot )
|
||||
|
||||
install: install-exec install-data
|
||||
install-exec:
|
||||
install-data: install-data-@USE_NLS@
|
||||
install-data-no: all
|
||||
install-data-yes: all
|
||||
if test -r "$(MKINSTALLDIRS)"; then \
|
||||
$(MKINSTALLDIRS) $(DESTDIR)$(datadir); \
|
||||
else \
|
||||
$(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(datadir); \
|
||||
fi
|
||||
@catalogs='$(CATALOGS)'; \
|
||||
for cat in $$catalogs; do \
|
||||
cat=`basename $$cat`; \
|
||||
case "$$cat" in \
|
||||
*.gmo) destdir=$(gnulocaledir);; \
|
||||
*) destdir=$(localedir);; \
|
||||
esac; \
|
||||
lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
|
||||
dir=$(DESTDIR)$$destdir/$$lang/LC_MESSAGES; \
|
||||
if test -r "$(MKINSTALLDIRS)"; then \
|
||||
$(MKINSTALLDIRS) $$dir; \
|
||||
else \
|
||||
$(SHELL) $(top_srcdir)/mkinstalldirs $$dir; \
|
||||
fi; \
|
||||
if test -r $$cat; then \
|
||||
$(INSTALL_DATA) $$cat $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \
|
||||
echo "installing $$cat as $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT)"; \
|
||||
else \
|
||||
$(INSTALL_DATA) $(srcdir)/$$cat $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \
|
||||
echo "installing $(srcdir)/$$cat as" \
|
||||
"$$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT)"; \
|
||||
fi; \
|
||||
if test -r $$cat.m; then \
|
||||
$(INSTALL_DATA) $$cat.m $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \
|
||||
echo "installing $$cat.m as $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m"; \
|
||||
else \
|
||||
if test -r $(srcdir)/$$cat.m ; then \
|
||||
$(INSTALL_DATA) $(srcdir)/$$cat.m \
|
||||
$$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \
|
||||
echo "installing $(srcdir)/$$cat as" \
|
||||
"$$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m"; \
|
||||
else \
|
||||
true; \
|
||||
fi; \
|
||||
fi; \
|
||||
done
|
||||
if test "$(PACKAGE)" = "glib"; then \
|
||||
if test -r "$(MKINSTALLDIRS)"; then \
|
||||
$(MKINSTALLDIRS) $(DESTDIR)$(gettextsrcdir); \
|
||||
else \
|
||||
$(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(gettextsrcdir); \
|
||||
fi; \
|
||||
$(INSTALL_DATA) $(srcdir)/Makefile.in.in \
|
||||
$(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \
|
||||
else \
|
||||
: ; \
|
||||
fi
|
||||
|
||||
# Define this as empty until I found a useful application.
|
||||
installcheck:
|
||||
|
||||
uninstall:
|
||||
catalogs='$(CATALOGS)'; \
|
||||
for cat in $$catalogs; do \
|
||||
cat=`basename $$cat`; \
|
||||
lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
|
||||
rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \
|
||||
rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \
|
||||
rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \
|
||||
rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \
|
||||
done
|
||||
if test "$(PACKAGE)" = "glib"; then \
|
||||
rm -f $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \
|
||||
fi
|
||||
|
||||
check: all
|
||||
|
||||
dvi info tags TAGS ID:
|
||||
|
||||
mostlyclean:
|
||||
rm -f core core.* *.pox $(GETTEXT_PACKAGE).po *.old.po cat-id-tbl.tmp
|
||||
rm -fr *.o
|
||||
|
||||
clean: mostlyclean
|
||||
|
||||
distclean: clean
|
||||
rm -f Makefile Makefile.in POTFILES *.mo *.msg *.cat *.cat.m
|
||||
|
||||
maintainer-clean: distclean
|
||||
@echo "This command is intended for maintainers to use;"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
rm -f $(GMOFILES)
|
||||
|
||||
distdir = ../$(GETTEXT_PACKAGE)-$(VERSION)/$(subdir)
|
||||
dist distdir: $(DISTFILES)
|
||||
dists="$(DISTFILES)"; \
|
||||
for file in $$dists; do \
|
||||
ln $(srcdir)/$$file $(distdir) 2> /dev/null \
|
||||
|| cp -p $(srcdir)/$$file $(distdir); \
|
||||
done
|
||||
|
||||
update-po: Makefile
|
||||
$(MAKE) $(GETTEXT_PACKAGE).pot
|
||||
tmpdir=`pwd`; \
|
||||
cd $(srcdir); \
|
||||
catalogs='$(CATALOGS)'; \
|
||||
for cat in $$catalogs; do \
|
||||
cat=`basename $$cat`; \
|
||||
lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
|
||||
echo "$$lang:"; \
|
||||
if $(MSGMERGE) $$lang.po $(GETTEXT_PACKAGE).pot -o $$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 "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
|
||||
rm -f $$tmpdir/$$lang.new.po; \
|
||||
exit 1; \
|
||||
fi; \
|
||||
fi; \
|
||||
else \
|
||||
echo "msgmerge for $$cat failed!"; \
|
||||
rm -f $$tmpdir/$$lang.new.po; \
|
||||
fi; \
|
||||
done
|
||||
|
||||
# POTFILES is created from POTFILES.in by stripping comments, empty lines
|
||||
# and Intltool tags (enclosed in square brackets), and appending a full
|
||||
# relative path to them
|
||||
POTFILES: POTFILES.in
|
||||
( if test 'x$(srcdir)' != 'x.'; then \
|
||||
posrcprefix='$(top_srcdir)/'; \
|
||||
else \
|
||||
posrcprefix="../"; \
|
||||
fi; \
|
||||
rm -f $@-t $@ \
|
||||
&& (sed -e '/^#/d' \
|
||||
-e "s/^\[.*\] +//" \
|
||||
-e '/^[ ]*$$/d' \
|
||||
-e "s@.*@ $$posrcprefix& \\\\@" < $(srcdir)/$@.in \
|
||||
| sed -e '$$s/\\$$//') > $@-t \
|
||||
&& chmod a-w $@-t \
|
||||
&& mv $@-t $@ )
|
||||
|
||||
Makefile: Makefile.in.in ../config.status POTFILES
|
||||
cd .. \
|
||||
&& $(SHELL) ./config.status $(subdir)/$@.in
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make not to export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
|
@ -1,10 +0,0 @@
|
|||
# List of source files containing translatable strings.
|
||||
|
||||
# Package source files
|
||||
src/main.c
|
||||
src/renderer.c
|
||||
src/cputest.c
|
||||
src/infconfig.c
|
||||
src/display.c
|
||||
src/effects.c
|
||||
src/config-dialog.c
|
221
po/es.po
221
po/es.po
|
@ -1,221 +0,0 @@
|
|||
# Spanish translations for GNU infinity package.
|
||||
# Traducciones al español para el paquete GNU infinity.
|
||||
# Copyright (C) 2000 Julien Carme.
|
||||
# This file is distributed under the same license as the GNU infinity package.
|
||||
# Duilio Javier Protti <dprotti@fceia.unr.edu.ar>, 2004.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: GNU infinity 0.3.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2009-01-07 05:01-0500\n"
|
||||
"PO-Revision-Date: 2005-07-18 18:38-0300\n"
|
||||
"Last-Translator: Duilio Javier Protti <dprotti@fceia.unr.edu.ar>\n"
|
||||
"Language-Team: Spanish <es@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: src/main.c:58
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"Infinity commands:\n"
|
||||
"- Space:\tchange effect.\n"
|
||||
"- Tab:\t\ttoggle full-screen.\n"
|
||||
"- Up/Down:\tup/down main volume.\n"
|
||||
"- Left/Right:\treward/forward actual played song, if any.\n"
|
||||
"- z:\t\tprevious song.\n"
|
||||
"- x:\t\tplay.\n"
|
||||
"- c:\t\tpause.\n"
|
||||
"- v:\t\tstop.\n"
|
||||
"- b:\t\tnext song.\n"
|
||||
"- Enter:\tswitch to interactive mode.\n"
|
||||
"\t\t(works only if infinity was configured with --enable-debug option)\n"
|
||||
"- F11:\t\tscreenshot.\n"
|
||||
"- F12:\t\tchange palette."
|
||||
msgstr ""
|
||||
"Comandos de Infinity:\n"
|
||||
"- Espacio:\tcambiar efecto.\n"
|
||||
"- Tabulación:\tpasar a/volver de pantalla completa.\n"
|
||||
"- Arriba/Abajo:\tsubir/bajar el volumen principal de XMMS.\n"
|
||||
"- Izquierda/Derecha: retroceder/adelantar la canción actual, si se está "
|
||||
"reproduciendo alguna.\n"
|
||||
"- z:\t\tcanción anterior.\n"
|
||||
"- x:\t\treproducir.\n"
|
||||
"- c:\t\tpausar reproducción.\n"
|
||||
"- v:\t\tdetener reproducción.\n"
|
||||
"- b:\t\tpróxima canción.\n"
|
||||
"- Enter:\tpasar a modo interactivo.\n"
|
||||
"\t\t(esto funciona sólo si infinity fue configurado con la opción --enable-"
|
||||
"debug)\n"
|
||||
"- F11:\t\ttomar una captura de pantalla.\n"
|
||||
"- F12:\t\tcambiar paleta actual."
|
||||
|
||||
#: src/renderer.c:98
|
||||
msgid "We are already initializing"
|
||||
msgstr "El plugin ya fue inicializado"
|
||||
|
||||
#: src/renderer.c:156
|
||||
msgid "The plugin have not yet initialize"
|
||||
msgstr "El plugin aún no se ha inicializado"
|
||||
|
||||
#: src/display.c:70
|
||||
#, fuzzy, c-format
|
||||
msgid "Infinity: Couldn't initialize SDL: %s\n"
|
||||
msgstr "Infinity: No se puede inicializar SDL: %s\n"
|
||||
|
||||
#: src/display.c:73
|
||||
#, fuzzy, c-format
|
||||
msgid "Infinity: could not init video mode: %s\n"
|
||||
msgstr "Infinity: No se puede inicializar el modo de video: %s\n"
|
||||
|
||||
#: src/display.c:74
|
||||
#, fuzzy
|
||||
msgid "Infinity: SDL SetVideoMode() Ok"
|
||||
msgstr "Infinity: Inicio de modo de video SDL correcto"
|
||||
|
||||
#: src/display.c:278
|
||||
#, fuzzy, c-format
|
||||
msgid "Infinity: Couldn't set %dx%d video mode: %s\n"
|
||||
msgstr "Infinity: No se puede inicializar el modo de video: %s\n"
|
||||
|
||||
#: src/display.c:471
|
||||
#, c-format
|
||||
msgid "Cannot toggle to fullscreen mode: %s"
|
||||
msgstr "No se pudo cambiar a modo de pantalla completa: %s"
|
||||
|
||||
#: src/display.c:482
|
||||
#, c-format
|
||||
msgid "Error while saving file %s: %s"
|
||||
msgstr "Error al guardar el archivo %s: %s"
|
||||
|
||||
#: src/display.c:484
|
||||
msgid "saved"
|
||||
msgstr "guardado"
|
||||
|
||||
#: src/effects.c:24
|
||||
#, c-format
|
||||
msgid "Could not be opened file %s for saving effects\n"
|
||||
msgstr "No se puede abrir el archivo %s para guardar los efectos\n"
|
||||
|
||||
#: src/effects.c:44
|
||||
#, c-format
|
||||
msgid "Could not be opened file %s for loading effects\n"
|
||||
msgstr "No se puede abrir el archivo %s para cargar los efectos\n"
|
||||
|
||||
#: src/config-dialog.c:38
|
||||
msgid "Infinity Configuration"
|
||||
msgstr "Configuración de Infinity"
|
||||
|
||||
#: src/config-dialog.c:48
|
||||
msgid "Parameters"
|
||||
msgstr "Parámetros"
|
||||
|
||||
#: src/config-dialog.c:66
|
||||
msgid "Effect period:"
|
||||
msgstr "Período de efecto:"
|
||||
|
||||
#: src/config-dialog.c:77
|
||||
msgid "Palette period:"
|
||||
msgstr "Período de paleta:"
|
||||
|
||||
#: src/config-dialog.c:88
|
||||
msgid "Scale Factor"
|
||||
msgstr "Factor de Escala"
|
||||
|
||||
#: src/config-dialog.c:99
|
||||
msgid "Maximum Frames per Second:"
|
||||
msgstr "Número Máximo de Cuadros por Segundo"
|
||||
|
||||
#: src/config-dialog.c:110
|
||||
msgid "Show current play title"
|
||||
msgstr "Mostrar título de la reproducción actual"
|
||||
|
||||
#: src/config-dialog.c:121
|
||||
msgid ""
|
||||
"Check it if you want to see the current play title on the Infinity's title "
|
||||
"bar"
|
||||
msgstr ""
|
||||
"Márquela si quiere que el título de la reproducción actual aparezca en la "
|
||||
"barra de título de Infinity"
|
||||
|
||||
#: src/config-dialog.c:147
|
||||
msgid "Time to change between an effect and the next one, in milliseconds."
|
||||
msgstr ""
|
||||
"Tiempo que deberá transcurrir antes de cambiar de efecto, en milisegundos."
|
||||
|
||||
#: src/config-dialog.c:162
|
||||
msgid "Time to change between a color and the next one, in milliseconds."
|
||||
msgstr ""
|
||||
"Tiempo que deberá transcurrir antes de cambiar de color, en milisegundos."
|
||||
|
||||
#: src/config-dialog.c:177
|
||||
msgid ""
|
||||
"Change only if the system doesn't have enough power to show the screen at a "
|
||||
"reasonably speed/size relation."
|
||||
msgstr ""
|
||||
"Cambiar solo si el sistema no tiene suficiente potencia como para mostrar la "
|
||||
"pantalla a una relación velocidad/tamaño razonable."
|
||||
|
||||
#: src/config-dialog.c:190
|
||||
msgid "Ok"
|
||||
msgstr "Aceptar"
|
||||
|
||||
#: src/config-dialog.c:199
|
||||
msgid ""
|
||||
"For to toggle to fullscreen mode, select the Infinity plugin window, and "
|
||||
"press the Tab key. Pressing Tab again will return to window mode."
|
||||
msgstr ""
|
||||
"Para cambiar a modo de pantalla completa, seleccione la ventana de Infinity "
|
||||
"y presione la tecla de tabulación. Presionando esta tecla nuevamente "
|
||||
"retornará a modo ventana."
|
||||
|
||||
#: src/config-dialog.c:204
|
||||
msgid "Cancel"
|
||||
msgstr "Cancelar"
|
||||
|
||||
#: src/config-dialog.c:212
|
||||
msgid "Apply"
|
||||
msgstr "Aplicar"
|
||||
|
||||
#~ msgid "About Infinity"
|
||||
#~ msgstr "Acerca de Infinity"
|
||||
|
||||
#~ msgid "\n"
|
||||
#~ msgstr "\n"
|
||||
|
||||
#~ msgid "Close"
|
||||
#~ msgstr "Cerrar"
|
||||
|
||||
#~ msgid "Display"
|
||||
#~ msgstr "Pantalla"
|
||||
|
||||
#~ msgid "X Resolution"
|
||||
#~ msgstr "Resolución en X"
|
||||
|
||||
#~ msgid "Y Resolution"
|
||||
#~ msgstr "Resolución en Y"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "Infinity: Screen resized to %dx%d pixels^2"
|
||||
#~ msgstr "Pantalla redimensionada a %dx%d pixels²\n"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "Infinity: Closing plugin...\n"
|
||||
#~ msgstr "Configuración de Infinity"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "Infinity: There is not MMX support\n"
|
||||
#~ msgstr "Infinity: No hay soporte MMX"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "Infinity: Looking for Multimedia Extensions Support..."
|
||||
#~ msgstr "Infinity: Comprobando soporte de extensiones multimedia..."
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid " detected"
|
||||
#~ msgstr " detectado"
|
||||
|
||||
#~ msgid "Closing Infinity...\n"
|
||||
#~ msgstr "Cerrando Infinity...\n"
|
BIN
po/es_AR.gmo
BIN
po/es_AR.gmo
Binary file not shown.
221
po/es_AR.po
221
po/es_AR.po
|
@ -1,221 +0,0 @@
|
|||
# Spanish translations for GNU infinity package.
|
||||
# Traducciones al español para el paquete GNU infinity.
|
||||
# Copyright (C) 2000 Julien Carme.
|
||||
# This file is distributed under the same license as the GNU infinity package.
|
||||
# Duilio Javier Protti <dprotti@fceia.unr.edu.ar>, 2004.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: GNU infinity 0.3.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2009-01-07 05:01-0500\n"
|
||||
"PO-Revision-Date: 2005-07-18 18:38-0300\n"
|
||||
"Last-Translator: Duilio Javier Protti <dprotti@fceia.unr.edu.ar>\n"
|
||||
"Language-Team: Spanish <es@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: src/main.c:58
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"Infinity commands:\n"
|
||||
"- Space:\tchange effect.\n"
|
||||
"- Tab:\t\ttoggle full-screen.\n"
|
||||
"- Up/Down:\tup/down main volume.\n"
|
||||
"- Left/Right:\treward/forward actual played song, if any.\n"
|
||||
"- z:\t\tprevious song.\n"
|
||||
"- x:\t\tplay.\n"
|
||||
"- c:\t\tpause.\n"
|
||||
"- v:\t\tstop.\n"
|
||||
"- b:\t\tnext song.\n"
|
||||
"- Enter:\tswitch to interactive mode.\n"
|
||||
"\t\t(works only if infinity was configured with --enable-debug option)\n"
|
||||
"- F11:\t\tscreenshot.\n"
|
||||
"- F12:\t\tchange palette."
|
||||
msgstr ""
|
||||
"Comandos de Infinity:\n"
|
||||
"- Espacio:\tcambiar efecto.\n"
|
||||
"- Tabulación:\tpasar a/volver de pantalla completa.\n"
|
||||
"- Arriba/Abajo:\tsubir/bajar el volumen principal de XMMS.\n"
|
||||
"- Izquierda/Derecha: retroceder/adelantar la canción actual, si se está "
|
||||
"reproduciendo alguna.\n"
|
||||
"- z:\t\tcanción anterior.\n"
|
||||
"- x:\t\treproducir.\n"
|
||||
"- c:\t\tpausar reproducción.\n"
|
||||
"- v:\t\tdetener reproducción.\n"
|
||||
"- b:\t\tpróxima canción.\n"
|
||||
"- Enter:\tpasar a modo interactivo.\n"
|
||||
"\t\t(esto funciona sólo si infinity fue configurado con la opción --enable-"
|
||||
"debug)\n"
|
||||
"- F11:\t\ttomar una captura de pantalla.\n"
|
||||
"- F12:\t\tcambiar paleta actual."
|
||||
|
||||
#: src/renderer.c:98
|
||||
msgid "We are already initializing"
|
||||
msgstr "El plugin ya fue inicializado"
|
||||
|
||||
#: src/renderer.c:156
|
||||
msgid "The plugin have not yet initialize"
|
||||
msgstr "El plugin aún no se ha inicializado"
|
||||
|
||||
#: src/display.c:70
|
||||
#, fuzzy, c-format
|
||||
msgid "Infinity: Couldn't initialize SDL: %s\n"
|
||||
msgstr "Infinity: No se puede inicializar SDL: %s\n"
|
||||
|
||||
#: src/display.c:73
|
||||
#, fuzzy, c-format
|
||||
msgid "Infinity: could not init video mode: %s\n"
|
||||
msgstr "Infinity: No se puede inicializar el modo de video: %s\n"
|
||||
|
||||
#: src/display.c:74
|
||||
#, fuzzy
|
||||
msgid "Infinity: SDL SetVideoMode() Ok"
|
||||
msgstr "Infinity: Inicio de modo de video SDL correcto"
|
||||
|
||||
#: src/display.c:278
|
||||
#, fuzzy, c-format
|
||||
msgid "Infinity: Couldn't set %dx%d video mode: %s\n"
|
||||
msgstr "Infinity: No se puede inicializar el modo de video: %s\n"
|
||||
|
||||
#: src/display.c:471
|
||||
#, c-format
|
||||
msgid "Cannot toggle to fullscreen mode: %s"
|
||||
msgstr "No se pudo cambiar a modo de pantalla completa: %s"
|
||||
|
||||
#: src/display.c:482
|
||||
#, c-format
|
||||
msgid "Error while saving file %s: %s"
|
||||
msgstr "Error al guardar el archivo %s: %s"
|
||||
|
||||
#: src/display.c:484
|
||||
msgid "saved"
|
||||
msgstr "guardado"
|
||||
|
||||
#: src/effects.c:24
|
||||
#, c-format
|
||||
msgid "Could not be opened file %s for saving effects\n"
|
||||
msgstr "No se puede abrir el archivo %s para guardar los efectos\n"
|
||||
|
||||
#: src/effects.c:44
|
||||
#, c-format
|
||||
msgid "Could not be opened file %s for loading effects\n"
|
||||
msgstr "No se puede abrir el archivo %s para cargar los efectos\n"
|
||||
|
||||
#: src/config-dialog.c:38
|
||||
msgid "Infinity Configuration"
|
||||
msgstr "Configuración de Infinity"
|
||||
|
||||
#: src/config-dialog.c:48
|
||||
msgid "Parameters"
|
||||
msgstr "Parámetros"
|
||||
|
||||
#: src/config-dialog.c:66
|
||||
msgid "Effect period:"
|
||||
msgstr "Período de efecto:"
|
||||
|
||||
#: src/config-dialog.c:77
|
||||
msgid "Palette period:"
|
||||
msgstr "Período de paleta:"
|
||||
|
||||
#: src/config-dialog.c:88
|
||||
msgid "Scale Factor"
|
||||
msgstr "Factor de Escala"
|
||||
|
||||
#: src/config-dialog.c:99
|
||||
msgid "Maximum Frames per Second:"
|
||||
msgstr "Número Máximo de Cuadros por Segundo"
|
||||
|
||||
#: src/config-dialog.c:110
|
||||
msgid "Show current play title"
|
||||
msgstr "Mostrar título de la reproducción actual"
|
||||
|
||||
#: src/config-dialog.c:121
|
||||
msgid ""
|
||||
"Check it if you want to see the current play title on the Infinity's title "
|
||||
"bar"
|
||||
msgstr ""
|
||||
"Márquela si quiere que el título de la reproducción actual aparezca en la "
|
||||
"barra de título de Infinity"
|
||||
|
||||
#: src/config-dialog.c:147
|
||||
msgid "Time to change between an effect and the next one, in milliseconds."
|
||||
msgstr ""
|
||||
"Tiempo que deberá transcurrir antes de cambiar de efecto, en milisegundos."
|
||||
|
||||
#: src/config-dialog.c:162
|
||||
msgid "Time to change between a color and the next one, in milliseconds."
|
||||
msgstr ""
|
||||
"Tiempo que deberá transcurrir antes de cambiar de color, en milisegundos."
|
||||
|
||||
#: src/config-dialog.c:177
|
||||
msgid ""
|
||||
"Change only if the system doesn't have enough power to show the screen at a "
|
||||
"reasonably speed/size relation."
|
||||
msgstr ""
|
||||
"Cambiar solo si el sistema no tiene suficiente potencia como para mostrar la "
|
||||
"pantalla a una relación velocidad/tamaño razonable."
|
||||
|
||||
#: src/config-dialog.c:190
|
||||
msgid "Ok"
|
||||
msgstr "Aceptar"
|
||||
|
||||
#: src/config-dialog.c:199
|
||||
msgid ""
|
||||
"For to toggle to fullscreen mode, select the Infinity plugin window, and "
|
||||
"press the Tab key. Pressing Tab again will return to window mode."
|
||||
msgstr ""
|
||||
"Para cambiar a modo de pantalla completa, seleccione la ventana de Infinity "
|
||||
"y presione la tecla de tabulación. Presionando esta tecla nuevamente "
|
||||
"retornará a modo ventana."
|
||||
|
||||
#: src/config-dialog.c:204
|
||||
msgid "Cancel"
|
||||
msgstr "Cancelar"
|
||||
|
||||
#: src/config-dialog.c:212
|
||||
msgid "Apply"
|
||||
msgstr "Aplicar"
|
||||
|
||||
#~ msgid "About Infinity"
|
||||
#~ msgstr "Acerca de Infinity"
|
||||
|
||||
#~ msgid "\n"
|
||||
#~ msgstr "\n"
|
||||
|
||||
#~ msgid "Close"
|
||||
#~ msgstr "Cerrar"
|
||||
|
||||
#~ msgid "Display"
|
||||
#~ msgstr "Pantalla"
|
||||
|
||||
#~ msgid "X Resolution"
|
||||
#~ msgstr "Resolución en X"
|
||||
|
||||
#~ msgid "Y Resolution"
|
||||
#~ msgstr "Resolución en Y"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "Infinity: Screen resized to %dx%d pixels^2"
|
||||
#~ msgstr "Pantalla redimensionada a %dx%d pixels²\n"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "Infinity: Closing plugin...\n"
|
||||
#~ msgstr "Configuración de Infinity"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "Infinity: There is not MMX support\n"
|
||||
#~ msgstr "Infinity: No hay soporte MMX"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "Infinity: Looking for Multimedia Extensions Support..."
|
||||
#~ msgstr "Infinity: Comprobando soporte de extensiones multimedia..."
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid " detected"
|
||||
#~ msgstr " detectado"
|
||||
|
||||
#~ msgid "Closing Infinity...\n"
|
||||
#~ msgstr "Cerrando Infinity...\n"
|
171
po/infinity.pot
171
po/infinity.pot
|
@ -1,171 +0,0 @@
|
|||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# 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: \n"
|
||||
"POT-Creation-Date: 2011-11-25 17:44-0800\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"
|
||||
"Language: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=CHARSET\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: src/main.c:58
|
||||
msgid ""
|
||||
"Infinity commands:\n"
|
||||
"- Space:\tchange effect.\n"
|
||||
"- Tab:\t\ttoggle full-screen.\n"
|
||||
"- Up/Down:\tup/down main volume.\n"
|
||||
"- Left/Right:\treward/forward actual played song, if any.\n"
|
||||
"- z:\t\tprevious song.\n"
|
||||
"- x:\t\tplay.\n"
|
||||
"- c:\t\tpause.\n"
|
||||
"- v:\t\tstop.\n"
|
||||
"- b:\t\tnext song.\n"
|
||||
"- Enter:\tswitch to interactive mode.\n"
|
||||
"\t\t(works only if infinity was configured with --enable-debug option)\n"
|
||||
"- F11:\t\tscreenshot.\n"
|
||||
"- F12:\t\tchange palette."
|
||||
msgstr ""
|
||||
|
||||
#: src/renderer.c:103
|
||||
msgid "We are already initializing"
|
||||
msgstr ""
|
||||
|
||||
#: src/renderer.c:166
|
||||
msgid "The plugin have not yet initialize"
|
||||
msgstr ""
|
||||
|
||||
#: src/infconfig.c:292
|
||||
msgid "Infinity plugin .ini file not found"
|
||||
msgstr ""
|
||||
|
||||
#: src/infconfig.c:294
|
||||
#, c-format
|
||||
msgid "Creating Infinity plugin config directory '%s'"
|
||||
msgstr ""
|
||||
|
||||
#: src/infconfig.c:297
|
||||
#, c-format
|
||||
msgid "Cannot save preferences: unable to create directory '%s'"
|
||||
msgstr ""
|
||||
|
||||
#: src/infconfig.c:319
|
||||
msgid "Error saving preferences"
|
||||
msgstr ""
|
||||
|
||||
#: src/display.c:70
|
||||
#, c-format
|
||||
msgid "Infinity: Couldn't initialize SDL: %s\n"
|
||||
msgstr ""
|
||||
|
||||
#: src/display.c:73
|
||||
#, c-format
|
||||
msgid "Infinity: could not init video mode: %s\n"
|
||||
msgstr ""
|
||||
|
||||
#: src/display.c:74
|
||||
msgid "Infinity: SDL SetVideoMode() Ok"
|
||||
msgstr ""
|
||||
|
||||
#: src/display.c:278
|
||||
#, c-format
|
||||
msgid "Infinity: Couldn't set %dx%d video mode: %s\n"
|
||||
msgstr ""
|
||||
|
||||
#: src/display.c:471
|
||||
#, c-format
|
||||
msgid "Cannot toggle to fullscreen mode: %s"
|
||||
msgstr ""
|
||||
|
||||
#: src/display.c:482
|
||||
#, c-format
|
||||
msgid "Error while saving file %s: %s"
|
||||
msgstr ""
|
||||
|
||||
#: src/display.c:484
|
||||
msgid "saved"
|
||||
msgstr ""
|
||||
|
||||
#: src/effects.c:24
|
||||
#, c-format
|
||||
msgid "Could not be opened file %s for saving effects\n"
|
||||
msgstr ""
|
||||
|
||||
#: src/effects.c:44
|
||||
#, c-format
|
||||
msgid "Could not be opened file %s for loading effects\n"
|
||||
msgstr ""
|
||||
|
||||
#: src/config-dialog.c:38
|
||||
msgid "Infinity Configuration"
|
||||
msgstr ""
|
||||
|
||||
#: src/config-dialog.c:49
|
||||
msgid "Parameters"
|
||||
msgstr ""
|
||||
|
||||
#: src/config-dialog.c:67
|
||||
msgid "Effect period:"
|
||||
msgstr ""
|
||||
|
||||
#: src/config-dialog.c:78
|
||||
msgid "Palette period:"
|
||||
msgstr ""
|
||||
|
||||
#: src/config-dialog.c:89
|
||||
msgid "Scale Factor"
|
||||
msgstr ""
|
||||
|
||||
#: src/config-dialog.c:100
|
||||
msgid "Maximum Frames per Second:"
|
||||
msgstr ""
|
||||
|
||||
#: src/config-dialog.c:111
|
||||
msgid "Show current play title"
|
||||
msgstr ""
|
||||
|
||||
#: src/config-dialog.c:122
|
||||
msgid ""
|
||||
"Check it if you want to see the current play title on the Infinity's title "
|
||||
"bar"
|
||||
msgstr ""
|
||||
|
||||
#: src/config-dialog.c:149
|
||||
msgid "Time to change between an effect and the next one, in milliseconds."
|
||||
msgstr ""
|
||||
|
||||
#: src/config-dialog.c:164
|
||||
msgid "Time to change between a color and the next one, in milliseconds."
|
||||
msgstr ""
|
||||
|
||||
#: src/config-dialog.c:179
|
||||
msgid ""
|
||||
"Change only if the system doesn't have enough power to show the screen at a "
|
||||
"reasonably speed/size relation."
|
||||
msgstr ""
|
||||
|
||||
#: src/config-dialog.c:192
|
||||
msgid "Ok"
|
||||
msgstr ""
|
||||
|
||||
#: src/config-dialog.c:201
|
||||
msgid ""
|
||||
"For to toggle to fullscreen mode, select the Infinity plugin window, and "
|
||||
"press the Tab key. Pressing Tab again will return to window mode."
|
||||
msgstr ""
|
||||
|
||||
#: src/config-dialog.c:206
|
||||
msgid "Cancel"
|
||||
msgstr ""
|
||||
|
||||
#: src/config-dialog.c:214
|
||||
msgid "Apply"
|
||||
msgstr ""
|
|
@ -27,7 +27,7 @@ libinfinite_la_SOURCES = \
|
|||
config-dialog.c config-dialog.h\
|
||||
effects.c effects.h\
|
||||
cputest.c cputest.h\
|
||||
mmx.h gettext.h types.h
|
||||
mmx.h types.h
|
||||
|
||||
INCLUDES = -I$(top_srcdir)/src -I$(top_builddir)
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#include "config.h"
|
||||
#include "config-dialog.h"
|
||||
#include "infconfig.h"
|
||||
#include "gettext.h"
|
||||
|
||||
|
||||
ConfigDialog *config_dialog_new(void)
|
||||
|
@ -28,15 +27,9 @@ ConfigDialog *config_dialog_new(void)
|
|||
GtkWidget *button_cancel;
|
||||
GtkWidget *button_apply;
|
||||
|
||||
#if ENABLE_NLS
|
||||
setlocale(LC_MESSAGES, "");
|
||||
bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR);
|
||||
textdomain(GETTEXT_PACKAGE);
|
||||
#endif
|
||||
|
||||
window_main = gtk_window_new(GTK_WINDOW_TOPLEVEL);
|
||||
gtk_object_set_data(GTK_OBJECT(window_main), "window_main", window_main);
|
||||
gtk_window_set_title(GTK_WINDOW(window_main), _("Infinity Configuration"));
|
||||
gtk_window_set_title(GTK_WINDOW(window_main), "Infinity Configuration");
|
||||
gtk_window_set_type_hint(GTK_WINDOW(window_main), GDK_WINDOW_TYPE_HINT_DIALOG);
|
||||
|
||||
vbox_main = gtk_vbox_new(FALSE, 0);
|
||||
|
@ -47,7 +40,7 @@ ConfigDialog *config_dialog_new(void)
|
|||
gtk_container_add(GTK_CONTAINER(window_main), vbox_main);
|
||||
gtk_container_set_border_width(GTK_CONTAINER(vbox_main), 2);
|
||||
|
||||
frame_general = gtk_frame_new(_("Parameters"));
|
||||
frame_general = gtk_frame_new("Parameters");
|
||||
gtk_widget_ref(frame_general);
|
||||
gtk_object_set_data_full(GTK_OBJECT(window_main), "frame_general", frame_general,
|
||||
(GtkDestroyNotify)gtk_widget_unref);
|
||||
|
@ -65,7 +58,7 @@ ConfigDialog *config_dialog_new(void)
|
|||
gtk_table_set_row_spacings(GTK_TABLE(table_general), 2);
|
||||
gtk_table_set_col_spacings(GTK_TABLE(table_general), 2);
|
||||
|
||||
label_effect = gtk_label_new(_("Effect period:"));
|
||||
label_effect = gtk_label_new("Effect period:");
|
||||
gtk_widget_ref(label_effect);
|
||||
gtk_object_set_data_full(GTK_OBJECT(window_main), "label_effect", label_effect,
|
||||
(GtkDestroyNotify)gtk_widget_unref);
|
||||
|
@ -76,7 +69,7 @@ ConfigDialog *config_dialog_new(void)
|
|||
gtk_misc_set_alignment(GTK_MISC(label_effect), 0, 0.5);
|
||||
gtk_misc_set_padding(GTK_MISC(label_effect), 1, 0);
|
||||
|
||||
label_palette = gtk_label_new(_("Palette period:"));
|
||||
label_palette = gtk_label_new("Palette period:");
|
||||
gtk_widget_ref(label_palette);
|
||||
gtk_object_set_data_full(GTK_OBJECT(window_main), "label_palette", label_palette,
|
||||
(GtkDestroyNotify)gtk_widget_unref);
|
||||
|
@ -87,7 +80,7 @@ ConfigDialog *config_dialog_new(void)
|
|||
gtk_misc_set_alignment(GTK_MISC(label_palette), 0, 0.5);
|
||||
gtk_misc_set_padding(GTK_MISC(label_palette), 1, 0);
|
||||
|
||||
label_scale_factor = gtk_label_new(_("Scale Factor"));
|
||||
label_scale_factor = gtk_label_new("Scale Factor");
|
||||
gtk_widget_ref(label_scale_factor);
|
||||
gtk_object_set_data_full(GTK_OBJECT(window_main), "label_scale_factor", label_scale_factor,
|
||||
(GtkDestroyNotify)gtk_widget_unref);
|
||||
|
@ -98,7 +91,7 @@ ConfigDialog *config_dialog_new(void)
|
|||
gtk_misc_set_alignment(GTK_MISC(label_scale_factor), 0, 0.5);
|
||||
gtk_misc_set_padding(GTK_MISC(label_scale_factor), 1, 0);
|
||||
|
||||
label_fps = gtk_label_new(_("Maximum Frames per Second:"));
|
||||
label_fps = gtk_label_new("Maximum Frames per Second:");
|
||||
gtk_widget_ref(label_fps);
|
||||
gtk_object_set_data_full(GTK_OBJECT(window_main), "label_fps", label_fps,
|
||||
(GtkDestroyNotify)gtk_widget_unref);
|
||||
|
@ -109,7 +102,7 @@ ConfigDialog *config_dialog_new(void)
|
|||
gtk_misc_set_alignment(GTK_MISC(label_fps), 0, 0.5);
|
||||
gtk_misc_set_padding(GTK_MISC(label_fps), 1, 0);
|
||||
|
||||
checkbutton_show_title = gtk_check_button_new_with_label(_("Show current play title"));
|
||||
checkbutton_show_title = gtk_check_button_new_with_label("Show current play title");
|
||||
gtk_widget_ref(checkbutton_show_title);
|
||||
gtk_object_set_data_full(GTK_OBJECT(window_main), "checkbutton_show_title", checkbutton_show_title,
|
||||
(GtkDestroyNotify)gtk_widget_unref);
|
||||
|
@ -120,8 +113,8 @@ ConfigDialog *config_dialog_new(void)
|
|||
|
||||
tooltips = gtk_tooltips_new();
|
||||
gtk_tooltips_set_tip(tooltips, checkbutton_show_title,
|
||||
_("Check it if you want to see the current play "
|
||||
"title on the Infinity's title bar"), NULL);
|
||||
"Check it if you want to see the current play "
|
||||
"title on the Infinity's title bar", NULL);
|
||||
|
||||
//spinbutton_fps_adj = gtk_adjustment_new (30, 5, 150, 1, 10, 0);
|
||||
spinbutton_fps_adj = gtk_adjustment_new(config_get_fps(), 5, 150, 1, 10, 0);
|
||||
|
@ -147,8 +140,8 @@ ConfigDialog *config_dialog_new(void)
|
|||
gtk_scale_set_digits(GTK_SCALE(hscale_effect), 0);
|
||||
|
||||
gtk_tooltips_set_tip(tooltips, hscale_effect,
|
||||
_("Time to change between an effect and the "
|
||||
"next one, in milliseconds."), NULL);
|
||||
"Time to change between an effect and the "
|
||||
"next one, in milliseconds.", NULL);
|
||||
|
||||
hscale_palette = gtk_hscale_new(GTK_ADJUSTMENT(gtk_adjustment_new(100, 50, 400, 0, 0, 0)));
|
||||
gtk_widget_ref(hscale_palette);
|
||||
|
@ -162,8 +155,8 @@ ConfigDialog *config_dialog_new(void)
|
|||
gtk_scale_set_digits(GTK_SCALE(hscale_palette), 0);
|
||||
|
||||
gtk_tooltips_set_tip(tooltips, hscale_palette,
|
||||
_("Time to change between a color and the "
|
||||
"next one, in milliseconds."), NULL);
|
||||
"Time to change between a color and the "
|
||||
"next one, in milliseconds.", NULL);
|
||||
|
||||
hscale_scale_factor = gtk_hscale_new(GTK_ADJUSTMENT(gtk_adjustment_new(1, 1, 2, 0, 0, 0)));
|
||||
gtk_widget_ref(hscale_scale_factor);
|
||||
|
@ -177,9 +170,9 @@ ConfigDialog *config_dialog_new(void)
|
|||
gtk_scale_set_digits(GTK_SCALE(hscale_scale_factor), 0);
|
||||
|
||||
gtk_tooltips_set_tip(tooltips, hscale_scale_factor,
|
||||
_("Change only if the system doesn't have "
|
||||
"Change only if the system doesn't have "
|
||||
"enough power to show the screen at "
|
||||
"a reasonably speed/size relation."), NULL);
|
||||
"a reasonably speed/size relation.", NULL);
|
||||
|
||||
hbuttonbox_main = gtk_hbutton_box_new();
|
||||
gtk_widget_ref(hbuttonbox_main);
|
||||
|
@ -190,7 +183,7 @@ ConfigDialog *config_dialog_new(void)
|
|||
gtk_container_set_border_width(GTK_CONTAINER(hbuttonbox_main), 2);
|
||||
gtk_button_box_set_layout(GTK_BUTTON_BOX(hbuttonbox_main), GTK_BUTTONBOX_END);
|
||||
|
||||
button_ok = gtk_button_new_with_label(_("Ok"));
|
||||
button_ok = gtk_button_new_with_label("Ok");
|
||||
gtk_widget_ref(button_ok);
|
||||
gtk_object_set_data_full(GTK_OBJECT(window_main), "button_ok", button_ok,
|
||||
(GtkDestroyNotify)gtk_widget_unref);
|
||||
|
@ -199,12 +192,12 @@ ConfigDialog *config_dialog_new(void)
|
|||
GTK_WIDGET_SET_FLAGS(button_ok, GTK_CAN_DEFAULT);
|
||||
|
||||
gtk_tooltips_set_tip(tooltips, button_ok,
|
||||
_("For to toggle to fullscreen mode, select "
|
||||
"For to toggle to fullscreen mode, select "
|
||||
"the Infinity plugin window, and press "
|
||||
"the Tab key. Pressing Tab again will return "
|
||||
"to window mode."), NULL);
|
||||
"to window mode.", NULL);
|
||||
|
||||
button_cancel = gtk_button_new_with_label(_("Cancel"));
|
||||
button_cancel = gtk_button_new_with_label("Cancel");
|
||||
gtk_widget_ref(button_cancel);
|
||||
gtk_object_set_data_full(GTK_OBJECT(window_main), "button_cancel", button_cancel,
|
||||
(GtkDestroyNotify)gtk_widget_unref);
|
||||
|
@ -212,7 +205,7 @@ ConfigDialog *config_dialog_new(void)
|
|||
gtk_container_add(GTK_CONTAINER(hbuttonbox_main), button_cancel);
|
||||
GTK_WIDGET_SET_FLAGS(button_cancel, GTK_CAN_DEFAULT);
|
||||
|
||||
button_apply = gtk_button_new_with_label(_("Apply"));
|
||||
button_apply = gtk_button_new_with_label("Apply");
|
||||
gtk_widget_ref(button_apply);
|
||||
gtk_object_set_data_full(GTK_OBJECT(window_main), "button_apply", button_apply,
|
||||
(GtkDestroyNotify)gtk_widget_unref);
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#include "config.h"
|
||||
#include "cputest.h"
|
||||
#include "gettext.h"
|
||||
#include "glib.h"
|
||||
|
||||
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
#include "config.h"
|
||||
#include "display.h"
|
||||
#include "infconfig.h"
|
||||
#include "gettext.h"
|
||||
|
||||
#define wrap(a) (a < 0 ? 0 : (a > 255 ? 255 : a))
|
||||
#define assign_max(p, a) (*p <= a ? *p = a : 0)
|
||||
|
@ -60,11 +59,11 @@ static byte *surface1;
|
|||
static void init_sdl(gint32 width, gint32 height, gint32 scale)
|
||||
{
|
||||
if (SDL_Init((Uint32)(SDL_INIT_VIDEO | SDL_INIT_TIMER)) < 0)
|
||||
g_error(_("Infinity: Couldn't initialize SDL: %s\n"), SDL_GetError());
|
||||
g_error("Infinity: Couldn't initialize SDL: %s\n", SDL_GetError());
|
||||
screen = SDL_SetVideoMode(width * scale, height * scale, 16, VIDEO_FLAGS);
|
||||
if (screen == NULL)
|
||||
g_error(_("Infinity: could not init video mode: %s\n"), SDL_GetError());
|
||||
g_message(_("Infinity: SDL SetVideoMode() Ok"));
|
||||
g_error("Infinity: could not init video mode: %s\n", SDL_GetError());
|
||||
g_message("Infinity: SDL SetVideoMode() Ok");
|
||||
(void)SDL_ShowCursor(0);
|
||||
(void)SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL);
|
||||
}
|
||||
|
@ -253,7 +252,7 @@ void display_resize(gint32 width, gint32 height)
|
|||
scr_par.height * scr_par.scale,
|
||||
16, VIDEO_FLAGS);
|
||||
if (screen == NULL)
|
||||
g_error(_("Infinity: Couldn't set %dx%d video mode: %s\n"),
|
||||
g_error("Infinity: Couldn't set %dx%d video mode: %s\n",
|
||||
scr_par.width * scr_par.scale, scr_par.height * scr_par.scale,
|
||||
SDL_GetError());
|
||||
compute_vector_field_destroy(vector_field);
|
||||
|
@ -445,7 +444,7 @@ void curve(t_effect *current_effect)
|
|||
void display_toggle_fullscreen(void)
|
||||
{
|
||||
if (SDL_WM_ToggleFullScreen(screen) < 0)
|
||||
g_warning(_("Cannot toggle to fullscreen mode: %s"), SDL_GetError());
|
||||
g_warning("Cannot toggle to fullscreen mode: %s", SDL_GetError());
|
||||
}
|
||||
|
||||
void display_save_screen(void)
|
||||
|
@ -455,9 +454,9 @@ void display_save_screen(void)
|
|||
(void)snprintf(name, 255, "screenshot%i%s", rand() % 1000000, ".bmp");
|
||||
name[255] = '\0';
|
||||
if (SDL_SaveBMP(screen, name) < 0)
|
||||
g_warning(_("Error while saving file %s: %s"), name, SDL_GetError());
|
||||
g_warning("Error while saving file %s: %s", name, SDL_GetError());
|
||||
else
|
||||
g_message(_("saved"));
|
||||
g_message("saved");
|
||||
}
|
||||
|
||||
inline void display_save_effect(t_effect *effect)
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
#include <glib.h>
|
||||
|
||||
#include <effects.h>
|
||||
#include <gettext.h>
|
||||
#include <assert.h>
|
||||
|
||||
#define EFFECTS_FILE (DATADIR "/infinite_states")
|
||||
|
@ -20,7 +19,7 @@ void effects_save_effect(t_effect *effect)
|
|||
g_assert(effect);
|
||||
f = fopen (EFFECTS_FILE,"a");
|
||||
if (f == NULL) {
|
||||
g_warning (_("Cannot open file %s for saving effects\n"),
|
||||
g_warning ("Cannot open file %s for saving effects\n",
|
||||
EFFECTS_FILE);
|
||||
return;
|
||||
}
|
||||
|
@ -37,7 +36,7 @@ void effects_load_effects(void)
|
|||
|
||||
f = fopen (EFFECTS_FILE,"r");
|
||||
if (f == NULL) {
|
||||
g_warning (_("Cannot open file %s for loading effects\n"),
|
||||
g_warning ("Cannot open file %s for loading effects\n",
|
||||
EFFECTS_FILE);
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -1,76 +0,0 @@
|
|||
/* Convenience header for conditional use of GNU <libintl.h>.
|
||||
* Copyright (C) 1995-1998, 2000-2002 Free Software Foundation, Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU Library General Public License as published
|
||||
* by the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
||||
* USA. */
|
||||
|
||||
#ifndef _LIBGETTEXT_H
|
||||
#define _LIBGETTEXT_H 1
|
||||
|
||||
/* NLS can be disabled through the configure --disable-nls option. */
|
||||
#if ENABLE_NLS
|
||||
|
||||
/* Get declarations of GNU message catalog functions. */
|
||||
# include <libintl.h>
|
||||
|
||||
/* Solaris /usr/include/locale.h includes /usr/include/libintl.h, which
|
||||
* chokes if dcgettext is defined as a macro. So include it now, to make
|
||||
* later inclusions of <locale.h> a NOP. We don't include <libintl.h>
|
||||
* as well because people using "gettext.h" will not include <libintl.h>,
|
||||
* and also including <libintl.h> would fail on SunOS 4, whereas <locale.h>
|
||||
* is OK. */
|
||||
/*#if defined(__sun) || HAVE_LOCALE_H
|
||||
# include <locale.h>
|
||||
#endif*/
|
||||
#if HAVE_LOCALE_H
|
||||
# include <locale.h>
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
||||
/* Disabled NLS.
|
||||
* The casts to 'const char *' serve the purpose of producing warnings
|
||||
* for invalid uses of the value returned from these functions.
|
||||
* On pre-ANSI systems without 'const', the config.h file is supposed to
|
||||
* contain "#define const". */
|
||||
# define gettext(Msgid) ((const char *)(Msgid))
|
||||
# define dgettext(Domainname, Msgid) ((const char *)(Msgid))
|
||||
# define dcgettext(Domainname, Msgid, Category) ((const char *)(Msgid))
|
||||
# define ngettext(Msgid1, Msgid2, N) \
|
||||
((N) == 1 ? (const char *)(Msgid1) : (const char *)(Msgid2))
|
||||
# define dngettext(Domainname, Msgid1, Msgid2, N) \
|
||||
((N) == 1 ? (const char *)(Msgid1) : (const char *)(Msgid2))
|
||||
# define dcngettext(Domainname, Msgid1, Msgid2, N, Category) \
|
||||
((N) == 1 ? (const char *)(Msgid1) : (const char *)(Msgid2))
|
||||
# define textdomain(Domainname) ((const char *)(Domainname))
|
||||
# define bindtextdomain(Domainname, Dirname) ((const char *)(Dirname))
|
||||
# define bind_textdomain_codeset(Domainname, Codeset) ((const char *)(Codeset))
|
||||
|
||||
#endif
|
||||
|
||||
/* A pseudo function call that serves as a marker for the automated
|
||||
* extraction of messages, but does not call gettext(). The run-time
|
||||
* translation is done at a different place in the code.
|
||||
* The argument, String, should be a literal string. Concatenated strings
|
||||
* and other string expressions won't work.
|
||||
* The macro's expansion is not parenthesized, so that it is suitable as
|
||||
* initializer for static 'char[]' or 'const char[]' variables. */
|
||||
#define gettext_noop(String) String
|
||||
|
||||
#ifndef _
|
||||
#define _(String) (gettext(String))
|
||||
#endif
|
||||
|
||||
#endif /* _LIBGETTEXT_H */
|
|
@ -5,7 +5,6 @@
|
|||
|
||||
#include "config.h"
|
||||
#include "infconfig.h"
|
||||
#include "gettext.h"
|
||||
#include "config-dialog.h"
|
||||
|
||||
#define DEFAULT_WIDTH 512
|
||||
|
@ -276,11 +275,11 @@ void config_plugin_save_prefs(void)
|
|||
config_file_path = g_strconcat(g_get_home_dir(), INFINITY_CONFIG_FILE, NULL);
|
||||
ok = g_key_file_load_from_file(kf, config_file_path, G_KEY_FILE_KEEP_COMMENTS, NULL);
|
||||
if (!ok) {
|
||||
g_message(_("Infinity plugin .ini file not found"));
|
||||
g_message("Infinity plugin .ini file not found");
|
||||
if (!g_file_test(config_dir_path, G_FILE_TEST_EXISTS)) {
|
||||
g_message(_("Creating Infinity plugin config directory '%s'"), INFINITY_CONFIG_DIR);
|
||||
g_message("Creating Infinity plugin config directory '%s'", INFINITY_CONFIG_DIR);
|
||||
if (g_mkdir_with_parents(config_dir_path, S_IRWXU) != 0) {
|
||||
g_warning(_("Cannot save preferences: unable to create directory '%s'"), config_dir_path);
|
||||
g_warning("Cannot save preferences: unable to create directory '%s'", config_dir_path);
|
||||
g_free(config_file_path);
|
||||
g_free(config_dir_path);
|
||||
g_key_file_free(kf);
|
||||
|
@ -301,7 +300,7 @@ void config_plugin_save_prefs(void)
|
|||
preferences = g_key_file_to_data(kf, &length, NULL);
|
||||
ok = g_file_set_contents(config_file_path, preferences, length, NULL);
|
||||
if (!ok)
|
||||
g_warning(_("Error saving preferences"));
|
||||
g_warning("Error saving preferences");
|
||||
g_free(preferences);
|
||||
g_free(config_file_path);
|
||||
g_free(config_dir_path);
|
||||
|
@ -334,12 +333,6 @@ gboolean config_is_initialized(void)
|
|||
|
||||
void config_plugin_config_window(void)
|
||||
{
|
||||
#if ENABLE_NLS
|
||||
setlocale(LC_MESSAGES, "");
|
||||
bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR);
|
||||
textdomain(GETTEXT_PACKAGE);
|
||||
#endif
|
||||
|
||||
if (configure_dialog) {
|
||||
set_config_values(configure_dialog);
|
||||
config_dialog_show(configure_dialog);
|
||||
|
|
19
src/main.cc
19
src/main.cc
|
@ -28,15 +28,14 @@
|
|||
|
||||
extern "C" {
|
||||
#include "config.h"
|
||||
#include "gettext.h"
|
||||
#include "infconfig.h"
|
||||
#include "renderer.h"
|
||||
}
|
||||
|
||||
static const char about_text[] =
|
||||
N_("Infinity Visualization Plugin for Audacious\n\n"
|
||||
"Version " PACKAGE_VERSION "\n\n"
|
||||
"https://github.com/dprotti/infinity-plugin");
|
||||
"Infinity Visualization Plugin for Audacious\n\n"
|
||||
"Version " PACKAGE_VERSION "\n\n"
|
||||
"https://github.com/dprotti/infinity-plugin";
|
||||
|
||||
static const PreferencesWidget prefs_widgets[] = {
|
||||
WidgetLabel ("<b>Coming soon...</b>")
|
||||
|
@ -48,7 +47,7 @@ class InfinityPlugin : VisPlugin {
|
|||
|
||||
public:
|
||||
static constexpr PluginInfo info = {
|
||||
N_("Infinity"),
|
||||
"Infinity",
|
||||
PACKAGE,
|
||||
about_text,
|
||||
& preferences
|
||||
|
@ -70,13 +69,7 @@ EXPORT InfinityPlugin aud_plugin_instance;
|
|||
|
||||
bool InfinityPlugin::init(void)
|
||||
{
|
||||
#if ENABLE_NLS
|
||||
(void)setlocale(LC_MESSAGES, "");
|
||||
(void)bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR);
|
||||
(void)textdomain(GETTEXT_PACKAGE);
|
||||
#endif
|
||||
|
||||
g_message(_("Infinity commands:\n"
|
||||
g_message("Infinity commands:\n"
|
||||
"- Space:\tchange effect.\n"
|
||||
"- Tab:\t\ttoggle full-screen.\n"
|
||||
"- Up/Down:\tup/down main volume.\n"
|
||||
|
@ -88,7 +81,7 @@ bool InfinityPlugin::init(void)
|
|||
"- b:\t\tnext song.\n"
|
||||
"- Enter:\tswitch to interactive mode.\n\t\t(works only if infinity was configured with --enable-debug option)\n"
|
||||
"- F11:\t\tscreenshot.\n"
|
||||
"- F12:\t\tchange palette."));
|
||||
"- F12:\t\tchange palette.");
|
||||
config_plugin_load_prefs();
|
||||
renderer_init();
|
||||
return TRUE;
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
|
||||
extern "C" {
|
||||
#include "config.h"
|
||||
#include "gettext.h"
|
||||
#include "renderer.h"
|
||||
#include "infconfig.h"
|
||||
#include "effects.h"
|
||||
|
@ -97,7 +96,7 @@ void renderer_init(void)
|
|||
gint32 _try;
|
||||
|
||||
if (initializing) {
|
||||
g_warning(_("We are already initializing"));
|
||||
g_warning("We are already initializing");
|
||||
_try = 0;
|
||||
while (initializing) {
|
||||
g_usleep(1000000);
|
||||
|
@ -159,7 +158,7 @@ void renderer_finish(void)
|
|||
gint32 _try;
|
||||
|
||||
if (initializing) {
|
||||
g_warning(_("The plugin have not yet initialized"));
|
||||
g_warning("The plugin have not yet initialized");
|
||||
_try = 0;
|
||||
while (initializing) {
|
||||
g_usleep(1000000);
|
||||
|
@ -328,12 +327,12 @@ static void check_events()
|
|||
break;
|
||||
case SDLK_UP:
|
||||
volume = aud_drct_get_volume_main();
|
||||
g_message(_("Increasing volume to %d"), volume + 5);
|
||||
g_message("Increasing volume to %d", volume + 5);
|
||||
aud_drct_set_volume_main(volume + 5);
|
||||
break;
|
||||
case SDLK_DOWN:
|
||||
volume = aud_drct_get_volume_main();
|
||||
g_message(_("Decreasing volume to %d"), volume - 5);
|
||||
g_message("Decreasing volume to %d", volume - 5);
|
||||
aud_drct_set_volume_main(volume - 5);
|
||||
break;
|
||||
case SDLK_TAB:
|
||||
|
|
Loading…
Reference in New Issue