[rhythmbox] add a function to return the locale directory to pass to gettext
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] add a function to return the locale directory to pass to gettext
- Date: Mon, 7 Nov 2011 11:37:22 +0000 (UTC)
commit fad2289f887e5a3935836ce5bf7874c7525c8ee4
Author: Jonathan Matthew <jonathan d14n org>
Date: Mon Nov 7 21:27:45 2011 +1000
add a function to return the locale directory to pass to gettext
Python plugins need this since we can't automatically call
gettext.install() for them any more. Part of bug #663469.
lib/rb-file-helpers.c | 12 ++++++++++++
lib/rb-file-helpers.h | 1 +
2 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/lib/rb-file-helpers.c b/lib/rb-file-helpers.c
index 8668e3f..2d79ef2 100644
--- a/lib/rb-file-helpers.c
+++ b/lib/rb-file-helpers.c
@@ -76,6 +76,18 @@ static char *installed_paths[] = {
static char **search_paths;
+/**
+ * rb_locale_dir:
+ *
+ * Returns the locale directory identified at build configuration time.
+ *
+ * Return value: locale dir
+ */
+const char *
+rb_locale_dir (void)
+{
+ return GNOMELOCALEDIR;
+}
/**
* rb_file:
diff --git a/lib/rb-file-helpers.h b/lib/rb-file-helpers.h
index b32528f..99748ae 100644
--- a/lib/rb-file-helpers.h
+++ b/lib/rb-file-helpers.h
@@ -37,6 +37,7 @@ const char * rb_file (const char *filename);
const char * rb_user_data_dir (void);
const char * rb_user_cache_dir (void);
const char * rb_music_dir (void);
+const char * rb_locale_dir (void);
char * rb_find_user_data_file (const char *name);
char * rb_find_user_cache_file (const char *name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]