AKB Forums

Go Back   AKB Forums > Technical sections > Languages, Compilers and Interpreters > Web Development
Home Register Blogs FAQ Members List Calendar Downloads Arcade Mark Forums Read

Web Development Java/PHP/Perl/ASP and more

Troubles when posting message? Click here! :: Проблемы с отправлением сообщения? Нажмите сюда!

Reply
 
LinkBack Thread Tools Display Modes
Old Nov 17, 2006, 19:21  
Младенец
 
Rostrix's Avatar
 
Join Date: Mar 2004
Location: Yerevan
Posts: 19
Rep Power: 0
Reputation: 10
Send a message via ICQ to Rostrix Send a message via Yahoo to Rostrix
Mite tupoj amerikacineri chap el chkaq?

inchna problemy pilisopaner? Datark zvrnel giteq forumnerum, el bani yndunak cheq!
Rostrix is offline   Reply With Quote Quote selected
Old Nov 17, 2006, 20:18   #16
---
 
TigrOm's Avatar
 
Join Date: Jun 2004
Location: Yerevan
Posts: 9,220
Blog Entries: 1
Rep Power: 7
Reputation: 507
Send a message via ICQ to TigrOm
Quote:
Originally Posted by Rostrix View Post
Inch vor Pattern ka dra hamar naxatesvac ?
В GoF и GRASP я че то не встречал такого.
Во вторых насколько успел понять паттерны в основном описывают более мелкие "кирпичики" архитектурных решений.
TigrOm is offline   Reply With Quote Quote selected
Old Nov 17, 2006, 20:19   #17
Младенец
 
Rostrix's Avatar
 
Join Date: Mar 2004
Location: Yerevan
Posts: 19
Rep Power: 0
Reputation: 10
Send a message via ICQ to Rostrix Send a message via Yahoo to Rostrix
Quote:
Originally Posted by Davka View Post
template engine - Xelgen delo govorit, eto pomoemomu to chto tebe nujno
http://smarty.php.net/
Spasibo.
Rostrix is offline   Reply With Quote Quote selected
Old Nov 17, 2006, 20:22   #18
Младенец
 
Rostrix's Avatar
 
Join Date: Mar 2004
Location: Yerevan
Posts: 19
Rep Power: 0
Reputation: 10
Send a message via ICQ to Rostrix Send a message via Yahoo to Rostrix
Quote:
Originally Posted by TigrOm View Post
В GoF и GRASP я че то не встречал такого.
Во вторых насколько успел понять паттерны в основном описывают более мелкие "кирпичики" архитектурных решений.
kapni glubje. ya zavtra poshlju tebe eBook
Rostrix is offline   Reply With Quote Quote selected
Old Nov 17, 2006, 20:22   #19
Кандидат
 
{I}'s Avatar
 
Join Date: Aug 2005
Location: armenia
Posts: 1,170
Rep Power: 4
Reputation: 24
There are three main issues I know:

1. Storing multilingual data in a database.

Possible solution: one table having many columns with translations, e.g. (id, date, text_en,text_de)

1 table, 3 columns:

translatekey (varchar) - string to translate
lang - lang code/id/name
translation (varchar/text) - translated string

2. Multilingual HTML templates, possible solutions:
a. one generic template for everything, one per each language, like
contents_en.tpl.html, contents_de.tpl.html
b. many localized templates for each page, e.g news_en.tpl.html,
news_de.tpl.html

Template engine is Smarty.
using Smarty I sometimes assign an assoc array of translated strings:

$Lang['yes'] = 'yessiree';
$Lang['no'] = 'nocando';

then in Smarty:

<div class="LangExample">
'yes' is {$Lang.yes},
'no' is {$Lang.no}
</div>

3. Storing current language variable, possible solutions:
a. inside the URL like /en/news/
best in terms of SEO.

b. using cookies
handy for presistence.

c. using sessions
provides cleaner URLS.

I see no reason to do all 3.
__________________
Quod me nutrit me destruit
{I} is offline   Reply With Quote Quote selected
Old Nov 17, 2006, 20:24   #20
---
 
TigrOm's Avatar
 
Join Date: Jun 2004
Location: Yerevan
Posts: 9,220
Blog Entries: 1
Rep Power: 7
Reputation: 507
Send a message via ICQ to TigrOm
Quote:
Originally Posted by Rostrix View Post
kapni glubje. ya zavtra poshlju tebe eBook
ок, спасибо
TigrOm is offline   Reply With Quote Quote selected
Old Nov 17, 2006, 20:26   #21
Banned Kaifavarius
 
Davka's Avatar
 
Join Date: Jun 2004
Location: Bombay
Posts: 6,894
Rep Power: 6
Reputation: 19
Send a message via ICQ to Davka
{I} - ari es qez paxodu hargem, vaitm et gageni pay@ kikser
__________________
Chuck Norris's tears can cure cancer. Too bad Chuck Norris will never cry...EVER
Davka is offline   Reply With Quote Quote selected
Old Nov 17, 2006, 20:27   #22
Младенец
 
Rostrix's Avatar
 
Join Date: Mar 2004
Location: Yerevan
Posts: 19
Rep Power: 0
Reputation: 10
Send a message via ICQ to Rostrix Send a message via Yahoo to Rostrix
Quote:
Originally Posted by {I} View Post
There are three main issues I know:

1. Storing multilingual data in a database.

Possible solution: one table having many columns with translations, e.g. (id, date, text_en,text_de)

