CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Multiple Languages For the site

Print topic Send  topic

Author Message
travel-net

Posts: 56
Posted: 02/13/2004, 10:14 AM

Hello,

What is the best way to offer Multiple Languages. Something like phpnuke, so the visitor can select his language.

In phpnuke they do it via php.
<?php

/**************************************************************************/
/* PHP-NUKE: Advanced Content Management System */
/* ============================================ */
/* */
/* This is the language module with all the system messages */
/* */
/* If you made a translation, please go to the site and send to me */
/* the translated file. Please keep the original text order by modules, */
/* and just one message per line, also double check your translation! */
/* */
/* You need to change the second quoted phrase, not the capital one! */
/* */
/* If you need to use double quotes (") remember to add a backslash (\), */
/* so your entry will look like: This is \"double quoted\" text. */
/* And, if you use HTML code, please double check it. */
/**************************************************************************/

define("_ACTIVETOPICS","Current Active Topics");
define("_CLICK2LIST","Click to list all articles in this topic");
define("_TOTNEWS","Total News");
define("_TOTREADS","Total Reads");
define("_MORE","More");
define("_NONEWSYET","...There aren't any news yet for this topic...");

?>

What is the best way to do this with CCS?

Regards,
Frans
View profile  Send private message
peterr


Posts: 5971
Posted: 02/13/2004, 10:25 AM

See:
http://forums.codecharge.com/posts.php?post_id=25701

There are some tips on how to partially implement multiple languages, while full support for this will be implemented in the future.
I believe that the method #2 described there should allow for full 100% translations already, although you would need to spend several hours writing a PHP function that would automate this process (translate all strings on the page before it is output/shown).
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Martin
Posted: 02/18/2004, 12:26 AM

Hello.
Sorry about my english.
I have make a Multiple Language Side with CCS and you can Add a new Language from the Admin in about 10 minutes.
ALL Language change with mysql only for the errortexts there are 2 functions in php.

By, Martin
GASTAN
Posted: 02/18/2004, 4:22 PM

That's cool. Do you have your code avaiable somewhere ?
Can you email me link to it ?
Thanx in advance
Quote Martin:
Hello.
Sorry about my english.
I have make a Multiple Language Side with CCS and you can Add a new Language from the Admin in about 10 minutes.
ALL Language change with mysql only for the errortexts there are 2 functions in php.

By, Martin
Falk
Posted: 02/22/2004, 1:34 AM

Hi Martin,

sounds very interesting your coding, as I think it is really time that CCS will support I18n, isn't it?
Maybe you have pleasure to help us a little bit? Would be nice to have a look to your code.
(did you do it by 'gettext'?)

The very best to you,
Falk

Quote Martin:
Hello.
Sorry about my english.
I have make a Multiple Language Side with CCS and you can Add a new Language from the Admin in about 10 minutes.
ALL Language change with mysql only for the errortexts there are 2 functions in php.

By, Martin
Martin
Posted: 02/23/2004, 5:09 AM

Hello.
I can give you a link to the Side, but its not complete ready.
franchise.mmd-ip.de
I have all text (Formheads, Categorynames, Languages, aso.) in tables with langID, franchiseID or themenID, and landID.
The first Portal (orange) are the Main Portal. Hear can all Immobilien from all Franchise Sides (Mallorca, Franchise Blau ...) be shown.
Mallorca, and Franchise Blau are Franchise Portale.
The Side Mietfuchs is an Themen Portal Side and all Franchise Partner can show there Article hear. From the Admin you can insert a new Themen Side or a new Franchise Partner. All Sides have there own head and css file.
Also you can insert a new language if you translate the all fields in the db for language. Every language has an ID, every franchise and themen Side to.

In CCS you can join the db tables with the query bilder and there is no code for the language avible.

By,
Martin
Mate
Posted: 02/24/2004, 5:34 AM

I have similar aproach, like Martin.
Even more, multisites, for multi users, with multilanguage each site, all in
single database.
Will show you in couple of days after publishing to the internet.

Till then
regards
Drazen


"Martin" <Martin@forum.codecharge> wrote in message
news:54039fb82c0325@news.codecharge.com...
> Hello.
> I can give you a link to the Side, but its not complete ready.
> franchise.mmd-ip.de
> I have all text (Formheads, Categorynames, Languages, aso.) in tables with
langID, franchiseID or themenID, and landID.
> The first Portal (orange) are the Main Portal. Hear can all Immobilien
from all Franchise Sides (Mallorca, Franchise Blau ...) be shown.
> Mallorca, and Franchise Blau are Franchise Portale.
> The Side Mietfuchs is an Themen Portal Side and all Franchise Partner can
show there Article hear. From the Admin you can insert a new Themen Side or
a new Franchise Partner. All Sides have there own head and css file.
> Also you can insert a new language if you translate the all fields in the
db for language. Every language has an ID, every franchise and themen Side
to.
>
> In CCS you can join the db tables with the query bilder and there is no
code for the language avible.
>
> By,
> Martin
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.