如何制作多媒体网站? [英] How to make mulitlingual website?

查看:74
本文介绍了如何制作多媒体网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我需要在mulitlingual网站上制作,使用php amd mysql,我是

寻找解释如何的tutorils或书籍最好这样做。

Hop ypu有一些建议,我可以找到关于

的信息。


Mads

Hi

I need to make at mulitlingual website, with php amd mysql, and I am
looking for tutorils or books that explains about how to best do this.
Hop ypu have some suggestions as to were I can find information about
this.

Mads

推荐答案

ma ************ @ gmail.com 写道:
ma************@gmail.com wrote:


我需要在多语言网站上制作,使用php amd mysql,我正在寻找解释如何最好地做到这一点的导演或书籍。
Hop ypu有一些建议,我可以找到关于
的信息。

Mads
Hi

I need to make at mulitlingual website, with php amd mysql, and I am
looking for tutorils or books that explains about how to best do this.
Hop ypu have some suggestions as to were I can find information about
this.

Mads




您可以查看提供它的现有项目,例如phpMyFAQ

www.phpmyfaq.de)。每一点文本都是文本。稍后会弹出网站

从/ lang / -directory中的文件(每个

语言一个)指定的(大)关联数组中读取。根据您选择的语言,

包含特定文件。



You could look into existing projects that offer it, phpMyFAQ for example
(www.phpmyfaq.de). Every bit of "Text" that pops up on the website later it
reads from a (big) associative array, specified by files (one for each
language) in the /lang/-directory. Depending on which language you choose,
the specific file gets included.


是否应将所有文本放在一个大表中,或者是我最好将它放在几个表格中。应该为每种语言制作一个4个列,

或每种语言4行一个?

Should one place all the text in one big table, or is i better to place
it in several tabels. Should one make 4 colums one for each language,
or 4 rows one for each language?


2005年6月27日23 :54:43 -0700,在comp.lang.php

" ma ************ @ gmail.com" <毫安************ @ gmail.com>写道:
On 27 Jun 2005 23:54:43 -0700, in comp.lang.php
"ma************@gmail.com" <ma************@gmail.com> wrote:
|如果将所有文本放在一个大表中,或者我最好放置
|它在几个表格中。如果为每种语言制作一个4列,
|或者每种语言4行一个?
| Should one place all the text in one big table, or is i better to place
| it in several tabels. Should one make 4 colums one for each language,
| or 4 rows one for each language?




我使用:

CREATE TABLE`usr_languages`(

` pageName` varchar(25)默认'''',

`itemNo`int(11)默认''0'',

`en`文本,
`fr`文字,

`it`文字

)TYPE = MyISAM评论='''不同语言'';

只是因为我可以立即看到我是否没有包含

特定语言和特定条目的文本。


pageName:哪个页面这个文字出现在

itemNo:要阅读和放置在页面上的项目的顺序。

en / fr / it:不同的语言。

我还没有对此进行优化,所以''text''字段可能是

矫枉过正,而varchar(255)就足够了。

-------------------------------------------------- -------------
jn******@yourpantsyahoo.com .au :脱掉你的裤子o回复

---------------------------------------- -----------------------



I use:
CREATE TABLE `usr_languages` (
`pageName` varchar(25) default '''',
`itemNo` int(11) default ''0'',
`en` text,
`fr` text,
`it` text
) TYPE=MyISAM COMMENT=''different languages'';

only because I can immediately see if I have not include text for a
particular language and a particular entry.

pageName: which page this text appears on
itemNo: order of items to be read and placed on page.
en/fr/it: the different languages.

I haven''t optimised this as yet so the ''text'' field is probably
overkill and a varchar(255) would suffice.
---------------------------------------------------------------
jn******@yourpantsyahoo.com.au : Remove your pants to reply
---------------------------------------------------------------


这篇关于如何制作多媒体网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