Results 1 to 10 of 10

Thread: Multilingual Websites - Best Strategy?

  1. #1
    Senior Member
    Join Date
    Jul 2003
    Posts
    1,066
    Thanks
    1
    Thanked
    0 times in 0 posts

    Multilingual Websites - Best Strategy?

    Starting a web development project that involves having the site in different languages.

    At the moment I'm trying to work out how to best implement the system to handle the different languages. Having static language files is the easiest option in my opinion but it screams to me that if something needs changed I have to edit all the different language files.

    Is dynamic translation feasible on a one man project? Can you buy in software that will allow me to have an English master site which can then be translated as and when a user changes the language on the site?

    Would be really interested to hear how people have done it in the past

  2. #2
    Comfortably Numb directhex's Avatar
    Join Date
    Jul 2003
    Location
    /dev/urandom
    Posts
    17,074
    Thanks
    228
    Thanked
    1,027 times in 678 posts
    • directhex's system
      • Motherboard:
      • Asus ROG Strix B550-I Gaming
      • CPU:
      • Ryzen 5900x
      • Memory:
      • 64GB G.Skill Trident Z RGB
      • Storage:
      • 2TB Seagate Firecuda 520
      • Graphics card(s):
      • EVGA GeForce RTX 3080 XC3 Ultra
      • PSU:
      • EVGA SuperNOVA 850W G3
      • Case:
      • NZXT H210i
      • Operating System:
      • Ubuntu 20.04, Windows 10
      • Monitor(s):
      • LG 34GN850
      • Internet:
      • FIOS
    machine translation will always look terrible

    use standard codes for everything and a bit of browser sniffing (so you have www.mysite.com/FR/images/logo.png and www.mysite.com/en_GB/images/logo.png, with the PHP/ASP/whatever for the site filling in the language code as needed). abstract as much as possible - as long as you use CSS properly, then each page in each language should only need a little tinkering

  3. #3
    sp3n
    Guest
    recently completed a fairly complex multi language flash site.
    5 languages - English, Italian, Russian, Chinese (simplified) and Japanese.

    we did it with the combination of a mysql database having table/field names ending with ENG/RUS etc for product information/details, and static resource bundles for page labels/titles/links etc.

    worked really well !

  4. #4
    Seething Cauldron of Hatred TheAnimus's Avatar
    Join Date
    Aug 2005
    Posts
    17,168
    Thanks
    803
    Thanked
    2,152 times in 1,408 posts
    There are some good examples for this in asp.Net (remeber, this is a platform, not a language) on msdn.

    The great thing about doing it this way, is its rather easy too manetain assuming you have Visual Studio (even the free express edition can do this i belive)
    throw new ArgumentException (String, String, Exception)

  5. #5
    IBM
    IBM is offline
    there but for the grace of God, go I IBM's Avatar
    Join Date
    Dec 2003
    Location
    West London
    Posts
    4,187
    Thanks
    149
    Thanked
    244 times in 145 posts
    • IBM's system
      • Motherboard:
      • Asus P5K Deluxe
      • CPU:
      • Intel E6600 Core2Duo 2.40GHz
      • Memory:
      • 2x2GB kit (1GBx2), Ballistix 240-pin DIMM, DDR2 PC2-6400
      • Storage:
      • 150G WD SATA 10k RAPTOR, 500GB WD SATA Enterprise
      • Graphics card(s):
      • Leadtek NVIDIA GeForce PX8800GTS 640MB
      • PSU:
      • CORSAIR HX 620W MODULAR PSU
      • Case:
      • Antec P182 Black Case
      • Monitor(s):
      • Dell 2407WPF A04
      • Internet:
      • domestic zoom
    Rogue .... don't worry, I know what you're saying. The answer is no, there's no realtime translation system which will produce well written language translations. Yet. It's only a matter of time, but if you need it now, you're going to have to get it changed and translated everytime you edit the original text. I don't know who you're using, but I can recommend www.corporatetranslation.co.uk (they're cheap but very good)...I think their website is under construction, but if you want the contact number I can get it for you.
    sig removed by Zak33

  6. #6
    Theoretical Element Spud1's Avatar
    Join Date
    Jul 2003
    Location
    North West
    Posts
    7,508
    Thanks
    336
    Thanked
    320 times in 255 posts
    • Spud1's system
      • Motherboard:
      • Gigabyte Aorus Master
      • CPU:
      • 9900k
      • Memory:
      • 16GB GSkill Trident Z
      • Storage:
      • Lots.
      • Graphics card(s):
      • RTX3090
      • PSU:
      • 750w
      • Case:
      • BeQuiet Dark Base Pro rev.2
      • Operating System:
      • Windows 10
      • Monitor(s):
      • Asus PG35VQ
      • Internet:
      • 910/100mb Fibre
    In my opinion, the best way of doing this is with ASP.NET resource files.

    Doing things this way, you create one version of each page, but rather than setting the language specific properties of your controls (text or writing direction for example) in your code or the property window, you set them in 'resource files', and create one per language. Eg contact.aspx would have contactEn-GB.resx and contactDe-DE.resx for english and german. Then you add some relavent code in the top of the page file to use resources and your away. This can all be done using Visual Studio's resource designer/editor which makes things nice and easy

    As for choosing the language to display..well my preferred way is to use browser language settings to pick it up (easiy in .NET), but to also offer a drop down list or series of links to change the language if desired (preferably also set in an account) .

    Getting the pages translated is best done with a service like ibm suggests; you just write the english text and then email it to them, before copying it back into your resource files.

  7. #7
    Senior Member
    Join Date
    Jul 2003
    Posts
    1,066
    Thanks
    1
    Thanked
    0 times in 0 posts
    Cheers for the advice so far guys, proving helpful!

  8. #8
    Flower Child stytagm's Avatar
    Join Date
    Aug 2004
    Location
    London
    Posts
    754
    Thanks
    47
    Thanked
    23 times in 18 posts
    We do exactly what Spud1 described, all the text on the site is in .Net Resx files, (which are just XML at the end of the day) and it's sucked in according to settings.

    We then do the same for images. Graphics with no text are in /images but anything with text in it would be in subfolders something like /images/en-GB

    Alt texts can be a problem, but you can use more strings from your resources files.

    What languages / platforms are you using?
    They told me I was gullible ... and I believed them.

  9. #9
    awm
    awm is offline
    Senior Member
    Join Date
    Apr 2006
    Location
    US
    Posts
    920
    Thanks
    4
    Thanked
    7 times in 7 posts
    I know Apache has multilanguage support built in (it finds the right language for you). The default pages (at least on Mac OS X Server) are multlingual and are named index.html.fr, index.html.it (or something like that). Just another thing to look into.

  10. #10
    Senior Member
    Join Date
    Jul 2003
    Posts
    1,066
    Thanks
    1
    Thanked
    0 times in 0 posts
    I was hoping to do it using PHP / MYSQL but I have been meaning to look into .net for a while now so this could very well give the excuse to do it. Having said that I don't really want to waste the clients time while I disappear off to learn C# and .net!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Referencing websites
    By Hasnath in forum General Discussion
    Replies: 10
    Last Post: 09-02-2007, 09:07 PM
  2. Best ever Strategy game
    By Isy in forum Gaming
    Replies: 108
    Last Post: 01-12-2006, 06:49 PM
  3. Websites for viewing on PDAs...
    By headbrace in forum Smartphones and Tablets
    Replies: 4
    Last Post: 19-04-2006, 07:17 PM
  4. Make websites available offline in firefox...
    By Alex in forum General Discussion
    Replies: 5
    Last Post: 02-03-2005, 12:33 PM
  5. Guys - recommend me a strategy game
    By Skii in forum Gaming
    Replies: 17
    Last Post: 06-03-2004, 01:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •