diff --git a/config/locales/server.de.yml b/config/locales/server.de.yml index d34b7096c6a..fd50ad3d819 100644 --- a/config/locales/server.de.yml +++ b/config/locales/server.de.yml @@ -840,7 +840,7 @@ de: email_time_window_mins: "Warte (n) Minuten, bevor Nutzern eine Hinweis-E-Mail geschickt wird, um ihnen Gelegenheit zu geben, ihre Beiträge abschließend bearbeiten zu können." email_posts_context: "Anzahl der Antworten welche als Konext einer Notifikations-Mail hinzugefügt werden." flush_timings_secs: "Sekunden, nach denen Zeiteinstellungen auf den Server übertragen werden." - max_word_length: "Maximale Wortlänge in Zeichen in Thementiteln." + title_max_word_length: "Maximale Wortlänge in Zeichen in Thementiteln." title_min_entropy: "Für Titel neuer Themen minimal erforderliche Entropie (einzigartige Zeichen)." body_min_entropy: "Für den Text neuer Beiträge minimal erforderliche Entropie (einzigartige Zeichen)." title_fancy_entities: "Konvertiere HTML-Entitys in Thementiteln." diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml index f78c4159088..737a2042cb5 100644 --- a/config/locales/server.en.yml +++ b/config/locales/server.en.yml @@ -984,7 +984,7 @@ en: email_time_window_mins: "Wait (n) minutes before sending any notification emails, to give users a chance to edit and finalize their posts." email_posts_context: "How many prior replies to include as context in notification emails." flush_timings_secs: "How frequently we flush timing data to the server, in seconds." - max_word_length: "The maximum allowed word length, in characters, in a topic title." + title_max_word_length: "The maximum allowed word length, in characters, in a topic title." title_min_entropy: "The minimum entropy (unique characters, non-english count for more) required for a topic title." body_min_entropy: "The minimum entropy (unique characters, non-english count for more) required for a post body." diff --git a/config/locales/server.es.yml b/config/locales/server.es.yml index 3fc555a121d..2288e70b2ab 100644 --- a/config/locales/server.es.yml +++ b/config/locales/server.es.yml @@ -860,7 +860,7 @@ es: email_time_window_mins: "Esperar (n) minutos antes de enviar cualquier email de notificación, para dar a los usuarios margen con el que editar y finalizar sus posts." email_posts_context: "Cuántas respuestas previas se incluirán como contexto en los emails de notificación." flush_timings_secs: "Cuán frecuente, en segundos, se alinean los datos de sincronización con el servidor." - max_word_length: "La extensión máxima que una palabra puede tener, en caracteres, en el título de un tema." + title_max_word_length: "La extensión máxima que una palabra puede tener, en caracteres, en el título de un tema." title_min_entropy: "La mínima entropía permitida (caracteres únicos) requerida para el título de un tema." body_min_entropy: "La mínima entropía permitida (caracteres únicos) requerida para el cuerpo de un post." title_fancy_entities: "Convertir caracteres ASCII comunes en entidades HTML de adorno en el título de los temas, como SmartyPants http://daringfireball.net/projects/smartypants/" diff --git a/config/locales/server.fi.yml b/config/locales/server.fi.yml index 5fd30aaf15e..1d774a80d0a 100644 --- a/config/locales/server.fi.yml +++ b/config/locales/server.fi.yml @@ -838,7 +838,7 @@ fi: email_time_window_mins: "Odota (n) minuuttia ennen ilmoitussähköpostien lähettämistä, jotta käyttäjällä on aikaa muokata ja viimeistellä viestinsä." email_posts_context: "Kuinka monta edellistä vastausta liitetään kontekstiksi sähköposti-ilmoituksessa." flush_timings_secs: "Kuinka usein timing data päivitetään palvelimelle, sekunneissa." - max_word_length: "Sanan enimmäispituus merkkeinä ketjun otsikossa." + title_max_word_length: "Sanan enimmäispituus merkkeinä ketjun otsikossa." title_min_entropy: "Ketjun otsikon minimientropia (uniikkeja merkkejä)." body_min_entropy: "Viestin minimientropia (uniikkeja merkkejä)." title_fancy_entities: "Muunna tavalliset ASCII merkit hienommiksi HTML merkinnöiksi ketjun otsikoissa, kuten SmartyPants http://daringfireball.net/projects/smartypants/" diff --git a/config/locales/server.fr.yml b/config/locales/server.fr.yml index df007feb88a..34c16804831 100644 --- a/config/locales/server.fr.yml +++ b/config/locales/server.fr.yml @@ -855,7 +855,7 @@ fr: email_time_window_mins: "Attendre (n) minutes avant l'envoi des courriels de notification, afin de laisser une chance aux utilisateurs de modifier ou finaliser leurs messages." email_posts_context: "Combien de réponses précédentes doit-on inclure dans les courriels de notifications pour situer le contexte." flush_timings_secs: "A quelle fréquence les données de timing doivent être vider, en secondes." - max_word_length: "Le nombre maximum de mots, en caractères, dans un titre de sujet." + title_max_word_length: "Le nombre maximum de mots, en caractères, dans un titre de sujet." title_min_entropy: "L'entropie minimale (caractères unique, les caractères en langues étrangères compte pour plus) requise pour le titre d'un sujet." body_min_entropy: "L'entropie minimale (caractères unique, les caractères en langues étrangères compte pour plus) requise pour le corps d'un message." title_fancy_entities: "Convertir les caractères ASCII commun en jolies entitées HTML dans les titres des sujets, comme SmartyPants http://daringfireball.net/projects/smartypants/" diff --git a/config/locales/server.he.yml b/config/locales/server.he.yml index 7d8a4f9bf26..9c7706c0726 100644 --- a/config/locales/server.he.yml +++ b/config/locales/server.he.yml @@ -828,7 +828,7 @@ he: email_time_window_mins: "המתינו (n) דקות לפני משלוח כל התראת מייל, כדי לאפשר למשתמשים הזדמנות לערוך ולוודא באופן סופי את הפרסומים שלהם." email_posts_context: "כמה תגובות קודמות יש לכלול למתקן הקשר בהודעות דוא\"ל עם התראות." flush_timings_secs: "באיזו תדירות אנחנו מזרימים מידע לשרת, בשניות." - max_word_length: "האורך המקסימלי המותר למילה בכותרת נושא, בתווים. " + title_max_word_length: "האורך המקסימלי המותר למילה בכותרת נושא, בתווים. " title_min_entropy: "האנטרופיה (תווים ייחודים שאינם בשפת הכתיבה) המינימלית הנדרשת בכותרת נושא." body_min_entropy: "האנטרופיה (תוים ייחודיים שאינם בשפת הכתיבה) המינימלית הנדרשת בגוף המסמך." title_fancy_entities: "Convert common ASCII characters to fancy HTML entities in topic titles, ala SmartyPants http://daringfireball.net/projects/smartypants/" diff --git a/config/locales/server.it.yml b/config/locales/server.it.yml index 449823f6376..f962f6bd6a4 100644 --- a/config/locales/server.it.yml +++ b/config/locales/server.it.yml @@ -825,7 +825,7 @@ it: email_time_window_mins: "Aspetta (n) minuti prima di inviare email di notifica, per dare agli utenti la possibilità di modificare e completare i loro messaggi." email_posts_context: "Quante risposte precedenti inserire come contesto nelle email di notifica." flush_timings_secs: "Frequenza di svuotamento dei dati temporali verso il server, in secondi." - max_word_length: "Numero massimo di caratteri che compongono il titolo di un argomento." + title_max_word_length: "Numero massimo di caratteri che compongono il titolo di un argomento." title_min_entropy: "Minima entropia (caratteri unici) richiesti come titolo di un argomento." body_min_entropy: "Minima entropia (caratteri unici) richiesti come corpo di un messaggio." title_fancy_entities: "Converti caratteri ASCII comuni in HTML nei titoli dell'argomento, tipo SmartyPants http://daringfireball.net/projects/smartypants/" diff --git a/config/locales/server.ja.yml b/config/locales/server.ja.yml index dd7430388c5..15835ad872d 100644 --- a/config/locales/server.ja.yml +++ b/config/locales/server.ja.yml @@ -779,7 +779,7 @@ ja: email_time_window_mins: "ユーザによるポストの最終編集チャンスを与えるために、通知用メール送信までに待つ時間 (分)" email_posts_context: "通知メールのコンテンツに含める回答の数" flush_timings_secs: "サーバにタイミングデータを送信する頻度 (秒)" - max_word_length: "トピックタイトルの最大文字数" + title_max_word_length: "トピックタイトルの最大文字数" title_min_entropy: "トピックタイトルの最小許容エントロピー (ユニークキャラクターや英語以外の単語を含むとより大きな値になります)" body_min_entropy: "ポスト本文の最小許容エントロピー (ユニークキャラクターや英語以外の単語を含むとより大きな値になります)" title_fancy_entities: "トピックタイトルの一般的な ASCII 文字をファンシーな HTML エンティティに変換する; SmartyPants http://daringfireball.net/projects/smartypants/" diff --git a/config/locales/server.ko.yml b/config/locales/server.ko.yml index 3d0593028b8..ef2669744ee 100644 --- a/config/locales/server.ko.yml +++ b/config/locales/server.ko.yml @@ -688,7 +688,7 @@ ko: email_time_window_mins: "알림 메일을 보내기 전 대기 기간(분), 사용자에게 포스트의 변경하고 완료할 수 있는 기회를 준다." email_posts_context: "알림메일의 내용에 추가할 기존 답글 수" flush_timings_secs: "사용자의 이용 시간 데이터를 서버로 보내는 기간(초)" - max_word_length: "토픽 제목에 최대 단어 길이(글자 수)" + title_max_word_length: "토픽 제목에 최대 단어 길이(글자 수)" title_min_entropy: "토픽 제목에 필요한 최소 엔트로피(서로 다른 글자들이 몇개 존재해야하는지)" body_min_entropy: "포스트 본문에 필요한 최소 엔트로피(서로 다른 글자들이 몇개 존재해야하는지)" title_fancy_entities: "토픽 제목에 일반 ASCII 문자로 만든 기호들을 보기 좋은 HTML로 변환시켜준다. 참고: SmartyPants http://daringfireball.net/projects/smartypants/" diff --git a/config/locales/server.pt.yml b/config/locales/server.pt.yml index 5f05aee8528..ad055fa420e 100644 --- a/config/locales/server.pt.yml +++ b/config/locales/server.pt.yml @@ -729,7 +729,7 @@ pt: email_time_window_mins: "Esperar (n) minutos antes de enviar quaisquer emails de notificação, para dar aos utilizadores a hipótese de editarem e finalizarem as suas mensagens." email_posts_context: "Quantas respostas prévias a serem incluídas como contexto em emails de notificação." flush_timings_secs: "Com que frequência o servidor é alimentado com dados de sincronização, em segundos." - max_word_length: "Tamanho máximo permitido de palavras, em caracteres, no título de um tópico." + title_max_word_length: "Tamanho máximo permitido de palavras, em caracteres, no título de um tópico." title_min_entropy: "Entropia mínima (caracteres únicos, contagem não-inglesa para mais) necessária para o título de um tópico." body_min_entropy: "Entropia mínima (caracteres únicos, contagem não-inglesa para mais) necessária para o corpo de uma mensagem." title_fancy_entities: "Converter caracteres ASCII comuns em entidades HTML nos títulos dos tópicos, ala SmartyPants http://daringfireball.net/projects/smartypants/" diff --git a/config/locales/server.pt_BR.yml b/config/locales/server.pt_BR.yml index 243abf5c09a..e6224bbadf7 100644 --- a/config/locales/server.pt_BR.yml +++ b/config/locales/server.pt_BR.yml @@ -832,7 +832,7 @@ pt_BR: create_thumbnails: "Criar thumbnails e lightbox para imagens que são muito largas para caber em uma postagem." email_time_window_mins: "Aguardar (n) minutos antes de enviar quaisquer emails de notificação, para dar aos usuários uma chance de editarem e finalizarem seus posts." email_posts_context: "Quantas respostas prévias incluir como contexto em emails de notificação." - max_word_length: "O tamanho máximo permitido de uma palavra, em caracteres, num título de tópico." + title_max_word_length: "O tamanho máximo permitido de uma palavra, em caracteres, num título de tópico." title_fancy_entities: "Converter caracteres ASCII comuns em entidades HTML nos títulos dos tópicos, ala SmartyPants http://daringfireball.net/projects/smartypants/" min_title_similar_length: "O tamanho mínimo de um título antes que ele seja checado por tópicos semelhantes." min_body_similar_length: "O tamanho mínimo do corpo de conteúdo de um post antes que ele seja checado por tópicos semelhantes." diff --git a/config/locales/server.ro.yml b/config/locales/server.ro.yml index c203f3a87da..ed43d14a9ac 100644 --- a/config/locales/server.ro.yml +++ b/config/locales/server.ro.yml @@ -869,7 +869,7 @@ ro: email_time_window_mins: "Aşteaptă (n) minute până să trimiţi orice email de notificare, pentru a da utilizatorilor şansa să-şi editeze şi să-şi finalizeze postările." email_posts_context: "Câte răspunsuri precedente să fie incluse ca context în email-urile de notificare." flush_timings_secs: "Cât de frecvent se resetează timpul de pe server, în secunde." - max_word_length: "Lungimea maximă permisă a unui cuvânt, în caractere, în titlul discuţiei." + title_max_word_length: "Lungimea maximă permisă a unui cuvânt, în caractere, în titlul discuţiei." title_min_entropy: "Minimul de entropie (caractere unice, non-engelze ce definesc mai multe elemente) necesară pentru un titlu de discuţie." body_min_entropy: "Minimul de entropie (caractere unice, non-engleze ce definesc mai multe elemente) necesară pentru conţinutul unei postari." diff --git a/config/locales/server.ru.yml b/config/locales/server.ru.yml index 5788582033c..7ae6c79ba87 100644 --- a/config/locales/server.ru.yml +++ b/config/locales/server.ru.yml @@ -781,7 +781,7 @@ ru: create_thumbnails: "Создавать миниатюры слишком больших картинок в сообщениях, показывать большие оригиналы в отдельно открывающемся окне." email_time_window_mins: "Подождать (n) минут перед отсылкой каких-либо уведомлений почтой, чтобы дать автору возможность перечитать и отредактировать своё сообщение." email_posts_context: "Сколько предыдущих ответов включать для контекста в уведомления по e-mail." - max_word_length: "Максимальная длина слов в названии темы." + title_max_word_length: "Максимальная длина слов в названии темы." title_min_entropy: "Минимальная энтропия, требуемая для названия темы. Энтропия - количество уникальных символов, причем некоторые русские буквы могут считаться за 2 символа, а не за 1, как английские)." body_min_entropy: "Минимальная энтропия, требуемая для текста новой темы. Энтропия - количество уникальных символов, причем некоторые русские буквы могут считаться за 2 символа, а не за 1, как английские)." title_fancy_entities: "Конвертировать обычные ASCII символы в симпатичные HTML символы в названиях тем, аля SmartyPants http://daringfireball.net/projects/smartypants/" diff --git a/config/locales/server.sq.yml b/config/locales/server.sq.yml index c4a29a23c7f..f8f211d2243 100644 --- a/config/locales/server.sq.yml +++ b/config/locales/server.sq.yml @@ -738,7 +738,7 @@ sq: email_time_window_mins: "Wait (n) minutes before sending any notification emails, to give users a chance to edit and finalize their posts." email_posts_context: "How many prior replies to include as context in notification emails." flush_timings_secs: "How frequently we flush timing data to the server, in seconds." - max_word_length: "The maximum allowed word length, in characters, in a topic title." + title_max_word_length: "The maximum allowed word length, in characters, in a topic title." title_min_entropy: "The minimum entropy (unique characters, non-english count for more) required for a topic title." body_min_entropy: "The minimum entropy (unique characters, non-english count for more) required for a post body." title_fancy_entities: "Convert common ASCII characters to fancy HTML entities in topic titles, ala SmartyPants http://daringfireball.net/projects/smartypants/" diff --git a/config/locales/server.tr_TR.yml b/config/locales/server.tr_TR.yml index 801673573ed..b8bb50c4f55 100644 --- a/config/locales/server.tr_TR.yml +++ b/config/locales/server.tr_TR.yml @@ -804,7 +804,7 @@ tr_TR: email_time_window_mins: "Kullanıcılara, gönderilerini düzenlemelerine ve tamamlamalarına fırsat vermek için herhangi bir bildiri e-postası göndermeden önce (n) dakika bekleyin." email_posts_context: "Genel durumu göstermek amaçlı, bildiri e-postalarında yer alacak önceki cevap sayısı." flush_timings_secs: "Zaman verisinin sunucuya atılma sıklığı, saniye olarak." - max_word_length: "Konu başlığında bulunabilecek en fazla karakter sayısı." + title_max_word_length: "Konu başlığında bulunabilecek en fazla karakter sayısı." title_min_entropy: "Konu başlığı için gereken en az entropi (tekil karakter, ingilizce-dışı karakterler daha fazla sayılır)" body_min_entropy: "Gönderi içeriği için gereken en az entropi (tekil karakter, ingilizce-dışı karakterler daha fazla sayılır)" title_fancy_entities: "SmartyPants tarzında, konu başlıklarında ASCII karakterlerini süslü HTML öğelerine çevir: http://daringfireball.net/projects/smartypants/" diff --git a/config/locales/server.zh_CN.yml b/config/locales/server.zh_CN.yml index ef174bd383b..eaaa029bf81 100644 --- a/config/locales/server.zh_CN.yml +++ b/config/locales/server.zh_CN.yml @@ -824,7 +824,7 @@ zh_CN: email_time_window_mins: "等待多少(n)分钟才给用户发送通知电子邮件,好让他们有机会自己来编辑和完善他们的帖子。" email_posts_context: "在通知邮件中包含的作为上下文的回复数量。" flush_timings_secs: "向服务器刷新时间数据的频率,以秒为单位。" - max_word_length: "在主题的标题中,允许的词语长度的最大字符数。" + title_max_word_length: "在主题的标题中,允许的词语长度的最大字符数。" title_min_entropy: "在主题的标题中,允许的最低熵值(单个字符)。" body_min_entropy: "在一个帖子内文中,允许的最低熵值(单个字符)。" title_fancy_entities: "转换主题标题中的 HTML 实体,参考:SmartyPants http://daringfireball.net/projects/smartypants/" diff --git a/config/locales/server.zh_TW.yml b/config/locales/server.zh_TW.yml index 287de2d7a34..bd3585861d8 100644 --- a/config/locales/server.zh_TW.yml +++ b/config/locales/server.zh_TW.yml @@ -769,7 +769,7 @@ zh_TW: email_time_window_mins: "等待多少 (n) 分鐘才給用戶發送通知電子郵件,好讓他們有機會自己來編輯和完善他們的帖子。" email_posts_context: "在通知電郵中包含的作為上下文的回覆數量。" flush_timings_secs: "刷新時間資料的頻率,以秒為單位" - max_word_length: "在討論話題的標題中,允許的詞彙最長字數" + title_max_word_length: "在討論話題的標題中,允許的詞彙最長字數" title_min_entropy: "在主題的標題中,允許的最低熵值(單字)。" body_min_entropy: "在一個帖子內文中,允許的最低熵值(單字)。" title_fancy_entities: "轉換討論話題標題中的 HTML 實體" diff --git a/config/site_settings.yml b/config/site_settings.yml index 256137c58f3..d6075f5d875 100644 --- a/config/site_settings.yml +++ b/config/site_settings.yml @@ -385,7 +385,7 @@ posting: max_mentions_per_post: 10 newuser_max_replies_per_topic: 3 newuser_max_mentions_per_post: 2 - max_word_length: 30 + title_max_word_length: 30 newuser_max_links: 2 newuser_max_images: client: true diff --git a/lib/text_sentinel.rb b/lib/text_sentinel.rb index e59bc327637..f5b2cf1fd66 100644 --- a/lib/text_sentinel.rb +++ b/lib/text_sentinel.rb @@ -30,7 +30,7 @@ class TextSentinel else (SiteSetting.min_topic_title_length.to_f * ENTROPY_SCALE).to_i end - TextSentinel.new(text, min_entropy: entropy, max_word_length: SiteSetting.max_word_length) + TextSentinel.new(text, min_entropy: entropy, max_word_length: SiteSetting.title_max_word_length) end # Entropy is a number of how many unique characters the string needs.