Selaa lähdekoodia

Change text to be more user oriented

Bob Mottram 9 vuotta sitten
vanhempi
commit
cc22c0473c

+ 48
- 0
locale/de/freedombone-controlpanel-user.json Näytä tiedosto

@@ -0,0 +1,48 @@
1
+{
2
+    "Press any key to continue...": "",
3
+    "Exit back to user mainenance": "",
4
+    "Freedombone User Control Panel": "",
5
+    "Remove yourself from a mailing list": "",
6
+    "Select one of the following:": "",
7
+    "Remove yourself from mailing list": "",
8
+    "You have been removed from ${remove_list_name}": "",
9
+    "Subscribe to a mailing list": "",
10
+    "You can either enter a subject or an email address\\n": "",
11
+    "List folder name:": "",
12
+    "Name between [] on subject line:": "",
13
+    "List email address:": "",
14
+    "Public:": "",
15
+    "yes": "",
16
+    "Add mailing list": "",
17
+    "No mailing list name was given": "",
18
+    "No mailing list subject or address was given": "",
19
+    "Unrecognised email address": "",
20
+    "$LIST_NAME list was added": "",
21
+    "Create an email rule": "",
22
+    "When email arrives from address:": "",
23
+    "Move to folder:": "",
24
+    "no": "",
25
+    "No email address was given": "",
26
+    "No folder name was given": "",
27
+    "Email rule for $RULE_EMAIL was added": "",
28
+    "Block or unblock emails from a given address": "",
29
+    "Block it:": "",
30
+    "Block an email": "",
31
+    "Unblock an email": "",
32
+    "Block or unblock emails with text in the subject line": "",
33
+    "When email arrives with subject text:": "",
34
+    "No subject was given": "",
35
+    "Change Email Filtering Rules": "",
36
+    "Choose an operation:": "",
37
+    "Add yourself to a mailing list": "",
38
+    "Add an email rule": "",
39
+    "Block or unblock an email address": "",
40
+    "Block or unblock email with subject text": "",
41
+    "Back to main menu": "",
42
+    "User Control Panel": "",
43
+    "Use Email": "",
44
+    "Use Chat": "",
45
+    "Use IRC": "",
46
+    "Exit to the command line": "",
47
+    "Log out": ""
48
+}

+ 2
- 0
locale/de/freedombone.json Näytä tiedosto

@@ -129,6 +129,8 @@
129 129
     "Microblog administrator nickname: $MY_USERNAME": "",
130 130
     "Microblog administrator password: $MICROBLOG_ADMIN_PASSWORD": "",
131 131
     "Microblog onion domain: ${MICROBLOG_ONION_HOSTNAME}": "",
132
+    "Open https://$HUBZILLA_DOMAIN_NAME and register a new user": "",
133
+    "Open http://$HUBZILLA_ONION_HOSTNAME and register a new user": "",
132 134
     "Your MariaDB Hubzilla admin password is: $HUBZILLA_ADMIN_PASSWORD": "",
133 135
     "ERROR: minidlna does not appear to have installed. $CHECK_MESSAGE": "",
134 136
     "VoIP onion domain": "",

+ 48
- 0
locale/es/freedombone-controlpanel-user.json Näytä tiedosto

@@ -0,0 +1,48 @@
1
+{
2
+    "Press any key to continue...": "",
3
+    "Exit back to user mainenance": "",
4
+    "Freedombone User Control Panel": "",
5
+    "Remove yourself from a mailing list": "",
6
+    "Select one of the following:": "",
7
+    "Remove yourself from mailing list": "",
8
+    "You have been removed from ${remove_list_name}": "",
9
+    "Subscribe to a mailing list": "",
10
+    "You can either enter a subject or an email address\\n": "",
11
+    "List folder name:": "",
12
+    "Name between [] on subject line:": "",
13
+    "List email address:": "",
14
+    "Public:": "",
15
+    "yes": "",
16
+    "Add mailing list": "",
17
+    "No mailing list name was given": "",
18
+    "No mailing list subject or address was given": "",
19
+    "Unrecognised email address": "",
20
+    "$LIST_NAME list was added": "",
21
+    "Create an email rule": "",
22
+    "When email arrives from address:": "",
23
+    "Move to folder:": "",
24
+    "no": "",
25
+    "No email address was given": "",
26
+    "No folder name was given": "",
27
+    "Email rule for $RULE_EMAIL was added": "",
28
+    "Block or unblock emails from a given address": "",
29
+    "Block it:": "",
30
+    "Block an email": "",
31
+    "Unblock an email": "",
32
+    "Block or unblock emails with text in the subject line": "",
33
+    "When email arrives with subject text:": "",
34
+    "No subject was given": "",
35
+    "Change Email Filtering Rules": "",
36
+    "Choose an operation:": "",
37
+    "Add yourself to a mailing list": "",
38
+    "Add an email rule": "",
39
+    "Block or unblock an email address": "",
40
+    "Block or unblock email with subject text": "",
41
+    "Back to main menu": "",
42
+    "User Control Panel": "",
43
+    "Use Email": "",
44
+    "Use Chat": "",
45
+    "Use IRC": "",
46
+    "Exit to the command line": "",
47
+    "Log out": ""
48
+}

