Skip to content

Commit

Permalink
feat: adds ukrainian locale; hide torrent button if disabled (merge p…
Browse files Browse the repository at this point in the history
…ull request #180 from codedipper/thatsitnewbranch)

ukrainian locale, hide torrent search button when torrent search disabled
  • Loading branch information
Ahwxorg authored Sep 5, 2024
2 parents a92ab00 + 3ea8c8c commit 241070b
Show file tree
Hide file tree
Showing 10 changed files with 79 additions and 2 deletions.
4 changes: 3 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
<input type="submit" class="hide"/>
<div class="search-button-wrapper">
<button name="t" value="0" type="submit"><?php printtext("search_button"); ?></button>
<button name="t" value="3" type="submit"><?php printtext("torrent_search_button"); ?></button>
<?php if (!$opts->disable_bittorrent_search) {
echo '<button name="t" value="3" type="submit">', printtext("torrent_search_button"), '</button>';
} ?>
</div>
</form>

Expand Down
2 changes: 2 additions & 0 deletions locale/fr.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

// github.com/codedipper

return array(
"page_title" => "Recherche de LibreY",
"search_button" => "Chercher avec LibreY",
Expand Down
2 changes: 2 additions & 0 deletions locale/hr.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

// github.com/SectorV5

return array(
"page_title" => "LibreY Pretraživanje",
"search_button" => "LibreY Pretraživanje",
Expand Down
2 changes: 2 additions & 0 deletions locale/it.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

// github.com/ThomasDC84 github.com/codedipper

return array(
"page_title" => "LibreY Ricerca",
"search_button" => "Cerca con LibreY",
Expand Down
2 changes: 2 additions & 0 deletions locale/ko.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

// github.com/NoaHimesaka1873

return array(
"page_title" => "LibreY 검색",
"search_button" => "LibreY로 검색하기",
Expand Down
2 changes: 2 additions & 0 deletions locale/nl.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

// github.com/Ahwxorg

return array(
"page_title" => "LibreY search",
"search_button" => "Zoek met LibreY",
Expand Down
2 changes: 2 additions & 0 deletions locale/sr.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

// github.com/SectorV5

return array(
"page_title" => "LibreY Претрага",
"search_button" => "Претражи са LibreY-ем",
Expand Down
2 changes: 2 additions & 0 deletions locale/sv.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

// github.com/norrlandxyz

return array(
"page_title" => "LibreY search",
"search_button" => "Sök med LibreY",
Expand Down
59 changes: 59 additions & 0 deletions locale/uk.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<?php

// github.com/mrRomanko

return array(
"page_title" => "Пошук LibreY",
"search_button" => "Шукати за допомогою LibreY",
"torrent_search_button" => "Шукати торренти за допомогою LibreY",

"source_code_link" => "Код",
"instances_link" => "Інстанси",
"settings_link" => "Налаштування",
"api_link" => "API",
"donate_link" => "Пожертвувати ❤️",

"latest_commit" => "Останній комміт: %s",

"category_general" => "Загальне",
"category_images" => "Зображення",
"category_videos" => "Відео",
"category_torrents" => "Торренти",
"category_tor" => "Tor",
"category_maps" => "Карти",

"feature_disabled" => "Хост вимкнув цю функцію :C",

"settings_title" => "Налаштування",
"settings_theme" => "Тема",
"settings_special_warning" => "Цей прапорець залишатиметься, доки не буде натиснута кнопка «Скинути» або не буде очищено кукі.",
"settings_special_disabled" => "Вимкнути спеціальні запити (наприклад: конвертація валют)",

"settings_frontends" => "Приватні фронтенди",
"settings_frontends_description" => "Наприклад, якщо ви хочете переглядати YouTube без стеження, натисніть на \"Invidious\", знайдіть інстанс, який вам підходить, і вставте його (правильний формат: https://example.com)",
"settings_frontends_disable" => "Вимкнути фронтенди",

"settings_search_settings" => "Налаштування пошуку",
"settings_language" => "Мова",
"settings_preferred_engine" => "Бажаний рушій",

"settings_number_of_results" => "Кількість результатів на сторінці",

"settings_safe_search" => "Безпечний пошук",
"settings_save" => "Зберегти",
"settings_reset" => "Скинути",


"failure_fallback" => "Результатів не знайдено. Неможливо використати резервні інстанси.",
"failure_empty" => "Результатів не знайдено. Спробуйте інші ключові слова!",
"result_no_description" => "Опис цього сайту не надано.",

"instances_librex" => "Наступні інстанси працюють на старішій версії %s",

"donate_original_developer" => "Пожертвувати оригінальному розробнику %s, проєкт, який LibreY намагається поліпшити.",
"donate_fork" => "Пожертвувати людині, яка форкнула %s у LibreY",

"api_unavailable" => "API LibreY наразі недоступне"
);

?>
4 changes: 3 additions & 1 deletion misc/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
<a href="https://github.com/Ahwxorg/librey/" target="_blank"><?php printtext("source_code_link");?></a>
<a href="./instances.php" target="_blank"><?php printtext("instances_link");?></a>
<a href="./settings.php"><?php printtext("settings_link");?></a>
<a href="./api.php" target="_blank"><?php printtext("api_link");?></a>
<?php if(!$opts->disable_api) {
echo '<a href="./api.php" target="_blank">', printtext("api_link"), '</a>';
} ?>
<a href="./donate.php"><?php printtext("donate_link");?></a>
</div>
<div class="git-container">
Expand Down

0 comments on commit 241070b

Please sign in to comment.