Commit Diff


commit - 2b08f7b5611ccd27ee45339ab2b302f9d6f28f24
commit + 566853c97ca5a419493157f2ea64592fc72b994b
blob - 9e7601625a6397ce5eef4a20f2f91c0c8b805c01
blob + a550c69307c986457e4e22d4c52ff318a2346748
--- src/manual.c
+++ src/manual.c
@@ -17,52 +17,9 @@
  *
  */
 
-#include "defs.h"
-
-#include <glib.h>
-#include <string.h>
-#include <locale.h>
-
 #include "manual.h"
 #include "utils.h"
 
-static gchar *get_language()
-{
-	gchar *language;
-	gchar *c;
-	language = g_strdup(setlocale(LC_MESSAGES, NULL));
-	if (!language)
-		return g_strdup("en");
-
-	if((c = strchr(language, ',')) != NULL)
-		*c = '\0';
-	if((c = strchr(language, '_')) != NULL)
-		*c = '\0';
-
-	return language;
-}
-
-static gchar *get_local_path_with_locale(gchar *rootpath)
-{
-	gchar *lang_str, *dir;
-
-	lang_str = get_language();
-	dir = g_strconcat(rootpath, G_DIR_SEPARATOR_S,
-			  lang_str, NULL);
-	g_free(lang_str);
-	if(!is_dir_exist(dir)) {
-		g_free(dir);
-		dir = g_strconcat(rootpath, G_DIR_SEPARATOR_S,
-				  "en", NULL);
-		if(!is_dir_exist(dir)) {
-			g_free(dir);
-			dir = NULL;
-		}
-	}
-
-	return dir;
-}
-
 void manual_open(ManualType type, gchar *url_anchor)
 {
 	if (type == MANUAL_FAQ_CLAWS) {
blob - 95ca60f190078912cfc4717554aed6b8d3799ae6
blob + 9aa45cadf2459ebe4b34a0e3b5aeda709c9cb8e1
--- src/manual.h
+++ src/manual.h
@@ -17,9 +17,6 @@
  *
  */
 
-#ifndef __MANUAL_H__
-#define __MANUAL_H__
-
 #include <gtk/gtk.h>
 
 typedef enum
@@ -41,5 +38,3 @@ typedef enum
 
 void	 manual_open		(ManualType type, gchar *url_anchor);
 void	 manual_open_with_anchor_cb(GtkWidget *widget, gchar *url_anchor);
-
-#endif /* __MANUAL_H__ */