Skip to content

Commit

Permalink
FEATURE: Add Belarusian language
Browse files Browse the repository at this point in the history
  • Loading branch information
gschlager committed Jul 4, 2019
1 parent 26b843e commit a5e8007
Show file tree
Hide file tree
Showing 19 changed files with 4,822 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/assets/javascripts/locales/be.js.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//= depend_on 'client.be.yml'
//= require locales/i18n
<%= JsLocaleHelper.output_locale(:be) %>
1,789 changes: 1,789 additions & 0 deletions config/locales/client.be.yml

Large diffs are not rendered by default.

2,532 changes: 2,532 additions & 0 deletions config/locales/server.be.yml

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions lib/javascripts/locale/be.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
MessageFormat.locale.be = function (n) {
var r10 = n % 10, r100 = n % 100;

if (r10 == 1 && r100 != 11)
return 'one';

if (r10 >= 2 && r10 <= 4 && (r100 < 12 || r100 > 14) && n == Math.floor(n))
return 'few';

if ((r10 == 0 || (r10 >= 5 && r10 <= 9) || (r100 >= 11 && r100 <= 14)) && n == Math.floor(n))
return 'many';

return 'other';
};
11 changes: 11 additions & 0 deletions plugins/discourse-details/config/locales/client.be.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# encoding: utf-8
#
# Never edit this file. It will be overwritten when translations are pulled from Transifex.
#
# To work with us on translations, join this project:
# https://www.transifex.com/projects/p/discourse-org/

be:
js:
composer:
details_title: вынік
8 changes: 8 additions & 0 deletions plugins/discourse-details/config/locales/server.be.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# encoding: utf-8
#
# Never edit this file. It will be overwritten when translations are pulled from Transifex.
#
# To work with us on translations, join this project:
# https://www.transifex.com/projects/p/discourse-org/

be: {}
8 changes: 8 additions & 0 deletions plugins/discourse-local-dates/config/locales/client.be.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# encoding: utf-8
#
# Never edit this file. It will be overwritten when translations are pulled from Transifex.
#
# To work with us on translations, join this project:
# https://www.transifex.com/projects/p/discourse-org/

be: {}
8 changes: 8 additions & 0 deletions plugins/discourse-local-dates/config/locales/server.be.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# encoding: utf-8
#
# Never edit this file. It will be overwritten when translations are pulled from Transifex.
#
# To work with us on translations, join this project:
# https://www.transifex.com/projects/p/discourse-org/

be: {}
13 changes: 13 additions & 0 deletions plugins/discourse-narrative-bot/config/locales/client.be.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# encoding: utf-8
#
# Never edit this file. It will be overwritten when translations are pulled from Transifex.
#
# To work with us on translations, join this project:
# https://www.transifex.com/projects/p/discourse-org/

be:
js:
discourse_narrative_bot:
welcome_post_type:
new_user_track: "Стартануць гайд новага карыстальніка для ўсіх новых карыстальнікаў"
welcome_message: "Даслаць усім новых карыстальнікам прывітальнае паведамленне з гайдам па \"Хуткаму старту\""
257 changes: 257 additions & 0 deletions plugins/discourse-narrative-bot/config/locales/server.be.yml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# encoding: utf-8
#
# Never edit this file. It will be overwritten when translations are pulled from Transifex.
#
# To work with us on translations, join this project:
# https://www.transifex.com/projects/p/discourse-org/

be: {}
8 changes: 8 additions & 0 deletions plugins/discourse-presence/config/locales/client.be.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# encoding: utf-8
#
# Never edit this file. It will be overwritten when translations are pulled from Transifex.
#
# To work with us on translations, join this project:
# https://www.transifex.com/projects/p/discourse-org/

be: {}
8 changes: 8 additions & 0 deletions plugins/discourse-presence/config/locales/server.be.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# encoding: utf-8
#
# Never edit this file. It will be overwritten when translations are pulled from Transifex.
#
# To work with us on translations, join this project:
# https://www.transifex.com/projects/p/discourse-org/

be: {}
40 changes: 40 additions & 0 deletions plugins/poll/config/locales/client.be.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# encoding: utf-8
#
# Never edit this file. It will be overwritten when translations are pulled from Transifex.
#
# To work with us on translations, join this project:
# https://www.transifex.com/projects/p/discourse-org/

be:
js:
poll:
voters:
one: "галас"
few: "галасоў"
many: "галасоў"
other: "галасоў"
total_votes:
one: "голас"
few: "галасоў"
many: "галасоў"
other: "галасоў"
average_rating: "Сярэдні рэйтынг: <strong>%{average}strong>."
multiple:
help:
at_least_min_options:
one: "Абярыце хаця б <strong>%{count}</strong> варыянт адказу"
few: "Абярыце хаця б <strong>%{count}</strong> варыянтаў адказаў"
many: "Абярыце хаця б <strong>%{count}</strong> варыянтаў адказаў"
other: "Абярыце хаця б <strong>%{count}</strong> варыянтаў адказаў"
up_to_max_options:
one: "Абярыце ня больш за <strong>%{count}</strong> варыянта адказу"
few: "Абярыце ня больш за <strong>%{count}</strong> варыянтаў адказаў"
many: "Абярыце ня больш за <strong>%{count}</strong> варыянтаў адказаў"
other: "Абярыце ня больш за <strong>%{count}</strong> варыянтаў адказаў"
close:
label: "зачыніць"
ui_builder:
poll_type:
label: тып
poll_result:
label: вынікі
37 changes: 37 additions & 0 deletions plugins/poll/config/locales/server.be.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# encoding: utf-8
#
# Never edit this file. It will be overwritten when translations are pulled from Transifex.
#
# To work with us on translations, join this project:
# https://www.transifex.com/projects/p/discourse-org/

