Started i18n stuff

master
Yevgen Muntyan 2006-08-03 00:39:06 -05:00
parent e65499f0c4
commit bff32f911c
9 changed files with 80 additions and 7 deletions

View File

@ -49,3 +49,5 @@ moo/moo-version\.h$
moo/moo\.pc$
moo/mooterm/termhelper_res\.rc$
^\.moo\.mprj\.session$
^po/missing$
^po/.*\.pot$

View File

@ -5,21 +5,28 @@ EXTRA_DIST = \
mingw-configure \
cygwin-configure \
makewin \
THANKS
THANKS \
intltool-extract.in \
intltool-merge.in \
intltool-update.in \
medit.desktop.in
DIST_SUBDIRS = m4 moo tests
SUBDIRS = moo tests
DIST_SUBDIRS = m4 moo tests po
SUBDIRS = moo tests po
ACLOCAL_AMFLAGS = -I $(top_srcdir)/m4
@INTLTOOL_DESKTOP_RULE@
DESKTOP_IN_FILES = medit.desktop.in
DESKTOP_FILES =$(DESKTOP_IN_FILES:.desktop.in=.desktop)
desktopdir = $(datadir)/applications
desktop_DATA = medit.desktop
desktop_DATA = $(DESKTOP_FILES)
appicondir = $(datadir)/pixmaps
appicon_DATA = moo/mooutils/pixmaps/medit.png
hicolor = $(datadir)/icons/hicolor
iconthemedir = $(hicolor)/48x48/apps
icontheme_DATA = moo/mooutils/pixmaps/medit.png
EXTRA_DIST += $(desktop_DATA)
# update_icon_cache = gtk-update-icon-cache -f -t $(hicolor)
#

View File

@ -25,6 +25,11 @@ AUTOCONF=${AUTOCONF:-autoconf}
echo $LIBTOOLIZE --automake --copy
$LIBTOOLIZE --automake --copy || exit $?
echo glib-gettextize --force
glib-gettextize --force
echo intltoolize --force --automake
intltoolize --force --automake
echo $ACLOCAL $ACLOCAL_FLAGS
$ACLOCAL $ACLOCAL_FLAGS || exit $?

View File

@ -14,6 +14,13 @@ AC_CANONICAL_HOST
AC_CONFIG_HEADERS(config.h)
MOO_DEFINE_VERSIONS
AC_PROG_INTLTOOL([0.29])
GETTEXT_PACKAGE=moo
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Name of the gettext package.])
ALL_LINGUAS=""
AM_GLIB_GNU_GETTEXT
AM_CONDITIONAL(MOO_INSTALL_LIB, false)
AC_DISABLE_SHARED
@ -88,6 +95,7 @@ moo/mooutils/pcre/Makefile
moo/mooutils/xdgmime/Makefile
m4/Makefile
tests/Makefile
po/Makefile.in
moo/mooterm/termhelper_res.rc
moo/moo.pc
moo/moo-version.h

View File

@ -1,7 +1,7 @@
[Desktop Entry]
Encoding=UTF-8
Name=medit
Comment=Text editor
_Name=medit
_Comment=Text editor
Exec=medit %F
Terminal=false
Type=Application

View File

@ -87,6 +87,7 @@ mooutils_sources = \
mooglade.c \
moohistoryentry.c \
moohistorylist.c \
mooi18n.h \
moolinklabel.c \
moologwindow-glade.h \
moomarkup.c \

20
moo/mooutils/mooi18n.h Normal file
View File

@ -0,0 +1,20 @@
/*
* mooi18n.h
*
* Copyright (C) 2004-2006 by Yevgen Muntyan <muntyan@math.tamu.edu>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* See COPYING file that comes with this distribution.
*/
#ifndef __MOO_I18N_H__
#define __MOO_I18N_H__
#include <config.h>
#include <glib/gi18n-lib.h>
#endif /* __MOO_I18N_H__ */

27
po/POTFILES.in Normal file
View File

@ -0,0 +1,27 @@
[encoding: UTF-8]
medit.desktop.in
moo/mooapp/glade/mooappabout.glade
moo/mooedit/glade/mooeditprefs.glade
moo/mooedit/glade/mooeditprogress.glade
moo/mooedit/glade/mooeditsavemult.glade
moo/mooedit/glade/moopluginprefs.glade
moo/mooedit/glade/mooprint.glade
moo/mooedit/glade/mootextfind.glade
moo/mooedit/glade/mootextgotoline.glade
moo/mooedit/glade/quicksearch.glade
moo/mooedit/glade/statusbar.glade
moo/mooedit/plugins/fileselector/moofileselector-prefs.glade
moo/mooedit/plugins/fileselector/moofileselector.glade
moo/mooedit/plugins/moofind.glade
moo/moofileview/glade/bookmark_editor.glade
moo/moofileview/glade/drop.glade
moo/moofileview/glade/moocreatefolder.glade
moo/moofileview/glade/moofileprops.glade
moo/mooscript/mooscript-yacc.c
moo/mooterm/glade/mootermprefs.glade
moo/mooterm/mootermparser-yacc.c
moo/mooutils/eggregex.c
moo/mooutils/glade/accelprefs.glade
moo/mooutils/glade/moologwindow.glade
moo/mooutils/moofontsel.c
moo/mooapp/mooappabout.c

3
po/POTFILES.skip Normal file
View File

@ -0,0 +1,3 @@
moo/mooutils/newgtk/gmappedfile.c
moo/mooutils/newgtk/gtkcolorbutton.c
moo/mooutils/newgtk/gtkfontbutton.c