What files are actually parsed for t functions?
Permalink Browser Info Environment
Hi there.
I'm using your translation manager on my current project and I cannot figure out why the t functions in my customly build block controller is not parsed.
Here is my onview function
is the array notation a problem?
I'm using your translation manager on my current project and I cannot figure out why the t functions in my customly build block controller is not parsed.
Here is my onview function
public function view() { $lang = array( 'surname'=>t('Surname'), 'name'=>tc('Vorname','Name') ); $this->set('lang',$lang); }
is the array notation a problem?
Type: | Discussion |
---|---|
Status: | Resolved |
Yeek, how fast are you? Thanks alot!
No problem at all!
And don't forget to leave a review on your purchase! You can leave one here by clicking the "Add a Review" button:
http://www.concrete5.org/marketplace/addons/translations-manager/re...
And don't forget to leave a review on your purchase! You can leave one here by clicking the "Add a Review" button:
http://www.concrete5.org/marketplace/addons/translations-manager/re...
And many thanks for the bugreport!
It parses all those files but I tested this myself with your code sample and confirmed this was a bug. It's related to the fact that there was no space before the t-functions in your code which got our parsing logic confused.
This is now fixed in the latest version 1.3.3. It should be already available for download from the marketplace or if not, it will be in a moment (as it might be waiting for the automated tests to complete).
Best,
Antti / Mainio