Zend Framework Forum

Go Back   Zend Framework Forum > Zend Framework Components > Internationalization (i18n) & Localization (l10n)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-05-2010, 12:36 PM
Junior Member
 
Join Date: Feb 2010
Posts: 1
Question Default Locale isn't used

Hi all,

I've been trying to get translations going in my application. And it all works, except for one thing: the default translation if the user locale isn't available.

I've got my application.ini set up as folllows:

Code:
resources.locale.default = "en"
resources.translate.data = APPLICATION_PATH "/../languages"
resources.translate.adapter = "csv"
resources.translate.options.scan = "directory"
resources.translate.options.disableNotices = true
Also I have translations set up for English and Dutch, which work.

However, when I visit my site with the browser set to (for instance) Spanish, the application doesn't fall back to English as I would expect, but instead shows the translation keys. That is, my translation files look something like this:

Code:
tree_key;Tree
flower_key;Flower
So what I get is that 'tree_key' and 'flower_key' are shown instead of the expected 'Tree' and 'Flower'.

Am I missing some fundamentals here?

Last edited by Louis; 02-09-2010 at 12:46 PM. Reason: Decided to elaborate on my translation files
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB 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 02:07 PM.


Designed by: Miner Skinz Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0