Index: i18n.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/i18n/i18n.module,v
retrieving revision 1.5
diff -u -r1.5 i18n.module
--- i18n.module	6 Apr 2004 19:40:37 -0000	1.5
+++ i18n.module	1 Jul 2004 20:59:45 -0000
@@ -14,8 +14,8 @@
 
 function i18n_init(){
 	global $i18n_langpath;
-
-	// Quick fix, check if called from bootstrap.inc
+	
+  // Quick fix, check if called from bootstrap.inc
 	if(!function_exists("drupal_get_path_map")) return 0;
 	
 	if($lang=i18n_get_lang()){
@@ -73,6 +73,20 @@
   return $output;
 }
 
+function i18n_menu() {
+	global $languages,$i18n_lang;  
+  
+  if (arg(0) == 'node' && is_numeric(arg(1)) && variable_get("i18n_content",0)) {
+    foreach ($languages as $lang => $desc) {
+      $items[] = array('path' => 'node/'. arg(1) .'/edit/'.$lang, 'title' => t('edit %language',array('%language'=>$lang)),
+        'callback' => 'i18n_node_admin',
+        'access' => user_access('administer nodes'),
+        'type' => MENU_LOCAL_SUBTASK);
+    }
+  }
+  return $items;
+}
+
 function i18n_settings(){
 	$output .= form_radios(t("Interface translation"),"i18n_interface",variable_get("i18n_interface",0),array(t("Disabled"),t("Enabled")),t("If disabled, uses Drupal's default. If enabled, translates the interface to selected language"));
 	$output .= form_radios(t("Content translation"),"i18n_content",variable_get("i18n_content",0),array(t("Disabled"),t("Enabled")),t("If enabled, prepends language code to url and searches for translated content"));
@@ -288,6 +302,13 @@
 	return $result;
 }
 
+// Changes the language of the node admin
+function i18n_node_admin () {
+  $lang = arg(3);
+  i18n_set_db_prefix($lang);
+  node_page();
+}
+
 // TODO: Check for other node's tables... ???
 // TODO: What happens with node_term??
 function i18n_nodeapi(&$node, $op, $arg = 0) {
