Best way to allow users to add text in another language - xamarin.forms

I have a Xamarin Forms app where users enter the pieces of information they want to gather on a form. The user provides a caption for each piece of information. I want to allow the user to enter a caption for each piece of information in multiple languages. I was wondering if there was a best practice for doing this?
My thought was to load all the ISO-639-1 codes into a list in the app and let the user select from the list of ISO-639-1 languages. Then they could enter the caption for each piece of information in that language. Any other thoughts?
FYI - I want to use the ISO 639-1 codes as the key for the language in the app as that is what the CultureInfo.CurrentUICulture.TwoLetterISOLanguageName line of code returns in Xamarin Forms.

So I ended up loading a list of languages based on the ISO_639_1_Code into an object in my application. This is all hard coded fyi. Then I have a combobox where the user selects the language they would like to add translated captions for. When they enter the new languages, I save them in the app with the language code set as the ISO_639_1_Code. This is working fine for me.

Related

how to create language dictionaries

I'm building a web app that's going to support multiple languages. For the moment, the words are hard-coded in English in the HTML and javascript. I want to use objects that contains the English word as the key and the word to be displayed as the value and have this dictionary object populate the page at runtime. But my question is not about client-side issues.
What's the best way to store and maintain this dictionary on the server. So far, I thought of a database table with columns for the English word and rows for the values to be displayed. I would then load an entire row in an anonymous type that I'd serialize in json and send the client. I think it'd work but I'm wondering if that's the best way to do it so that the dictionary will be easy to maintain.
If you've had some experience dealing with internationalization then please let me know if you have some suggestions.
Thanks.
You can use Resouce files for multiple language support for asp.net web. It is THE BEST method to use for multiple language support in asp.net. http://msdn.microsoft.com/en-us/library/fw69ke6f%28v=vs.100%29.aspx

How to enter mathematics equations in asp.net and save equation to SQL Server for my online test

I want to take math equations from user interface like a textbox and save them to SQL Server.
Is there any possible way please suggest me. I found like creating images but it not possible for my project which needs to create lot and user did not have that much of knowledge in creating images and me too.
Please help me like binding virtual keyboard to textbox or other possible ways
NMaheshGoud
I'd take a look at MathML if I were you. It would require a custom control to allow the user to enter the data. Unfortunately the .Net editor appears to no longer be available but you could resort to a Flash-based one such as fmath Editor.
Why can't you save it in a nvarchar field?
Assuming you are allowing text input then save it as this base form?
I've published a JavaScript library that you can use to create a virtual math keyboard. It is intended for use together with any LaTeX typesetting library (for example MathJax or KaTeX).
GitHub repository: https://github.com/MathKeyboardEngine/MathKeyboardEngine
Live examples: https://mathkeyboardengine.github.io
I see that you want to store the user's input in a database. Call getViewModeLatex to get the user's input as a LaTeX string (for example \frac{x}{1-x}) that you can store.

internationalization website

I am use this example to internationalize my website.
The admin can create new topics in English, and I want to show the same topic in Spanish.
How can this be done?
it isn't standars works like Register or other to do that
Html.ActionLink(Resources.Register, "Register")
The admin can create topics - this means that content is dynamic, therefore you can't use resources files any longer. You should structure your database to support localization. Then you would have to read language locale from thread that's currently being executed.
Additionally, you may let user to select his language. In this scenario you will store selected language in a session and retrieve localized data from the database based on language locale in the session.
Finally you can write code to read first default language in a web browser. For example, change your language to hungarian in a web browser and go to google, see what happens.
You should use Localization and Globalization, take a look at http://msdn.microsoft.com/en-us/library/c6zyy3s9.aspx

Where can I get bilingual dictionary for my application?

I'm wondering if there is a place where I can get a bilingual dictionary in open format for my program.
So far I'd like to have just few language pairs: eng-esp, eng-frn, ger-esp, let's say.
I googled and lurked without success so far.
I've done translation for an application using BabelFish and it came out ok, especially when you keep captions and messages short. To display different languages I used 'Chilkat's Charset' to render the different languages. I kept all the language translations in an excel file, good thing because customers have added to this language collection for us. The program has all the translations in text files that it uses to populate captions and messages prompts.
Would a google translate API work?: http://code.google.com/apis/language/

How do you handle attachments in your web application?

Due to a lack of response to my original question, probably due to poor wording on my part. Since then, I have thought about my original question and decided to reword it, hopefully for the better! :)
We create custom business software for our customers, and quite often they want attachments to be added to certain business entities. For example, they want to attach a Word document to a customer, or an image to a job. I'm curious as to how other are handling the following:
How the user attaches documents? Single attachment? Batch attachment?
How you display the attached
documents? Simple list? Detailed list?
And the killer question, how the
user then edits attached documents? Is this even possible in a web environment? Granted the user can just view the attachment.
Is there a good control library to help manage this process?
Our current development environment is ASP.NET and C#, but I don't think this is a pretty agnostic question when it comes to development tools, save for the fact I need to work in a web environment.
It seems we always run into problems with the customer and working with attachments in a web environment so I am looking for some successes that other programmers have had with their user base on how best to interact with attachments.
Start with one file upload control ("Browse button"), and use JavaScript to dynamically add more upload controls if they want to attach multiple files in a single batch.
Display them in a simple list format (Filename, type, size, date), but provide full details somewhere else if they want them.
If they want to edit the files, they have to download them, then re-upload them. Hence, you need a way that they can say "this attachment overrides that old attachment".
I'm not familiar with C# and ASP.NET, so I can't recommend any libraries that will help.
http://developer.yahoo.com/yui/uploader/

Resources