[Nemiver-list] Re: internationalization
- From: "Jonathon Jongsma" <jonathon jongsma domain hid>
- To: nemiver-list domain hid
- Subject: [Nemiver-list] Re: internationalization
- Date: Thu, 7 Sep 2006 23:29:46 -0500
On 9/7/06, Jonathon Jongsma <jonathon jongsma domain hid> wrote:
Hi Dodji,
I'll tackle the internationalization support from your little todo
list. I assume you want to use the standard GNOME intltool stuff?
--
jonner
Well, here's a first crack at adding i18n support. (it also contains
a few svn:ignore property changes). I made all of the build
infrastructure changes (configure.ac, Makefile.am, po/, etc) and
marked a few strings in various files for translation (including the
.desktop file). So it should basically be ready for translations now.
If it looks ok to you, I can commit it. Let me know.
One potential issue is that I'm using the 'new' intltool support which
means that the list of languages is defined in po/LINGUAS instead of
as an ALL_LINGUAS variable in configure.ac. I'm not sure how many
distros have intltool 0.35 yet, but I don't know whether you care
about that or not.
--
jonner
Property changes on: .
___________________________________________________________________
Name: svn:ignore
- Makefile.in
config.log
svnignore-props.txt
config.guess
config.h
ltmain.sh
config.sub
Makefile
config.status
stamp-h1
autom4te.cache
libtool
aclocal.m4
+ Makefile.in
config.log
svnignore-props.txt
config.guess
config.h
ltmain.sh
config.sub
Makefile
config.status
stamp-h1
autom4te.cache
libtool
aclocal.m4
intltool-extract.in
intltool-extract
intltool-merge.in
intltool-merge
intltool-update.in
intltool-update
configure
tags
stamp-h.in
stamp-h
mkinstalldirs
nemiver.desktop
Index: nemiver.desktop.in
===================================================================
--- nemiver.desktop.in (revision 76)
+++ nemiver.desktop.in (working copy)
@@ -3,7 +3,7 @@
Encoding=UTF-8
Type=Application
Name=Nemiver
-Comment=Debug Applications
+_Comment=Debug Applications
#Icon=icon.png
Exec=nemiver
Categories=GNOME;Application;Development;
Index: ChangeLog
===================================================================
--- ChangeLog (revision 76)
+++ ChangeLog (working copy)
@@ -1,3 +1,21 @@
+2006-09-07 Jonathon Jongsma <jonathon jongsma gmail com>
+
+ * Makefile.am:
+ * autogen.sh:
+ * configure.ac:
+ * nemiver.desktop:
+ * nemiver.desktop.in:
+ * po/LINGUAS:
+ * po/POTFILES.in:
+ * src/Makefile.am:
+ * src/main.cc: Implement i18n support using intltool, glib-gettext
+ * src/workbench/nmv-workbench.cc:
+ * src/DBGPerspective/nmv-dbg-perspective.cc:
+ * src/DBGPerspective/nmv-proc-list-dialog.cc:
+ * src/DBGPerspective/nmv-run-program-dialog.cc: mark a bunch of strings as
+ translatable
+ * config.h.in: remove generated file
+
mercredi 6 septembre 2006, 23:28:32 (UTC+0200) Dodji Seketeli
* src/DBGPerspective/dbgengine/nmv-gdb-engine.cc,
Property changes on: src
___________________________________________________________________
Name: svn:ignore
- nemiver
.libs
.deps
Makefile
+ nemiver
.libs
.deps
Makefile
Makefile.in
Property changes on: src/workbench
___________________________________________________________________
Name: svn:ignore
- workbench.conf
.libs
.deps
Makefile
+ workbench.conf
.libs
.deps
Makefile
Makefile.in
Index: src/workbench/nmv-workbench.cc
===================================================================
--- src/workbench/nmv-workbench.cc (revision 76)
+++ src/workbench/nmv-workbench.cc (working copy)
@@ -23,6 +23,7 @@
*/
#include <vector>
+#include <glib/gi18n.h>
#include "nmv-exception.h"
#include "nmv-plugin.h"
#include "nmv-ui-utils.h"
@@ -307,7 +308,7 @@
{
"FileMenuAction",
nil_stock_id,
- "_File",
+ _("_File"),
"",
nil_slot,
ActionEntry::DEFAULT,
@@ -317,8 +318,8 @@
{
"QuitMenuItemAction",
Gtk::Stock::QUIT,
- "_Quit",
- "Quit the application",
+ _("_Quit"),
+ _("Quit the application"),
sigc::mem_fun (*this, &Workbench::on_quit_menu_item_action),
ActionEntry::DEFAULT,
""
@@ -327,7 +328,7 @@
{
"HelpMenuAction",
nil_stock_id,
- "_Help",
+ _("_Help"),
"",
nil_slot,
ActionEntry::DEFAULT,
@@ -337,7 +338,7 @@
{
"AboutMenuItemAction",
Gtk::Stock::ABOUT,
- "_About",
+ _("_About"),
"",
nil_slot,
ActionEntry::DEFAULT,
Property changes on: src/DBGPerspective
___________________________________________________________________
Name: svn:ignore
- .libs
.deps
Makefile
DBGPerspective.conf
+ .libs
.deps
Makefile
Makefile.in
DBGPerspective.conf
Property changes on: src/DBGPerspective/dbgengine
___________________________________________________________________
Name: svn:ignore
- gdbengine.conf
.libs
.nmv-gdb-engine.cc.swp
.deps
Makefile
+ gdbengine.conf
.libs
.nmv-gdb-engine.cc.swp
.deps
Makefile
Makefile.in
Property changes on: src/DBGPerspective/menus
___________________________________________________________________
Name: svn:ignore
- Makefile
+ Makefile
Makefile.in
Index: src/DBGPerspective/nmv-run-program-dialog.cc
===================================================================
--- src/DBGPerspective/nmv-run-program-dialog.cc (revision 76)
+++ src/DBGPerspective/nmv-run-program-dialog.cc (working copy)
@@ -24,6 +24,7 @@
*/
#include <vector>
+#include <glib/gi18n.h>
#include <libglademm.h>
#include <gtkmm/dialog.h>
#include <gtkmm/entry.h>
@@ -49,7 +50,7 @@
void on_browse_program_button_clicked ()
{
- Gtk::FileChooserDialog file_chooser ("Choose a program",
+ Gtk::FileChooserDialog file_chooser (_("Choose a program"),
Gtk::FILE_CHOOSER_ACTION_OPEN) ;
file_chooser.add_button (Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL) ;
file_chooser.add_button (Gtk::Stock::OK, Gtk::RESPONSE_OK) ;
@@ -68,7 +69,7 @@
void on_browse_dir_button_clicked ()
{
Gtk::FileChooserDialog file_chooser
- ("Open file",
+ (_("Open file"),
Gtk::FILE_CHOOSER_ACTION_SELECT_FOLDER) ;
file_chooser.add_button (Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL) ;
file_chooser.add_button (Gtk::Stock::OK, Gtk::RESPONSE_OK) ;
Index: src/DBGPerspective/nmv-proc-list-dialog.cc
===================================================================
--- src/DBGPerspective/nmv-proc-list-dialog.cc (revision 76)
+++ src/DBGPerspective/nmv-proc-list-dialog.cc (working copy)
@@ -27,6 +27,7 @@
#include <list>
#include <libglademm.h>
#include <gtkmm.h>
+#include <glib/gi18n.h>
#include "nmv-proc-list-dialog.h"
#include "nmv-proc-mgr.h"
#include "nmv-env.h"
@@ -134,14 +135,14 @@
col->set_resizable (true) ;
col->set_sort_column_id (columns ().pid) ;
- proclist_view->append_column ("User Name", columns ().user_name) ;
+ proclist_view->append_column (_("User Name"), columns ().user_name) ;
col = proclist_view->get_column (1) ;
THROW_IF_FAIL (col) ;
col->set_clickable (true) ;
col->set_resizable (true) ;
col->set_sort_column_id (columns ().user_name) ;
- proclist_view->append_column ("Proc Args", columns ().proc_args) ;
+ proclist_view->append_column (_("Proc Args"), columns ().proc_args) ;
col = proclist_view->get_column (2) ;
THROW_IF_FAIL (col) ;
col->set_clickable (true) ;
Index: src/DBGPerspective/nmv-dbg-perspective.cc
===================================================================
--- src/DBGPerspective/nmv-dbg-perspective.cc (revision 76)
+++ src/DBGPerspective/nmv-dbg-perspective.cc (working copy)
@@ -26,6 +26,7 @@
#include <algorithm>
#include <iostream>
#include <fstream>
+#include <glib/gi18n.h>
#include <libgnomevfs/gnome-vfs-mime-utils.h>
#include <gtksourceviewmm/init.h>
#include <gtksourceviewmm/sourcelanguagesmanager.h>
@@ -1008,8 +1009,8 @@
{
"RunMenuItemAction",
nemiver::STOCK_RUN_DEBUGGER,
- "_Run",
- "Run the debugger starting from program's begining",
+ _("_Run"),
+ _("Run the debugger starting from program's begining"),
sigc::mem_fun (*this, &DBGPerspective::on_run_action),
ActionEntry::DEFAULT,
"<shift>F5"
@@ -1020,8 +1021,8 @@
{
"NextMenuItemAction",
nemiver::STOCK_STEP_OVER,
- "_Next",
- "Execute next instruction steping over the next function, if any",
+ _("_Next"),
+ _("Execute next instruction steping over the next function, if any"),
sigc::mem_fun (*this, &DBGPerspective::on_next_action),
ActionEntry::DEFAULT,
"F6"
@@ -1030,8 +1031,8 @@
{
"StepMenuItemAction",
nemiver::STOCK_STEP_INTO,
- "_Step",
- "Execute next instruction, steping into the next function, if any",
+ _("_Step"),
+ _("Execute next instruction, steping into the next function, if any"),
sigc::mem_fun (*this, &DBGPerspective::on_step_into_action),
ActionEntry::DEFAULT,
"F7"
@@ -1040,8 +1041,8 @@
{
"StepOutMenuItemAction",
nemiver::STOCK_STEP_OUT,
- "Step _out",
- "Finish the execution of the current function",
+ _("Step _out"),
+ _("Finish the execution of the current function"),
sigc::mem_fun (*this, &DBGPerspective::on_step_out_action),
ActionEntry::DEFAULT,
"<shift>F7"
@@ -1050,8 +1051,8 @@
{
"ContinueMenuItemAction",
nemiver::STOCK_CONTINUE,
- "_Continue",
- "Continue program execution until the next breakpoint",
+ _("_Continue"),
+ _("Continue program execution until the next breakpoint"),
sigc::mem_fun (*this, &DBGPerspective::on_continue_action),
ActionEntry::DEFAULT,
"F5"
@@ -1060,8 +1061,8 @@
{
"ToggleBreakPointMenuItemAction",
nemiver::STOCK_SET_BREAKPOINT,
- "Toggle _break",
- "Set/Unset a breakpoint at the current cursor location",
+ _("Toggle _break"),
+ _("Set/Unset a breakpoint at the current cursor location"),
sigc::mem_fun (*this, &DBGPerspective::on_toggle_breakpoint_action),
ActionEntry::DEFAULT,
"F8"
@@ -1072,8 +1073,8 @@
{
"StopMenuItemAction",
nil_stock_id,
- "Stop",
- "Stop the debugger",
+ _("Stop"),
+ _("Stop the debugger"),
sigc::mem_fun (*this, &DBGPerspective::on_stop_debugger_action),
ActionEntry::DEFAULT,
"F9"
@@ -1084,7 +1085,7 @@
{
"ViewMenuAction",
nil_stock_id,
- "_View",
+ _("_View"),
"",
nil_slot,
ActionEntry::DEFAULT
@@ -1092,31 +1093,31 @@
{
"ShowCommandsMenuAction",
nil_stock_id,
- "Show commands",
- "Show the debugger commands tab",
+ _("Show commands"),
+ _("Show the debugger commands tab"),
sigc::mem_fun (*this, &DBGPerspective::on_show_commands_action),
ActionEntry::TOGGLE
},
{
"ShowErrorsMenuAction",
nil_stock_id,
- "Show errors",
- "Show the errors commands tab",
+ _("Show errors"),
+ _("Show the errors commands tab"),
sigc::mem_fun (*this, &DBGPerspective::on_show_errors_action),
ActionEntry::TOGGLE
},
{
"ShowTargetOutputMenuAction",
nil_stock_id,
- "Show output",
- "Show the debugged target output tab",
+ _("Show output"),
+ _("Show the debugged target output tab"),
sigc::mem_fun (*this, &DBGPerspective::on_show_target_output_action),
ActionEntry::TOGGLE
},
{
"DebugMenuAction",
nil_stock_id,
- "_Debug",
+ _("_Debug"),
"",
nil_slot,
ActionEntry::DEFAULT
@@ -1125,16 +1126,16 @@
{
"OpenMenuItemAction",
Gtk::Stock::OPEN,
- "_Open",
- "Open a file",
+ _("_Open"),
+ _("Open a file"),
sigc::mem_fun (*this, &DBGPerspective::on_open_action),
ActionEntry::DEFAULT
},
{
"ExecuteProgramMenuItemAction",
nil_stock_id,
- "_Execute",
- "Execute a program",
+ _("_Execute"),
+ _("Execute a program"),
sigc::mem_fun (*this,
&DBGPerspective::on_execute_program_action),
ActionEntry::DEFAULT
@@ -1142,8 +1143,8 @@
{
"AttachToProgramMenuItemAction",
nil_stock_id,
- "_Attach ...",
- "Attach to a running program",
+ _("_Attach ..."),
+ _("Attach to a running program"),
sigc::mem_fun (*this,
&DBGPerspective::on_attach_to_program_action),
ActionEntry::DEFAULT
@@ -1154,8 +1155,8 @@
{
"CloseMenuItemAction",
Gtk::Stock::CLOSE,
- "_Close",
- "Close the opened file",
+ _("_Close"),
+ _("Close the opened file"),
sigc::mem_fun (*this, &DBGPerspective::on_close_action),
ActionEntry::DEFAULT
}
@@ -1692,7 +1693,7 @@
void
DBGPerspective::open_file ()
{
- Gtk::FileChooserDialog file_chooser ("Open file",
+ Gtk::FileChooserDialog file_chooser (_("Open file"),
Gtk::FILE_CHOOSER_ACTION_OPEN) ;
file_chooser.add_button (Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL) ;
@@ -2270,7 +2271,7 @@
int pagenum =
m_priv->statuses_notebook->insert_page
(get_command_view_scrolled_win (),
- "Commands",
+ _("Commands"),
COMMAND_VIEW_INDEX) ;
m_priv->statuses_notebook->set_current_page (pagenum) ;
m_priv->command_view_is_visible = true ;
@@ -2296,7 +2297,7 @@
int page_num =
m_priv->statuses_notebook->insert_page
(get_target_output_view_scrolled_win (),
- "Output",
+ _("Output"),
TARGET_OUTPUT_VIEW_INDEX) ;
m_priv->target_output_view_is_visible = true ;
m_priv->statuses_notebook->set_current_page (page_num);
@@ -2323,7 +2324,7 @@
int page_num =
m_priv->statuses_notebook->insert_page
(get_error_view_scrolled_win (),
- "Errors",
+ _("Errors"),
ERROR_VIEW_INDEX) ;
m_priv->error_view_is_visible = true ;
m_priv->statuses_notebook->set_current_page (page_num);
@@ -2349,7 +2350,7 @@
get_call_stack_scrolled_win ().show_all () ;
int page_num = m_priv->statuses_notebook->insert_page
(get_call_stack_scrolled_win (),
- "Call stack",
+ _("Call stack"),
CALL_STACK_VIEW_INDEX) ;
m_priv->call_stack_view_is_visible = true ;
m_priv->statuses_notebook->set_current_page
Index: src/main.cc
===================================================================
--- src/main.cc (revision 76)
+++ src/main.cc (working copy)
@@ -24,12 +24,14 @@
#include <iostream>
#include <gtkmm.h>
#include <libglademm.h>
+#include <glib/gi18n.h>
#include "nmv-exception.h"
#include "nmv-initializer.h"
#include "nmv-i-workbench.h"
#include "nmv-ui-utils.h"
#include "nmv-env.h"
#include "nmv-dbg-perspective.h"
+#include "config.h"
using namespace std ;
using nemiver::common::DynamicModuleManager ;
@@ -54,15 +56,15 @@
0,
G_OPTION_ARG_STRING,
&gv_prog_arg,
- "debug a prog",
- "<prog-name-and-args>"
+ _("debug a prog"),
+ _("<prog-name-and-args>")
},
{ "listsessions",
0,
0,
G_OPTION_ARG_NONE,
&gv_list_sessions,
- "list the saved debugging sessions",
+ _("list the saved debugging sessions"),
NULL
},
{ "purgesessions",
@@ -70,7 +72,7 @@
0,
G_OPTION_ARG_NONE,
&gv_purge_sessions,
- "erase the saved debugging sessions",
+ _("erase the saved debugging sessions"),
NULL
},
{ "executesession",
@@ -78,7 +80,7 @@
0,
G_OPTION_ARG_INT,
&gv_execute_session,
- "debug the program that was of session number N",
+ _("debug the program that was of session number N"),
"N"
},
{ "log-domains",
@@ -86,7 +88,7 @@
0,
G_OPTION_ARG_STRING,
&gv_log_domains,
- "Enable logging domains DOMAINS",
+ _("Enable logging domains DOMAINS"),
"DOMAINS"
},
{ "logdebuggeroutput",
@@ -94,7 +96,7 @@
0,
G_OPTION_ARG_NONE,
&gv_log_debugger_output,
- "log the debugger output",
+ _("log the debugger output"),
NULL
},
{NULL}
@@ -103,6 +105,9 @@
int
main (int a_argc, char *a_argv[])
{
+ bindtextdomain (GETTEXT_PACKAGE, NEMIVERLOCALEDIR) ;
+ bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8") ;
+ textdomain (GETTEXT_PACKAGE) ;
Initializer::do_init () ;
Gtk::Main main_loop (a_argc, a_argv);
GOptionContext *context=NULL ;
@@ -110,7 +115,7 @@
//***************************
//parse command line options
//***************************
- context = g_option_context_new ("- a C/C++ debugger for GNOME") ;
+ context = g_option_context_new (_("- a C/C++ debugger for GNOME")) ;
g_option_context_add_main_entries (context, entries, "") ;
g_option_context_add_group (context, gtk_get_option_group (TRUE)) ;
g_option_context_set_ignore_unknown_options (context, FALSE) ;
Index: src/Makefile.am
===================================================================
--- src/Makefile.am (revision 76)
+++ src/Makefile.am (working copy)
@@ -8,6 +8,7 @@
$(top_builddir)/src/uicommon/libnemiveruicommon.la
INCLUDES=\
+-DNEMIVERLOCALEDIR=\"$(nemiverlocaledir)\" \
@NEMIVER_CFLAGS@ \
-I$(top_srcdir)/src/common \
-I$(top_srcdir)/src/uicommon \
Property changes on: menus
___________________________________________________________________
Name: svn:ignore
- Makefile.in
+ Makefile.in
Makefile
Index: config.h.in
===================================================================
--- config.h.in (revision 76)
+++ config.h.in (working copy)
@@ -1,64 +0,0 @@
-/* config.h.in. Generated from configure.ac by autoheader. */
-#undef HAS_GCC_VISIBILITY_SUPPORT
-
-/* enable debug messages */
-#undef GDPP_DEBUG
-
-/* Define to 1 if you have the <dlfcn.h> header file. */
-#undef HAVE_DLFCN_H
-
-/* Define to 1 if you have the <inttypes.h> header file. */
-#undef HAVE_INTTYPES_H
-
-/* Define to 1 if you have the <memory.h> header file. */
-#undef HAVE_MEMORY_H
-
-/* Define to 1 if you have the <stdint.h> header file. */
-#undef HAVE_STDINT_H
-
-/* Define to 1 if you have the <stdlib.h> header file. */
-#undef HAVE_STDLIB_H
-
-/* Define to 1 if you have the <strings.h> header file. */
-#undef HAVE_STRINGS_H
-
-/* Define to 1 if you have the <string.h> header file. */
-#undef HAVE_STRING_H
-
-/* Define to 1 if you have the <sys/stat.h> header file. */
-#undef HAVE_SYS_STAT_H
-
-/* Define to 1 if you have the <sys/types.h> header file. */
-#undef HAVE_SYS_TYPES_H
-
-/* Define to 1 if you have the <unistd.h> header file. */
-#undef HAVE_UNISTD_H
-
-/* Name of package */
-#undef PACKAGE
-
-/* Define to the address where bug reports for this package should be sent. */
-#undef PACKAGE_BUGREPORT
-
-/* Define to the full name of this package. */
-#undef PACKAGE_NAME
-
-/* Define to the full name and version of this package. */
-#undef PACKAGE_STRING
-
-/* Define to the one symbol short name of this package. */
-#undef PACKAGE_TARNAME
-
-/* Define to the version of this package. */
-#undef PACKAGE_VERSION
-
-/* Define to 1 if you have the ANSI C header files. */
-#undef STDC_HEADERS
-
-/* Version number of package */
-#undef VERSION
-
-/* Enable GNU extensions on systems that have them. */
-#ifndef _GNU_SOURCE
-# undef _GNU_SOURCE
-#endif
Index: configure.ac
===================================================================
--- configure.ac (revision 76)
+++ configure.ac (working copy)
@@ -7,7 +7,7 @@
AC_CANONICAL_TARGET
AM_MAINTAINER_MODE
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
-AM_CONFIG_HEADER(config.h)
+AC_CONFIG_HEADER(config.h)
MAJOR_VERSION=0
MINOR_VERSION=0
@@ -55,6 +55,20 @@
ENABLE_DBGENGINE=yes
ENABLE_WORKBENCH=yes
+dnl *************************************
+dnl Internationalization support
+dnl *************************************
+dnl To add a new language, add language code xx to po/LINGUAS
+IT_PROG_INTLTOOL([0.35.0])
+GETTEXT_PACKAGE=nemiver
+AC_SUBST(GETTEXT_PACKAGE)
+AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"],
+ [The domain to use with gettext])
+AM_GLIB_GNU_GETTEXT
+
+nemiverlocaledir=[${datadir}/locale]
+AC_SUBST(nemiverlocaledir)
+
dnl ***************************
dnl a list of enablexxx options
dnl ***************************
@@ -187,7 +201,7 @@
AC_PROG_MAKE_SET
-AC_OUTPUT([Makefile
+AC_CONFIG_FILES([Makefile
src/Makefile
src/common/Makefile
src/dbdimpl/Makefile
@@ -207,8 +221,11 @@
src/DBGPerspective/sqlscripts/sqlite/Makefile
glade/Makefile
menus/Makefile
-tests/Makefile])
+tests/Makefile
+po/Makefile.in])
+AC_OUTPUT()
+
cat <<EOT
=================================================================
Index: Makefile.am
===================================================================
--- Makefile.am (revision 76)
+++ Makefile.am (working copy)
@@ -1,12 +1,18 @@
-SUBDIRS = src glade menus tests
+SUBDIRS = src glade menus tests po
desktopdir = $(datadir)/applications
-desktop_DATA = nemiver.desktop
+desktop_in_files = nemiver.desktop.in
+desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
+ INTLTOOL_DESKTOP_RULE@
EXTRA_DIST= \
README \
INSTALL \
COPYING \
COPYRIGHT \
-sed.sh
+sed.sh \
+intltool-extract.in \
+intltool-merge.in \
+intltool-update.in \
+$(desktop_in_files)
Index: autogen.sh
===================================================================
--- autogen.sh (revision 76)
+++ autogen.sh (working copy)
@@ -1,5 +1,7 @@
#!/bin/sh
+PROJECT=nemiver
+
topsrcdir=`dirname $0`
if test x$topsrcdir = x ; then
topsrcdir=.
@@ -7,7 +9,7 @@
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
echo
- echo "You must have autoconf installed to compile goupil."
+ echo "You must have autoconf installed to compile $PROJECT."
echo "Download the appropriate package for your distribution,"
echo "or see http://www.gnu.org/software/autoconf"
DIE=1
@@ -15,16 +17,34 @@
(libtool --version) < /dev/null > /dev/null 2>&1 || {
echo
- echo "You must have libtool installed to compile goupil."
+ echo "You must have libtool installed to compile $PROJECT."
echo "Download the appropriate package for your distribution,"
echo "or see http://www.gnu.org/software/libtool"
DIE=1
}
+(intltoolize --version) < /dev/null > /dev/null 2>&1 || {
+ echo
+ echo " You must have intltool installed to compile $PROJECT."
+ echo " Get the latest version from"
+ echo " ftp://ftp.gnome.org/pub/GNOME/sources/intltool/"
+ echo
+ DIE=1
+}
+
+(glib-gettextize --version) < /dev/null > /dev/null 2>&1 || {
+ echo
+ echo " You must have glib-gettextize installed to compile $PROJECT."
+ echo " glib-gettextize is part of glib-2.0, so you should already"
+ echo " have it. Make sure it is in your PATH."
+ echo
+ DIE=1
+}
+
(automake-1.9 --version) < /dev/null > /dev/null 2>&1 || {
echo
DIE=1
- echo "You must have automake installed to compile goupil."
+ echo "You must have automake installed to compile $PROJECT."
echo "Download the appropriate package for your distribution,"
echo "or see http://www.gnu.org/software/automake"
}
@@ -40,9 +60,11 @@
fi
-libtoolize --copy --force
-aclocal $ACLOCAL_FLAGS
-automake-1.9 --add-missing
-autoconf
+libtoolize --copy --force || exit $?
+glib-gettextize --force --copy || exit $?
+intltoolize --force --copy --automake || exit $?
+aclocal $ACLOCAL_FLAGS || exit $?
+automake-1.9 --add-missing || exit $?
+autoconf || exit $?
$topsrcdir/configure "$@"
Index: nemiver.desktop
===================================================================
--- nemiver.desktop (revision 76)
+++ nemiver.desktop (working copy)
@@ -1,9 +0,0 @@
-[Desktop Entry]
-Version=1.0
-Encoding=UTF-8
-Type=Application
-Name=Nemiver
-Comment=Debug Applications
-#Icon=icon.png
-Exec=nemiver
-Categories=GNOME;Application;Development;
Property changes on: po
___________________________________________________________________
Name: svn:ignore
+ POTFILES
Makefile.in.in
Makefile.in
Makefile
*.pot
stamp-it
.intltool-merge-cache
Index: po/LINGUAS
===================================================================
--- po/LINGUAS (revision 0)
+++ po/LINGUAS (revision 0)
@@ -0,0 +1,2 @@
+# please keep this list sorted alphabetically, one locale per line
+#
Index: po/POTFILES.in
===================================================================
--- po/POTFILES.in (revision 0)
+++ po/POTFILES.in (revision 0)
@@ -0,0 +1,10 @@
+glade/workbench.glade
+nemiver.desktop.in
+src/DBGPerspective/glade/bodycontainer.glade
+src/DBGPerspective/glade/proclistdialog.glade
+src/DBGPerspective/glade/runprogramdialog.glade
+src/DBGPerspective/nmv-dbg-perspective.cc
+src/DBGPerspective/nmv-proc-list-dialog.cc
+src/DBGPerspective/nmv-run-program-dialog.cc
+src/main.cc
+src/workbench/nmv-workbench.cc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]