Small fixes with translation

This commit is contained in:
stom79 2017-12-29 15:01:27 +01:00
parent ecf1de52cb
commit f9998d6f0f
1 changed files with 2 additions and 2 deletions

View File

@ -513,8 +513,8 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct
else
//noinspection deprecation
statusToTranslate = Html.fromHtml(status.getReblog() != null ?status.getReblog().getContent():status.getContent()).toString();
myTransL.translate(statusToTranslate, myTransL.getLocale(), new Results() {
//TODO: removes the replaceAll once fixed with the lib
myTransL.translate(statusToTranslate.replaceAll("%","%25"), myTransL.getLocale(), new Results() {
@Override
public void onSuccess(Translate translate) {
if( translate.getTranslatedContent() != null) {