roundabout,
created on Tuesday, 24 June 2025, 20:47:51 (1750798071),
received on Tuesday, 24 June 2025, 20:47:54 (1750798074)
Author identity: vlad <vlad.muntoiu@gmail.com>
64c6de67b2d8a451c49dc2356507731dc59fc68c
locales/ro/LC_MESSAGES/panthera-www.mo
panthera-www.cc
@@ -121,19 +121,19 @@ protected:
Gtk::Box *box_place;
public:
sigc::signal<void(const std::string &url)> signal_open_url;
HistoryViewer(std::shared_ptr<gPanthera::LayoutManager> layout_manager, std::shared_ptr<HistoryManager> history_manager) : gPanthera::DockablePane(layout_manager, *Gtk::make_managed<Gtk::Box>(Gtk::Orientation::VERTICAL, 0), "history", "History", Gtk::make_managed<Gtk::Image>(Gio::Icon::create("document-open-recent-symbolic"))), history_manager(std::move(history_manager)) {
HistoryViewer(std::shared_ptr<gPanthera::LayoutManager> layout_manager, std::shared_ptr<HistoryManager> history_manager) : gPanthera::DockablePane(layout_manager, *Gtk::make_managed<Gtk::Box>(Gtk::Orientation::VERTICAL, 0), "history", _("History"), Gtk::make_managed<Gtk::Image>(Gio::Icon::create("document-open-recent-symbolic"))), history_manager(std::move(history_manager)) {
auto history_toolbar = Gtk::make_managed<Gtk::Box>(Gtk::Orientation::HORIZONTAL, 0);
auto history_button_previous = Gtk::make_managed<Gtk::Button>();
history_button_previous->set_child(*Gtk::make_managed<Gtk::Image>(Gio::Icon::create("go-previous-symbolic")));
history_button_previous->set_tooltip_text("Previous day");
history_button_previous->set_tooltip_text(_("Previous day"));
auto history_button_next = Gtk::make_managed<Gtk::Button>();
history_button_next->set_child(*Gtk::make_managed<Gtk::Image>(Gio::Icon::create("go-next-symbolic")));
history_button_next->set_tooltip_text("Next day");
history_button_next->set_tooltip_text(_("Next day"));
date_label = Gtk::make_managed<Gtk::Label>("");
auto date_button = Gtk::make_managed<Gtk::MenuButton>();
date_button->set_child(*date_label);
date_button->set_tooltip_text("Select date");
date_button->set_tooltip_text(_("Select date"));
date_button->set_direction(Gtk::ArrowType::NONE);
auto date_popover = Gtk::make_managed<Gtk::Popover>();
calendar = Gtk::make_managed<Gtk::Calendar>();
@@ -293,6 +293,7 @@ private:
protected:
void on_startup() override;
void on_activate() override;
void on_shutdown() override;
PantheraWindow *make_window();
public:
@@ -408,7 +409,7 @@ public:
}
};
// Go
auto go_button = Gtk::make_managed<Gtk::Button>("Go");
auto go_button = Gtk::make_managed<Gtk::Button>(_("Go"));
go_button->signal_clicked().connect(load_url_callback);
url_bar->signal_activate().connect(load_url_callback);
panthera->content_manager->signal_page_operated.connect([this, panthera](gPanthera::ContentPage *page) {
@@ -698,7 +699,7 @@ void PantheraWww::on_new_tab(gPanthera::ContentStack *stack, const Glib::ustring
PantheraWindow *PantheraWww::make_window() {
Glib::RefPtr<Gtk::Application> self_ref = Glib::make_refptr_for_instance<Gtk::Application>(this);
auto window = new PantheraWindow(self_ref);
auto window = Gtk::make_managed<PantheraWindow>(self_ref);
add_window(*window);
return window;
}
@@ -787,8 +788,7 @@ void PantheraWww::on_startup() {
// New window
auto new_window_action = Gio::SimpleAction::create("new_window");
new_window_action->signal_activate().connect([this](const Glib::VariantBase&) {
auto window = make_window();
window->present();
on_activate();
});
add_action(new_window_action);
set_accels_for_action("app.new_window", {"<Primary>N"});
@@ -804,6 +804,10 @@ void PantheraWww::on_activate() {
window->present();
}
void PantheraWww::on_shutdown() {
Gtk::Application::on_shutdown();
}
void PantheraWww::set_search_engines_from_json(const std::string &json_string) {
auto json = nlohmann::json::parse(json_string);
Glib::ustring default_search_engine_name;
@@ -866,6 +870,7 @@ extern "C" {
int main(int argc, char *argv[]) {
gPanthera::init();
app = PantheraWww::create();
return app->run(argc, argv);
}
po/panthera-www.pot
@@ -0,0 +1,82 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-06-23 23:57+0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: panthera-www.cc:124
msgid "History"
msgstr ""
#: panthera-www.cc:128
msgid "Previous day"
msgstr ""
#: panthera-www.cc:131
msgid "Next day"
msgstr ""
#: panthera-www.cc:136
msgid "Select date"
msgstr ""
#: panthera-www.cc:324
msgid "One"
msgstr ""
#: panthera-www.cc:326
msgid "Two"
msgstr ""
#: panthera-www.cc:341
msgid "Debugging options"
msgstr ""
#: panthera-www.cc:397
msgid "Enter URL"
msgstr ""
#: panthera-www.cc:411
msgid "Go"
msgstr ""
#: panthera-www.cc:476
msgid "Search"
msgstr ""
#: panthera-www.cc:480
msgid "No search"
msgstr ""
#: panthera-www.cc:575
msgid "Untitled"
msgstr ""
#: panthera-www.cc:775
msgid "New tab"
msgstr ""
#: panthera-www.cc:786
msgid "Close tab"
msgstr ""
#: panthera-www.cc:795
msgid "New window"
msgstr ""
#: panthera-www.cc:797
msgid "File"
msgstr ""
po/ro/panthera-www.po
@@ -0,0 +1,84 @@
# Romanian translations for PACKAGE package.
# Copyright (C) 2025 THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# Vlad <vlad@roundabout-host.com>, 2025.
#
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-06-23 23:57+0300\n"
"PO-Revision-Date: 2025-06-23 23:43+0300\n"
"Last-Translator: roundabout <root@roundabout-host.com>\n"
"Language-Team: Romanian <translation-team-ro@lists.sourceforge.net>\n"
"Language: ro\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < "
"20)) ? 1 : 2;\n"
"X-Generator: Poedit 3.6\n"
#: panthera-www.cc:124
msgid "History"
msgstr ""
#: panthera-www.cc:128
msgid "Previous day"
msgstr ""
#: panthera-www.cc:131
msgid "Next day"
msgstr ""
#: panthera-www.cc:136
msgid "Select date"
msgstr ""
#: panthera-www.cc:324
msgid "One"
msgstr "Unu"
#: panthera-www.cc:326
msgid "Two"
msgstr "Doi"
#: panthera-www.cc:341
msgid "Debugging options"
msgstr "Opțiuni de depanare"
#: panthera-www.cc:397
msgid "Enter URL"
msgstr "Introdu URL"
#: panthera-www.cc:411
msgid "Go"
msgstr "Navighează"
#: panthera-www.cc:476
msgid "Search"
msgstr "Căutare"
#: panthera-www.cc:480
msgid "No search"
msgstr "Căutare indisponibilă"
#: panthera-www.cc:575
msgid "Untitled"
msgstr "Fără titlu"
#: panthera-www.cc:775
msgid "New tab"
msgstr "Filă nouă"
#: panthera-www.cc:786
msgid "Close tab"
msgstr "Închide fila"
#: panthera-www.cc:795
msgid "New window"
msgstr "Fereastră nouă"
#: panthera-www.cc:797
msgid "File"
msgstr "Fișier"