I have a multilanguage blog and wanted to see quotes showing up in the current language, not just in the language defined in the options panel. For that purpose, I changed the fortunate_widget function in the file fortunate.php like this:
[code]
function fortunate_widget($args) {
extract($args);
[strong]
if ( function_exists('qtrans_getLanguage') ) {
$options = array( 'lang' => qtrans_getLanguage() );
echo $before_widget
. $before_title . qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage(get_option('fortunate_title')) . $after_title
. '<div class="fortunate">'
. fortunate_fetch($options)
. '</div>' . "\n"
. $after_widget;
} else {[/strong]
echo $before_widget
. $before_title . get_option('fortunate_title') . $after_title
. fortunate() . $after_widget;
}
}
[/code]