Merge pull request #2244 from Flakebi/addons-rtl

Fix reversed rtl string part
This commit is contained in:
auriamg 2015-07-22 18:35:22 -04:00
commit 5164a55472

View File

@ -162,18 +162,18 @@ void AddonsLoading::beforeAddingWidgets()
float f = ((int)(n/1024.0f/1024.0f*10.0f+0.5f))/10.0f;
char s[32];
sprintf(s, "%.1f", f);
unit=_("%s MB", s);
unit = _LTR("%s MB", s);
}
else if(n>1024)
{
float f = ((int)(n/1024.0f*10.0f+0.5f))/10.0f;
char s[32];
sprintf(s, "%.1f", f);
unit=_("%s KB", s);
unit = _LTR("%s KB", s);
}
else
// Anything smaller just let it be 1 KB
unit=_("%s KB", 1);
unit = _LTR("%s KB", 1);
core::stringw size = _("Size: %s", unit.c_str());
getWidget<LabelWidget>("size")->setText(size, false);
} // AddonsLoading