Commit graph

156 commits

Author SHA1 Message Date
translatewiki.net
014feb54e5
Localisation updates from https://translatewiki.net. 2024-10-21 14:02:00 +02:00
ErenratZeng
c77e5abba7
notification: classify email messages and add mail check prompt (#5865)
This commit adds logic to classify notifications as "email" type when the notification text contains "sent you an email". It also updates the email notification prompt to support localization, ensuring a better user experience across different regions.

### Problem:
1. Previously, email-related notifications from the backend were missing a URL. As a result, when users clicked on these notifications, there was no link to open, and the notifications were categorized as UNKNOWN. This led to a poor user experience since there was no feedback provided when the user clicked on an email notification.
2. Additionally, the existing code used hardcoded English text for the email notification prompt, which did not provide a localized experience for users in different regions.

### Solution:
1. Added logic to categorize email-related notifications as `EMAIL` when the notification text contains "sent you an email".
2. Replaced the hardcoded "Check your email inbox" string with a localized string and added translations for multiple languages, including zh, zh-rhk, zh-rcn, zh-rtw, and ja.

### Changes:
- **NotificationClient**:
  - Modified `WikimediaNotification.toCommonsNotification()` to check if the notification text contains "sent you an email". If it does, the notification is classified as `EMAIL_MESSAGE` instead of the default `UNKNOWN`.

- **NotificationActivity**:
  - In the `NotificatinAdapter` click handler, added a check for `EMAIL_MESSAGE` type. When an email-type notification is clicked, a localized "Check your mail box" prompt is shown using `Snackbar`, instead of attempting to open a URL (which is typically missing for such notifications).
  - Modified to fetch the string using `getString(R.string.check_your_mail_box)` to support localization.

- **NotificationType**:
  - Added a new `EMAIL` type to categorize email-related notifications.

- **Localization**:
  - Added localized translations for "Check your mail box" in zh, zh-rhk, zh-rcn, zh-rtw, and ja.

Co-authored-by: Qiutong Zeng <Qiutong.zeng@anu.edu.au>
2024-10-18 15:31:54 +09:00
Rohit Verma
9edde234ec
Localization: fix incorrect Unicode for space after bullet points in French language (#5824)
* localization: fix incorrect unicode for space

* Remove bullet string resource as it doesn't need translation
2024-09-10 17:41:45 +09:00
translatewiki.net
d2d8eb9153
Localisation updates from https://translatewiki.net. 2024-07-22 14:01:59 +02:00
translatewiki.net
5cdfb85a9c
Localisation updates from https://translatewiki.net. 2024-06-11 11:28:25 +02:00
translatewiki.net
18e03ed038 Localisation updates from https://translatewiki.net. 2024-05-30 14:02:21 +02:00
translatewiki.net
c67cf4b07e Localisation updates from https://translatewiki.net. 2024-05-06 14:02:07 +02:00
translatewiki.net
4bd48aa432 Localisation updates from https://translatewiki.net. 2024-04-18 14:02:49 +02:00
translatewiki.net
6cbeec2119 Localisation updates from https://translatewiki.net. 2024-04-01 14:02:56 +02:00
translatewiki.net
c5c5a52a09 Localisation updates from https://translatewiki.net. 2024-03-28 13:02:56 +01:00
translatewiki.net
9a52e7f86a Localisation updates from https://translatewiki.net. 2023-12-25 13:03:08 +01:00
translatewiki.net
b113f3c986 Localisation updates from https://translatewiki.net. 2023-11-09 13:02:57 +01:00
translatewiki.net
8d604a25fa Localisation updates from https://translatewiki.net. 2023-09-28 13:02:44 +02:00
translatewiki.net
a4ef6bb3d3 Localisation updates from https://translatewiki.net. 2023-06-29 13:02:50 +02:00
translatewiki.net
e5e07b64cc Localisation updates from https://translatewiki.net. 2023-05-15 13:01:45 +02:00
translatewiki.net
9d0614e734 Localisation updates from https://translatewiki.net. 2023-04-24 13:02:39 +02:00
translatewiki.net
67d2e7f1ab Localisation updates from https://translatewiki.net. 2023-04-06 13:02:51 +02:00
translatewiki.net
f1f39a1946 Localisation updates from https://translatewiki.net. 2023-03-20 13:02:58 +01:00
translatewiki.net
caab97b341 Localisation updates from https://translatewiki.net. 2023-03-09 13:02:05 +01:00
Kartikay Kaushik
e1c04f2013
Disabled telemetry - Bug #5154 (#5155) 2023-02-28 22:17:14 +09:00
translatewiki.net
86aa60e11e Localisation updates from https://translatewiki.net. 2023-02-06 13:02:23 +01:00
translatewiki.net
f75de2adab Localisation updates from https://translatewiki.net. 2022-12-26 13:02:15 +01:00
translatewiki.net
77bb789f9e Localisation updates from https://translatewiki.net. 2022-12-15 13:01:49 +01:00
translatewiki.net
a0936cd94f Localisation updates from https://translatewiki.net. 2022-10-31 13:04:53 +01:00
translatewiki.net
27e3f564a1 Localisation updates from https://translatewiki.net. 2022-10-03 13:01:43 +02:00
translatewiki.net
db30f07f64 Localisation updates from https://translatewiki.net. 2022-09-19 13:02:00 +02:00
translatewiki.net
0ba8eb1589 Localisation updates from https://translatewiki.net. 2022-08-08 13:01:38 +02:00
translatewiki.net
be5827c2c7 Localisation updates from https://translatewiki.net. 2022-05-26 13:02:26 +02:00
translatewiki.net
7579c1aa16 Localisation updates from https://translatewiki.net. 2022-04-18 13:01:47 +02:00
translatewiki.net
31d63d1a2a Localisation updates from https://translatewiki.net. 2022-04-14 13:02:01 +02:00
translatewiki.net
50c4458746 Localisation updates from https://translatewiki.net. 2022-03-28 13:02:05 +02:00
translatewiki.net
efa7e109da Localisation updates from https://translatewiki.net. 2022-03-24 13:02:03 +01:00
translatewiki.net
16266975d8 Localisation updates from https://translatewiki.net. 2022-03-03 13:01:56 +01:00
translatewiki.net
769b295647 Localisation updates from https://translatewiki.net. 2022-02-07 13:01:35 +01:00
translatewiki.net
c637dba6b7 Localisation updates from https://translatewiki.net. 2022-01-24 13:01:53 +01:00
translatewiki.net
852d1958e7 Localisation updates from https://translatewiki.net. 2022-01-10 13:01:11 +01:00
translatewiki.net
01f6a2b8cb Localisation updates from https://translatewiki.net. 2021-12-13 13:01:48 +01:00
translatewiki.net
eb8882ab48 Localisation updates from https://translatewiki.net. 2021-11-04 13:01:30 +01:00
translatewiki.net
58d25d5fd5 Localisation updates from https://translatewiki.net. 2021-08-05 13:01:19 +02:00
translatewiki.net
ebae63de5d Localisation updates from https://translatewiki.net. 2021-07-29 13:01:43 +02:00
translatewiki.net
9643d8d0b8 Localisation updates from https://translatewiki.net. 2021-07-15 13:01:22 +02:00
translatewiki.net
504408ec8c Localisation updates from https://translatewiki.net. 2021-04-12 15:40:57 +02:00
translatewiki.net
881239dc59 Localisation updates from https://translatewiki.net. 2021-04-05 15:24:55 +02:00
translatewiki.net
d0f895416a Localisation updates from https://translatewiki.net. 2021-03-29 17:53:41 +02:00
translatewiki.net
d00127947c Localisation updates from https://translatewiki.net. 2021-03-15 19:02:06 +01:00
translatewiki.net
783b3858a2 Localisation updates from https://translatewiki.net. 2021-03-08 15:48:37 +01:00
translatewiki.net
c3d28eb81e Localisation updates from https://translatewiki.net. 2021-03-04 13:57:32 +01:00
translatewiki.net
88be88f25c Localisation updates from https://translatewiki.net. 2021-02-22 16:35:19 +01:00
translatewiki.net
5ae0d41a61 Localisation updates from https://translatewiki.net. 2021-02-08 17:16:29 +01:00
translatewiki.net
594e644b8b Localisation updates from https://translatewiki.net. 2021-02-01 15:19:42 +01:00