mirror of https://gitlab.com/bashrc2/epicyon
Translation links
parent
2bc4bdd15e
commit
d31608d3db
|
@ -174,7 +174,7 @@ function notifications {
|
||||||
epicyonCalendarfile="$epicyonDir/.newCalendar"
|
epicyonCalendarfile="$epicyonDir/.newCalendar"
|
||||||
if [ -f "$epicyonCalendarfile" ]; then
|
if [ -f "$epicyonCalendarfile" ]; then
|
||||||
if ! grep -q "##sent##" "$epicyonCalendarfile"; then
|
if ! grep -q "##sent##" "$epicyonCalendarfile"; then
|
||||||
epicyonCalendarmessage=$(notification_translate_text 'New calendar event')
|
epicyonCalendarmessage=$(notification_translate_text 'Calendar')
|
||||||
epicyonCalendarfileContent=$(echo "$epicyonCalendarmessage")" "$(cat "$epicyonCalendarfile")
|
epicyonCalendarfileContent=$(echo "$epicyonCalendarmessage")" "$(cat "$epicyonCalendarfile")
|
||||||
if [[ "$epicyonCalendarfileContent" == '/calendar'* ]]; then
|
if [[ "$epicyonCalendarfileContent" == '/calendar'* ]]; then
|
||||||
epicyonCalendarmessage="Epicyon: ${EPICYON_DOMAIN_NAME}/users/${USERNAME}${epicyonCalendarfileContent}"
|
epicyonCalendarmessage="Epicyon: ${EPICYON_DOMAIN_NAME}/users/${USERNAME}${epicyonCalendarfileContent}"
|
||||||
|
@ -189,7 +189,7 @@ function notifications {
|
||||||
epicyonDMfile="$epicyonDir/.newDM"
|
epicyonDMfile="$epicyonDir/.newDM"
|
||||||
if [ -f "$epicyonDMfile" ]; then
|
if [ -f "$epicyonDMfile" ]; then
|
||||||
if ! grep -q "##sent##" "$epicyonDMfile"; then
|
if ! grep -q "##sent##" "$epicyonDMfile"; then
|
||||||
epicyonDMmessage=$(notification_translate_text 'New direct message')
|
epicyonDMmessage=$(notification_translate_text 'DM')
|
||||||
epicyonDMfileContent=$(echo "$epicyonDMmessage")" "$(cat "$epicyonDMfile")
|
epicyonDMfileContent=$(echo "$epicyonDMmessage")" "$(cat "$epicyonDMfile")
|
||||||
if [[ "$epicyonDMfileContent" == *':'* ]]; then
|
if [[ "$epicyonDMfileContent" == *':'* ]]; then
|
||||||
epicyonDMmessage="Epicyon: $epicyonDMfileContent"
|
epicyonDMmessage="Epicyon: $epicyonDMfileContent"
|
||||||
|
@ -204,7 +204,7 @@ function notifications {
|
||||||
epicyonLikeFile="$epicyonDir/.newLike"
|
epicyonLikeFile="$epicyonDir/.newLike"
|
||||||
if [ -f "$epicyonLikeFile" ]; then
|
if [ -f "$epicyonLikeFile" ]; then
|
||||||
if ! grep -q "##sent##" "$epicyonLikeFile"; then
|
if ! grep -q "##sent##" "$epicyonLikeFile"; then
|
||||||
epicyonLikeMessage=$(notification_translate_text 'liked your post')
|
epicyonLikeMessage=$(notification_translate_text 'Liked by')
|
||||||
epicyonLikeFileContent=$(cat "$epicyonLikeFile" | awk -F ' ' '{print $1}')" "$(echo "$epicyonLikeMessage")" "$(cat "$epicyonLikeFile" | awk -F ' ' '{print $2}')
|
epicyonLikeFileContent=$(cat "$epicyonLikeFile" | awk -F ' ' '{print $1}')" "$(echo "$epicyonLikeMessage")" "$(cat "$epicyonLikeFile" | awk -F ' ' '{print $2}')
|
||||||
if [[ "$epicyonLikeFileContent" == *':'* ]]; then
|
if [[ "$epicyonLikeFileContent" == *':'* ]]; then
|
||||||
epicyonLikeMessage="Epicyon: $epicyonLikeFileContent"
|
epicyonLikeMessage="Epicyon: $epicyonLikeFileContent"
|
||||||
|
@ -219,7 +219,7 @@ function notifications {
|
||||||
epicyonReplyFile="$epicyonDir/.newReply"
|
epicyonReplyFile="$epicyonDir/.newReply"
|
||||||
if [ -f "$epicyonReplyFile" ]; then
|
if [ -f "$epicyonReplyFile" ]; then
|
||||||
if ! grep -q "##sent##" "$epicyonReplyFile"; then
|
if ! grep -q "##sent##" "$epicyonReplyFile"; then
|
||||||
epicyonReplyMessage=$(notification_translate_text 'New reply')
|
epicyonReplyMessage=$(notification_translate_text 'Replies')
|
||||||
epicyonReplyFileContent=$(echo "$epicyonReplyMessage")" "$(cat "$epicyonReplyFile")
|
epicyonReplyFileContent=$(echo "$epicyonReplyMessage")" "$(cat "$epicyonReplyFile")
|
||||||
if [[ "$epicyonReplyFileContent" == *':'* ]]; then
|
if [[ "$epicyonReplyFileContent" == *':'* ]]; then
|
||||||
epicyonReplyMessage="Epicyon: $epicyonReplyFileContent"
|
epicyonReplyMessage="Epicyon: $epicyonReplyFileContent"
|
||||||
|
@ -253,7 +253,7 @@ function notifications {
|
||||||
epicyonShareFile="$epicyonDir/.newShare"
|
epicyonShareFile="$epicyonDir/.newShare"
|
||||||
if [ -f "$epicyonShareFile" ]; then
|
if [ -f "$epicyonShareFile" ]; then
|
||||||
if ! grep -q "##sent##" "$epicyonShareFile"; then
|
if ! grep -q "##sent##" "$epicyonShareFile"; then
|
||||||
epicyonShareMessage=$(notification_translate_text 'New shared item')
|
epicyonShareMessage=$(notification_translate_text 'Shares')
|
||||||
epicyonShareFileContent=$(echo "$epicyonShareMessage")" "$(cat "$epicyonShareFile")
|
epicyonShareFileContent=$(echo "$epicyonShareMessage")" "$(cat "$epicyonShareFile")
|
||||||
if [[ "$epicyonShareFileContent" == *':'* ]]; then
|
if [[ "$epicyonShareFileContent" == *':'* ]]; then
|
||||||
epicyonShareMessage="Epicyon: $epicyonShareFileContent"
|
epicyonShareMessage="Epicyon: $epicyonShareFileContent"
|
||||||
|
@ -283,7 +283,7 @@ function notifications {
|
||||||
cp "$epicyonFollowFile" "$epicyonFollowNotificationsFile"
|
cp "$epicyonFollowFile" "$epicyonFollowNotificationsFile"
|
||||||
chown ${PROJECT_NAME}:${PROJECT_NAME} "$epicyonFollowNotificationsFile"
|
chown ${PROJECT_NAME}:${PROJECT_NAME} "$epicyonFollowNotificationsFile"
|
||||||
|
|
||||||
epicyonFollowMessage=$(notification_translate_text "New follow request")" ${EPICYON_DOMAIN_NAME}/users/${USERNAME}/followers"
|
epicyonFollowMessage=$(notification_translate_text 'Approve follower requests')" ${EPICYON_DOMAIN_NAME}/users/${USERNAME}/followers"
|
||||||
sendNotification "$USERNAME" "Epicyon" "$epicyonFollowMessage"
|
sendNotification "$USERNAME" "Epicyon" "$epicyonFollowMessage"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue