How to call function to another controller?

Permalink 1 user found helpful
How to call function to my controller?
I want to get the function from
/concrete/startup/localization.php

to my controller.

There is any possibilities to get that function?
Can anyone suggest the way to call that function...

Thanks in advance...

cjramki
 
ronyDdeveloper replied on at Permalink Reply
ronyDdeveloper
You can simply call the function, don't need to do any special efforts.

Like
<?php  echo t('Test')?>


Rony
cjramki replied on at Permalink Reply
cjramki
Thanks Rony,

I already work with this...
now the error is, if i retrieve content from the database 'btContentlocal' table it is not working.
cjramki replied on at Permalink Reply
cjramki
Actually i want to translate block content which is entered using concrete5's WYSIWYG editor.
I got the file which is retrieve the data from the database. It is in
/concrete/blocks/content/view.php

In this view.php they use the code
$content = $controller->getContent();
print $content;

They get the 'getContent()' function from it controller,
concrete/core/controllers/blocks/content.php

The output content is in '$content' variable.
How can use this variable to translate.
I tried,
print t($content);

But it not works...
There is any other way to translate it?
ronyDdeveloper replied on at Permalink Best Answer Reply
ronyDdeveloper
Well t() function doesn't work like google translator. You cannot translate content with this t() function. Currently there is a block is awaiting approval in PRB. Its called "C5DK Multilingual Content Block" which does the same thing.
cjramki replied on at Permalink Reply
cjramki
Thanks for the information Rony,
Google translator will translate all the words.
But in my block I entered only the words which is already in .mo file in language directory.

Then where i can see the PRB. how to know about the current updates & how to join in that team.
ronyDdeveloper replied on at Permalink Reply
ronyDdeveloper
cjramki replied on at Permalink Reply
cjramki
Thanks Rony,
Those how-tos are help full to me...
yes i need to join in PRB team...
What's that PM Julia?
Could you make the footpath to me to join in PRB team?
ronyDdeveloper replied on at Permalink Reply
ronyDdeveloper
Julia is the Core team member. Here is her profile: http://www.concrete5.org/profile/-/view/84403/...

And PM means Private Message. You can click the Blue Button called "Send Message" in her profile.

Rony
cjramki replied on at Permalink Reply
cjramki
Thanks a lot Rony.