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

发布于 2024-11-28 09:22:32 字数 380 浏览 1 评论 0原文

我想将英语翻译成印地语,但模拟器显示方框? 帮助我...

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);

我仍然收到盒子...帮助我

I want to translate english to hindi but emualtor shows boxes ?
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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

心的位置 2024-12-05 09:22:32

模拟器显示方框...可能意味着您的计算机上不存在所需的字体支持...请检查是否已安装印地语字体...
但我不明白您需要使用 webView.loadDataWithBaseURL()...这不会进行我认为的翻译...这只会尝试将给定的数据加载到 WebView 中...并且可能如下不支持印地语字体,正在显示框...

您正在开发某种翻译应用程序或网页吗?
您在一个 TextView 中输入英语并选择要翻译的语言,然后按“翻译”按钮...翻译后的字符串将显示在其他 TextView 中...

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...

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...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文