From 777e8c20124a77797e58c78b87f925c5caea1f47 Mon Sep 17 00:00:00 2001 From: Amos L King Date: Thu, 20 Jun 2013 23:41:04 -0500 Subject: [PATCH] Correct spelling of suppress supress => suppress Amos King @adkron --- app/assets/javascripts/discourse/models/post.js | 4 ++-- app/models/post_action.rb | 2 +- app/models/site_setting.rb | 2 +- config/locales/server.cs.yml | 2 +- config/locales/server.da.yml | 2 +- config/locales/server.de.yml | 2 +- config/locales/server.en.yml | 2 +- config/locales/server.es.yml | 2 +- config/locales/server.fr.yml | 2 +- config/locales/server.id.yml | 2 +- config/locales/server.it.yml | 2 +- config/locales/server.nl.yml | 4 ++-- config/locales/server.pseudo.yml | 2 +- config/locales/server.pt.yml | 2 +- config/locales/server.ru.yml | 2 +- config/locales/server.sv.yml | 2 +- config/locales/server.zh_CN.yml | 2 +- config/locales/server.zh_TW.yml | 2 +- db/migrate/20130621042855_change_supress_to_suppress.rb | 9 +++++++++ test/javascripts/fixtures/site_settings_fixtures.js | 2 +- 20 files changed, 30 insertions(+), 21 deletions(-) create mode 100644 db/migrate/20130621042855_change_supress_to_suppress.rb diff --git a/app/assets/javascripts/discourse/models/post.js b/app/assets/javascripts/discourse/models/post.js index ec9e7c5fc..c395efa1c 100644 --- a/app/assets/javascripts/discourse/models/post.js +++ b/app/assets/javascripts/discourse/models/post.js @@ -262,8 +262,8 @@ Discourse.Post = Discourse.Model.extend({ // We don't show replies if there aren't any if (reply_count === 0) return false; - // Always show replies if the setting `supress_reply_directly_below` is false. - if (!Discourse.SiteSettings.supress_reply_directly_below) return true; + // Always show replies if the setting `suppress_reply_directly_below` is false. + if (!Discourse.SiteSettings.suppress_reply_directly_below) return true; // Always show replies if there's more than one if (reply_count > 1) return true; diff --git a/app/models/post_action.rb b/app/models/post_action.rb index 358fb6557..531f69002 100644 --- a/app/models/post_action.rb +++ b/app/models/post_action.rb @@ -357,7 +357,7 @@ class PostAction < ActiveRecord::Base sql.where2 "post_action_type_id in (:flag_types)", flag_types: PostActionType.notify_flag_type_ids # it may make sense to add a view that shows flags on deleted posts, - # we don't clear the flags on post deletion, just supress counts + # we don't clear the flags on post deletion, just suppress counts if filter == 'old' sql.where2 "deleted_at is not null OR defer = true" sql.order_by "max desc" diff --git a/app/models/site_setting.rb b/app/models/site_setting.rb index 10e19ceae..ef2badb44 100644 --- a/app/models/site_setting.rb +++ b/app/models/site_setting.rb @@ -37,7 +37,7 @@ class SiteSetting < ActiveRecord::Base client_setting(:allow_uncategorized_topics, true) client_setting(:min_search_term_length, 3) client_setting(:flush_timings_secs, 5) - client_setting(:supress_reply_directly_below, true) + client_setting(:suppress_reply_directly_below, true) client_setting(:email_domains_blacklist, 'mailinator.com') client_setting(:email_domains_whitelist) client_setting(:version_checks, true) diff --git a/config/locales/server.cs.yml b/config/locales/server.cs.yml index 6f7ddd226..63ba1201d 100644 --- a/config/locales/server.cs.yml +++ b/config/locales/server.cs.yml @@ -524,7 +524,7 @@ cs: posts_per_page: "Kolik příspěvků je zobrazeno ve stránce tématu" system_username: "Uživatelské jméno, za které se zasílají automatické soukromé zprávy" send_welcome_message: "Mají noví uživatelé obdržet uvítací soukromou zprávu?" - supress_reply_directly_below: "Nezobrazovat počet odpovědí, pokud existuje jen jediná odpověď hned pod příspěvkem" + suppress_reply_directly_below: "Nezobrazovat počet odpovědí, pokud existuje jen jediná odpověď hned pod příspěvkem" allow_index_in_robots_txt: "Povolit robotům indexaci tohoto webu (aktualizuje robots.txt)" email_domains_blacklist: "Seznam domén, jejichž emailové adresy nebudou přijímány, oddělený znakem '|'. Příklad: mailinator.com|trashmail.net" email_domains_whitelist: "Seznam domén, ze kterých bude povolena registrace, oddělený znamek '|'. POZOR: Emailové adresy z jiných než z těchto domén nebudou přijímány." diff --git a/config/locales/server.da.yml b/config/locales/server.da.yml index bcccfc3cd..b7d1f2fca 100644 --- a/config/locales/server.da.yml +++ b/config/locales/server.da.yml @@ -352,7 +352,7 @@ da: posts_per_page: "How many posts are returned on a topic page" system_username: "Username for the author of automated private messages sent by the forum" send_welcome_message: "Do new users get a welcome private message?" - supress_reply_directly_below: "Don't show reply count on a post when there is a single reply directly below" + suppress_reply_directly_below: "Don't show reply count on a post when there is a single reply directly below" allow_index_in_robots_txt: "Site should be indexed by search engines (update robots.txt)" email_domains_blacklist: "A pipe-delimited list of email domains that are not allowed. Example: mailinator.com|trashmail.net" version_checks: "Ping the Discourse Hub for version updates and show version messages on the /admin dashboard" diff --git a/config/locales/server.de.yml b/config/locales/server.de.yml index e95ad9c50..501ec75ba 100644 --- a/config/locales/server.de.yml +++ b/config/locales/server.de.yml @@ -493,7 +493,7 @@ de: posts_per_page: "Zahl der Beiträge, die auf einer Themenseite gezeigt werden." system_username: "Benutzername des Autors für automatisch vom Forum versendete private Nachrichten." send_welcome_message: "Bekommen neue Nutzer eine Willkommensnachricht?" - supress_reply_directly_below: "Zeige die Zahl der Antworten auf einen Beitrag nicht, falls die einzige Antwort direkt darauf folgt." + suppress_reply_directly_below: "Zeige die Zahl der Antworten auf einen Beitrag nicht, falls die einzige Antwort direkt darauf folgt." allow_index_in_robots_txt: "Diese Seite soll durch Suchmaschinen indiziert werden (aktualisiert robots.txt)." email_domains_blacklist: "Eine durch senkrechte Striche getrennte Liste von unerlaubten Maildomains. Beispiel: mailinator.com|trashmail.net" email_domains_whitelist: "Eine durch senkrechte Striche getrennte Liste von erlaubte Maildomains. WARNUNG: Benutzer mit Mailadressen anderer Domains können sich nicht registrieren." diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml index 24a5db566..330584bfa 100644 --- a/config/locales/server.en.yml +++ b/config/locales/server.en.yml @@ -498,7 +498,7 @@ en: posts_per_page: "How many posts are returned on a topic page" system_username: "Username for the author of automated private messages sent by the forum" send_welcome_message: "Do new users get a welcome private message?" - supress_reply_directly_below: "Don't show reply count on a post when there is a single reply directly below" + suppress_reply_directly_below: "Don't show reply count on a post when there is a single reply directly below" allow_index_in_robots_txt: "Site should be indexed by search engines (update robots.txt)" email_domains_blacklist: "A pipe-delimited list of email domains that are not allowed. Example: mailinator.com|trashmail.net" email_domains_whitelist: "A pipe-delimited list of email domains that users may register with. WARNING: Users with email domains other than those listed will not be allowed." diff --git a/config/locales/server.es.yml b/config/locales/server.es.yml index c22826d8b..e95105b5f 100644 --- a/config/locales/server.es.yml +++ b/config/locales/server.es.yml @@ -340,7 +340,7 @@ es: posts_per_page: "Cuantos posts son devueltos en una página de topic" system_username: "Nombre de usuario para el autor de mensajes privados enviados por el foro" send_welcome_message: "¿Reciben los nuevos usuarios un mensaje privado de bienvenida?" - supress_reply_directly_below: "No mostrar el contador de respuestas en un pot cuando una única respuesta directamente debajo" + suppress_reply_directly_below: "No mostrar el contador de respuestas en un pot cuando una única respuesta directamente debajo" allow_index_in_robots_txt: "Permitir que el sitio sea indexado por motores de búsqueda (sobreescribe robots.txt)" email_domains_blacklist: "Una lista delimitada por pipes (|) de dominios de mails que nos son permitirdos, pej:mailinator.com|trashmail.net" version_checks: "Ping el 'Discourse Hub' para actualizaciones de versión y mostrar mensajes del número de versión en el dashboard /admin" diff --git a/config/locales/server.fr.yml b/config/locales/server.fr.yml index ddd907807..8cee2606c 100644 --- a/config/locales/server.fr.yml +++ b/config/locales/server.fr.yml @@ -487,7 +487,7 @@ fr: posts_per_page: "Nombre de messages retournés sur une page de discussion" system_username: "Pseudo qui envoie les messages automatiques" send_welcome_message: "Les nouveaux utilisateurs reçoivent-ils un message privé de bienvenue ?" - supress_reply_directly_below: "Ne pas afficher les boutons de réponse sous un message lorsque la réponse est juste en dessous" + suppress_reply_directly_below: "Ne pas afficher les boutons de réponse sous un message lorsque la réponse est juste en dessous" allow_index_in_robots_txt: "Le site doit-être indexé par les moteurs de recherche (met à jour le fichier robots.txt)" email_domains_blacklist: "Liste des domaines d'email interdits, délimités par un pipe. Exemple: mailinator.com|trashmail.net" email_domains_whitelist: "Liste des domaines d'email autorisés, délimités par un pipe. ATTENTION : les utilisateurs ayant un email sur un autre domaine ne pourrons pas s'enregistrer." diff --git a/config/locales/server.id.yml b/config/locales/server.id.yml index 372fcc19d..f1cbb0dbb 100644 --- a/config/locales/server.id.yml +++ b/config/locales/server.id.yml @@ -352,7 +352,7 @@ id: posts_per_page: "How many posts are returned on a topic page" system_username: "Username for the author of automated private messages sent by the forum" send_welcome_message: "Do new users get a welcome private message?" - supress_reply_directly_below: "Don't show reply count on a post when there is a single reply directly below" + suppress_reply_directly_below: "Don't show reply count on a post when there is a single reply directly below" allow_index_in_robots_txt: "Site should be indexed by search engines (update robots.txt)" email_domains_blacklist: "A pipe-delimited list of email domains that are not allowed. Example: mailinator.com|trashmail.net" version_checks: "Ping the Discourse Hub for version updates and show version messages on the /admin dashboard" diff --git a/config/locales/server.it.yml b/config/locales/server.it.yml index f03c6af8c..6eccf0376 100644 --- a/config/locales/server.it.yml +++ b/config/locales/server.it.yml @@ -474,7 +474,7 @@ it: posts_per_page: "Quanti post vengono restituiti in una pagina di un topic" system_username: "Username dell'autore dei messaggi privati automatizzati spediti dal forum" send_welcome_message: "I nuovi utenti ricevono un messaggio di benvenuto?" - supress_reply_directly_below: "Non mostrare il numero di risposte ad un post quando c'è una singola risposta appena sotto" + suppress_reply_directly_below: "Non mostrare il numero di risposte ad un post quando c'è una singola risposta appena sotto" allow_index_in_robots_txt: "Il sito è indicizzabile dai motori di ricerta (aggiorna robots.txt)" email_domains_blacklist: Lista di domini separati da pipe (\"|\"). Gli indirizzi email appartenenti a questi domini non saranno autorizzati. Esempio mailinator.com|trashmail.net" email_domains_whitelist: "Lista di domini separati da pipe (\"|\"). Gli utenti saranno autorizzati a registrarsi SOLO con questi domini. ATTENZIONE: Utenti con indirizzi email diversi da quelli listati non saranno accettati." diff --git a/config/locales/server.nl.yml b/config/locales/server.nl.yml index f9e7e5deb..a8897102f 100644 --- a/config/locales/server.nl.yml +++ b/config/locales/server.nl.yml @@ -63,7 +63,7 @@ nl: trust_level_2: "trust_level_2" trust_level_3: "trust_level_3" trust_level_4: "trust_level_4" - trust_level_5: "trust_level_5" + trust_level_5: "trust_level_5" education: until_posts: @@ -492,7 +492,7 @@ nl: posts_per_page: "Hoeveel berichten er worden weergeven op een topic-pagina" system_username: "Vanuit welke gebruikersnaam systeemberichten worden verstuurd" send_welcome_message: "Krijgen nieuwe leden een welkomst-privé-bericht?" - supress_reply_directly_below: "Laat geen reactieknop zien onder een bericht waarbij de reactie direct onder het bericht zal worden gemaakt" + suppress_reply_directly_below: "Laat geen reactieknop zien onder een bericht waarbij de reactie direct onder het bericht zal worden gemaakt" allow_index_in_robots_txt: "De site zou geïndexeerd mogen worden door zoekmachines (update robots.txt)" email_domains_blacklist: "Een lijst met e-maildomeinen gescheiden door een |-teken van domeinen die niet worden toegestaan. Voorbeeld: mailinator.com|trashmail.net" email_domains_whitelist: "Een lijst met e-maildomeinen gescheiden door een |-teken van domeinen die wel worden toegestaan. N.B.: als je hier iets opgeeft, zijn andere domeinen NIET toegestaan." diff --git a/config/locales/server.pseudo.yml b/config/locales/server.pseudo.yml index 7b9c989ad..bd4ca332a 100644 --- a/config/locales/server.pseudo.yml +++ b/config/locales/server.pseudo.yml @@ -563,7 +563,7 @@ pseudo: system_username: '[[ Ůšéřɳáɱé ƒóř ťĥé áůťĥóř óƒ áůťóɱáťéď ƿříνáťé ɱéššáǧéš šéɳť ƀý ťĥé ƒóřůɱ ]]' send_welcome_message: '[[ Ďó ɳéŵ ůšéřš ǧéť á ŵéłčóɱé ƿříνáťé ɱéššáǧé? ]]' - supress_reply_directly_below: '[[ Ďóɳ''ť šĥóŵ řéƿłý čóůɳť óɳ á ƿóšť ŵĥéɳ ťĥéřé + suppress_reply_directly_below: '[[ Ďóɳ''ť šĥóŵ řéƿłý čóůɳť óɳ á ƿóšť ŵĥéɳ ťĥéřé íš á šíɳǧłé řéƿłý ďířéčťłý ƀéłóŵ ]]' allow_index_in_robots_txt: '[[ Šíťé šĥóůłď ƀé íɳďéхéď ƀý šéářčĥ éɳǧíɳéš (ůƿďáťé řóƀóťš.ťхť) ]]' diff --git a/config/locales/server.pt.yml b/config/locales/server.pt.yml index 2c2e353be..c4c43095f 100644 --- a/config/locales/server.pt.yml +++ b/config/locales/server.pt.yml @@ -293,7 +293,7 @@ pt: posts_per_page: "How many posts are returned on a topic page" system_username: "Username that sends system messages" send_welcome_message: "Do new users get a welcome private message?" - supress_reply_directly_below: "Don't show replies button below a post when the reply is directly below" + suppress_reply_directly_below: "Don't show replies button below a post when the reply is directly below" allow_index_in_robots_txt: "Site should be indexed by search engines (update robots.txt)" email_domains_blacklist: "A pipe-delimited list of email domains that are not allowed. Example: mailinator.com|trashmail.net" diff --git a/config/locales/server.ru.yml b/config/locales/server.ru.yml index e81f45c81..e084c3a72 100644 --- a/config/locales/server.ru.yml +++ b/config/locales/server.ru.yml @@ -549,7 +549,7 @@ ru: posts_per_page: Количество сообщений, показываемых на странице темы system_username: Никнейм автора автоматических личных сообщений, рассылаемых форумом send_welcome_message: Будут ли новые пользователи получать приветственное личное сообщение? - supress_reply_directly_below: Не показывать количество ответов на сообщение, если есть хотя бы один ответ непосредственно ниже. + suppress_reply_directly_below: Не показывать количество ответов на сообщение, если есть хотя бы один ответ непосредственно ниже. allow_index_in_robots_txt: Сайт должен индексироваться поисковыми машинами (обновите robots.txt) email_domains_blacklist: 'Разделенный чертой список недопустимых почтовых доменов. Пример: mailinator.com|trashmail.net' email_domains_whitelist: 'Разделенный чертой список почтовых доменов, которые пользователь может использовать при регистрации. ПРЕДУПРЕЖДЕНИЕ: Пользователи с почтовыми доменами, отличными от указанных, не смогут зарегистрироваться.' diff --git a/config/locales/server.sv.yml b/config/locales/server.sv.yml index f01a31d63..7487bc326 100644 --- a/config/locales/server.sv.yml +++ b/config/locales/server.sv.yml @@ -396,7 +396,7 @@ sv: posts_per_page: "How many posts are returned on a topic page" system_username: "Username for the author of automated private messages sent by the forum" send_welcome_message: "Do new users get a welcome private message?" - supress_reply_directly_below: "Don't show reply count on a post when there is a single reply directly below" + suppress_reply_directly_below: "Don't show reply count on a post when there is a single reply directly below" allow_index_in_robots_txt: "Site should be indexed by search engines (update robots.txt)" email_domains_blacklist: "A pipe-delimited list of email domains that are not allowed. Example: mailinator.com|trashmail.net" email_domains_whitelist: "A pipe-delimited list of email domains that users may register with. WARNING: Users with email domains other than those listed will not be allowed." diff --git a/config/locales/server.zh_CN.yml b/config/locales/server.zh_CN.yml index ad9f70410..d1489a6b3 100644 --- a/config/locales/server.zh_CN.yml +++ b/config/locales/server.zh_CN.yml @@ -488,7 +488,7 @@ zh_CN: posts_per_page: "在主题页面,返回多少个帖子" system_username: "论坛给用户发送自动私信时使用的用户名" send_welcome_message: "给新用户发送欢迎私信?" - supress_reply_directly_below: "当一个帖子只有一个回复时,不显示帖子回复数量" + suppress_reply_directly_below: "当一个帖子只有一个回复时,不显示帖子回复数量" allow_index_in_robots_txt: "允许搜索引擎索引站点内容(更新 robots.txt)" email_domains_blacklist: "将一列竖线分隔的邮箱域名放入黑名单,例如:mailinator.com|trashmail.net" email_domains_whitelist: "竖线 | 分隔的电子邮箱域名,用户只能使用这些邮箱域名注册。注意:用户使用不包含在这个列表里的邮箱域名,将无法成功注册。" diff --git a/config/locales/server.zh_TW.yml b/config/locales/server.zh_TW.yml index a2de07316..e18c1ba4c 100644 --- a/config/locales/server.zh_TW.yml +++ b/config/locales/server.zh_TW.yml @@ -474,7 +474,7 @@ zh_TW: posts_per_page: "在主題頁面,返回多少個帖子" system_username: "論壇給用戶發送自動私信時使用的用戶名" send_welcome_message: "給新用戶發送歡迎私信?" - supress_reply_directly_below: "當一個帖子只有一個回複時,不顯示帖子回複數量" + suppress_reply_directly_below: "當一個帖子只有一個回複時,不顯示帖子回複數量" allow_index_in_robots_txt: "允許搜索引擎索引站點內容(更新 robots.txt)" email_domains_blacklist: "將一列豎線分隔的郵箱域名放入黑名單,例如:mailinator.com|trashmail.net" email_domains_whitelist: "豎線 | 分隔的電子郵箱域名,用戶只能使用這些郵箱域名注冊。注意:用戶使用不包含在這個列表裏的郵箱域名,將無法成功注冊。" diff --git a/db/migrate/20130621042855_change_supress_to_suppress.rb b/db/migrate/20130621042855_change_supress_to_suppress.rb new file mode 100644 index 000000000..fb917fa57 --- /dev/null +++ b/db/migrate/20130621042855_change_supress_to_suppress.rb @@ -0,0 +1,9 @@ +class ChangeSupressToSuppress < ActiveRecord::Migration + def up + SiteSetting.update_all({name: "supress_reply_directly_below"}, name: "suppress_reply_directly_below") + end + + def down + SiteSetting.update_all({name: "suppress_reply_directly_below"}, name: "supress_reply_directly_below") + end +end diff --git a/test/javascripts/fixtures/site_settings_fixtures.js b/test/javascripts/fixtures/site_settings_fixtures.js index d107cb387..918f09710 100644 --- a/test/javascripts/fixtures/site_settings_fixtures.js +++ b/test/javascripts/fixtures/site_settings_fixtures.js @@ -1,2 +1,2 @@ /*jshint maxlen:10000000 */ -Discourse.SiteSettings = {"title":"Discourse Meta","logo_url":"/assets/logo.png","logo_small_url":"/assets/logo-single.png","traditional_markdown_linebreaks":false,"top_menu":"latest|new|unread|read|favorited|categories","post_menu":"like|edit|flag|delete|share|bookmark|reply","share_links":"twitter|facebook|google+|email","track_external_right_clicks":false,"must_approve_users":false,"ga_tracking_code":"UA-33736483-2","ga_domain_name":"","enable_long_polling":true,"polling_interval":3000,"anon_polling_interval":30000,"min_post_length":20,"max_post_length":16000,"min_topic_title_length":15,"max_topic_title_length":255,"min_private_message_title_length":2,"allow_uncategorized_topics":true,"min_search_term_length":3,"flush_timings_secs":5,"supress_reply_directly_below":true,"email_domains_blacklist":"mailinator.com","email_domains_whitelist":null,"version_checks":true,"min_title_similar_length":10,"min_body_similar_length":15,"category_colors":"BF1E2E|F1592A|F7941D|9EB83B|3AB54A|12A89D|25AAE2|0E76BD|652D90|92278F|ED207B|8C6238|231F20|808281|B3B5B4|283890","max_upload_size_kb":1024,"category_featured_topics":6,"favicon_url":"/assets/favicon.ico","dynamic_favicon":false,"uncategorized_name":"uncategorized","uncategorized_color":"AB9364","uncategorized_text_color":"FFFFFF","invite_only":false,"login_required":false,"enable_local_logins":true,"enable_local_account_create":true,"enable_google_logins":true,"enable_yahoo_logins":true,"enable_twitter_logins":true,"enable_facebook_logins":true,"enable_cas_logins":false,"enable_github_logins":true,"enable_persona_logins":true,"educate_until_posts":2,"topic_views_heat_low":1000,"topic_views_heat_medium":2000,"topic_views_heat_high":5000,"min_private_message_post_length":5}; \ No newline at end of file +Discourse.SiteSettings = {"title":"Discourse Meta","logo_url":"/assets/logo.png","logo_small_url":"/assets/logo-single.png","traditional_markdown_linebreaks":false,"top_menu":"latest|new|unread|read|favorited|categories","post_menu":"like|edit|flag|delete|share|bookmark|reply","share_links":"twitter|facebook|google+|email","track_external_right_clicks":false,"must_approve_users":false,"ga_tracking_code":"UA-33736483-2","ga_domain_name":"","enable_long_polling":true,"polling_interval":3000,"anon_polling_interval":30000,"min_post_length":20,"max_post_length":16000,"min_topic_title_length":15,"max_topic_title_length":255,"min_private_message_title_length":2,"allow_uncategorized_topics":true,"min_search_term_length":3,"flush_timings_secs":5,"suppress_reply_directly_below":true,"email_domains_blacklist":"mailinator.com","email_domains_whitelist":null,"version_checks":true,"min_title_similar_length":10,"min_body_similar_length":15,"category_colors":"BF1E2E|F1592A|F7941D|9EB83B|3AB54A|12A89D|25AAE2|0E76BD|652D90|92278F|ED207B|8C6238|231F20|808281|B3B5B4|283890","max_upload_size_kb":1024,"category_featured_topics":6,"favicon_url":"/assets/favicon.ico","dynamic_favicon":false,"uncategorized_name":"uncategorized","uncategorized_color":"AB9364","uncategorized_text_color":"FFFFFF","invite_only":false,"login_required":false,"enable_local_logins":true,"enable_local_account_create":true,"enable_google_logins":true,"enable_yahoo_logins":true,"enable_twitter_logins":true,"enable_facebook_logins":true,"enable_cas_logins":false,"enable_github_logins":true,"enable_persona_logins":true,"educate_until_posts":2,"topic_views_heat_low":1000,"topic_views_heat_medium":2000,"topic_views_heat_high":5000,"min_private_message_post_length":5};