forked from regdos/directadmin-enhanced-pl
-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.txt
executable file
·175 lines (133 loc) · 7.81 KB
/
install.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
/-----------------------------------------------------------------------------/
/ Język PL dla DA - skin enhanced /
/ /
/ Kompletne tłumaczenie interfejsu, komunikatów internal, formularza zmiany /
/ hasła oraz wiadomości wakacyjnej i autorespondera /
/ /
/ kodowanie: UTF-8 /
/ autor: Tomasz Regdos (regdos.com) /
/-----------------------------------------------------------------------------/
Instalacja:
1.-----------------------------------------------------------------------------
Cały katalog /pl/ należy wgrać do:
/usr/local/directadmin/data/skins/enhanced/lang/
2.-----------------------------------------------------------------------------
Plik z katalogu /templates/ z zachowaniem struktury
katalogów należy wgrać do:
/usr/local/directadmin/data/templates/
Znaczenie poszczególnych plików:
- custom/login.html
formularz logowania do panelu
- custom/login.html
potwierdzenie założenia konta pocztowego (wyświetlane w panelu)
- custom/reseller_limit.txt
mail do reselera z ostrzeżeniem o wyczerpującym się transferze
- custom/user_limit.txt
mail do użytkownika z ostrzeżeniem o wyczerpującym się transferze/pojemności
- custom/message_tech.txt
mail do admina/reselera o nowym zgłoszeniu
- custom/message_user.txt
mail do użytkownika o nowej wiadomości
- custom/lost_password.html
- custom/lost_password_email.txt
system odzyskiwania haseł do panelu
- email_pass_change/index.html
formularz zmiany hasła dla konta pocztowego
3.-----------------------------------------------------------------------------
W edycji kont użykowników będzie do wyboru dodatkowy
język - "pl", który można ustawić dla danego użytkownika
4.-----------------------------------------------------------------------------
W celu ustawiania domyślnego języka na "pl" dla nowo
zakładanych kont należy w pliku :
/usr/local/directadmin/conf/directadmin.conf dodać linię
language=pl
lub w przypadku gdy taka zmienna istnieje zmienić jej wartość na "pl"
po wykoniu powyższej czynności należy zrestartować
directadmina: /etc/init.d/directadmin restart
5.-----------------------------------------------------------------------------
Tłumaczenie i ustawienie poprawnego kodowania i tekstu
wiadomości urlopowej i autorespondera.
W celu ustawienia poprawnego kodowania oraz zmiany tekstu
musimy zmienić zawartość pliku /etc/exim.conf
Zmiany należy wykonywać edytorem, który obsługuje UTF-8 i w takim
kodowaniu muszą być wpisywane polskie litery.
a) wiadomość urlopowa
w pliku /etc/exim.conf odszukujemy wiersz:
"uservacation:"
poniżej tego wiersza odszukujemy:
subject = "${if def:h_Subject: {Autoreply: $h_Subject:} {I am on vacation}}"
text = "\
------ ------\n\n\
This message was automatically generated by email software\n\
The delivery of your message has not been affected.\n\n\
------ ------\n\n"
wiersze zmieniamy na poniższe lub inne, które nam odpowiadają:
subject = "${if def:h_Subject: {Automatyczna odpowiedź: ${quote:${escape:$h_Subject:}}} {Wiadomość urlopowa}}"
text = "\
----------------------------------------------------------------------\n\
Poniższa wiadomość została wygenerowana automatycznie\n\
proszę na nią nie odpowiadać\n\
----------------------------------------------------------------------\n\n"
oraz dodajemy wiersz poniżej:
headers ="Content-Type: text/plain; charset=utf-8\nContent-Transfer-Encoding: 8bit\n"
b) autoresponder
w pliku /etc/exim.conf odszukujemy wiersz:
"userautoreply:"
poniżej tego wiersza odszukujemy:
subject = "${if def:h_Subject: {Autoreply: $h_Subject:} {Autoreply Message}}"
wiersz zmieniamy na poniższy lub inne, który nam odpowiada:
subject = "${if def:h_Subject: {Automatyczna odpowiedź: ${quote:${escape:$h_Subject:}}} {Wiadomość automatyczna}}"
oraz dodajemy wiersz poniżej:
headers ="Content-Type: text/plain; charset=utf-8\nContent-Transfer-Encoding: 8bit\n"
Po tych zmianach należy zrestartować exima.
6.-----------------------------------------------------------------------------
Tłumaczenie i ustawienie poprawnego kodowania wiadomości powitalnych.
Za wiadomości powitalne odpowiadają pliki:
a_welcome.txt - dodanie administratora
r_welcome.txt - dodanie reselera
u_welcome.txt - dodanie użytkownika
a) powitanie administratora
Plik a_welcome.txt kopiujemy do katalogu /usr/local/directadmin/data/admin
Podczas dodawania nowego admistratora pobierana jest zawartosć tego pliku i
wysyłany mail powitalny. W celu zmienienia tematu wysyłanej wiadomości
w pliku /usr/local/directadmin/data/admin/admin.conf zmieniamy
subject_admin na:
subject_admin=Twoje konto Administratora zostało aktywowane.
b) powitanie reselera
Plik r_welcome.txt kopiujemy do katalogu /usr/local/directadmin/data/admin
Podczas dodawania nowego reselera pobierana jest zawartosć tego pliku i
wysyłany mail powitalny. W celu zmienienia tematu wysyłanej wiadomości
w pliku /usr/local/directadmin/data/admin/admin.conf zmieniamy
subject na:
subject=Twoje konto Reselera zostało aktywowane.
c) powitanie użytkownika
Plik u_welcome.txt kopiujemy do katalogu /usr/local/directadmin/data/users/admin
Podczas dodawania nowego użytkownika pobierana jest zawartosć tego pliku i
wysyłany mail powitalny. W celu zmienienia tematu wysyłanej wiadomości
w pliku /usr/local/directadmin/data/users/admin/reseller.conf zmieniamy
subject na:
subject=Twoje konto dla |domain| zostało utworzone.
Powyższa zmiana zadziała tylko dla konta administratora, ponieważ każdy
reseller ma swój plik u_welcome.txt dlatego plik u_welcome.txt dodatkowo
należy skopiować do /usr/local/directadmin/data/templates/custom przez co
przy dodawaniu nowego reselera zostanie mu skopiowany nasz przetłumaczony
plik. Niestety zmiana tytułu wiadomości nie następuje automatycznie i
musimy dokonać ręcznej zmiany "subject" w pliku
/usr/local/directadmin/data/users/nazwa_reselera/reseller.conf
Całe tłumaczenie jest w kodowaniu UTF-8 a domyślnie maile wysyłane są w
kodowaniu ISO-8859-1 dlatego oprócz powyższych zmian niezbędne są zmiany
w pliku /etc/exim.conf
a) odszukujemy wiersz:
"virtual_localdelivery:"
i na końcu tego transportu (za quota) dodajemy:
headers_add = ${if def:h_X-DirectAdmin-Sender: {Content-Type: text/plain; charset="utf-8"\nContent-Transfer-Encoding: 8bit}}
b) odszukujemy wiersz:
"remote_smtp:"
i na końcu tego transportu dodajemy:
headers_add = ${if def:h_X-DirectAdmin-Sender: {Content-Type: text/plain; charset="utf-8"\nContent-Transfer-Encoding: 8bit}}
Po tych zmianach należy zrestartować exima.
7.-----------------------------------------------------------------------------
Jeżeli uważasz, że tłumaczenie to przydało Ci się i chcesz żeby autor
tłumaczenia dalej pracował nad dopracowaniem tłumaczenia możesz przekazać
***dobrowolną*** dotację autorowi. Skorzystaj z systemu PayPal wykonując
przelew używając konta odbiorcy: [email protected]