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

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
malthoff
View Replies:
Mainio replied on at Permalink Reply
Mainio
Hi there,

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
malthoff replied on at Permalink Reply
malthoff
Yeek, how fast are you? Thanks alot!
Mainio replied on at Permalink Reply
Mainio
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...

concrete5 Environment Information

# concrete5 Version
5.6.3.2

# concrete5 Packages
Designer Content (3.1.1), Internationalization (1.3), People Wall (0.1), Translations Manager (1.3.2).

# concrete5 Overrides
blocks/aggregated_press_slider, blocks/autonav, blocks/btn_section_link, blocks/content, blocks/content_teaser, blocks/content_teaser_claim, blocks/content_teaser_text_only, blocks/coworker, blocks/de_footer_contact, , , blocks/image_set_gallery, blocks/main_stage_content, blocks/opening_table, blocks/section_headline, blocks/shopping_form, blocks/text_only_header, blocks/text_only_header_html, controllers/page_types, languages/ar, languages/cs_CZ, languages/da_DK, languages/de_DE, languages/el_GR, languages/es_AR, languages/es_ES, languages/es_MX, languages/es_PE, languages/fa_IR, languages/fi_FI, languages/fr_FR, languages/it_IT, languages/ja_JP, languages/nb_NO, languages/nl_NL, languages/pt_PT, languages/ro_RO, languages/ru_RU, languages/site, languages/sk_SK, languages/sl_SI, languages/sv_SE, languages/tr_TR, languages/vi_VN, languages/zh_TW, themes/xammer

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off

# Server Software
Apache/2.4.9 (Ubuntu)

# Server API
apache2handler

# PHP Version
5.5.11-2+deb.sury.org~precise+2

# PHP Extensions
apache2handler, bcmath, bz2, calendar, Core, ctype, date, dba, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, json, libxml, mbstring, mcrypt, mhash, mysql, mysqli, openssl, pcre, PDO, pdo_mysql, Phar, posix, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlwriter, Zend OPcache, zip, zlib.

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 8M
sql.safe_mode - Off
upload_max_filesize - 2M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
opcache.max_accelerated_files - 2000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.52 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.