Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-08-2007, 09:36 AM
Junior Member
 
Join Date: Aug 2007
Posts: 6
Send a message via ICQ to dogo Send a message via MSN to dogo
Default Zend_Translation & Zend_Local

Hi gang,

is it possible to build with Zend Framework an local website that if I choose an URL the right template will be choosen like Apache does with static websites ?

This could be very helpfull if someone would like to add a big static content to one page.

Thanks,
Wolfgang.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 08-08-2007, 01:02 PM
matias.quaglia's Avatar
Junior Member
 
Join Date: Aug 2007
Posts: 18
Default

You mean get the localization of client, and then choose the right template with proper languagem and so?
__________________
Matías Quaglia
==========
http://www.matiasquaglia.com.ar
Credo est Creo
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 08-08-2007, 01:41 PM
Junior Member
 
Join Date: Aug 2007
Posts: 6
Send a message via ICQ to dogo Send a message via MSN to dogo
Default

Yep, that is exactly what I would like to have.

Default is maybe English, and all Templates used may end with an "_en.phtml".

If user now log into the app, his language is choosen from his profile, maybe spanish
and from now on all Templates should end with "_es.phtml".

In my opinion this is the way.

A other way would be to translate the whole content of the website, but I think
this does not make a lot of sense if there are maybe online manuals which is only static html. Dynamic content has to be translated this should be problem.

If someone know something better, or has a other way to work with this issue please
tell me. I am currently in planning phase of the project and it could still be changed.

Last edited by dogo : 08-08-2007 at 01:50 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 08-09-2007, 08:23 AM
Member
 
Join Date: Aug 2007
Location: Tarnow/Krakow, Poland, EU
Posts: 30
Default

Why don't you check clients language in $_SERVER['HTTP_USER_AGENT'] ?
Mine is for example:

Code:
Opera/9.22 (X11; Linux x86_64; U; pl)
pl stands for Polish, for English it whould be en, etc.
__________________
I don't trust anything that bleeds for five days and doesn't die.
www.inetive.pl
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
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:31 PM.