1 table, 3 columns:

translatekey (varchar) - string to translate
lang - lang code/id/name
translation (varchar/text) - translated string

2. Multilingual HTML templates, possible solutions:
a. one generic template for everything, one per each language, like
contents_en.tpl.html, contents_de.tpl.html
b. many localized templates for each page, e.g news_en.tpl.html,
news_de.tpl.html

Template engine is Smarty.
using Smarty I sometimes assign an assoc array of translated strings:

$Lang['yes'] = 'yessiree';
$Lang['no'] = 'nocando';

then in Smarty:

<div class="LangExample">
'yes' is {$Lang.yes},
'no' is {$Lang.no}
</div>

3. Storing current language variable, possible solutions:
a. inside the URL like /en/news/
best in terms of SEO.

b. using cookies
handy for presistence.

c. using sessions
provides cleaner URLS.

I see no reason to do all 3.
prakticheski pereproboval visheperechislenoje ne efektivno
Rostrix is offline   Reply With Quote Quote selected
Old Nov 17, 2006, 20:28   #23
Кандидат
 
{I}'s Avatar
 
Join Date: Aug 2005
Location: armenia
Posts: 1,170
Rep Power: 4
Reputation: 24
ROOOOOOOOOOODEEEEEEEEEEEEEEEEEENNNNNN!
__________________
Quod me nutrit me destruit
{I} is offline   Reply With Quote Quote selected
Old Nov 17, 2006, 20:29   #24
Banned Kaifavarius
 
Davka's Avatar
 
Join Date: Jun 2004
Location: Bombay
Posts: 6,894
Rep Power: 6
Reputation: 19
Send a message via ICQ to Davka
traq tarber statuyaneren?
__________________
Chuck Norris's tears can cure cancer. Too bad Chuck Norris will never cry...EVER
Davka is offline   Reply With Quote Quote selected
Old Nov 17, 2006, 20:29   #25
Кандидат
 
{I}'s Avatar
 
Join Date: Aug 2005
Location: armenia
Posts: 1,170
Rep Power: 4
Reputation: 24
Quote:
Originally Posted by Rostrix View Post
prakticheski pereproboval visheperechislenoje ne efektivno
vipey viski probuy eshe.
__________________
Quod me nutrit me destruit
{I} is offline   Reply With Quote Quote selected
Old Nov 17, 2006, 20:32   #26
инсценирующий жизнь
 
[ Xelgen ]'s Avatar
 
Join Date: Jul 2002
Location: Fireplace of Ecotopia
Posts: 4,157
Rep Power: 7
Reputation: 45
Send a message via ICQ to [ Xelgen ] Send a message via Skype™ to [ Xelgen ]
Quote:
Originally Posted by Davka View Post
template engine - Xelgen delo govorit, eto pomoemomu to chto tebe nujno
http://smarty.php.net/
Achqis inqy voch te Tempalte Engineri masin er harcnum, ayl UML patterneri.
Просто перед тем как жаловаться на то, что никто ничего дельного не говорит, нужно как то задачу почеловечески описать, что-ли.

Хена, 4 хоги ынгац пордзум ен патасхан тан, парзвума лрив уриш бан э харцнум.
__________________
...ибо...
Rgrdz. [ Кселджэн ]
[ Xelgen ] is offline   Reply With Quote Quote selected
Old Nov 17, 2006, 20:32   #27
Banned Kaifavarius
 
Davka's Avatar
 
Join Date: Jun 2004
Location: Bombay
Posts: 6,894
Rep Power: 6
Reputation: 19
Send a message via ICQ to Davka
Esim axpe es I- kochetsyal@ vor norer ekel forum kikser tvel - greler vor gageni "Patselui" statuyan shata sirum... u tents, gider hesa sax aseluen "vai" ban man
__________________
Chuck Norris's tears can cure cancer. Too bad Chuck Norris will never cry...EVER
Davka is offline   Reply With Quote Quote selected
Old Nov 17, 2006, 20:36   #28
Кандидат
 
{I}'s Avatar
 
Join Date: Aug 2005
Location: armenia
Posts: 1,170
Rep Power: 4
Reputation: 24
Davka chitay po gubam....I R A. Rodenn el demq a, kto ne soglasen znachit on pix
__________________
Quod me nutrit me destruit
{I} is offline   Reply With Quote Quote selected
Old Nov 17, 2006, 20:39   #29
Banned Kaifavarius
 
Davka's Avatar
 
Join Date: Jun 2004
Location: Bombay
Posts: 6,894
Rep Power: 6
Reputation: 19
Send a message via ICQ to Davka
Quote:
I'm developing a web application and stuck in multilanguage design part
shas posmotrel UML pattern, ne stalkivalsya. Paxodu kardam mardam..
__________________
Chuck Norris's tears can cure cancer. Too bad Chuck Norris will never cry...EVER
Davka is offline   Reply With Quote Quote selected
Old Nov 17, 2006, 20:40   #30
Младенец
 
Rostrix's Avatar
 
Join Date: Mar 2004
Location: Yerevan
Posts: 19
Rep Power: 0
Reputation: 10
Send a message via ICQ to Rostrix Send a message via Yahoo to Rostrix
Asum em eli.... lavn eq bayc mejy ban chka 4-th in kbareveq
Rostrix is offline   Reply With Quote Quote selected
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 09:45.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
This board was founded on September 29, 2001
Powered by Viper Internet

Affordable Web Hosting | ParevNet

Buy text link