facebook twitter

Your Cart is currently empty.

joomla custom development

While asking a technical question on forums, please specify Your version of Joomla and JoomSport component.

Text not translatable in model.php file

Text not translatable in model.php file

Hello Irene,

In \components\com_joomsport\models\model.php file, a part of error messages are hard coded without possible translation in uploadFile function.

Code:

                    if (JPath::setPermissions( $baseDir . $userfile_name )) {

                        return true;
                    } else {
                        $msg = 'Failed to change the permissions of the uploaded file.';
                    }
                } else {
                    $msg = 'Failed to move uploaded file to <code>/media</code> directory.';
                }
            } else {
                $msg = 'Upload failed as <code>/media</code> directory is not writable.';
            }
        } else {
            $msg = 'Upload failed as <code>/media</code> directory does not exist.';
        }
        if($msg != ''){
            JError::raiseError(500, $msg );
        }
       

Please add language variables to allow the translation of these error messages in all Joomsport available languages.

Jojo

jojo
French user of Free Joomsport
JoomSport Guru
ranks
useravatar
Offline
782 Posts
User info in posts
Administrator has disabled public posting

Re: Text not translatable in model.php file

Thank you jojo!

We will fix this issue in the next release.

Kind Regards,
Irene
The BearDev Support Team

Irene
Administrator
useravatar
Offline
2201 Posts
User info in posts
Administrator has disabled public posting

Re: Text not translatable in model.php file

Hello Irene,

The same problem is present in file \administrator\components\com_joomsport\models\default\adons.php.

Jojo

jojo
French user of Free Joomsport
JoomSport Guru
ranks
useravatar
Offline
782 Posts
User info in posts
Administrator has disabled public posting

Re: Text not translatable in model.php file

Hi jojo!

Thank you. We will fix it.

Kind Regards,
Irene
The BearDev Support Team

Irene
Administrator
useravatar
Offline
2201 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
2756
Total Polls:
0
Total Posts:
16786143
Total Posts Today:
1
User Info:
 
Total Users:
10609
Newest User:
joshua
Members Online:
2
Guests Online:
1417

Online: 
dennis, tado

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked
top

JoomSport.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters. The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries