Unsure how to translate page title

Archived from the Xataface Users forum.

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…

Thanks for any ideas here.


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


jonbfl — Wed Sep 28, 2011 1:45 pm

“Jon B moves that feature to the ‘Final Release Tweaking would-be-nice list’ “

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

Thanks very much for the quick response -