chamrouern168 / apps-for-android

Automatically exported from code.google.com/p/apps-for-android
Apache License 2.0
0 stars 0 forks source link

patch to translate by implicit intent #49

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
"Translate" remains very popular on the Android Market. As a developer, I
appreciate being able to leverage existing applications. The proposed patch
allows the app to respond to either the "SEND" or "TRANSLATE" (see
http://www.openintents.org/en/node/286) actions.

New Extras are:
*android.intent.extra.translate.FROM_LANGUAGE
*android.intent.extra.translate.TO_LANGUAGE
and Intent.EXTRA_TEXT is used for the source text.

Apply patches via:
patch -p1 < AndroidManifest.xml.patch
and
patch -p1 < TranslateActivity.java.patch
from the root directory of apps-for-android from SVN.

Original issue reported on code.google.com by kostmo on 4 Nov 2009 at 12:33

Attachments:

GoogleCodeExporter commented 8 years ago
Made a better patch that makes the TO/FROM fields optional.

Original comment by kostmo on 5 Nov 2009 at 11:34

Attachments: