Просмотр исходного кода

Change text to be more user oriented

Bob Mottram 9 лет назад
Родитель
Сommit
cc22c0473c

+ 48
- 0
locale/de/freedombone-controlpanel-user.json Просмотреть файл

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 Просмотреть файл

129
     "Microblog administrator nickname: $MY_USERNAME": "",
129
     "Microblog administrator nickname: $MY_USERNAME": "",
130
     "Microblog administrator password: $MICROBLOG_ADMIN_PASSWORD": "",
130
     "Microblog administrator password: $MICROBLOG_ADMIN_PASSWORD": "",
131
     "Microblog onion domain: ${MICROBLOG_ONION_HOSTNAME}": "",
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
     "Your MariaDB Hubzilla admin password is: $HUBZILLA_ADMIN_PASSWORD": "",
134
     "Your MariaDB Hubzilla admin password is: $HUBZILLA_ADMIN_PASSWORD": "",
133
     "ERROR: minidlna does not appear to have installed. $CHECK_MESSAGE": "",
135
     "ERROR: minidlna does not appear to have installed. $CHECK_MESSAGE": "",
134
     "VoIP onion domain": "",
136
     "VoIP onion domain": "",

+ 48
- 0
locale/es/freedombone-controlpanel-user.json Просмотреть файл

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 Просмотреть файл

129
     "Microblog administrator nickname: $MY_USERNAME": "",
129
     "Microblog administrator nickname: $MY_USERNAME": "",
130
     "Microblog administrator password: $MICROBLOG_ADMIN_PASSWORD": "",
130
     "Microblog administrator password: $MICROBLOG_ADMIN_PASSWORD": "",
131
     "Microblog onion domain: ${MICROBLOG_ONION_HOSTNAME}": "",
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
     "Your MariaDB Hubzilla admin password is: $HUBZILLA_ADMIN_PASSWORD": "",
134
     "Your MariaDB Hubzilla admin password is: $HUBZILLA_ADMIN_PASSWORD": "",
133
     "ERROR: minidlna does not appear to have installed. $CHECK_MESSAGE": "",
135
     "ERROR: minidlna does not appear to have installed. $CHECK_MESSAGE": "",
134
     "VoIP onion domain": "",
136
     "VoIP onion domain": "",

+ 48
- 0
locale/fr/freedombone-controlpanel-user.json Просмотреть файл

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 Просмотреть файл

129
     "Microblog administrator nickname: $MY_USERNAME": "",
129
     "Microblog administrator nickname: $MY_USERNAME": "",
130
     "Microblog administrator password: $MICROBLOG_ADMIN_PASSWORD": "",
130
     "Microblog administrator password: $MICROBLOG_ADMIN_PASSWORD": "",
131
     "Microblog onion domain: ${MICROBLOG_ONION_HOSTNAME}": "",
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
     "Your MariaDB Hubzilla admin password is: $HUBZILLA_ADMIN_PASSWORD": "",
134
     "Your MariaDB Hubzilla admin password is: $HUBZILLA_ADMIN_PASSWORD": "",
133
     "ERROR: minidlna does not appear to have installed. $CHECK_MESSAGE": "",
135
     "ERROR: minidlna does not appear to have installed. $CHECK_MESSAGE": "",
134
     "VoIP onion domain": "",
136
     "VoIP onion domain": "",

+ 21
- 21
src/freedombone-controlpanel-user Просмотреть файл

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