Jump to content

Best multilingual express solution

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
amrosama

amrosama

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 8,674 posts
hi people,
im in a bottle-neck situation here, after working hard on a web-application. my boss wanted it to be multilingual. the web-application is in English, my boss wants to add arabic, french, spanish and some other language i dont remember.
im almost finished with the whole application (in English) and i have no experience in this language conversion thing. so i was wondering if theres anyone here who can help me out?
yo homie i heard you like one-line codes so i put a one line code that evals a decrypted one line code that prints "i love one line codes"
eval(base64_decode("cHJpbnQgJ2kgbG92ZSBvbmUtbGluZSBjb2Rlcyc7"));
www.amrosama.com | the unholy methods of javascript

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
At some point, somebody will have to do the translation (manual or through a tool). Then it's just a matter of selecting the right language to display based on user preference. The details, of course, are in the web-language (PHP?) and where the content is coming from.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
amrosama

amrosama

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 8,674 posts
oh sorry i forgot to mention that.
im using PHP5
but the content is really tricky because, the multilingual system content that will change according to language is:
-static HTML pages : easy
-input forms (stuff like new customer input): can be tricky because database must accept english only since i use some fields in queries and search
-reports and quiries :S
is there hope?
yo homie i heard you like one-line codes so i put a one line code that evals a decrypted one line code that prints "i love one line codes"
eval(base64_decode("cHJpbnQgJ2kgbG92ZSBvbmUtbGluZSBjb2Rlcyc7"));
www.amrosama.com | the unholy methods of javascript

#4
Guest_Jordan_*

Guest_Jordan_*
  • Guests
You could use a phrasing system for the static pages/words. Depending on the language selected, it would change.
As for the user submitted content you could use Google analytics. There is a Word Press tool that automatically converts all blog posts into several languages using this. You may want to look into that and see how that works.
Posted via CodeCall Mobile

#5
xsonline

xsonline

    Learning Programmer

  • Members
  • PipPipPip
  • 48 posts
It's possible to translate your site, but it might be tricky. I assume you have a directory with all content in it? For starters, I would create a second directory with all translated files.

If you have your content in a database, you could just add a column to the table with the language. So in your site, you need to select a language.

Technically it's all not so difficult, but you must be careful not to repeat too much of your code. If you have to change something in 15 different places in order to make a change to your system, you're in trouble.