From e4316a8a1647ed3af9405c810eaa2f10eae5e562 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Thu, 8 Feb 2024 19:31:34 +0100 Subject: [PATCH] Enable translations of the comment note --- blog/config.toml | 24 ++++++++++++++++++++++++ blog/templates/snippets.html | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/blog/config.toml b/blog/config.toml index a58163d1..e852ede4 100644 --- a/blog/config.toml +++ b/blog/config.toml @@ -53,6 +53,9 @@ support_me = """

Support Me

Creating and maintaining this blog and the associated libraries is a lot of work, but I really enjoy doing it. By supporting me, you allow me to invest more time in new content, new features, and continuous maintenance. The best way to support me is to sponsor me on GitHub. Thank you!

""" +comment_note = """ +Do you have a problem, want to share feedback, or discuss further ideas? Feel free to leave a comment here! Please stick to English and follow Rust's code of conduct. This comment thread directly maps to a discussion on GitHub, so you can also comment there if you prefer. +""" # Chinese (simplified) [languages.zh-CN] @@ -75,6 +78,9 @@ support_me = """

Support Me

Creating and maintaining this blog and the associated libraries is a lot of work, but I really enjoy doing it. By supporting me, you allow me to invest more time in new content, new features, and continuous maintenance. The best way to support me is to sponsor me on GitHub. Thank you!

""" +comment_note = """ +Do you have a problem, want to share feedback, or discuss further ideas? Feel free to leave a comment here! Please stick to English and follow Rust's code of conduct. This comment thread directly maps to a discussion on GitHub, so you can also comment there if you prefer. +""" # Chinese (traditional) [languages.zh-TW] @@ -97,6 +103,9 @@ support_me = """

Support Me

Creating and maintaining this blog and the associated libraries is a lot of work, but I really enjoy doing it. By supporting me, you allow me to invest more time in new content, new features, and continuous maintenance. The best way to support me is to sponsor me on GitHub. Thank you!

""" +comment_note = """ +Do you have a problem, want to share feedback, or discuss further ideas? Feel free to leave a comment here! Please stick to English and follow Rust's code of conduct. This comment thread directly maps to a discussion on GitHub, so you can also comment there if you prefer. +""" # Japanese [languages.ja] @@ -119,6 +128,9 @@ support_me = """

Support Me

Creating and maintaining this blog and the associated libraries is a lot of work, but I really enjoy doing it. By supporting me, you allow me to invest more time in new content, new features, and continuous maintenance. The best way to support me is to sponsor me on GitHub. Thank you!

""" +comment_note = """ +Do you have a problem, want to share feedback, or discuss further ideas? Feel free to leave a comment here! Please stick to English and follow Rust's code of conduct. This comment thread directly maps to a discussion on GitHub, so you can also comment there if you prefer. +""" # Persian [languages.fa] @@ -141,6 +153,9 @@ support_me = """

Support Me

Creating and maintaining this blog and the associated libraries is a lot of work, but I really enjoy doing it. By supporting me, you allow me to invest more time in new content, new features, and continuous maintenance. The best way to support me is to sponsor me on GitHub. Thank you!

""" +comment_note = """ +Do you have a problem, want to share feedback, or discuss further ideas? Feel free to leave a comment here! Please stick to English and follow Rust's code of conduct. This comment thread directly maps to a discussion on GitHub, so you can also comment there if you prefer. +""" # Russian [languages.ru] @@ -163,6 +178,9 @@ support_me = """

Support Me

Creating and maintaining this blog and the associated libraries is a lot of work, but I really enjoy doing it. By supporting me, you allow me to invest more time in new content, new features, and continuous maintenance. The best way to support me is to sponsor me on GitHub. Thank you!

""" +comment_note = """ +Do you have a problem, want to share feedback, or discuss further ideas? Feel free to leave a comment here! Please stick to English and follow Rust's code of conduct. This comment thread directly maps to a discussion on GitHub, so you can also comment there if you prefer. +""" # French [languages.fr] @@ -185,6 +203,9 @@ support_me = """

Support Me

Creating and maintaining this blog and the associated libraries is a lot of work, but I really enjoy doing it. By supporting me, you allow me to invest more time in new content, new features, and continuous maintenance. The best way to support me is to sponsor me on GitHub. Thank you!

""" +comment_note = """ +Do you have a problem, want to share feedback, or discuss further ideas? Feel free to leave a comment here! Please stick to English and follow Rust's code of conduct. This comment thread directly maps to a discussion on GitHub, so you can also comment there if you prefer. +""" # Korean [languages.ko] @@ -207,3 +228,6 @@ support_me = """

Support Me

Creating and maintaining this blog and the associated libraries is a lot of work, but I really enjoy doing it. By supporting me, you allow me to invest more time in new content, new features, and continuous maintenance. The best way to support me is to sponsor me on GitHub. Thank you!

""" +comment_note = """ +Do you have a problem, want to share feedback, or discuss further ideas? Feel free to leave a comment here! Please stick to English and follow Rust's code of conduct. This comment thread directly maps to a discussion on GitHub, so you can also comment there if you prefer. +""" diff --git a/blog/templates/snippets.html b/blog/templates/snippets.html index 161a7aaf..0fbeb7c5 100644 --- a/blog/templates/snippets.html +++ b/blog/templates/snippets.html @@ -17,7 +17,7 @@ {% endif %}

- Do you have a problem, want to share feedback, or discuss further ideas? Feel free to leave a comment here! Please stick to English and follow Rust's code of conduct. This comment thread directly maps to a discussion on GitHub, so you can also comment there if you prefer. + {{ trans(key="comment_note", lang=lang) | replace(from="_discussion_url_", to=discussion_url) | safe }}