Armenian Knowledge Base  

Go Back   Armenian Knowledge Base > Technical sections > Webmaster Zone > Web Development
Register

Reply
 
LinkBack Thread Tools
Old 17.11.2006, 21:18   #16
Академик
 
TigrOm's Avatar
 
Join Date: 06 2004
Location: Yerevan
Posts: 9,326
Downloads: 3
Uploads: 0
Reputation: 680 | 5
Default

Quote:
Originally Posted by Rostrix View Post
Inch vor Pattern ka dra hamar naxatesvac ?
В GoF и GRASP я че то не встречал такого.
Во вторых насколько успел понять паттерны в основном описывают более мелкие "кирпичики" архитектурных решений.
Reply With Quote
Old 17.11.2006, 21:19   #17
Младенец
 
Rostrix's Avatar
 
Join Date: 03 2004
Location: Montreal
Age: 35
Posts: 19
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Default

Quote:
Originally Posted by Davka View Post
template engine - Xelgen delo govorit, eto pomoemomu to chto tebe nujno
http://smarty.php.net/
Spasibo.
Reply With Quote
Old 17.11.2006, 21:22   #18
Младенец
 
Rostrix's Avatar
 
Join Date: 03 2004
Location: Montreal
Age: 35
Posts: 19
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Default

Quote:
Originally Posted by TigrOm View Post
В GoF и GRASP я че то не встречал такого.
Во вторых насколько успел понять паттерны в основном описывают более мелкие "кирпичики" архитектурных решений.
kapni glubje. ya zavtra poshlju tebe eBook
Reply With Quote
Old 17.11.2006, 21:22   #19
Кандидат
 
{I}'s Avatar
 
Join Date: 08 2005
Location: armenia
Posts: 1,174
Downloads: 10
Uploads: 0
Reputation: 14 | 3
Default

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
Reply With Quote
Old 17.11.2006, 21:24   #20
Академик
 
TigrOm's Avatar
 
Join Date: 06 2004
Location: Yerevan
Posts: 9,326
Downloads: 3
Uploads: 0
Reputation: 680 | 5
Default

Quote:
Originally Posted by Rostrix View Post
kapni glubje. ya zavtra poshlju tebe eBook
ок, спасибо
Reply With Quote
Old 17.11.2006, 21:26   #21
Banned Kaifavarius
 
Davka's Avatar
 
Join Date: 06 2004
Location: Bombay
Age: 39
Posts: 6,892
Downloads: 0
Uploads: 0
Reputation: 9 | 0
Default

{I} - ari es qez paxodu hargem, vaitm et gageni pay@ kikser
Reply With Quote
Old 17.11.2006, 21:27   #22
Младенец
 
Rostrix's Avatar
 
Join Date: 03 2004
Location: Montreal
Age: 35
Posts: 19
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Default

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
Reply With Quote
Old 17.11.2006, 21:28   #23
Кандидат
 
{I}'s Avatar
 
Join Date: 08 2005
Location: armenia
Posts: 1,174
Downloads: 10
Uploads: 0
Reputation: 14 | 3
Default

ROOOOOOOOOOODEEEEEEEEEEEEEEEEEENNNNNN!
Reply With Quote
Old 17.11.2006, 21:29   #24
Banned Kaifavarius
 
Davka's Avatar
 
Join Date: 06 2004
Location: Bombay
Age: 39
Posts: 6,892
Downloads: 0
Uploads: 0
Reputation: 9 | 0
Default

traq tarber statuyaneren?
Reply With Quote
Old 17.11.2006, 21:29   #25
Кандидат
 
{I}'s Avatar
 
Join Date: 08 2005
Location: armenia
Posts: 1,174
Downloads: 10
Uploads: 0
Reputation: 14 | 3
Default

Quote:
Originally Posted by Rostrix View Post
prakticheski pereproboval visheperechislenoje ne efektivno
vipey viski probuy eshe.
Reply With Quote
Old 17.11.2006, 21:32   #26
инсценирующи
 
[ Xelgen ]'s Avatar
 
Join Date: 07 2002
Location: Fireplace of Ecotopia
Age: 31
Posts: 4,327
Downloads: 22
Uploads: 0
Reputation: 193 | 4
Default

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 хоги ынгац пордзум ен патасхан тан, парзвума лрив уриш бан э харцнум.
Reply With Quote
Old 17.11.2006, 21:32   #27
Banned Kaifavarius
 
Davka's Avatar
 
Join Date: 06 2004
Location: Bombay
Age: 39
Posts: 6,892
Downloads: 0
Uploads: 0
Reputation: 9 | 0
Default

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
Reply With Quote
Old 17.11.2006, 21:36   #28
Кандидат
 
{I}'s Avatar
 
Join Date: 08 2005
Location: armenia
Posts: 1,174
Downloads: 10
Uploads: 0
Reputation: 14 | 3
Default

Davka chitay po gubam....I R A. Rodenn el demq a, kto ne soglasen znachit on pix
Reply With Quote
Old 17.11.2006, 21:39   #29
Banned Kaifavarius
 
Davka's Avatar
 
Join Date: 06 2004
Location: Bombay
Age: 39
Posts: 6,892
Downloads: 0
Uploads: 0
Reputation: 9 | 0
Default

Quote:
I'm developing a web application and stuck in multilanguage design part
shas posmotrel UML pattern, ne stalkivalsya. Paxodu kardam mardam..
Reply With Quote
Old 17.11.2006, 21:40   #30
Младенец
 
Rostrix's Avatar
 
Join Date: 03 2004
Location: Montreal
Age: 35
Posts: 19
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Default

Asum em eli.... lavn eq bayc mejy ban chka 4-th in kbareveq
Reply With Quote
Sponsored Links
Reply

Thread Tools


На правах рекламы:
реклама

All times are GMT. The time now is 20:21.


Powered by vBulletin® Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.