be:
site_settings:
poll_enabled: "Дазволіць апытанні?"
poll_maximum_options: "Максімальную колькасць варыянтаў, дазволеных у апытанні."
poll_edit_window_mins: "Колькасць хвілін пасля стварэння паста, на працягу якога апытанні могуць рэдагавацца."
poll_minimum_trust_level_to_create: "Вызначэнне мінімальнага ўзроўню даверу, неабходны для стварэння апытанняў."
poll:
invalid_argument: "Несапраўднае значэнне '% {значэнне}' для аргументу '% {аргумент}'."
multiple_polls_without_name: "Ёсць некалькі апытанняў без імя. Выкарыстоўвайце «<код> назва <"
multiple_polls_with_same_name: "Ёсць некалькі апытанняў з тым жа імем: <моцны>% {імя} <"
default_poll_must_have_at_least_2_options: "Апытанне павінен мець па крайняй меры 2 варыянту."
named_poll_must_have_at_least_2_options: "Апытанне з імем <моцны>% {імя} <"
default_poll_must_have_different_options: "Апытанне павінен мець розныя варыянты."
named_poll_must_have_different_options: "Апытанне з імем <моцны>% {імя} <"
default_poll_with_multiple_choices_has_invalid_parameters: "Апытанне з множным выбарам мае недапушчальныя параметры."
named_poll_with_multiple_choices_has_invalid_parameters: "Апытанне з імем <моцны>% {імя} <"
requires_at_least_1_valid_option: "Вы павінны абраць па меншай меры 1 недапушчальны варыянт."
edit_window_expired:
cannot_edit_default_poll_with_votes: "Вы не можаце змяніць апытанне пасля першага% {хвілін} хвілін."
cannot_edit_named_poll_with_votes: "Вы не можаце змяніць назву апытання <моцны> $ {імя} <"
no_poll_with_this_name: "Няма апытання назвалі <моцны>% {імя} <"
post_is_deleted: "Не можа дзейнічаць на выдалены пост."
user_cant_post_in_topic: "Вы не можаце галасаваць, таму што вы не можаце пісаць у гэтай тэме."
topic_must_be_open_to_vote: "Тэма павінна быць адкрыта, каб галасаваць."
poll_must_be_open_to_vote: "Апытанне павінен быць адкрыты, каб галасаваць."
topic_must_be_open_to_toggle_status: "Тэма павінна быць адкрыта для пераключэння статусу."
only_staff_or_op_can_toggle_status: "Толькі штатны супрацоўнік або арыгінальны плакат можа пераключыць статус апытання."
insufficient_rights_to_create: "Вы не можаце ствараць апытанні."
email:
link_to_poll: "Націсніце, каб паглядзець апытанне."
27 changes: 27 additions & 0 deletions public/403.be.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<title>Вам гэта нельга зрабіць (403)</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
div.dialog {
width: 25em;
padding: 0 4em;
margin: 4em auto 0 auto;
border: 1px solid #ccc;
border-right-color: #999;
border-bottom-color: #999;
}
h1 { font-size: 400%; color: #f00; line-height: 1em; }
</style>
</head>
<body>
<div class="dialog">
<h1>403</h1>
<p>Вы ня можаце пабачыць гэты рэсурс!</p>

<p>Гэта будзе заменена кастамнай Discourse 403 старонкай .</p>
</div>
</body>
</html>
26 changes: 26 additions & 0 deletions public/422.be.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>
<head>
<title>The change you wanted was rejected (422)</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
div.dialog {
width: 25em;
padding: 0 4em;
margin: 4em auto 0 auto;
border: 1px solid #ccc;
border-right-color: #999;
border-bottom-color: #999;
}
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
</style>
</head>
<body>
<!-- This file lives in public/422.html -->
<div class="dialog">
<h1>The change you wanted was rejected.</h1>
<p>Maybe you tried to change something you didn't have access to.</p>
</div>
</body>
</html>
13 changes: 13 additions & 0 deletions public/500.be.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<title>Oops - Error 500</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<h1>Oops</h1>
<p>The software powering this discussion forum encountered an unexpected problem. We apologize for the inconvenience.</p>
<p>Detailed information about the error was logged, and an automatic notification generated. We'll take a look at it.</p>
<p>No further action is necessary. However, if the error condition persists, you can provide additional detail, including steps to reproduce the error, by posting a discussion topic in the site's feedback category.</p>
</body>
</html>
12 changes: 12 additions & 0 deletions public/503.be.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<title>Site Is Undergoing Maintenance - Discourse.org</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<h1>We are currently down for planned site maintenance</h1>
<p>Please check back <span id="when-to-check-back">in a few minutes</span>.</p>
<p id="apology">Sorry for the inconvenience!</p>
</body>
</html>

0 comments on commit a5e8007

Please sign in to comment.