~vpzom/hitide

a03e2f130417b2d983a9ee2c36ef71907b6ad4ff — Colin Reeder 1 year, 1 month ago cd639ec lang-placeholder
Also use placeholders for post reply notification
5 files changed, 28 insertions(+), 6 deletions(-)

M res/lang/de.ftl
M res/lang/en.ftl
M res/lang/eo.ftl
M res/lang/fr.ftl
M src/components/mod.rs
M res/lang/de.ftl => res/lang/de.ftl +2 -1
@@ 57,7 57,8 @@ nothing_yet = Sieht so aus als wenn hier nichts ist, (bis jetzt!).
notifications = Benachrichtigungen
notification_comment_reply = Antworten an { $part_your_comment } Auf { $part_post }
notification_comment_reply_part_your_comment = Dein Kommentar
on_your_post = Auf deinen Beitrag
notification_post_reply = { $part_comment } Auf deinen Beitrag { $part_post}:
notification_post_reply_part_comment = Kommentar
password_prompt = Password:
post_approve = Akzeptieren
post_approve_undo = Aus Community entfernen

M res/lang/en.ftl => res/lang/en.ftl +2 -1
@@ 119,7 119,8 @@ notification_comment_mention_part_comment = a comment
notification_comment_reply = Reply to { $part_your_comment } on { $part_post }:
notification_comment_reply_part_your_comment = your comment
notification_post_mention = You were mentioned in a post:
on_your_post = on your post
notification_post_reply = { $part_comment } on your post { $part_post }:
notification_post_reply_part_comment = Comment
open_menu = Open Menu
poll_new_closes_prompt = Closes in:
poll_new_multiple = Allow multiple choices

M res/lang/eo.ftl => res/lang/eo.ftl +2 -1
@@ 63,7 63,8 @@ nothing_yet = Ŝajnas, ke estas nenio ĉi tie (ĝis nun!).
notifications = Sciigoj
notification_comment_reply = Respondo al { $part_your_comment } sur { $part_post }
notification_comment_reply_part_your_comment = via komento
on_your_post = sur via poŝto
notification_post_reply = { $part_comment } sur via poŝto { $part_post }:
notification_post_reply_part_comment = Komento
password_prompt = Pasvorto:
posts_page_next = Vidi Pli
post_approve = Aprobi

M res/lang/fr.ftl => res/lang/fr.ftl +2 -1
@@ 57,7 57,8 @@ nothing_yet = Il semble qu'il n'y ait rien ici.(pour l'instant!).
notifications = Notifications
notification_comment_reply = Répondre à { $part_your_comment } sur { $part_port }:
notification_comment_reply_part_your_comment = votre commentaire
on_your_post = sur votre post
notification_post_reply = { $part_comment } sur votre post { $part_post }:
notification_post_reply_part_comment = Commentaire
password_prompt = Mot de passe:
post_approve = Approuver
post_approve_undo = Enlever de la communauté

M src/components/mod.rs => src/components/mod.rs +20 -2
@@ 827,8 827,26 @@ impl<'a> render::Render for NotificationItem<'a> {
                (render::rsx! {
                    <>
                        <div>
                            <a href={format!("/comments/{}", reply.as_ref().id)}>{lang.tr(&lang::comment())}</a>
                            {" "}{lang.tr(&lang::on_your_post())}{" "}<a href={format!("/posts/{}", post.as_ref().as_ref().id)}>{post.as_ref().as_ref().title.as_ref()}</a>{":"}
                            {
                                lang::TrElements::new(
                                    lang.tr(&lang::notification_post_reply(lang::LangPlaceholder(0), lang::LangPlaceholder(1))),
                                    |id, w| {
                                        match id {
                                            0 => render::rsx! {
                                                <a href={format!("/comments/{}", reply.as_ref().id)}>
                                                    {lang.tr(&lang::notification_post_reply_part_comment())}
                                                </a>
                                            }.render_into(w),
                                            1 => render::rsx! {
                                                <a href={format!("/posts/{}", post.as_ref().as_ref().id)}>
                                                    {post.as_ref().as_ref().title.as_ref()}
                                                </a>
                                            }.render_into(w),
                                            _ => unreachable!(),
                                        }
                                    }
                                )
                            }
                        </div>
                        <div class={"body"}>
                            <small>