How to Translate text coming from server in Flutter? - flutter

I am facing translation problems in Flutter. I am using internationalization features in my app to give additional language options to users. I managed to translate app texts but failed with the texts coming from the server. When users choose the language they can add their profession (the List of the professions) for ex. in Italian which is saved in the server and when another user chooses the English language they shouldn't be able to search in English to find this user. How I can achieve to translate texts coming from the server or is there any option to choose a different path? Thanks in advance

Flutter internationalization can not translate dynamic words which are coming from anywhere else, except the words you translated yourself manually. Google Translate uses machine learning to translate one word to another. You can the Google Translate API to translate the word before adding it to the server database and save both words on your server database. Then display the word based on whichever Locale is selected by the user.

Related

Can we translate the Page URLs using Language Copy in AEM?

We are planning to use the Language copy feature for the translation of our English content and have done a small POC using Microsoft trial translator.
We noticed that the created language copy has the URL structure in the English language itself. Let's say if we create a language copy of /content/site/en/test-page, it will create it as /content/site/es/test-page, which is correct but the URL of the Spanish page would be in English. But we want to translate the URL as well for the Spanish language copy. So it should be /content/site/en/página de prueba (in Spanish)
Is it achievable to translate the URL of the page using language copy? what are the different options here?
AEM needs pages to have the same path (and name) after the language node in order to see that this is / should be a language copy. So changing the node name is not an option in your case. In addition to that, changing a page name will be regarded as a move event in AEM and in the end, AEM will not be able to connect your language copies any more.
You can change the alias instead, which is in the page properties in the "Advanced" tab (see https://docs.adobe.com/content/help/en/experience-manager-65/authoring/authoring/editing-page-properties.html for further explanations). If you have spanish aliases for all spanish pages, then your URLs will be using those spanish aliases which is exactly what you would like to have, I guess...
HTH,
OliG

How to make the textformfield with drop down list in flutter?

I am making an application where I have to write my location in text form field and from server it fetches the data and show us the similar words related to the words in drop down list and I can choose from that list or can write a complete new location in text form field, if it is not present in that drop down list. How can I achieve that in flutter?
Note: I don't want to use google places API right now in my project but will do that definitely in future. Right now I can store my locations in my server.

How to store whole book text (written in Arabic/Urdu language) in MongoDB , such a way that I can search text from it later?

I want to store text of a book (written in Arabic/Urdu language) in MongoDB in the best possible way so that I can search any word from it, because I have to make a Mobile App where user will enter a search string and I will show him the best match accordingly.
Note: Every thing in app and DB will be in Arabic & Urdu language.
I expect someone will suggest about:
How should I store the whole book's text (format and way to store)?
Guideline about how I will search that text on the base of user search string?
And any thing else you think is necessary to know for me before starting this project?

Change fields depending on drop down selection in Microsoft Word design mode

Can anyone point me to info about how to create a Microsoft Word document that changes text input fields depending on what the user selects in a drop-down menu?
I'm using Word, Developer toolbar, Design mode, and have gotten as far as how to create the drop down selection box, and add text input fields below that on the page, but I need to know how to change what fields appear depending on what the selection is. I'm sure it's possible, I just don't know how to go about it.
I'm pretty good with this sort of thing in HTML with javascript and jQuery, but Word is its own little world.
I tried the "structured" tab but it suggests selecting XML add ins, and none appear in the list to select.
One option is using a template approach in combination with 3rd party toolkit and external application. External application takes care for user interface where user selects template and sets filter for data retrieval. The application then reads the data, generates new document based on template and populates it with data.
You don’t have to mess with MS Word macros and this solution can survive Office upgrades very smoothly.
Template design in done in MS Word. We are using third party toolkit (i.e. Docentric Toolkit) for populating Word documents with data.

Does Orbeon Form support the Thai language?

I am new to Orbeon Form and would like to use it. However, I had tried the Form examples on Orbeon Form Web Site and input some of data in Thai Language. Yes, It can be input data in the fields with “Thai Language”. But when I try to generate “PDF”. The Thai Language Data cannot be displayed.
Can Orbeon X-Forms Support “Thai Language” for inputting Data in the Fields ?
Do I need to use “Professional version” in order to get “Thai Language” to work and display on PDF generation ?
Can “Orbeon X-Form” be able to save Data Locally at the workstation (in case the forms are complicated to fill-in, and need several input time to finish?
This is probably due to the fact that the PDF is lacking an adequate font. Since September 2011 builds, there are properties to specify font embedding, for example:
<property as="xs:string"
name="oxf.fr.pdf.font.path.vera"
value="/path/to/DejaVuSans.ttf"/
For more information, see the documentation. Embedding a specific font with Thai characters might do the trick, although to be fair I haven't tried Thai specifically.
This should work equally well with both Orbeon Forms CE and PE.
You can do this by adding the "Save locally" button to your forms, which is done by setting a property in your properties-local.xml. This will enable users to save an HTML file on their local machine. The HTML file contains all the information they entered so far: when they reopen it, they are taken back to the form on your side, with the data they entered so far "pre-filled".
You can go through this link for internationlization of Orbeon Forms
http://wiki.orbeon.com/forms/how-to/logic/i18n
There is an example given too with multiple languages reflecting on a same form.