CrystalBlood
Forum Replies Created
-
Forum: Plugins
In reply to: Is it possible to translate results from wp-weather?Hi Matt! i was striving with the plugin last days, and i wanna share a piece of code that may help to the translation issue, i mean especifically in the date when is pulled out from the XML file, i try this and work fine for me.
I replace this:
$htmlstring .= __('Forecast for ', 'wp-weather').$day_forecast->day[t] . ', ' . $day_forecast->day[dt].'">';
for this:
$htmlstring .= __('Forecast for ', 'wp-weather'). date_i18n('l, j F', strtotime($day_forecast->lsup)) .'">';this way, the date get localized according to the wordpress language installed.
But, dealing with the current conditions code was something else, so i made an array with the values translated and use the “icon” as an index for the array, accesing like this:
$htmlstring .= '<br />'.$mensajes[(int)$xml->cc->icon].'<br />';I was wondering if you know any other “easy” way to do this, through some parameter, for the xoap.weather.com URL, or the forecastrss URL maybe.
Check out the modifications i made:
(Spanish) http://crystalblood.wordpress.com/2010/05/07/plugin-wp-weather-en-espanol-para-el-wordpress-mediante-algunos-tweakshacks-weather-com/Best Regards!
Forum: Plugins
In reply to: [Plugin: TubePress] Pagination doesn’t work with 1.8.9You must have the PRO version to work around, see http://tubepress.org/documentation/#shortcode-reference point 7.3.3 Display Options