[easytag] Initialize gettext in Nautilus extension startup
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag] Initialize gettext in Nautilus extension startup
- Date: Wed, 11 Jun 2014 19:50:15 +0000 (UTC)
commit 9dbe534dd0599ede2bd4a2a27d0add8fb404ac2b
Author: David King <amigadave amigadave com>
Date: Wed Jun 11 20:01:55 2014 +0100
Initialize gettext in Nautilus extension startup
nautilus-extension/nautilus-easytag.c | 27 +++++++++++++++------------
1 files changed, 15 insertions(+), 12 deletions(-)
---
diff --git a/nautilus-extension/nautilus-easytag.c b/nautilus-extension/nautilus-easytag.c
index 6625bde..b80a369 100644
--- a/nautilus-extension/nautilus-easytag.c
+++ b/nautilus-extension/nautilus-easytag.c
@@ -1,18 +1,19 @@
-/*
- * Copyright (C) 2014 Victor A. Santos <victoraur santos gmail com>
+/* EasyTAG - tag editor for audio files
+ * Copyright (C) 2014 Victor A. Santos <victoraur santos gmail com>
+ * Copyright (C) 2014 David King <amigadave amigadave com>
*
- * 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 3 of the License, or
- * (at your option) any later version.
+ * 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 3 of the License, 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 General Public License for more details.
+ * 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 General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
@@ -282,6 +283,8 @@ nautilus_easytag_init (NautilusEasytag *self)
static void
nautilus_easytag_class_init (NautilusEasytagClass *class)
{
+ bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
+ bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]