Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product

In this Discussion

Vanilla 2.6 is here! It includes security fixes and requires PHP 7.0. We have therefore ALSO released Vanilla 2.5.2 with security patches if you are still on PHP 5.6 to give you additional time to upgrade.

[FileUpload 1.5.2] Untranslatable strings!

This discussion is related to the FileUpload addon.
emziemzi New
edited July 2012 in Localization

Title: Lost T()

Path: /plugins/FileUpload/class.fileupload.plugin.php


Target: 'Media'

Fix: T('Media')


Target: "Uploaded file type is not allowed."

Fix: T("Uploaded file type is not allowed.")


Target: ("The post data was too big (max {$PostMaxSize})",10,'???');

Fix: (T('The post data was too big (max')." {$PostMaxSize})",10,'???');


Title: Untranslatable lines

Path: /plugins/FileUpload/js/fileupload.php

Target: "File upload failed. Reason: "

Target: 'An unknown error occured.'

Screenshot


Title: T() function is not on the right position!

Path: /plugins/FileUpload/views/fileupload.php

Target: <?php echo T('Define who can upload and manage files on the '.Anchor('Roles & Permissions','/dashboard/role').' page.'); ?>

Fix: <?php echo T('Define who can upload and manage files on the').' '.Anchor(T('Roles & Permissions'),'/dashboard/role').' '.T('page.'); ?>


Click here > Ctrl+F > search for "FileUpload" around the Page.

Comments

  • Agree..... some or many of the strings are not translatable through the use of localization files, such as this one...

    "File upload failed. Reason: "

    To translate it, I will have to change the fileupload.js which is not the proper way of doing.

Sign In or Register to comment.