<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.5730.13" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hola Vinicius, la actualización de que url la 
tomamos: </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>De esta <A 
href="http://wordpress.org/extend/plugins/multi-language-framework/">http://wordpress.org/extend/plugins/multi-language-framework/</A>&nbsp;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>o</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><A 
href="https://github.com/viniciusandrade/wp-multi-language-framework">https://github.com/viniciusandrade/wp-multi-language-framework</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Abrazos</FONT></DIV>
<DIV><FONT face=Arial size=2>Victor Ricardo</FONT></DIV>
<DIV><FONT face=Arial size=2>CNICM - INFOMED</FONT></DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=vinicius.andrade@bireme.org 
  href="mailto:vinicius.andrade@bireme.org">Vinicius Andrade</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=reddes@listas.bireme.br 
  href="mailto:reddes@listas.bireme.br">reddes@listas.bireme.br</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, October 03, 2011 3:50 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [Reddes] [WordPress 
  Plugin][432518] multi-language-framework/trunk: [fix] parse query for child 
  pages</DIV>
  <DIV><BR></DIV>
  <DIV>Victor y amigos de reddes,</DIV>
  <DIV><BR></DIV>
  <DIV>Hemos identificado y corrigido un problema en el plugin de multi-language 
  que no permitia el display de las páginas secundarias.&nbsp;</DIV>
  <DIV><BR></DIV>
  <DIV>Es importante actualizar el plugin para poder trabajar con las paginas 
  secundarias generadas en el plugin de BVS-Site.</DIV>
  <DIV><BR></DIV>
  <DIV><BR></DIV>
  <DIV>Abrazos,</DIV><BR clear=all><SPAN 
  style="FONT-SIZE: 13px; FONT-FAMILY: Arial">Vinicius de Andrade<BR><SPAN><FONT 
  style="FONT-SIZE: 11px"><B>BIREME/OPAS/OMS</B></FONT></SPAN></SPAN><BR><BR><BR>
  <DIV class=gmail_quote>---------- Forwarded message ----------<BR>From: <B 
  class=gmail_sendername></B><SPAN dir=ltr>&lt;<A 
  href="mailto:noreply@wordpress.org">noreply@wordpress.org</A>&gt;</SPAN><BR>Date: 
  Fri, Sep 2, 2011 at 4:44 PM<BR>Subject: [WordPress Plugin][432518] 
  multi-language-framework/trunk: [fix] parse query for child pages<BR>To: <A 
  href="mailto:vinicius.andrade@bireme.org">vinicius.andrade@bireme.org</A><BR><BR><U></U>
  <DIV>
  <DIV>
  <DL>
    <DT><SPAN class=Apple-style-span 
    style="FONT-WEIGHT: bold; FONT-SIZE: 15px">Log Message</SPAN></DT></DL><PRE>[fix] parse query for child pages
[fix] page translation supports page attributes</PRE>
  <H3>Modified Paths</H3>
  <UL>
    <LI><A 
    href="#1322bab9705df703_multilanguageframeworktrunkparse_queryphp">multi-language-framework/trunk/parse_query.php</A> 

    <LI><A 
    href="#1322bab9705df703_multilanguageframeworktrunkpost_typesphp">multi-language-framework/trunk/post_types.php</A> 
    </LI></UL></DIV>
  <DIV>
  <H3>Diff</H3><A></A>
  <DIV>
  <H4>Modified: multi-language-framework/trunk/parse_query.php (432517 =&gt; 
  432518)</H4><PRE><SPAN>
<SPAN>--- multi-language-framework/trunk/parse_query.php        2011-09-02 19:41:05 UTC (rev 432517)
+++ multi-language-framework/trunk/parse_query.php        2011-09-02 19:44:16 UTC (rev 432518)
</SPAN><SPAN>@@ -37,15 +37,19 @@
</SPAN><SPAN>         // because we changed the REQUEST_URI so it doesnt know
</SPAN><SPAN>         if ($wp_query-&gt;query_vars['pagename']) {
</SPAN><SPAN>             
</SPAN><INS>+            //lets check if there are slashes in the page name, that means a child
+            $pagename = $wp_query-&gt;query_vars['pagename'];
+            $pagename = str_replace( dirname($pagename) . '/', '', $pagename);
+            
</INS><SPAN>             global $wpdb;
</SPAN><SPAN>             
</SPAN><DEL>-            $post_type = $wpdb-&gt;get_var( $wpdb-&gt;prepare("SELECT post_type FROM $wpdb-&gt;posts WHERE post_name = %s", $wp_query-&gt;query_vars['pagename']) );
</DEL><INS>+            $post_type = $wpdb-&gt;get_var( $wpdb-&gt;prepare("SELECT post_type FROM $wpdb-&gt;posts WHERE post_name = %s", $pagename) );
</INS><SPAN>             
</SPAN><SPAN>             $wp_query-&gt;query_vars['post_type'] = $post_type;
</SPAN><SPAN>             //$wp_query-&gt;query_vars['post_type'] = $post_type . '_t_' . $mlf_config['current_language'];
</SPAN><DEL>-            $wp_query-&gt;query_vars['name'] = $wp_query-&gt;query_vars['pagename'];
</DEL><INS>+            $wp_query-&gt;query_vars['name'] = $pagename;
</INS><SPAN>             $wp_query-&gt;query_vars[$wp_query-&gt;query_vars['post_type']] =  $wp_query-&gt;query_vars['name'];
</SPAN><DEL>-            $wp_query-&gt;query_vars['pagename'] = '';
</DEL><INS>+            $pagename = '';
</INS><SPAN>             $wp_query-&gt;is_page = false;
</SPAN><SPAN>             $wp_query-&gt;is_single = true;
</SPAN><SPAN> 
</SPAN><SPAN>@@ -54,7 +58,7 @@
</SPAN><SPAN>             
</SPAN><SPAN>                 'post_type' =&gt; $post_type,
</SPAN><SPAN>                 //'post_type' =&gt; $post_type . '_t_' . $mlf_config['current_language'],
</SPAN><DEL>-                'name' =&gt; $wp_query-&gt;query_vars['pagename'],
</DEL><INS>+                'name' =&gt; $pagename,
</INS><SPAN>                 $wp_query-&gt;query_vars['post_type'] =&gt; $wp_query-&gt;query_vars['name']
</SPAN><SPAN>                 
</SPAN><SPAN>             );
</SPAN></SPAN></PRE></DIV><A></A>
  <DIV>
  <H4>Modified: multi-language-framework/trunk/post_types.php (432517 =&gt; 
  432518)</H4><PRE><SPAN>
