Index: modules/localegettext/localegettext.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/localegettext/localegettext.module,v
retrieving revision 1.9
diff -u -F^function -r1.9 localegettext.module
--- modules/localegettext/localegettext.module	29 Nov 2003 19:01:16 -0000	1.9
+++ modules/localegettext/localegettext.module	19 Jun 2004 15:00:00 -0000
@@ -20,15 +20,21 @@ function localegettext_perm() {
   return array("administer locales");
 }
 
-function localegettext_link($type) {
-  if ($type == "system") {
-    if (user_access("administer locales")) {
-      menu('admin/locale/gettext', t('import/export'), "localegettext_admin");
-    }
-    menu("localegettext", t("localegettext"), "localegettext_page", 0, 1);
-  }
+/**
+ * Implementation of hook_menu().
+ */
+function localegettext_menu() {
+  $items = array();
+
+  $items[] = array('path' => 'admin/locale/gettext', 'title' => t('import/export'),
+    'access' => user_access('administer locales'),
+    'callback' => 'localegettext_admin');
+  $items[] = array('path' => 'localegettext', 'title' => t('localegettext'),
+    'access' => TRUE,
+    'callback' => 'localegettext_page',
+    'type' => MENU_CALLBACK);
 
-  return $links ? $links : array();
+  return $items;
 }
 
 function localegettext_admin() {
