[英]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.