OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
Polish language on MediaLibrary Pro (0 viewing) 
MediaLibary Component Support
Go to bottom Favoured: 0
TOPIC: Polish language on MediaLibrary Pro
#2375
iwoh (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Polish language on MediaLibrary Pro 5 Years, 1 Month ago Karma: 0  
I install in Joomla polish language and set it default. I translate english.php from my joomlacomponentcom_medialibrarylanguages to polish.php

When I add a new media I want to have polish language on list of languages to choose. Now I have not. What should I do the polish language appear on list of available languages.
 
Logged Logged  
  The administrator has disabled public write access.
#2376
admin (Admin)
Admin
Posts: 4856
graph
User Offline Click here to see the profile of this user
Re:Polish language on MediaLibrary Pro 5 Years, 1 Month ago Karma: 61  
hello,

For Media Library software for see yours language at time adding book ypu need:

In yours language file e.g. English
{yours site}/components/com_medialibrary/language/poland.php

find code some like:
Code:

DEFINE('_MEDIALIBRARY_LANGUAGE_SPA', 'Spanish');
DEFINE('_MEDIALIBRARY_LANGUAGE_RUS', 'Russian');



and add to it self variable, with language name some like:
Code:

DEFINE('_MEDIALIBRARY_LANGUAGE_SPA', 'Spanish');
DEFINE('_MEDIALIBRARY_LANGUAGE_RUS', 'Russian');
DEFINE('_MEDIALIBRARY_LANGUAGE_POL', 'Poland');


You need do that in all language files - what yours site will support

After that you need open file:
{yours site}/administrator/components/com_medialibrary/admin.medialibrary.class.others.php

find function: getLanguageArray

and in it code:
Code:

array_push($retVal, array("Spanish",_MEDIALIBRARY_LANGUAGE_SPA));
array_push($retVal, array("Russian", _MEDIALIBRARY_LANGUAGE_RUS));



replace to
Code:

array_push($retVal, array("Spanish",_MEDIALIBRARY_LANGUAGE_SPA));
array_push($retVal, array("Russian", _MEDIALIBRARY_LANGUAGE_RUS));
array_push($retVal, array("Poland", _MEDIALIBRARY_LANGUAGE_POL));



But first please backup all files what you will edit

Thanks,
OrdaSoft team
 
Logged Logged  
  The administrator has disabled public write access.
Go to top
What are you looking for?
Anti-spam question: How many eyes has a typical person?