1
0
Fork 0
mirror of https://github.com/gsantner/dandelion synced 2024-11-22 12:22:08 +01:00

Make shared by translateable

This commit is contained in:
Gregor Santner 2016-03-25 01:07:26 +01:00
parent 1f33c3b4a9
commit 2cb327f9c4
3 changed files with 4 additions and 2 deletions

View file

@ -22,7 +22,6 @@ package de.baumann.diaspora;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
@ -229,7 +228,8 @@ public class ShareActivity extends MainActivity {
webView.loadUrl("javascript:(function() { " +
"document.getElementsByTagName('textarea')[0].style.height='110px'; " +
"document.getElementsByTagName('textarea')[0].innerHTML = '> " + extraText + " *[shared with #DiasporaWebApp]*'; " +
"document.getElementsByTagName('textarea')[0].innerHTML = '> " +
String.format("%s %s'; ",extraText,getString(R.string.shared_by_diaspora_android)) +
" if(document.getElementById(\"main_nav\")) {" +
" document.getElementById(\"main_nav\").parentNode.removeChild(" +
" document.getElementById(\"main_nav\"));" +

View file

@ -155,5 +155,6 @@ along with this program. If not, see http://www.gnu.org/licenses.<br> <br
<string name="new_post2">D* Titel und Text</string>
<string name="jb_profile">Profil</string>
<string name="new_post1">D* nur Text</string>
<string name="shared_by_diaspora_android">*[geteilt durch #DiasporaAndroid]*</string>
</resources>

View file

@ -207,4 +207,5 @@
<string name="exit_app">Exit app</string>
<string name="diaspora" translatable="false">Diaspora</string>
<string name="shared_by_diaspora_android">*[shared by #DiasporaAndroid]*</string>
</resources>