Unsure how to translate page title

A place for users and developers of the Xataface to discuss and receive support.

Unsure how to translate page title

Postby jonbfl » Wed Sep 28, 2011 11:14 am

I read this 'pretty old info'
http://xataface.com/documentation/tutor ... taface-0.6
particularly
Translating Smarty Templates

then I went in a took a good look at Dataface_Main_Template.html -

Code: Select all
{define_slot name="html_head"}
      <meta http-equiv="Content-Type" content="text/html; charset={$ENV.APPLICATION.oe}"/>
      <title>{define_slot name="html_title"}{if $ENV.record}{$ENV.record->getTitle()} - {else}{$ENV.table_object->getLabel()} - {/if}{if $ENV.APPLICATION.title}{$ENV.APPLICATION.title}{else}Dataface Application{/if}{/define_slot}</title>


{if $ENV.record}{$ENV.record->getTitle()}

It 'looks like' the Page Title 'might' be a candidate for an entry in the language .ini files

Here was my 'no cigar' effort on that -

templates.Dataface_Main.APPLICATION.title = "Jon's Test"

Maybe I need something different in the conf.ini???

I must be running on fumes... :shock:

Thanks for any ideas here.
jonbfl
 
Posts: 66
Joined: Thu Jul 28, 2011 8:20 pm

Re: Unsure how to translate page title

Postby shannah » Wed Sep 28, 2011 12:29 pm

I don't think this string is internationalized yet. You can work around it by implementing the html_title slot and internationalizing that yourself - or by modifying the $app->_conf['title'] attribute inside the beforeHandleRequest()
(where $app is the Dataface_Application object as returned from Dataface_Application::getInstance())

-Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Unsure how to translate page title

Postby jonbfl » Wed Sep 28, 2011 1:45 pm

"Jon B moves that feature to the 'Final Release Tweaking would-be-nice list' " :lol:

JK, I will try to figure that out later, but for now its a non-issue.

Thanks very much for the quick response -
8)
jonbfl
 
Posts: 66
Joined: Thu Jul 28, 2011 8:20 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 22 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved