Jak spolszczyć Awards System 1.0.1?
Wersja z poprawkami
Strona z modyfikacją: http://www.invisiontuning.com/forum/index.php?showtopic=190
Efekt modyfikacji: - możliwość dodawania odznaczeń dla danego użytkownika
Proces polonizacji tej modyfikacji:
1. Wchodzimy do pliku (na serwerze) cache/lang_cache/XX/lang_awards.php
Podstawowy kod zastępujemy poniższym:
CODE-BOX
<?php/*
+--------------------------------------------------------------------------
| Awards System v1.0.1
| =============================================
| by KindredPOKER
| © 2008 Invision Tuning
| http://www.invisiontuning.com
| =============================================
| File Revision: 003
| Last Revision: Fri 11th Jul 08 - 21:49
| Started: Wed 14th May 08 - 14:52
| File: Language File
+---------------------------------------------------------------------------
*/
$lang = array (
// The header for the Awards Fieldset (Topic View)
'fieldset' => "Odznaczenia:",
// The text before the Award Name is shown (Topic View)
'award_name' => "Informacja: ",
// The text before the Award Reason is shown (Topic View)
'award_reason' => "Odznaczono za: ",
// The ammount of spaces between awards, add more 'nbsp;' for more spacing (Topic View)
'spacing' => " ",
// First table column name (Profile View)
'column1' => "Odznaczenie",
// Second table column name (Profile View)
'column2' => "Nazwa Odznaczenia",
// Third table column name (Profile View)
'column3' => "Dane Szczegółowe",
// Alternate text for award image (Profile View)
'alt' => "Obrazek Odznaczenia",
// Information row (Profile View)
'awarded_for' => "Odznaczono za:",
// Error! Oh noes :'(
'no_awards' => "Te użytkownik nie otrzymał żadnych odznaczeń...",
// Cut-off text (Topic View)
'show_more' => "(Zobacz Wszystkie)",
);
?>
2. Wchodzimy do pliku (na serwerze) sources/components_public/profile/awards.conf
Podstawowy kod zastępujemy poniższym:
CODE-BOX
<?php/*
+--------------------------------------------------------------------------
| Awards System v1.0.0
| =============================================
| by KindredPOKER
| © 2008 Invision Tuning
| http://www.invisiontuning.com
| =============================================
| File Revision: 001
| Started: Tues 7th May 08 - 19:07
| File: Profile Tab Config File
+---------------------------------------------------------------------------
*/
$CONFIG['plugin_name'] = "Odznaczenia";
$CONFIG['plugin_lang_bit'] = 'pp_tab_award';
$CONFIG['plugin_key'] = 'awards';
$CONFIG['plugin_enabled'] = ($this->ipsclass->vars['awards_on'] && isset($this->ipsclass->vars['awards_on']) && in_array($this->ipsclass->member['mgroup'], explode(",",$this->ipsclass->vars['awards_access']))) ? 1 : 0;
$CONFIG['plugin_order'] = 5;
?>
I już mamy spolszczoną modyfikację Awards System 1.0.1.