Current Position:Home > Translate Site English and French in ColdFusion

Translate Site English and French in ColdFusion

Update:11-30Source: network consolidation
Advertisement
I am on this project where we need to allow users from French speaking countries to be able to view the webpages and surf the site in French. I am kind of lost on the best appraoch to get this done. Please any one has an idea of where to start?
The site is working now in English and there is a databse (MS SQL Server 2005) set up also in English.
How do I translate the site to French.
The database does it have an in-built translator that will do this translation for us?
Thanks

The Best Answer

Advertisement
Well it's certainly no small task you're undertaking there, but there are a couple of ways of doing it as far as I know.
The first is to store all the phrases in all languages in an XML file, then pull the correct outputs depending on the current language. For example: (pseudo, obv)
<xml>
    <dict lang="EN-US">
        <phrase id="1" value="Hello there. Welcome!" />
        <phrase id="2" value="Sorry to see you go, goodbye!" />
    </dict>
    <dict lang="FR">
        <phrase id="1" value="Bonjour. Bienvenue!" />
        <phrase id="2" value="Ah, le chat des ami. Au revoir!" />   
    </dict>
    <dict lang="ES">
        <phrase id="1" value="Hola! Bienvenido!" />
        <phrase id="2" value="Lo siento, pero tu hermana es muy guapa!" />   
    </dict>
</xml>
You then load each language into a structure in the APPLICATION scope (call it APPLICATION.LANG), then pretty much everywhere in your code you need to output something you'd instead do:
<cfoutput>#APPLICATION.LANG[SESSION.language].phrase1#</cfoutput>
Or similar.
The other approach is similar, but involves having the phrases saved in database tables and doing a similar thing.
And sadly no, you'll struggle to find anything that can reliably translate for you - certainly not a database.
O
PS languages are not my strong point, as you may have noticed.
  • Translate Site English and French in ColdFusion Update:11-30

    I am on this project where we need to allow users from French speaking countries to be able to view the webpages and surf the site in French. I am kind of lost on the best appraoch to get this done. Please any one has an idea of where to start? The s

  • Technical document require for english into French translation Update:11-30

    Hello dl-dba people I am current working on assessing the feasibility of translating some Oracle Report Figures from english into French. Are there any technical document that shows how to run a Oracle report builder 9i figures in French language or

  • TS1702 I bought Say Hi Translate. How can I change it to translate English to French now that it is installed? It comes up Spanish and French ! Can you tell me how to get this changed? Update:11-30

    I bought Say Hi Translate app.  How can I change it to translate English to French?  It's already installed and it now has Spanish/French after I tried several ways to change it, but originally it came up English to Spanish. Can you tell me how to ge

  • Support for Canadian English and French in OBIEE Update:10-11

    I would like to know whether OBIEE supports Canadian English & Canadian French. I have looked at several documents and links pertaining to the "Language Support", but am still unclear whether they are supported. Many thanks for your assistan

  • Translate from english to another language Update:11-30

    I have a report where I would like to translate english to french, spanish etc. is there a funtion that will do this, or do i need to purchase a tool???> sharonamtowler wrote: > the app i am working on has tables that you predefine words and they tr

  • Maintaining F1 help in English and French Update:11-30

    Hi, I have a request for all users to have the SRM in English. But in France, we would like to have the context menu in French. With above requirement, I have following questions: - 1. Can this online help overwrite standard one if standard one exist

  • Translate Photoshop CS2  in French Update:11-30

    Hello ! I have downloaded PSP free CS2 version in English : how to translate this English version in French ThanksI have download my CS2 version on this adress : https://www.adobe.com/cfusion/entitlement/index.cfm?e=cs2_downloads&pid=4485850 for this

  • Premiere Pro interface : bad translations from english Update:11-30

    Translating a software into many different languages can be a difficult task. But honestly, a software like Premiere Pro can't be that bad in translated terms. For example, the function "add edit" is translated in french "ajouter le montage

  • How to login to Adobe and see information in ENGLISH not French? Update:11-30

    I live in France. I speak and understand French, but I'm British and want to see the information on the Adobe site in English, not French. I know that, by fiddling around, I can switch languages after login (where, I'm not sure, but I know it's there

  • How can I change my auto-correction language from english to french? Update:10-11

    My system language is english, so all the default language is also in english but how can I change the auto-correction language from english to french and without changing the menu language? Message was edited by: MarixomiaIt's just, I want to change