Languages

21 posts by 8 authors in: Forums > CMS Builder
Last Post: September 7, 2011   (RSS)

By Jason - December 30, 2010

Hi Maurice,

Since you'll probably have to use a different page for each language, it won't matter how you store the information for SEO. The best thing to do would be to use the technique that is easiest for you to work with.

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [jimbly2] Languages

By Maurice - January 30, 2011

Hi dave and team,

We are building a multi language site right now. dutch, German, Spanish, English, Chinees and french.

can't you guys make a plug-in??

the language thing is becoming a big issue now.

all 3 options you suggest give with larger sites many problems manly with the content management en development.

isn't there a good and smart solution????

hope u have one soon.
-------------------------------------------

Dropmonkey.nl

By Jason - January 31, 2011

Hi Maurice,

Generally, multi-language sites can be handled either by using a third party service to translate your site on the fly (http://code.google.com/apis/language/) or to have your content stored in different fields/sections for each language.

I'm not clear on what you would want a plugin to do. If you'd like to send a list of requirements you would want this solution to have to consulting@interactivetools.com we can start working out some possible solutions with you.

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Languages

By Maurice - January 31, 2011

Hi Jason,

what could a MULTI LANGUAGE plugin do????

A. detect language and redirect.
B. when language detected only show the right sections on fields.
C. when in backend and some one selects the right language for his backend.

and i could go on and on and on hahahahaha
-------------------------------------------

Dropmonkey.nl

By Jason - January 31, 2011

Hi Maurice,

If having that type of plugin is something you're interested in, please email a list of all the functionality you would need and an idea of your budget to consulting@interactivetools.com and we can start working through possible solutions with you.

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Languages

By rui - February 13, 2011

Hi Jason,

Sorry the bad english.

The tutorial that you made is very nice and clear, my problem is i will have to make 2 php files to show 2 language. Ex:

productsPT.php
productsEN.php

Is there a way to have only one php file?

Re: [rui] Languages

By Jason - February 14, 2011

Hi,

Having your site support multiple languages is usually a complicated issue.

If you can tell me how you're currently doing this and what is in your .php file now, I may be able to give you some advice to help.

thanks.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Languages

By rui - February 14, 2011

tks for the reply.

I don't know if i´m doing the best way, but when i build a new section "About us", inside i will create always 2 versions of fields, for example.

Title_Portuguese
Title_English
--------------------
Text_Portuguese
Text_English
--------------------
OtherInfo_Portuguese
OtherInfo_English

The php code will show all the fields, if i´m making the PT version, so i will make a php file about_PT.php and delete all the English fields.

For the english version i will create a about_ENG.php and remove all the portuguese fields. Very basic.

I dont have a problem with this method, the boring part is having 2 php files, have to make the double work and in the future if i whant to change somenting in the html code i will have to make in 2 files.

My question is, can i have a way to have only on php file and show with a "filter" what language i whant. For ex:

I have all the fields in 1 php file, PT ant ENG. If i pass some king of value in the link, like, www.something.com/about.php?ENG

Sorry for the bad English and the very bad programing skills. (i´m a designer) .

Rui

Re: [rui] Languages

By Jason - February 14, 2011

Hi Rui,

You can do this with a single php file, but you'd need to have a way of telling which language you'd want to display.

How do you tell currently?

There are a couple of different ways you can do this. One way is to have a user select which language they want to use. You can then store this selection in a session variable.

Example:
<?php $_SESSION['language']="english" ;?>

You can then use this information to output the correct fields:

EXAMPLE

<?php if(@$_SESSION['language'] == "english"): ?>
<?php echo $record['title_english']l ?>
<?php else: ?>
<?php echo $record['title_portuguese']; ?>
<?php endif ?>


Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/