c# - Translate an ASP.Net site to another language -


i need translate website made in english spanish (multilangauge support not necessary). website going used in spanish there no need bother implementing 'resources' or localisations.

the text needing translation in 2 locations:

  • static within html pages
  • in code behind, such error messages etc.

the rest of data (db, xml, etc) have been sorted out.

so there tool or method not time consuming extract of text, mentioned above? the extracted text doesn't need in key/value pair. i'll happy have extracted text in simple format, each separted new line.

it nice way replace translated text original location. but, not necessity. i'll happy have extracted.

please try stick answer question (e.g. solutions such using google display translated version of site don't help!).

thank in advance.

(this asp.net website codebehind written in c#)

despite current requirement website translated spanish, can never know future requirements other languages - default asp.net key/value pair resource file solution makes lot of sense , other reasons.

using local resource files (which xml in pre-set schema) on server avoids costly round trips database every time page loads (although mitigated output caching) , makes easy send phrases translation - of phrases in 1 place, in same file. there range of tools available work them might expect given ubiquity of .net. possible translate resource file using bing give translator head start.

using key rather matching string literals makes lot of sense given issues of same string being used in multiple contexts (where may desirable or necessary translate text in different ways each context - words don't share same possible meanings in different languages) or issues capitalisation, may want same string different capitalisation (although should not insurmountable problem programmatically).

lastly using built in localisation api in asp.net makes trivial change language , ui (date formats example) based on locale user has chosen on computer - , sent in request headers browser. spanish speaking visitor turns @ site, , in spanish - no need hunt control change language based on flags or drop down list. can manually set or overridden if required, , of course applies if site has resources file appropriate locale, incredibly powerful feature available out of box.

if using asp.net web forms second recommendation using resharper extract strings named key you, should aware cannot yet razor views if using asp.net mvc or web pages - although still offer move strings model in case of mvc (and indeed encourage so).

lastly, please aware localisation more language - users may use different formatting dates, numbers, telephone numbers or different text direction in cases. may not apply in project aware of.


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -