Fix for enabling theme-my-login translations

This commit is contained in:
Silvan Calarco 2015-04-16 11:22:45 +02:00
parent 57adba9207
commit 999f9204fe

View File

@ -47,7 +47,8 @@ function openmamba_download_link($milestone, $medium, $currarch, $ext, $mlword,
$ret = ''; $ret = '';
if ("$currreleasetag" != "") { if ("$currreleasetag" != "") {
$ret .= "<table style='border:0;margin:0;margin-bottom:5px;'><tr><td style='vertical-align:middle;padding:4px;border:0;margin:0;width:20px;align:center;'><img src=/wp-content/themes/openmamba/download.png /></td>"; $ret .= "<table style='border:0;margin:0;margin-bottom:5px;'><tr><td style='vertical-align:middle;padding:4px;border:0;margin:0;width:20px;align:center;'><img src=/wp-content/themes/openmamba/download.png /></td>";
$ret .= "<td style='border:0;margin:0;padding:4px;'><h5 style='margin:1px;'><a href=\"/media/$milestone/$medium/$lang/openmamba-$medium-$lang-$currreleasetag.$currarch$ext\">"; $ret .= "<td style='border:0;margin:0;padding:4px;'><h5 style='margin:1px;'><a href=\"/media/$milestone/$medium/$lang/".
$nameMedium[$medium.'-'.$currreleasetag.'-'.$lang.'-'.$currarch]."\">";
$ret .= "openmamba $displaymilestone $medium "; $ret .= "openmamba $displaymilestone $medium ";
$ret .= __('for','responsive')." $currarch ($mlword)</a>&nbsp;</h5>"; $ret .= __('for','responsive')." $currarch ($mlword)</a>&nbsp;</h5>";
$ret .= "<i>"; $ret .= "<i>";
@ -224,3 +225,5 @@ function set_number_tags($args) {
$args = array('number' => 10, 'largest' => 20); $args = array('number' => 10, 'largest' => 20);
return $args; return $args;
} }
load_plugin_textdomain('theme-my-login' , get_site_url() . 'wp-content/plugins/theme-my-login/languages/');