From e308741fd9ea2cc6f7ea65e66967909974765b78 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Thu, 5 Jul 2018 07:19:12 +0200 Subject: Update translations --- doc/Translating.md | 5 + lang/bg.ts | 650 ++++++++++++++++++++++++++++++++++++ lib/configuration/configuration.cpp | 4 + lib/configuration/defaults.h.win32 | 2 + tools/deploy/get-latest-builds.sh | 23 ++ 5 files changed, 684 insertions(+) create mode 100644 lang/bg.ts create mode 100755 tools/deploy/get-latest-builds.sh diff --git a/doc/Translating.md b/doc/Translating.md index 111ddbc..fc7bad3 100644 --- a/doc/Translating.md +++ b/doc/Translating.md @@ -4,6 +4,11 @@ lupdate src/ lib/ -ts lang/.ts ~~~ +### Updating translations +~~~sh +lupdate src/ lib/ -no-obsolete -ts lang/.ts +~~~ + ## Baking translation This generates lang/.qm diff --git a/lang/bg.ts b/lang/bg.ts new file mode 100644 index 0000000..9108f68 --- /dev/null +++ b/lang/bg.ts @@ -0,0 +1,650 @@ + + + + + AboutDialog + + + + About + Относно + + + + + + + TextLabel + + + + + License + Лиценз + + + + Details + Детайли + + + + Name + Име + + + + Author + Автор + + + + Shortcut + Клавишна комбинация + + + + <h2>smolbote %1</h2><p><i>yet another no-frills browser</i></p><p>This program is free software, see <i>License</i> for more information.</p><p>This program uses free software: Qt + + + + + <p>Copyright 2017 - 2018 aqua</p><p>This program is free software, and you are welcome to use it under the conditions set by the GNU GPLv3.<br>This is a short summary: <ul><li> the freedom to use the software for any purpose,</li><li> the freedom to change the software to suit your needs,</li><li> the freedom to share the software with anyone,</li><li> the freedom to share the changes you make, and</li><li> the responsibility to grant the same freedoms when sharing the software.</li></ul><p>This program is distributed in the hope that it will be useful, but without any warranty.</p> + + + + + <p>Version + + + + + BookmarksDialog + + + Bookmarks + Отметки + + + + Add Folder + Добави Папка + + + + Add Bookmark + Добави Отметка + + + + Delete Item + Изтрий Елемент + + + + + Address + Адрес + + + + Edit Bookmark + Редактирай Отметка + + + + Title + Име + + + + Edit Folder + Редактирай Папка + + + + Name + Име + + + + BookmarksWidget + + + + title + + + + + href + + + + + Browser + + + Bookmarks + Отметки + + + + Downloads + Сваляния + + + + CookiesForm + + + Cookies + Бисквитки + + + + Expiration + Изтича + + + + Details + Детайли + + + + Is HTTP Only + Само HTTP + + + + Is Secure + Сигурна + + + + Is Session Cookie + Сесийна + + + + Path + Път + + + + + + yes + да + + + + + + no + не + + + + DownloadDialog + + + Downloads + Сваляния + + + + DownloadItemForm + + + [url] + + + + + Pause + Пауза + + + + Abort + Спри + + + + status_label + + + + + path_label + + + + + DownloadItemWidget + + + Requested + Поискан + + + + In progress + Изпълнява се + + + + Completed + Изпълнен + + + + Cancelled + Отменен + + + + Interrupted + + + + + DownloadsWidget + + + Downloads + Сваляния + + + + Save + Запиши + + + + MainWindow + + + MainWindow + + + + + s&molbote + + + + + Session + Сесия + + + + Wi&ndow + Прозорец + + + + Too&ls + Инструменти + + + + &New Subwindow + Нов Подпрозорец + + + + New &Window + Нов Прозорец + + + + &About + Относно + + + + A&bout Qt + Относно Qt + + + + &Quit + Изход + + + + &Save Session + Запази Сесия + + + + &Load Session + Зареди Сесия + + + + Tile Windows + + + + + Cascade Windows + + + + + Current Window + Сегашен Прозорец + + + + Save Session + Запиши сесия + + + + + JSON (*.json) + JSON (*.json) + + + + Load Session + Зареди сесия + + + + Close multiple subwindows? + Затвори множество подпрозорци? + + + + Do you want to close all subwindows? + Искате ли да затворите всички подпрозорци? + + + + NavigationBar + + + Back + Назад + + + + Back (%1) + Назад (%1) + + + + Forward + Напред + + + + Forward (%1) + Напред (%1) + + + + Refresh + Презареди + + + + Home + Начална страница + + + + PageMenu + + + Page + Страница + + + + Bookmark page + Направи отметка + + + + Save Page + Запиши страница + + + + Print Page + Отпечатай страница + + + + + Print to PDF + Отпечатай като PDF + + + + PDF files (*.pdf) + PDF файлове (*.pdf) + + + + Zoom: 1x + + + + + Zoom: %1x + + + + + Load Profile + Зареди Профил + + + + PageToolsMenu + + + Tools + Инстументи + + + + Injected Scripts + + + + + + Developer Tools + + + + + QObject + + + Notifications + + + + + Geolocation + + + + + Audio Capture + + + + + Video Capture + + + + + Audio and Video Capture + + + + + Mouse Lock + + + + + Desktop Video Capture + + + + + Desktop Audio and Video Capture + + + + + SearchForm + + + Form + + + + + Case Sensitive + + + + + Search Backwards + Търси обратно + + + + No Results found + Няма резултати + + + + Search + Търсене + + + + SubWindow + + + + Profile: %1 + Профил: %1 + + + + Load profile + Зареди Профил + + + + Add tab + Добави таб + + + + TabWidget + + + Close Tab + Затвори Таб + + + + Close Tabs left + Затвори Табовете вляво + + + + Close Tabs right + Затвори Табовете вдясно + + + + UrlLineEdit + + + Enter address + Въведете адрес + + + + Copy URL + Копирай адрес + + + + Paste URL + Постави адрес + + + + Paste and load + Постави и зареди + + + + Paste and search + Постави и търси + + + + WebPage + + + SSL Error + SSL грешка + + + + An SSL error has occurred on <strong>%1</strong> + + + + + <p>%1</p><p>This error %2 be overridden.</p> + + + + + can + + + + + cannot + + + + + Error code: %1 + + + + + Feature permission request + + + + + <p>The webpage <strong>%1</strong> has requested permission to access: %2</p><p>Allow this feature?</p> + + + + diff --git a/lib/configuration/configuration.cpp b/lib/configuration/configuration.cpp index cae21fd..5da7fb4 100644 --- a/lib/configuration/configuration.cpp +++ b/lib/configuration/configuration.cpp @@ -18,6 +18,9 @@ namespace po = boost::program_options; inline std::string defaultUserConfigLocation() { +#ifdef config_path + return config_path; +#else // try to locate an existing config QString path = QStandardPaths::locate(QStandardPaths::ConfigLocation, "smolbote/smolbote.cfg"); @@ -26,6 +29,7 @@ inline std::string defaultUserConfigLocation() path = QStandardPaths::writableLocation(QStandardPaths::ConfigLocation) + "/smolbote/smolbote.cfg"; return path.toStdString(); +#endif } Configuration::Configuration(QObject *parent) diff --git a/lib/configuration/defaults.h.win32 b/lib/configuration/defaults.h.win32 index 9a8d5b3..dee9b14 100644 --- a/lib/configuration/defaults.h.win32 +++ b/lib/configuration/defaults.h.win32 @@ -1,6 +1,8 @@ #ifndef SMOLBOTE_DEFAULTS #define SMOLBOTE_DEFAULTS +#define config_path "smolbote.ini" + #define filter_path "hosts" #define plugins_path "plugins" #define profiles_path "profiles" diff --git a/tools/deploy/get-latest-builds.sh b/tools/deploy/get-latest-builds.sh new file mode 100755 index 0000000..fc3046d --- /dev/null +++ b/tools/deploy/get-latest-builds.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +echo Get build information +curl -o project-meta.json -H "Content-Type: application/json" https://ci.appveyor.com/api/projects/XianNox/smolbote-hg + +commit=$(jq -r .build.commitId project-meta.json) +echo Build commit: $commit + +for (( i=0; i<$(jq -r '.build.jobs | length' project-meta.json); i++ )) +do + jobId=$(jq -r .build.jobs[$i].jobId project-meta.json) + osType=$(jq -r .build.jobs[$i].osType project-meta.json) + + echo Downloading $jobId-$osType + curl -o smolbote-nightly-$commit-$osType.7z -L https://ci.appveyor.com/api/buildjobs/$jobId/artifacts/smolbote.7z + + echo Extracting package + 7za x smolbote-nightly-$commit-$osType.7z smolbote-install/bin + mv smolbote-nightly-$commit-$osType.7z serve/ + mv smolbote-install/bin serve/smolbote-$commit-$osType + rm -r smolbote-install +done + -- cgit v1.2.1