17.11.2006, 21:18
|
#16
|
|
Академик
Join Date: 06 2004
Location: Yerevan
Posts: 9,326
Rep Power: 7
|
Quote:
Originally Posted by Rostrix
Inch vor Pattern ka dra hamar naxatesvac ?
|
В GoF и GRASP я че то не встречал такого.
Во вторых насколько успел понять паттерны в основном описывают более мелкие "кирпичики" архитектурных решений.
|
|
|
|
17.11.2006, 21:19
|
#17
|
|
Младенец
Join Date: 03 2004
Location: Montreal
Age: 44
Posts: 19
Rep Power: 0
|
Quote:
Originally Posted by Davka
|
Spasibo.
|
|
|
|
17.11.2006, 21:22
|
#18
|
|
Младенец
Join Date: 03 2004
Location: Montreal
Age: 44
Posts: 19
Rep Power: 0
|
Quote:
Originally Posted by TigrOm
В GoF и GRASP я че то не встречал такого.
Во вторых насколько успел понять паттерны в основном описывают более мелкие "кирпичики" архитектурных решений.
|
kapni glubje. ya zavtra poshlju tebe eBook
|
|
|
|
 |
|
 |
17.11.2006, 21:22
|
#19
|
|
Кандидат
Join Date: 08 2005
Location: armenia
Posts: 1,174
Rep Power: 5
|
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
|
|
|
|
 |
17.11.2006, 21:24
|
#20
|
|
Академик
Join Date: 06 2004
Location: Yerevan
Posts: 9,326
Rep Power: 7
|
Quote:
Originally Posted by Rostrix
kapni glubje. ya zavtra poshlju tebe eBook
|
ок, спасибо
|
|
|
|
17.11.2006, 21:26
|
#21
|
|
Banned Kaifavarius
Join Date: 06 2004
Location: Bombay
Age: 49
Posts: 6,892
Rep Power: 0
|
{I} - ari es qez paxodu hargem, vaitm et gageni pay@ kikser
|
|
|
|
 |
|
 |
17.11.2006, 21:27
|
#22
|
|
Младенец
Join Date: 03 2004
Location: Montreal
Age: 44
Posts: 19
Rep Power: 0
|
Quote:
Originally Posted by {I}
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
|
|
|
|
 |
17.11.2006, 21:28
|
#23
|
|
Кандидат
Join Date: 08 2005
Location: armenia
Posts: 1,174
Rep Power: 5
|
ROOOOOOOOOOODEEEEEEEEEEEEEEEEEENNNNNN!
|
|
|
|
17.11.2006, 21:29
|
#24
|
|
Banned Kaifavarius
Join Date: 06 2004
Location: Bombay
Age: 49
Posts: 6,892
Rep Power: 0
|
traq tarber statuyaneren?
|
|
|
|
17.11.2006, 21:29
|
#25
|
|
Кандидат
Join Date: 08 2005
Location: armenia
Posts: 1,174
Rep Power: 5
|
Quote:
Originally Posted by Rostrix
prakticheski pereproboval visheperechislenoje  ne efektivno
|
vipey viski probuy eshe.
|
|
|
|
17.11.2006, 21:32
|
#26
|
|
инсценирующи
Join Date: 07 2002
Location: Fireplace of Ecotopia
Age: 41
Posts: 4,327
Rep Power: 5
|
Quote:
Originally Posted by Davka
|
Achqis inqy voch te Tempalte Engineri masin er harcnum, ayl UML patterneri.
Просто перед тем как жаловаться на то, что никто ничего дельного не говорит, нужно как то задачу почеловечески описать, что-ли.
Хена, 4 хоги ынгац пордзум ен патасхан тан, парзвума лрив уриш бан э харцнум.
|
|
|
|
17.11.2006, 21:32
|
#27
|
|
Banned Kaifavarius
Join Date: 06 2004
Location: Bombay
Age: 49
Posts: 6,892
Rep Power: 0
|
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
|
|
|
|
17.11.2006, 21:36
|
#28
|
|
Кандидат
Join Date: 08 2005
Location: armenia
Posts: 1,174
Rep Power: 5
|
Davka chitay po gubam....I R A.  Rodenn el demq a, kto ne soglasen znachit on pix
|
|
|
|
17.11.2006, 21:39
|
#29
|
|
Banned Kaifavarius
Join Date: 06 2004
Location: Bombay
Age: 49
Posts: 6,892
Rep Power: 0
|
Quote:
|
I'm developing a web application and stuck in multilanguage design part
|
shas posmotrel UML pattern, ne stalkivalsya. Paxodu kardam mardam..
|
|
|
|
17.11.2006, 21:40
|
#30
|
|
Младенец
Join Date: 03 2004
Location: Montreal
Age: 44
Posts: 19
Rep Power: 0
|
Asum em eli.... lavn eq bayc mejy ban chka  4-th in kbareveq
|
|
|
|
|
All times are GMT. The time now is 22:44. |
|
|