From f1d3e2940953518de7ddda291401fd4e7920d2b9 Mon Sep 17 00:00:00 2001 From: Azareal Date: Sun, 9 Feb 2020 20:38:53 +1000 Subject: [PATCH] add phrases for group promotion registered times rename panel_group_promotions_level_prefix phrase to panel_group_promotions_row_level_prefix rename panel_group_promotions_posts_prefix phrase to panel_group_promotions_row_posts_prefix rename panel_group_promotions_delete_button phrase to panel_group_promotions_row_delete_button add panel_group_promotions_row_registered_minutes phrase add panel_group_promotion_registered_months_suffix phrase add panel_group_promotion_registered_days_suffix phrase add panel_group_promotion_registered_hours_suffix phrase --- langs/english.json | 11 ++++++++--- templates/panel_group_edit_promotions.html | 14 +++++++------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/langs/english.json b/langs/english.json index 84985a73..816c2b68 100644 --- a/langs/english.json +++ b/langs/english.json @@ -923,9 +923,11 @@ "panel_group_extended_permissions":"Extended Permissions", "panel_group_mod_permissions":"Moderator Permissions", - "panel_group_promotions_level_prefix":"level ", - "panel_group_promotions_posts_prefix":"posts ", - "panel_group_promotions_delete_button":"Delete", + "panel_group_promotions_row_level_prefix":"level ", + "panel_group_promotions_row_posts_prefix":"posts ", + "panel_group_promotions_row_registered_minutes":"registered for %d minutes", + "panel_group_promotions_row_delete_button":"Delete", + "panel_group_promotions_create_head":"Add Promotion", "panel_group_promotions_from":"From", "panel_group_promotions_to":"To", @@ -933,6 +935,9 @@ "panel_group_promotions_level":"Level", "panel_group_promotions_posts":"Posts", "panel_group_promotion_registered_for":"Registered For", + "panel_group_promotion_registered_months_suffix":" months", + "panel_group_promotion_registered_days_suffix":" days", + "panel_group_promotion_registered_hours_suffix":" hours", "panel_group_promotions_create_button":"Add Promotion", "panel_word_filters_head":"Word Filters", diff --git a/templates/panel_group_edit_promotions.html b/templates/panel_group_edit_promotions.html index 8457bddf..3163b364 100644 --- a/templates/panel_group_edit_promotions.html +++ b/templates/panel_group_edit_promotions.html @@ -11,11 +11,11 @@ {{range .Promotions}}
{{.FromGroup.Name}} -> {{.ToGroup.Name}}{{if .TwoWay}} (two way){{end}} - {{if .Level}} - {{lang "panel_group_promotions_level_prefix"}}{{.Level}}{{end}} - {{if .Posts}} - {{lang "panel_group_promotions_posts_prefix"}}{{.Posts}}{{end}} - {{if .RegisteredFor}} - registered for {{.RegisteredFor}} minutes{{end}} + {{if .Level}} - {{lang "panel_group_promotions_row_level_prefix"}}{{.Level}}{{end}} + {{if .Posts}} - {{lang "panel_group_promotions_row_posts_prefix"}}{{.Posts}}{{end}} + {{if .RegisteredFor}} - {{langf "panel_group_promotions_row_registered_minutes" .RegisteredFor}}{{end}}
{{end}}
@@ -66,9 +66,9 @@
- months
- days
- hours + {{lang "panel_group_promotion_registered_months_suffix"}}
+ {{lang "panel_group_promotion_registered_days_suffix"}}
+ {{lang "panel_group_promotion_registered_hours_suffix"}}