WordPress.org

Ready to get started?Download WordPress

Forums

Collapsible Archive Widget
[resolved] qTranslate support patch (1 post)

  1. tomas.guemes
    Member
    Posted 2 years ago #

    Hi,

    I added a very simple patch for support qTranslate translations to version 2.3.1

    --- collapsible-archive-old.php	2009-03-16 17:37:44.000000000 +0000
    +++ collapsible-archive.php	2011-12-24 19:08:05.000000000 +0000
    @@ -256,7 +256,7 @@ function ara_collapsiblearchive_get_post
     			$sectionstart = false;
     		}
     		$url  = get_permalink($post->ID);
    -		$result_string .= $lineStart.'<a href="'.get_permalink($post->ID).'">'.$post->post_title.'</a>'.$lineEnd;
    +		$result_string .= $lineStart.'<a href="'.get_permalink($post->ID).'">'.__($post->post_title).'</a>'.$lineEnd;
     	}
    
     	$result_string .= $childClose;
    @@ -491,4 +491,4 @@ function widget_ara_collapsiblearchive_e
     add_action('widgets_init', 'widget_ara_collapsiblearchive_enqueue');
     add_action('widgets_init', 'widget_ara_collapsiblearchive_init');
    
    -?>
    \ No newline at end of file
    +?>

    http://wordpress.org/extend/plugins/collapsible-archive-widget/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic