Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
b1acksun committed May 3, 2018
1 parent 14fadff commit 57caa7a
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions app/components/cards/CategorySelector.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export function validateCategory(category, required = true) {
cats.find(c => '18+' !== c && !/^[a-zа-яё0-9-ґєії]+$/.test(c)) ? tt('category_selector_jsx.use_only_allowed_characters') :
cats.find(c => '18+' !== c && !/^[a-zа-яё-ґєії]/.test(c)) ? tt('category_selector_jsx.must_start_with_a_letter') :
cats.find(c => '18+' !== c && !/[a-zа-яё0-9ґєії]$/.test(c)) ? tt('category_selector_jsx.must_end_with_a_letter_or_number') :
cats.find(c => [ 'stihi-io' ].includes(c)) ? tt('category_selector_jsx.denied_to_publish_the_posts_with_tag') :
null
)
}
Expand Down
3 changes: 2 additions & 1 deletion app/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,8 @@
"use_spaces_to_separate_tags": "Use spaces to separate tags",
"use_only_allowed_characters": "Use only lowercase letters, digits and one dash",
"must_start_with_a_letter": "Must start with a letter",
"must_end_with_a_letter_or_number": "Must end with a letter or number"
"must_end_with_a_letter_or_number": "Must end with a letter or number",
"denied_to_publish_the_posts_with_tag":"It is denied to publish the posts with tag 'stihi-io'"
},
"tags_page": {
"replies": "Replies",
Expand Down
3 changes: 2 additions & 1 deletion app/locales/ro-RO.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
"use_spaces_to_separate_tags":"Folosiți spații pentru a separa etichetele",
"use_only_allowed_characters":"Utilizați doar litere mici, numere și o singură cratimă",
"must_start_with_a_letter":"Trebuie să se înceapă cu o literă",
"must_end_with_a_letter_or_number":"Trebuie să se termine cu o literă sau un număr"
"must_end_with_a_letter_or_number":"Trebuie să se termine cu o literă sau un număr",
"denied_to_publish_the_posts_with_tag":"Запрещено публиковать посты с тегом 'stihi-io'"
},
"mobilevalidation_js": {
"not_be_empty": "not be empty",
Expand Down
3 changes: 2 additions & 1 deletion app/locales/ru-RU.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
"use_spaces_to_separate_tags": "Используйте пробел, чтобы разделить тэги",
"use_only_allowed_characters": "Используйте только строчные буквы, цифры и одно тире",
"must_start_with_a_letter": "Должно начинаться с буквы",
"must_end_with_a_letter_or_number": "Должно заканчиваться с буквы или номера"
"must_end_with_a_letter_or_number": "Должно заканчиваться с буквы или номера",
"denied_to_publish_the_posts_with_tag":"Запрещено публиковать посты с тегом 'stihi-io'"
},
"mobilevalidation_js": {
"not_be_empty": "не может быть пустым",
Expand Down
3 changes: 2 additions & 1 deletion app/locales/sr.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
"use_spaces_to_separate_tags":"Koristite razmake za odvajanje tagova",
"use_only_allowed_characters":"Koristite samo mala slova, brojeve i jednu tačku ili crtu",
"must_start_with_a_letter":"Mora početi sa slovom",
"must_end_with_a_letter_or_number":"Mora da se završi sa slovom ili brojem"
"must_end_with_a_letter_or_number":"Mora da se završi sa slovom ili brojem",
"denied_to_publish_the_posts_with_tag":"Запрещено публиковать посты с тегом 'stihi-io'"
},
"mobilevalidation_js": {
"not_be_empty": "not be empty",
Expand Down
3 changes: 2 additions & 1 deletion app/locales/ua.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
"use_spaces_to_separate_tags": "Використовуйте пробіл, щоб розділити теги",
"use_only_allowed_characters": "Використовуйте тільки малі літери, цифри і одне тире",
"must_start_with_a_letter": "Має починатися з літери",
"must_end_with_a_letter_or_number": "Має закінчуватися буквою або цифрою"
"must_end_with_a_letter_or_number": "Має закінчуватися буквою або цифрою",
"denied_to_publish_the_posts_with_tag":"Заборонено публікувати пости з тегом 'stihi-io'"
},
"mobilevalidation_js": {
"not_be_empty": "not be empty",
Expand Down

0 comments on commit 57caa7a

Please sign in to comment.