+ 2
- 0
locale/es/freedombone.json Näytä tiedosto

@@ -129,6 +129,8 @@
129 129
     "Microblog administrator nickname: $MY_USERNAME": "",
130 130
     "Microblog administrator password: $MICROBLOG_ADMIN_PASSWORD": "",
131 131
     "Microblog onion domain: ${MICROBLOG_ONION_HOSTNAME}": "",
132
+    "Open https://$HUBZILLA_DOMAIN_NAME and register a new user": "",
133
+    "Open http://$HUBZILLA_ONION_HOSTNAME and register a new user": "",
132 134
     "Your MariaDB Hubzilla admin password is: $HUBZILLA_ADMIN_PASSWORD": "",
133 135
     "ERROR: minidlna does not appear to have installed. $CHECK_MESSAGE": "",
134 136
     "VoIP onion domain": "",

+ 48
- 0
locale/fr/freedombone-controlpanel-user.json Näytä tiedosto

@@ -0,0 +1,48 @@
1
+{
2
+    "Press any key to continue...": "",
3
+    "Exit back to user mainenance": "",
4
+    "Freedombone User Control Panel": "",
5
+    "Remove yourself from a mailing list": "",
6
+    "Select one of the following:": "",
7
+    "Remove yourself from mailing list": "",
8
+    "You have been removed from ${remove_list_name}": "",
9
+    "Subscribe to a mailing list": "",
10
+    "You can either enter a subject or an email address\\n": "",
11
+    "List folder name:": "",
12
+    "Name between [] on subject line:": "",
13
+    "List email address:": "",
14
+    "Public:": "",
15
+    "yes": "",
16
+    "Add mailing list": "",
17
+    "No mailing list name was given": "",
18
+    "No mailing list subject or address was given": "",
19
+    "Unrecognised email address": "",
20
+    "$LIST_NAME list was added": "",
21
+    "Create an email rule": "",
22
+    "When email arrives from address:": "",
23
+    "Move to folder:": "",
24
+    "no": "",
25
+    "No email address was given": "",
26
+    "No folder name was given": "",
27
+    "Email rule for $RULE_EMAIL was added": "",
28
+    "Block or unblock emails from a given address": "",
29
+    "Block it:": "",
30
+    "Block an email": "",
31
+    "Unblock an email": "",
32
+    "Block or unblock emails with text in the subject line": "",
33
+    "When email arrives with subject text:": "",
34
+    "No subject was given": "",
35
+    "Change Email Filtering Rules": "",
36
+    "Choose an operation:": "",
37
+    "Add yourself to a mailing list": "",
38
+    "Add an email rule": "",
39
+    "Block or unblock an email address": "",
40
+    "Block or unblock email with subject text": "",
41
+    "Back to main menu": "",
42
+    "User Control Panel": "",
43
+    "Use Email": "",
44
+    "Use Chat": "",
45
+    "Use IRC": "",
46
+    "Exit to the command line": "",
47
+    "Log out": ""
48
+}

+ 2
- 0
locale/fr/freedombone.json Näytä tiedosto

@@ -129,6 +129,8 @@
129 129
     "Microblog administrator nickname: $MY_USERNAME": "",
130 130
     "Microblog administrator password: $MICROBLOG_ADMIN_PASSWORD": "",
131 131
     "Microblog onion domain: ${MICROBLOG_ONION_HOSTNAME}": "",
132
+    "Open https://$HUBZILLA_DOMAIN_NAME and register a new user": "",
133
+    "Open http://$HUBZILLA_ONION_HOSTNAME and register a new user": "",
132 134
     "Your MariaDB Hubzilla admin password is: $HUBZILLA_ADMIN_PASSWORD": "",
