mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-09-25 04:05:55 +00:00
feat: harden localization against malicious HTML (#5703)
- Add a new script that proccess the localization files and verify that they only contain HTML according to our strictly defined rules. - This should make adding malicious HTML near-impossible. Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/5703 Reviewed-by: 0ko <0ko@noreply.codeberg.org> Co-authored-by: Gusted <postmaster@gusted.xyz> Co-committed-by: Gusted <postmaster@gusted.xyz>
This commit is contained in:
parent
031451e740
commit
dfe3ffc581
43 changed files with 361 additions and 151 deletions
|
@ -960,7 +960,7 @@ settings.recent_deliveries = التوصيل الأخيرة
|
|||
projects.new = مشروع جديد
|
||||
file_history = تاريخ
|
||||
editor.directory_is_a_file = اسم المجلد "%s" مستخدم فعلا لاسم ملف في هذا المستودع.
|
||||
editor.commit_directly_to_this_branch = أودع مباشرةً إلى فرع <strong class="branch-name">%s</strong>.
|
||||
editor.commit_directly_to_this_branch = أودع مباشرةً إلى فرع <strong class="%[2]s">%[1]s</strong>.
|
||||
editor.unable_to_upload_files = تعذر رفع الملفات إلى "%s" برسالة الخطأ: %v
|
||||
settings.webhook.payload = المحتوى
|
||||
invisible_runes_header = `يحتوي هذا الملف على محارف يونيكود غير مرئية`
|
||||
|
@ -1105,7 +1105,7 @@ activity.git_stats_pushed_1 = دفع
|
|||
activity.git_stats_pushed_n = دفعوا
|
||||
activity.git_stats_commit_1 = %d إيداع
|
||||
activity.git_stats_commit_n = %d إيداعا
|
||||
activity.git_stats_push_to_branch = إلى %s و
|
||||
activity.git_stats_push_to_branch = `إلى %s و"`
|
||||
activity.git_stats_push_to_all_branches = إلى كل الفروع.
|
||||
activity.git_stats_on_default_branch = في %s،
|
||||
activity.git_stats_file_1 = %d ملف
|
||||
|
@ -1115,7 +1115,7 @@ activity.git_stats_files_changed_n = تغيّروا
|
|||
activity.git_stats_additions = وحدثت
|
||||
activity.git_stats_addition_1 = %d إضافة
|
||||
activity.git_stats_addition_n = %d إضافة
|
||||
activity.git_stats_and_deletions = و
|
||||
activity.git_stats_and_deletions = `و"`
|
||||
activity.git_stats_deletion_1 = %d إزالة
|
||||
activity.git_stats_deletion_n = %d إزالة
|
||||
settings.mirror_settings.direction = الاتجاه
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue