[TYPO3-templavoila] Localizing Labels in beLayout
G.Unger
skyfreak1 at gmx.net
Thu May 6 15:03:33 CEST 2010
hello list
to keep the topic up and running, here my thoughts (which I already
exchanged with ron directly). I thought I post them here as well so
s.b. might jump in
as I am no extension developer, just a typo3 site builder my thoughts
might be as we would say in germany 'stabbed from the back through the
eye into the chest'.
when I outsource the beLayout into a seperate html/tmpl file into the
skin, I can put ###fields### not only below the label, but even into
the label ... eg.:
<div id="tvFeatureContentTab" class="tvContentTab">
Feature
</div>
becomes
<div id="tvFeatureContentTab" class="tvContentTab">
###field_feature###
</div>
and there is a positive rendering in the tab.
so why not create fields for the labels as TypoScriptObject
then assign them TEXT types and the values are populated by
TS-Constants, which themselves should be wrapped in TS conditions for
BE languages.
as said a thought of 'stabbed from the back through the eye into the
chest' and really around 5 corners, there must be an easier way, but I
can imageine this might work as long as it is possible to to create in
TS a condition on BE-user-language. maybe an intermediate
workaround-and-round-round-round-round.
I haven't tested this yet ... end of week and really busy here ... but
as soon as I find a minute I will check this out.
if meanwhile anybody had the TS code for a condition of backenduser
language, that would help, as I am not sure if it is possible and would
have to look this up first.
rgds,
GUIDO
On 2010-05-05 23:09:03 +0200, Ron Hall <ronslists at busynoggin.com> said:
> Hello TV folks,
>
> I have a layout set up with beLayout that sets up tabs and I want to be
> able to localize the titles on the tabs so they would change based on
> the language of the BE user. Right now my code looks like this.
>
> <beLayout>
> <![CDATA[
> <div id="tvContentOuterWrap">
> <div id="tvFeatureContentTab" class="tvContentTab">
> Feature </div>
> <div id="tvMainContentTab" class="tvContentTab">
> Main Content </div>
> <div id="tvTabBase"> </div> <div
> id="tvFeatureContent" class="tvContent"> ###field_feature### </div>
>
> <div id="tvMainContent" class="tvContent">
> ###field_content_block_1### </div> </div>
> ]]>
> </beLayout>
>
> I want "Feature" and "Main Content" to be localized so that if user is
> German I could have German labels.
>
> Is that possible?
>
> Thanks,
> Ron Hall
More information about the TYPO3-project-templavoila
mailing list