133 135
     "ERROR: minidlna does not appear to have installed. $CHECK_MESSAGE": "",
134 136
     "VoIP onion domain": "",

+ 21
- 21
src/freedombone-controlpanel-user Näytä tiedosto

@@ -54,7 +54,7 @@ function remove_user_from_mailing_list {
54 54
     i=$((i+1))
55 55
     W+=($i $"Exit back to user mainenance")
56 56
 
57
-    list_selected=$(dialog --default-item "$i" --backtitle $"Freedombone User Control Panel" --title $"Remove a mailing list for $USER" --menu $"Select one of the following:" 24 50 17 "${W[@]}" 3>&2 2>&1 1>&3)
57
+    list_selected=$(dialog --default-item "$i" --backtitle $"Freedombone User Control Panel" --title $"Remove yourself from a mailing list" --menu $"Select one of the following:" 24 50 17 "${W[@]}" 3>&2 2>&1 1>&3)
58 58
 
59 59
     if [ $? -eq 0 ]; then # Exit with OK
60 60
         if [ ${list_selected} -ne ${i} ]; then
@@ -115,8 +115,8 @@ function remove_user_from_mailing_list {
115 115
             cp /home/${USER}/.procmailrc_new /home/${USER}/.procmailrc
116 116
             rm /home/${USER}/.procmailrc_new
117 117
             chown ${USER}:${USER} /home/${USER}/.procmailrc
118
-            dialog --title $"Remove user from mailing list" \
119
-                   --msgbox $"${USER} has been removed from ${remove_list_name}" 6 50
118
+            dialog --title $"Remove yourself from mailing list" \
119
+                   --msgbox $"You have been removed from ${remove_list_name}" 6 50
120 120
         fi
121 121
     fi
122 122
 }
@@ -184,7 +184,7 @@ function email_rule {
184 184
     data=$(tempfile 2>/dev/null)
185 185
     trap "rm -f $data" 0 1 2 5 15
186 186
     dialog --backtitle $"Freedombone User Control Panel" \
187
-           --title $"Email rule for user $USER" \
187
+           --title $"Create an email rule" \
188 188
            --form "\n" 9 65 4 \
189 189
               $"When email arrives from address:" 1 1 "" 1 35 24 28 \
190 190
               $"Move to folder:" 2 1 "" 2 35 24 28 \
@@ -208,33 +208,33 @@ function email_rule {
208 208
         RULE_PUBLIC='no'
209 209
     fi
210 210
     if [ ${#RULE_EMAIL} -lt 2 ]; then
211
-        dialog --title $"Add email rule" \
211
+        dialog --title $"Create an email rule" \
212 212
                --msgbox $"No email address was given" 6 40
213 213
         return
214 214
     fi
215 215
     if [ ${#RULE_FOLDER} -lt 2 ]; then
216
-        dialog --title $"Add email rule" \
216
+        dialog --title $"Create an email rule" \
217 217
                --msgbox $"No folder name was given" 6 40
218 218
         return
219 219
     fi
220 220
     if [[ "$RULE_EMAIL" != *"@"* || "$RULE_EMAIL" != *"."* ]]; then
221
-        dialog --title $"Add email rule" \
221
+        dialog --title $"Create an email rule" \
222 222
                --msgbox $"Unrecognised email address" 6 40
223 223
         return
224 224
     fi
225 225
 
226 226
     ${PROJECT_NAME}-addemail -u $USER -e "$RULE_EMAIL" \
227 227
                          -g "$RULE_FOLDER" --public $RULE_PUBLIC
228
-    dialog --title $"Add email rule" \
228
+    dialog --title $"Create an email rule" \
229 229
            --msgbox $"Email rule for $RULE_EMAIL was added" 6 40
230 230
 }
231 231
 
232 232
 function block_unblock_email {
233
-    blockstr=$"Block/Unblock email going to"
233
+    blockstr=$"Block or unblock emails from a given address"
234 234
     data=$(tempfile 2>/dev/null)
235 235
     trap "rm -f $data" 0 1 2 5 15
236 236
     dialog --backtitle $"Freedombone User Control Panel" \
237
-           --title "$blockstr $USER" \
237
+           --title "$blockstr" \
238 238
            --form "\n" 8 65 3 \
239 239
               $"When email arrives from address:" 1 1 "" 1 35 24 28 \
240 240
               $"Block it:" 2 1 "yes" 2 35 4 4 \
@@ -247,32 +247,32 @@ function block_unblock_email {
247 247
     BLOCK_EMAIL=$(cat $data | sed -n 1p)
248 248
     BLOCK=$(cat $data | sed -n 2p)
249 249
     if [ ${#BLOCK_EMAIL} -lt 2 ]; then
250
-        dialog --title $"Block/Unblock an email" \
250
+        dialog --title "$blockstr" \
251 251
                --msgbox $"No email address was given" 6 40
252 252
         return
253 253
     fi
254 254
     if [[ "$BLOCK_EMAIL" != *"@"* || "$BLOCK_EMAIL" != *"."* ]]; then
255
-        dialog --title $"Block/Unblock an email" \
255
+        dialog --title "$blockstr" \
256 256
                --msgbox $"Unrecognised email address" 6 40
257 257
         return
258 258
     fi
259 259
     if [[ $BLOCK == "y"* || $BLOCK == "Y"* ]]; then
260 260
         ${PROJECT_NAME}-ignore -u $USER -e "$BLOCK_EMAIL"
261 261
         dialog --title $"Block an email" \
262
-               --msgbox "Email from $BLOCK_EMAIL to $USER blocked" 6 40
262
+               --msgbox "Email from $BLOCK_EMAIL is now blocked" 6 40
263 263
     else
264 264
         ${PROJECT_NAME}-unignore -u $USER -e "$BLOCK_EMAIL"
265 265
         dialog --title $"Unblock an email" \
266
-               --msgbox "Email from $BLOCK_EMAIL to $USER unblocked" 6 40
266
+               --msgbox "Email from $BLOCK_EMAIL is now unblocked" 6 40
267 267
     fi
268 268
 }
269 269
 
270 270
 function block_unblock_subject {
271
-    blockstr=$"Block/Unblock email going to"
271
+    blockstr=$"Block or unblock emails with text in the subject line"
272 272
     data=$(tempfile 2>/dev/null)
273 273
     trap "rm -f $data" 0 1 2 5 15
274 274
     dialog --backtitle $"Freedombone User Control Panel" \
275
-           --title "$blockstr $USER" \
275
+           --title "$blockstr" \
276 276
            --form "\n" 8 70 3 \
277 277
               $"When email arrives with subject text:" 1 1 "" 1 40 24 28 \
278 278
               $"Block it:" 2 1 "yes" 2 40 4 4 \
@@ -285,18 +285,18 @@ function block_unblock_subject {
285 285
     BLOCK_SUBJECT=$(cat $data | sed -n 1p)
286 286
     BLOCK=$(cat $data | sed -n 2p)
287 287
     if [ ${#BLOCK_SUBJECT} -lt 2 ]; then
288
-        dialog --title $"Block/Unblock an email" \
288
+        dialog --title "$blockstr" \
289 289
                --msgbox $"No subject was given" 6 40
290 290
         return
291 291
     fi
292 292
     if [[ $BLOCK == "y"* || $BLOCK == "Y"* ]]; then
293 293
         ${PROJECT_NAME}-ignore -u $USER -t "$BLOCK_SUBJECT"
294 294
         dialog --title $"Block an email" \
295
-               --msgbox "Email with subject $BLOCK_SUBJECT to $USER blocked" 6 40
295
+               --msgbox "Email with subject $BLOCK_SUBJECT is now blocked" 6 40
296 296
     else
297 297
         ${PROJECT_NAME}-unignore -u $USER -t "$BLOCK_SUBJECT"
298 298
         dialog --title $"Unblock an email" \
299
-               --msgbox "Email with subject $BLOCK_SUBJECT to $USER unblocked" 6 40
299
+               --msgbox "Email with subject $BLOCK_SUBJECT is now unblocked" 6 40
300 300
     fi
301 301
 }
302 302
 
@@ -311,8 +311,8 @@ function menu_email {
311 311
                1 $"Add yourself to a mailing list" off \
312 312
                2 $"Remove yourself from a mailing list" off \
313 313
                3 $"Add an email rule" off \
314
-               4 $"Block/Unblock an email address" off \
315
-               5 $"Block/Unblock email with subject text" off \
314
+               4 $"Block or unblock an email address" off \
315
+               5 $"Block or unblock email with subject text" off \
316 316
                6 $"Back to main menu" on 2> $data
317 317
         sel=$?
318 318
         case $sel in