Quick question... I am programming a Pepper chatbot using QiChat on Android Studio. The default language of the chat should be German. When creating topics tho, it reads "will be created in the default language of the app", with no option to change it there.
Apparently the default language is English - how can I change it?
TIA!
The Chat API of Pepper allows you to set your preferred language.
In this tutorial, they show that you can set the locale of the Chat when building it, this way:
val chat: Chat = ChatBuilder.with(qiContext)
.withChatbot(qiChatbot)
.withLocale(locale)
.build()
Note however that in general, on Android, the current locale is decided by the user, via the settings. In order to respect the user's decision, it is preferable that you use this mechanism only as a fallback.
Related
My Eclipse 2020-06 complained that it need node.js for some editor key features.
I installed node.js along with chocolatey and a lot of packages without any idea and I can't find any information about this on the web. Does anyone know something about this?
EDIT
I just found that my html style attribute has a color picker as below now. No clue if it is html editor feature added by node.js and curious that if I can configure (disable) it or not.
EDIT 2
I can't comment so I updated my findings here!
Just as howlger said, I also found there is "Angular language server" messages in my console window that is also discussed in another topic : Why are there multiple Angular language server tabs in my Eclipse console. I can just ignore it but some of my html with Thymeleaf template scripts reports error is really annoying me.
EDIT 3
Disable Angular Language Servers in Window > Preferences does not solve my issue in EDIT 2.
Another interesting situation is: Before I install node.js, my Eclipse editors LAG very often when I copy/paste or double click some text in the editor. It does not happen after node.js installation. Maybe finding node.js cause the LAG.
Eclipse Wild Web Developer which is included in some Eclipse IDE packages provides support for JavaScript, TypeScript, HTML, CSS, etc. via so-called language server and Node.js is required to execute these language servers.
Most of the language servers that are included in Wild Web Developer are written in JavaScript (or to be more precise, in TypeScript, which is then translated into JavaScript). In contrast to web browsers, the JavaScript that can be run by Node.js is more standardized and has an additional API, for example to read files.
With the exception of the XML language server LemMinX, the language servers that are shipped with Wild Web Developer are developed by non-Eclipse projects not for, or rather not only for Eclipse (the idea of language servers is to support a language, a framework or a format by having only one implementation for multiple IDEs and text editors, preferably in the language to support).
For a list of all language servers contained in your Eclipse IDE, see Window > Preferences: Language Servers.
Is it possible to receive requests in two different languages in one Action, now that the Google Assistant is Bilingual:
It is possible for on Action to be written to work in multiple languages and locales. There's guidance in the documentation to extend a single Dialogflow agent as well. However, I don't believe the Action will be multilingual. It'll depend on what invocation phrase you use.
If you say "Talk to my test app", you'll get the English version.
If you say "parler avec mon application de test", you'll get the French version.
If your Action has a fulfillment, you'll be able to get the current locale by getting conv.user.locale.
Yes you can.
You select up multiple languages in console.Actions.google.com
You then add a second language to your project.
Under your project name you now have multiple language markers.
You have to set up intent verbal triggers for both the main language and also the secondary language in dialogflow.
It is in this way that the system recognises what language is being spoken and kicks off the appropriate intent.
Note: If you use webhook functions they too will have to be updated to support multilingual functionality. I have implemented i18n as my framework.
There is a great tutorial at:
https://medium.com/voiceano/publishing-bilingual-actions-for-google-assistant-61c326d1b79?fbclid=IwAR1ysjBecJpZUP2bpUgXMZDkvpS6V4qvY75S0RdVw8q0PtZAjPMoTcty2vU
I have an XPages application which is available in 4 languages. I would like that each user can choose the language in which the application is presented to him. What is the best way of doing this? It seems to me that I need to set a user specific parameter but am not sure how to go about this. At the moment I use a scope variable to determine which language the application is displayed in. This scope variable is server specific so all users see the application in the same language. Now I would like the application to be presented in the langauge chosen by each user (although all users are accessing the application on the same server). In Notes this was possible by writing a value to the user .ini file. Is there an XPages equivalent of this?
The XPages Toolkit project has an Language bean that gives the options to set a specific language to an application or let the user decide.
http://www.openntf.org/main.nsf/project.xsp?r=project/XPages%20Toolkit
If you can't use the extension OSGI plugin checkout the java source on github
https://github.com/OpenNTF/XPagesToolkit
An implement what you need
I am creating an app in which I have integrated Cortana. Its in English version and all is working fine. Now I would like to add one more language(er.French or Italian) I know that I have to add one more commandset with xml:lang tag. But how can I test it? Do I needs to change the phone language also? or with my current English language will work for different language? Please help
Changing the language of the phone is an option, but you can also simply add additional language "packs" to your phone. Go to Settings -> Speech and then open the Speech languages list. You'll see all the supported languages on Windows Phone, along with a download size, which indicates they are not yet installed. Select the language to download and then wait. Installing a new language pack is considered a system update, which means it'll have to reboot the phone and perform the long data migration process. Your phone will be unusable for 20-30 minutes or more. repeat for more languages.
Once a language is installed, you can use Cortana VCD, text-to-speech and speech recognition in your apps in that language.
You can also use the Windows Phone emulator since the images come pre-loaded with all the languages by default. This is a great way to test all the possible languages for an international deployment (provided you are familiar with said languages).
To learn more about speech & Cortana integration in Windows & WP apps, let me recommend this free online course on Microsoft Virtual Academy: http://aka.ms/cortanamva.
I want to set the application language in iTunes. It always shows only English, but I want to show two languages in iTunes. I don’t want to make any changes to the application code, as I’m already managing these two languages by device language.
The sample image contains multiple languages, like English, Chinese, Dutch, and French.
I have the same issue currently, and even if I fill different languages in iTunes Connect, I still have only English.
I'll try something else, just by adding en.lproj & xx.lproj (replace xx by country language two caracters code) in my app with some data inside. I think when you submit an app, this is where Apple collect the list of available languages). I hope this will works!
You can edit the localizations via iTunes Connect. Choose you application from the list and click Manage Localizations. However, if your app is currently in review or approved, you need to submit a new binary:
You cannot add a new language from
this page because your app has either
already been approved or is currently
in review. To add a new language, you
must submit a new version of your app.