Skip to content

Commit e7dc8cd

Browse files
committed
Remove old parmaters from translations
1 parent 9008cc4 commit e7dc8cd

File tree

3 files changed

+18
-22
lines changed

3 files changed

+18
-22
lines changed

config/lang.toml

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,11 @@ subject = "[Thông Báo Diễn Đàn] {post_count} post mới"
116116
intro = """|
117117
Xin chào! Đây là hệ thống thông báo {frequency} của bạn từ {link_site}, hiển thị thông báo về các bài post mới được đăng vào trang thread mà bạn đăng kí theo dõi.
118118
119-
Trừ đi các phần mà bạn đã hủy đăng kí thông qua chỉnh sửa đăng kí thủ công, dịch vụ này hiện đang theo dõi {sub_count} đăng kí cho bạn, bao gồm:
119+
Dịch vụ này hiện đang theo dõi:
120120
121121
* {manual_sub_count} mẫu đăng kí thủ công, theo như cài đặt tại [{link_your_config} bản điều chỉnh người dùng của bạn].
122122
123-
* {auto_thread_sub_count} thread được đăng kí tự động và {auto_post_sub_count} post đăng kí tự động. Dịch vụ hiện vẫn [{link_info_learning} đang học hỏi] về các bản đăng kí tự động của bạn, vì thế con số này có thể tăng thêm theo thời gian. [{link_info_automatic} Tìm hiểu về những yếu tố cấu thành bản đăng kí tự động.]
123+
* Đăng kí tự động của bạn. [{link_info_automatic} Tìm hiểu về những yếu tố cấu thành bản đăng kí tự động.]
124124
125125
Tài khoản ([[*user Notifier]]) này được chạy tự động -- bất kể tin nhắn gửi đến tài khoản đều bị bỏ qua. Nếu có khúc mắc, vui lòng liên hệ ([[*user Croquembouche]]) trực tiếp.
126126
@@ -156,11 +156,11 @@ subject = "[Notifications Forum] {post_count} plural({post_count}|nouveau messag
156156
intro = """|
157157
Bonjour ! Voici votre récapitulatif de [{link_site} notifications] {frequency}, vous informant de tous les nouveaux messages sur les fils auxquels vous vous êtes abonné·e.
158158
159-
Ce service vous tient au courant des derniers messages de {sub_count} plural({sub_count}|abonnement|abonnements), sources supprimées manuellement non incluses.
159+
Ce service suit actuellement :
160160
161161
* {manual_sub_count} plural({manual_sub_count}|abonnement|abonnements) plural({manual_sub_count}|manuel|manuels), comme définis dans [{link_your_config} vos paramètres d'utilisateur].
162162
163-
* {auto_thread_sub_count} plural({auto_thread_sub_count}|abonnement automatique à un fil|abonnements automatiques à des fils) et {auto_post_sub_count} à plural({auto_post_sub_count}|un message|des messages). Ce service [{link_info_learning} apprend encore] de vos abonnements automatiques ; attendez-vous à voir ce nombre augmenter avec le temps. [{link_info_automatic} Apprenez comment marchent les abonnements automatiques.]
163+
* Abonnements automatiques à des fils et des messages. [{link_info_automatic} Apprenez ce que constitue un abonnement automatique.]
164164
165165
Ce compte ([[*user Notifier]]) est automatisé -- les réponses à ce message ne seront pas prises en compte. Si vous avez un problème, contactez directement [[*user
166166
Croquembouche]] (en anglais).
@@ -189,11 +189,11 @@ frequency_weekly = "semanal"
189189
frequency_monthly = "mensual"
190190
subject = "[Notificaciones del Foro] {post_count} plural({post_count}|nuevo mensaje|nuevos mensajes)"
191191
intro = """|
192-
¡Hola! Este es el resumen {frequency} de notificaciones de {link_site}, avisándote de las nuevas respuestas a hilos a los que estás suscrito. No incluye ninguna suscripción que haya sido removida como resultado de tus desuscripciones manuales, este servicio mantiene seguimiento de {sub_count} plural({sub_count}|suscripción|suscripciones) para ti:
192+
¡Hola! Este es el resumen {frequency} de notificaciones de {link_site}, avisándote de las nuevas respuestas a hilos a los que estás suscrito. Este servicio está llevando seguimiento de:
193193
194194
* {manual_sub_count} plural({manual_sub_count}|suscripción|suscripciones) manuales, como se define en [{link_your_config} tu configuración de usuario].
195195
196-
* {auto_thread_sub_count} hilos automáticos plural({auto_thread_sub_count}|suscrito|suscritos) y {auto_post_sub_count} publicaciones automáticas plural({auto_post_sub_count}|suscritas|suscritas). El servicio aún [{link_info_learning} está aprendiendo] sobre tus suscripciones automáticas, así que espera que este número crezca con el tiempo. [{link_info_automatic} Aprende qué constituye una suscripción automática.]
196+
* Suscripciones automáticas a hilos y publicaciones. [{link_info_automatic} Aprende qué constituye una suscripción automática.]
197197
198198
La cuenta ([[*user Notifier]]) está automatizada -- cualquier respuesta a este mensaje será ignorada. Si hay cualquier problema, contacta directamente conmigo, ([[*user Croquembouche]]).
199199
@@ -223,12 +223,9 @@ subject = "[フォーラム通知] {post_count}個の新しいポスト"
223223
intro = """|
224224
こんにちは!こちらは{link_site}から{frequency}の通知です。
225225
あなたの登録したスレッドに新しいポストが投稿されたので、通知をします。
226-
これは、あなたが手動で登録解除したスレッドを含んでいません。
227-
本サービスにあなたが登録したスレッド数は{sub_count}個です。
226+
このサービスは以下を追跡しています:
228227
そのうち、[{link_your_config} あなたのユーザー設定ページ]にある通り、{manual_sub_count}個が手動登録です。
229-
自動登録されたスレッドは{auto_thread_sub_count}個で、ポストは{auto_post_sub_count}個です。
230-
本サービスはあなたの自動登録を[{link_info_learning} 学習しています]。今後、自動登録の個数が増加する場合があります。
231-
[{link_info_automatic} 自動登録の構成については、こちらを参照してください。]
228+
自動スレッドとポストの登録です。[{link_info_automatic} 自動登録の構成については、こちらを参照してください。]
232229
本アカウント([[*user Notifier]])は自動であり、いかなる返信対応もできません。問題があるようでしたら、[[*user Croquembouche]]に直接ご連絡ください。
233230
234231
-----
@@ -257,11 +254,11 @@ subject = "[论坛提醒] {post_count} 个新帖子"
257254
intro = """|
258255
您好!这是您在 {link_site} 订阅的{frequency}提醒概要,提醒您所订阅的讨论区内发布了新的讨论帖。
259256
260-
排除了由于您手动取消订阅而被移除的所有订阅内容,本服务将为您持续追踪 {sub_count} 个订阅
257+
本服务正在追踪
261258
262259
* {manual_sub_count} 个手动订阅,可在[{link_your_config} 您的个人配置]处配置。
263260
264-
* {auto_thread_sub_count} 个自动订阅讨论区以及 {auto_post_sub_count} 个自动订阅讨论帖。该服务[{link_info_learning} 仍在学习]您的自动订阅内容中,所以预计这个数字将会随时间增长。[{link_info_automatic} 了解自动订阅的内容构成。]
261+
* 自动订阅讨论区和讨论帖。[{link_info_automatic} 了解自动订阅的内容构成。]
265262
266263
本账户([[*user Notifier]])为全自动运营——任何对本消息发送的回复都将被忽略。如果您遇到了任何问题,请直接联系我([[*user Croquembouche]])。
267264
@@ -289,11 +286,11 @@ frequency_weekly = "settimanale"
289286
frequency_monthly = "mensile"
290287
subject = "[Notifiche dal Forum] {post_count} plural({post_count}|nuovo|nuovi) post"
291288
intro = """|
292-
Ehilà! Ecco a te il tuo riassunto {frequency} delle notifiche da {link_site}, che ti avvisa dei nuovi post pubblicati nei thread ai quali hai effettuato un'iscrizione. Eccezion fatta per tutti i thread l'iscrizione ai quali hai annullato manualmente, questo servizio tiene d'occhio {sub_count} plural({sub_count}|la tua iscrizione|le tue iscrizioni) al posto tuo:
289+
Ehilà! Ecco a te il tuo riassunto {frequency} delle notifiche da {link_site}, che ti avvisa dei nuovi post pubblicati nei thread ai quali hai effettuato un'iscrizione. Questo servizio tiene d'occhio:
293290
294291
* {manual_sub_count} plural({manual_sub_count}|l'iscrizione manuale|le iscrizioni manuali), come descritte [{link_your_config} nelle tue configurazioni utente].
295292
296-
* {auto_thread_sub_count} plural({auto_thread_sub_count}|l'iscrizione automatica|le iscrizioni automatiche) ai thread e {auto_post_sub_count} plural({auto_post_sub_count}|l'iscrizione automatica|le iscrizioni automatiche)ai post. Il servizio sta ancora [{link_info_learning} imparando man mano] il funzionamento delle iscrizioni automatiche, perciò aspettati che il numero qui sopra cresca con il tempo. [{link_info_automatic} Informati su cosa sia un'iscrizione automatica.]
293+
* Iscrizioni automatiche ai thread e ai post. [{link_info_automatic} Informati su cosa sia un'iscrizione automatica.]
297294
298295
Il presente account ([[*user Notifier]]) è automatizzato -- qualsiasi risposta a questo messaggio sarà ignorata. Nel caso ci siano problemi, contatta me ([[*user Croquembouche]]) direttamente, in lingua Inglese.
299296
@@ -321,11 +318,11 @@ subject = "[Forum-varsler] {post_count} plural({post_count}|nytt|nye) innlegg"
321318
intro = """|
322319
Hei! Dette er ditt {frequency}varslingssammendrag fra {link_site}, med varsler om nye innlegg i diskusjoner du har abonnert på.
323320
324-
Utenom abonnementer som har blitt fjernet som et resultat av dine manuelle abonnementer, holder denne tjenesten rede på {sub_count} plural({sub_count}|abonnement|abonnementer) for deg:
321+
Denne tjenesten holder oversikt over:
325322
326323
* {manual_sub_count} plural({manual_sub_count}|manuelt abonnement|manuelle abonnementer), som definert i [{link_your_config} dine bruker-instillinger].
327324
328-
* {auto_thread_sub_count} plural({auto_thread_sub_count}|automatisk diskusjons-abonnement|automatiske diskusjons-abonnementer) og {auto_post_sub_count} plural({auto_post_sub_count}|automatisk innlegg-abonnement|automatiske innlegg-abonnementer). Tjenesten er [{link_info_learning} fremdeles under opplæring] om dine automatiske abonnementer, så du kan forvente dette tallet til å stige over tid. [{link_info_automatic} Finn ut hva som utgjør et automatisk abonnement.]
325+
* Automatisk abonnement på diskusjoner og innlegg. [{link_info_automatic} Finn ut hva som utgjør et automatisk abonnement.]
329326
330327
Denne kontoen ([[*user Notifier]]) er automatisert -- alle svar til denne meldingen vil bli ignorert. Hvis du har problemer, kontakt meg ([[*user Croquembouche]]) direkte.
331328

notifier/digest.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ def for_user(
7373
) -> Tuple[str, str]:
7474
"""Compile a notification digest for a user.
7575
76-
Returns a tuple of notification count, message subject and the
77-
digest body.
76+
Returns a tuple of message subject and the digest body.
7877
"""
7978
# Make the lexicon for this user's settings
8079
lexicon = self.make_lexicon(user["language"])

tests/test_digest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ def test_full_interpolation_en(
175175
assert "{" not in digest
176176

177177

178-
@pytest.mark.xfail
179178
def test_full_interpolation_all_languages(
180179
fake_user: CachedUserConfig, fake_posts: List[PostInfo]
181180
) -> None:
@@ -188,12 +187,13 @@ def test_full_interpolation_all_languages(
188187
for language in languages:
189188
for delivery in ["email", "pm"]:
190189
print(language, delivery)
191-
digest = digester.for_user(
190+
subject, body = digester.for_user(
192191
{
193192
**fake_user, # type:ignore[misc]
194193
"language": language,
195194
"delivery": delivery,
196195
},
197196
fake_posts,
198197
)
199-
assert "{" not in digest, language
198+
print(subject, body)
199+
assert "{" not in body, language

0 commit comments

Comments
 (0)