简体   繁体   English

我们可以将英语翻译成印地文吗?

[英]Can we Translate english into hindi?

I want to translate english to hindi but emualtor shows boxes ? 我想将英语翻译成印地文,但emualtor会显示框吗? help me... 帮我...

final TextView textV = (TextView) findViewById(R.id.textView1);

    textV.setTypeface(Typeface.createFromAsset(getAssets(),"K010.ttf")); 
    try{
    Translate.setHttpReferrer("www.some.com");
    String str1=Translate.execute("love", Language.ENGLISH, Language.HINDI);
    textV.setText(str1);

still i am getting boxes.....help me 还是我在拿箱子.....帮助我

Emulator shows boxes...may mean that the required font support is not present on your machine...please check if the Hindi font has been installed... But I did not understand the need for you to use the webView.loadDataWithBaseURL()...this would not do the translation I think...This will just try to load the given data into the WebView...and may be as the Hindi font is not supported the boxes are being displayed... 仿真器显示框...可能意味着您的计算机上没有所需的字体支持...请检查是否已安装Hindi字体...但是我不理解您是否需要使用webView.loadDataWithBaseURL( )...这不会做我认为的翻译...这只会尝试将给定的数据加载到WebView中...并且可能是由于不支持Hindi字体而正在显示框...

Are you developing kind of translator application or web page? 您正在开发一种翻译器应用程序还是网页? where you type English in one TextView and select the langauge to which it has to be translated and the press an buttons "Translate"...and the translated string will be displayed in other TextView... 在一个TextView中键入英语,然后选择要翻译的语言,然后按一下“翻译”按钮,翻译后的字符串将显示在另一个TextView中。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 Android 中将英文文本翻译成印地语 - Translate English Text to Hindi in Android 如何以编程方式将英语文本转换为日语文本? - How can I translate English text to Japanese text programmatically? 印地语/英语键盘,用于特定应用的输入文本 - Hindi/English keyboard for input text for specific application 如何在Android中以编程方式获取印地语键盘/将其翻译成印地文文本 - How to get Hindi Keyboard/translate into hindi text programatically in Android 如何将整个应用程序翻译成印地语phonegap - How to translate whole application into hindi phonegap 在不使用Google API的情况下,在Android上将印地语翻译成英语 - Transliteration from Hindi to English on Android without using Google API 如何从 english-hindi.sqlite 数据库中检索/打印控制台中正确的印地语含义文本 - How to retrieve/print proper Hindi meaning text in Console from a english-hindi.sqlite database facebook登录页面标签以印地文显示,但未以英语显示 - facebook login page labels are showing in hindi language but not in English Android:将英语数字字符串显示为印地文或任何语言数字字符串 - Android : show a english number string into hindi or any language number string 在Android Studio中为我的英语新闻应用程序选择语言(在英语新闻与北印度新闻之间切换) - Language selection for my English news app in Android studio (Switch between English news to Hindi News)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM