Can you please suggest to me the best way to make a Multilingual Website that shows text in the selected language but at time of saving to the database have it saved in English?
There is a hurdle: my website uses some Silverlight.
http://www.silverlightshow.net/items/Internationalization-Globalization-in-Silverlight-Part-1-Terminology.aspx
if it is still relevant I was using Gtranslate plugin on my website for years. Very comfortable. The big advantage: You will have each language version in a dedicated URL - meaning you will get more exposure on the search enginese. But the disadvantages: I suppose it add some load time to your webpages, and of course the monthly payment for subscription.
Related
I want to create a website in ASP.NET which handles multiple languages. My content is in three languages: Roman, Urdu and English.The content will be dynamic.
For example, if a user visits my website and he searches on website for a specific post. Then the user wants to change the language preference, its content will change dynamically as a user selects different language from menu. Then he searches for another post and wants to change language preference to some other language, the content must be translated again into the newly selected language.
I can afford to insert separate data for each of the language in database but i am not sure if this works and how this works (how to create db design for such solution and how to store and retrieve same data in multiple languages in db).
I have been looking at some threads on different platforms but the solutions I have come across with are not feasible for my scenario.
One solution is to use Google Translate, but I need quality translation and Google Translate does not perform well on Roman Language.
Another most encouraged solution for ASP.NET is to use resource files (key-value pairs for content). Using Resource files for small websites where content is static works perfectly fine, but the resource files are not salable and would not work for my scenario as the content I am dealing with is completely dynamic.
Please let me know if there is a solution. Any help will be appreciated!
Thanks.
I'm trying to create a wpf application such as a movies library because i would like to manage and sort out my movies with a pretty interface.
I'd like to create a library with all my movies getting information from the web, but i don't know how very well.
I thought to get the information from a web site, for example imdb, but i don't know if it's legally to capture html from page to get the nested information.
It's my first desktop application and I would also like to know if it is necessary to create a database within the project and then create a setup project with specified script for deploy it.
Sorry for the confusion but i would like to know too much things :)
Thanks a lot in advance.
The legality of web scraping is a grey area. See my question, "Legality of Web Scraping vs Normal Use" and the corresponding answers for some insight.
Even if the legality is not a problem, web scraping is a flimsy approach because the webpage structure may change without notice, making your application suddenly useless until you update it to the new format. You are much better off using some sort of web API (if the site providing the information offers it).
Whether you need a database or not depends entirely on what your application will be doing and how you design it - it's not something any of us can tell you.
Same goes for the setup project - in fact I wouldn't worry about that until you actually have a working application. Take it step by step and keep the scope within control.
Yes I did not think about api.
It's a great idea, maybe use "themoviedb".
But if i create an application based on it, that has to show all the movies that you have stored on your hdd and get , for example, the posters, the description and the ranking, i have to create a database according to you?
Thanks a lot.
I've created a website for a client of mine. It is coded in ASP.NET with C# and hosted on GoDaddy. She requires this website to updated daily by her. However, this client has very little knowledge of how to edit HTML or text within a site. I don't want to edit it every time she wants an update on the site.
What would be the best solution to my problem? I have looked up Content Management Systems, but I'm a little confused by what exactly it does in terms of coding and the management of the existing site. Does it require me to reformat the whole site to follow the CMS's 'templates'? Would it be better for me design my own back-end panel for her to edit the content (this would obviously take significant work)?
If you want to stick with a site you're developing from scratch, I'd use the HtmlEditor from the AjaxControlToolkit or a similar control, and store the html content in the database.
Then, when outputting the html from the database to the client pages, I'd make sure to use the Microsoft Anti-Cross Site Scripting Library to sanitize the html using the GetHtmlFragment() function (since this is tagged asp.net). It's not that much work, actually, if you design the database correctly, and if you've got the skills.
CMS systems are (trying not to oversimplify) entire web sites that are already built and allow people to edit the content using built-in content editing functionality. They range in functionality and extensibility from a "You get what you get and there's very little you can change" to "You can customize the heck out of it and buy or build your own modules to extend functionality." There are a lot of good ones out there, some free, and some expensive.
I have just started programming and have made a few small applications in C and C#. My understanding is that programming for the web and things related to the web is a very easy task nowadays.
Please note this is for personnel learning, not for rent a coder or any money making.
An application which can run on any Windows platform (even Windows 98).
The application should start automatically at a scheduled time and do the following.
Connect to a site which displays stock prices summary (high low current open).
Capture the data (excluding the other things in the site.)
And save it to disk (an SQL database)
Please note:-
The Internet connection is assumed to be there always.
I do not want to know how to make a database schema or a database.
The stock exchange has no law prohibiting the use of the data provided on its site, but I do not want to mention the name in case I am wrong, but it's for personal private use only.
The data of summary of pricing is arranged in a table such that when copied pasted to MS Excel it automatically forms a table.
What are some steps, guidance, examples and libraries for achieving this task?
You can use the HTML Agility Pack to parse web pages.
I am studying computer science and we have to do a programming project which must be strongly related to XML and using XSD and XSLT or XQuery/XPath at least. Because I like C# I'd like to do it in this language, but I could use another if anyone has another idea.
My Idea is now to code some kind of appointment book. I imagine that all appointments for the week are shown as HTML and you can enter for each day appointment notes in the textarea for this day.
Now my question: How can I take over the data entered in the textboxes? The application is an offline one so I have no web server receiving the GET request containing the entered data. Is it possible to read the current HTML DOM from memory with all its entered values and then transform it to an XML format for persistent storage from which it could be read in later?
Or is this idea totally stupid?
How else can I put all those XML technologies in one app?
If you want to show UI Generation from XSLT, the web page approach is easiest.
More impressive is generation of XAML from XSLT -> windows app (WPF).
Download Visual Web Developer (FREE)
or
Visual C#
Why does it have to be Web based?
You can use those technologies in a Windows Application.
You can use JavaScript. Convert the data into XML or JSON and output it to another element, like div, or textarea.
What you need to do is set a function that does all this and gets executed on submit.
Check this example. Also to speed things up, you can use a library like jQuery.
Being at home and offline do not mean you don't have a Web server. There are zillions of ready-made packages which offer an embedded HTTP server so that the same application can run online and offline without any modification. Very convenient.
(I know you us C# but, just to show an example, I use wsgiref.simple_server for that purpose.)
Why not make a windows app that allows the user to update the appointments which are stored in an XML file. Then use a stylesheet to display the appointments in a web browser.