<SPAN>--- multi-language-framework/trunk/post_types.php        2011-09-02 19:41:05 UTC (rev 432517)
+++ multi-language-framework/trunk/post_types.php        2011-09-02 19:44:16 UTC (rev 432518)
</SPAN><SPAN>@@ -28,12 +28,15 @@
</SPAN><SPAN>             
</SPAN><SPAN>                 case 'post':
</SPAN><SPAN>                     $menu_pos = 5;
</SPAN><INS>+                    $p_type_supports = array('title','editor','author','thumbnail','excerpt','comments');
</INS><SPAN>                     break;
</SPAN><SPAN>                 case 'page':
</SPAN><SPAN>                     $menu_pos = 20;
</SPAN><INS>+                    $p_type_supports = array('title','editor','author','thumbnail','excerpt','comments', 'page-attributes');
</INS><SPAN>                     break;
</SPAN><SPAN>                 default:
</SPAN><SPAN>                     $menu_pos = $wp_post_types[$p_type]-&gt;menu_position ? $wp_post_types[$p_type]-&gt;menu_position : 25;
</SPAN><INS>+                    $p_type_supports = array('title','editor','author','thumbnail','excerpt','comments');
</INS><SPAN>             
</SPAN><SPAN>             }
</SPAN><SPAN>             
</SPAN><SPAN>@@ -44,7 +47,7 @@
</SPAN><SPAN>                 'capability_type' =&gt; $wp_post_types[$p_type]-&gt;capability_type,
</SPAN><SPAN>                 'hierarchical' =&gt; $wp_post_types[$p_type]-&gt;hierarchical == 1,
</SPAN><SPAN>                 'menu_position' =&gt; $menu_pos,
</SPAN><DEL>-                'supports' =&gt; array('title','editor','author','thumbnail','excerpt','comments')
</DEL><INS>+                'supports' =&gt; $p_type_supports
</INS><SPAN>             ); 
</SPAN><SPAN>             
</SPAN><SPAN>             //TODO: Post types names can only have 20 chars. Ho to deal with it?
</SPAN><SPAN>@@ -163,9 +166,7 @@
</SPAN><SPAN>     if ($_GET['action'] != 'edit') {
</SPAN><SPAN>         $translation_of = $_GET['translation_of'];
</SPAN><SPAN>     } else {
</SPAN><DEL>-        $translation_of = get_post_meta($post-&gt;ID, '_translation_of');
-        if (is_array($translation_of))
-            $translation_of = $translation_of[0];
</DEL><INS>+        $translation_of = get_post_meta($post-&gt;ID, '_translation_of', true);
</INS><SPAN>     }
</SPAN><SPAN>     
</SPAN><SPAN>     
</SPAN><SPAN>@@ -241,9 +242,9 @@
</SPAN><SPAN>     mlf_add_post_meta($new, '_translation_of', $original);
</SPAN><SPAN>     
</SPAN><SPAN>     #var_dump($original, $new); die;
</SPAN><DEL>-    
</DEL><INS>+
</INS><SPAN>     $also_translation_of = get_post_meta($original, '_translation_of');
</SPAN><DEL>-    
</DEL><INS>+
</INS><SPAN>     if (is_array($also_translation_of)) {
</SPAN><SPAN>         foreach ($also_translation_of as $a) {
</SPAN><SPAN>             if ($a != $new) {
</SPAN><SPAN>@@ -267,11 +268,8 @@
</SPAN><SPAN>     if ( defined('DOING_AUTOSAVE') &amp;&amp; DOING_AUTOSAVE ) 
</SPAN><SPAN>         return $post_id;
</SPAN><SPAN> 
</SPAN><DEL>-    if ( 'post' == $_POST['post_type'] ) {
-        if ( !current_user_can( 'edit_post', $post_id ) )
-            return $post_id;
-    }
</DEL><SPAN>     
</SPAN><INS>+
</INS><SPAN>     #var_dump($_POST['_translation_of']); die;
</SPAN><SPAN>     
</SPAN><SPAN>     mlf_add_translation_relationship($_POST['_translation_of'], $post_id);
</SPAN></SPAN></PRE></DIV></DIV></DIV></DIV><BR>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>Reddes mailing 
  list<BR>Reddes@listas.bireme.br<BR>http://listas.bireme.br/mailman/listinfo/reddes<BR><BR><BR><BR>__________ 
  Informacisn de ESET Smart Security, versisn de la base de firmas de virus 6513 
  (20111003) __________<BR><BR>ESET Smart Security ha comprobado este 
  mensaje.<BR><BR>http://www.eset.com<BR><BR></BLOCKQUOTE><BR>
<BR>
__________ Información de ESET Smart Security, versión de la base de firmas de virus 6513 (20111003) __________<BR>
<BR>
ESET Smart Security ha comprobado este mensaje.<BR>
<BR>
<A HREF="http://www.eset.com">http://www.eset.com</A><BR>


</BODY></HTML>