roundabout,
created on Friday, 27 June 2025, 15:57:07 (1751039827),
received on Friday, 27 June 2025, 15:57:15 (1751039835)
Author identity: vlad <vlad.muntoiu@gmail.com>
cbaf856df9769a70502c23a7f4fc39465c45b855
locales/ro/LC_MESSAGES/panthera-www.mo
panthera-www.cc
@@ -282,6 +282,7 @@ private:
std::shared_ptr<HistoryManager> history_manager;
Glib::RefPtr<Gio::Menu> main_menu;
std::string new_tab_page;
gPanthera::ContentStack *controlled_stack = nullptr;
static void load_change_callback(WebKitWebView* object, WebKitLoadEvent load_event, gpointer data);
static void notify_callback(GObject* object, GParamSpec* pspec, gpointer data);
@@ -313,6 +314,7 @@ private:
Gtk::Entry *url_bar;
HistoryViewer *history_viewer;
gPanthera::ContentPage *controlled_page = nullptr;
gPanthera::ContentStack *controlled_stack = nullptr;
public:
friend class PantheraWww;
explicit PantheraWindow(Gtk::Application *application) : Gtk::ApplicationWindow() {
@@ -384,12 +386,13 @@ public:
});
return new_tab_button;
};
auto content_stack = Gtk::make_managed<gPanthera::ContentStack>(panthera->content_manager, detach_handler);
auto content_stack_switcher = Gtk::make_managed<gPanthera::ContentTabBar>(content_stack, Gtk::Orientation::HORIZONTAL, return_extra_child);
panthera->content_manager->add_stack(content_stack);
controlled_stack = Gtk::make_managed<gPanthera::ContentStack>(panthera->content_manager, detach_handler);
panthera->controlled_stack = controlled_stack;
auto content_stack_switcher = Gtk::make_managed<gPanthera::ContentTabBar>(controlled_stack, Gtk::Orientation::HORIZONTAL, return_extra_child);
panthera->content_manager->add_stack(controlled_stack);
WebKitWebView *webview = WEBKIT_WEB_VIEW(webkit_web_view_new()); // for some reason, this has to be created
content->set_name("content_box");
auto content_notebook = Gtk::make_managed<gPanthera::ContentNotebook>(content_stack, content_stack_switcher, Gtk::PositionType::TOP);
auto content_notebook = Gtk::make_managed<gPanthera::ContentNotebook>(controlled_stack, content_stack_switcher, Gtk::PositionType::TOP);
content->append(*content_notebook);
inner_paned->set_start_child(*content);
inner_paned->set_end_child(*dock_stack_1);
@@ -428,6 +431,8 @@ public:
return;
}
controlled_page = page;
controlled_stack = page->get_stack();
panthera->controlled_stack = page->get_stack();
url_bar->set_text(webkit_web_view_get_uri(WEBKIT_WEB_VIEW(page->get_child()->get_first_child()->gobj())));
guint url_update_handler = g_signal_connect(page->get_child()->get_first_child()->gobj(), "notify", G_CALLBACK(panthera->notify_focused_callback), this);
std::shared_ptr<sigc::connection> control_signal_handler = std::make_shared<sigc::connection>();
@@ -447,13 +452,13 @@ public:
// Back, forward, reload
auto back_button = Gtk::make_managed<Gtk::Button>();
back_button->set_child(*Gtk::make_managed<Gtk::Image>(Gio::Icon::create("go-previous-symbolic")));
back_button->set_tooltip_text("Back");
back_button->set_tooltip_text(_("Back"));
auto forward_button = Gtk::make_managed<Gtk::Button>();
forward_button->set_child(*Gtk::make_managed<Gtk::Image>(Gio::Icon::create("go-next-symbolic")));
forward_button->set_tooltip_text("Forward");
forward_button->set_tooltip_text(_("Forward"));
auto reload_button = Gtk::make_managed<Gtk::Button>();
reload_button->set_child(*Gtk::make_managed<Gtk::Image>(Gio::Icon::create("view-refresh-symbolic")));
reload_button->set_tooltip_text("Reload");
reload_button->set_tooltip_text(_("Reload"));
auto back_action = Gio::SimpleAction::create("go_back");
add_action(back_action);
@@ -497,13 +502,9 @@ public:
search_bar->set_sensitive(false);
search_bar->set_placeholder_text(_("No search"));
}
auto search_callback = [this, search_bar, content_stack, panthera]() {
auto search_callback = [this, search_bar, panthera]() {
// Create a new tab with the search results
if(panthera->content_manager->get_last_operated_page()) {
panthera->on_new_tab(nullptr);
} else {
panthera->on_new_tab(content_stack);
}
panthera->on_new_tab(controlled_stack);
auto page = panthera->content_manager->get_last_operated_page();
if(page) {
if(auto webview = WEBKIT_WEB_VIEW(page->get_child()->get_first_child()->gobj())) {
@@ -667,7 +668,7 @@ gboolean PantheraWww::on_decide_policy(WebKitWebView *source, WebKitPolicyDecisi
void PantheraWww::on_new_tab(gPanthera::ContentStack *stack, const Glib::ustring &url, bool focus, bool new_window) {
if(!stack) {
// Find the current area
stack = content_manager->get_last_operated_page()->get_stack();
stack = controlled_stack;
}
Glib::ustring url_ = url;
if(url.empty()) {
@@ -683,7 +684,7 @@ void PantheraWww::on_new_tab(gPanthera::ContentStack *stack, const Glib::ustring
page_tab->set_orientation(Gtk::Orientation::HORIZONTAL);
auto initial_icon = Gtk::make_managed<Gtk::Image>(Gio::Icon::create("image-loading-symbolic"));
page_tab->append(*initial_icon);
page_tab->append(*Gtk::make_managed<Gtk::Label>("Untitled"));
page_tab->append(*Gtk::make_managed<Gtk::Label>(_("Untitled")));
page_tab->set_spacing(4);
auto page = Gtk::make_managed<gPanthera::ContentPage>(content_manager, stack, page_content, page_tab);
g_signal_connect(webview, "notify", G_CALLBACK(notify_callback), this);
@@ -820,6 +821,14 @@ void PantheraWww::on_startup() {
main_menu->append_submenu(_("_File"), file_menu);
// View
auto view_menu = Gio::Menu::create();
// Reload
set_accels_for_action("win.reload", {"F5", "<Primary>R"});
view_menu->append(_("_Reload"), "win.reload");
main_menu->append_submenu(_("_View"), view_menu);
// Go
auto go_menu = Gio::Menu::create();
// Back
@@ -831,14 +840,6 @@ void PantheraWww::on_startup() {
main_menu->append_submenu(_("_Go"), go_menu);
// View
auto view_menu = Gio::Menu::create();
// Reload
set_accels_for_action("win.reload", {"F5", "<Primary>R"});
view_menu->append(_("_Reload"), "win.reload");
main_menu->append_submenu(_("_View"), view_menu);
set_menubar(main_menu);
}
po/gpanthera.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-04-26 22:52+0300\n"
"POT-Creation-Date: 2025-06-27 18:18+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"
@@ -17,26 +17,26 @@ msgstr ""
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: gpanthera.cc:108 gpanthera.cc:859
#: gpanthera.cc:111 gpanthera.cc:886
msgid "Close"
msgstr ""
#: gpanthera.cc:118
#: gpanthera.cc:121
msgid "Pop out"
msgstr ""
#: gpanthera.cc:133
#: gpanthera.cc:136
msgid "Move"
msgstr ""
#: gpanthera.cc:872
#: gpanthera.cc:899
msgid "Close all"
msgstr ""
#: gpanthera.cc:885
#: gpanthera.cc:912
msgid "Close others"
msgstr ""
#: gpanthera.cc:893
#: gpanthera.cc:920
msgid "New window"
msgstr ""
po/panthera-www.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-06-23 23:57+0300\n"
"POT-Creation-Date: 2025-06-27 18:19+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"
@@ -33,50 +33,86 @@ msgstr ""
msgid "Select date"
msgstr ""
#: panthera-www.cc:324
#: panthera-www.cc:329
msgid "One"
msgstr ""
#: panthera-www.cc:326
#: panthera-www.cc:331
msgid "Two"
msgstr ""
#: panthera-www.cc:341
#: panthera-www.cc:346
msgid "Debugging options"
msgstr ""
#: panthera-www.cc:397
#: panthera-www.cc:402
msgid "Enter URL"
msgstr ""
#: panthera-www.cc:411
#: panthera-www.cc:416
msgid "Go"
msgstr ""
#: panthera-www.cc:476
#: panthera-www.cc:450
msgid "Back"
msgstr ""
#: panthera-www.cc:453
msgid "Forward"
msgstr ""
#: panthera-www.cc:456
msgid "Reload"
msgstr ""
#: panthera-www.cc:494
msgid "Search"
msgstr ""
#: panthera-www.cc:480
#: panthera-www.cc:498
msgid "No search"
msgstr ""
#: panthera-www.cc:575
#: panthera-www.cc:594 panthera-www.cc:686
msgid "Untitled"
msgstr ""
#: panthera-www.cc:775
msgid "New tab"
#: panthera-www.cc:792
msgid "New _Tab"
msgstr ""
#: panthera-www.cc:803
msgid "_Close Tab"
msgstr ""
#: panthera-www.cc:811
msgid "_New Window"
msgstr ""
#: panthera-www.cc:819
msgid "_Quit"
msgstr ""
#: panthera-www.cc:821
msgid "_File"
msgstr ""
#: panthera-www.cc:827
msgid "_Back"
msgstr ""
#: panthera-www.cc:830
msgid "_Forward"
msgstr ""
#: panthera-www.cc:786
msgid "Close tab"
#: panthera-www.cc:832
msgid "_Go"
msgstr ""
#: panthera-www.cc:795
msgid "New window"
#: panthera-www.cc:838
msgid "_Reload"
msgstr ""
#: panthera-www.cc:797
msgid "File"
#: panthera-www.cc:840
msgid "_View"
msgstr ""
po/ro/panthera-www.po
@@ -7,8 +7,8 @@ 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"
"POT-Creation-Date: 2025-06-27 18:19+0300\n"
"PO-Revision-Date: 2025-06-27 18:35+0300\n"
"Last-Translator: roundabout <root@roundabout-host.com>\n"
"Language-Team: Romanian <translation-team-ro@lists.sourceforge.net>\n"
"Language: ro\n"
@@ -17,68 +17,104 @@ msgstr ""
"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"
"X-Generator: Poedit 3.4.2\n"
#: panthera-www.cc:124
msgid "History"
msgstr ""
msgstr "Istoric"
#: panthera-www.cc:128
msgid "Previous day"
msgstr ""
msgstr "Ziua anterioară"
#: panthera-www.cc:131
msgid "Next day"
msgstr ""
msgstr "Ziua următoare"
#: panthera-www.cc:136
msgid "Select date"
msgstr ""
msgstr "Selectează data"
#: panthera-www.cc:324
#: panthera-www.cc:329
msgid "One"
msgstr "Unu"
#: panthera-www.cc:326
#: panthera-www.cc:331
msgid "Two"
msgstr "Doi"
#: panthera-www.cc:341
#: panthera-www.cc:346
msgid "Debugging options"
msgstr "Opțiuni de depanare"
#: panthera-www.cc:397
#: panthera-www.cc:402
msgid "Enter URL"
msgstr "Introdu URL"
msgstr "Introduceți URL"
#: panthera-www.cc:411
#: panthera-www.cc:416
msgid "Go"
msgstr "Navighează"
#: panthera-www.cc:476
#: panthera-www.cc:450
msgid "Back"
msgstr "Înapoi"
#: panthera-www.cc:453
msgid "Forward"
msgstr "Înainte"
#: panthera-www.cc:456
msgid "Reload"
msgstr "Reîncarcă"
#: panthera-www.cc:494
msgid "Search"
msgstr "Căutare"
#: panthera-www.cc:480
#: panthera-www.cc:498
msgid "No search"
msgstr "Căutare indisponibilă"
#: panthera-www.cc:575
#: panthera-www.cc:594 panthera-www.cc:686
msgid "Untitled"
msgstr "Fără titlu"
#: panthera-www.cc:775
msgid "New tab"
msgstr "Filă nouă"
#: panthera-www.cc:792
msgid "New _Tab"
msgstr "_Filă nouă"
#: panthera-www.cc:803
msgid "_Close Tab"
msgstr "În_chide fila"
#: panthera-www.cc:811
msgid "_New Window"
msgstr "Fereastră _nouă"
#: panthera-www.cc:819
msgid "_Quit"
msgstr "I_eșire"
#: panthera-www.cc:821
msgid "_File"
msgstr "_Fișier"
#: panthera-www.cc:827
msgid "_Back"
msgstr "Îna_poi"
#: panthera-www.cc:830
msgid "_Forward"
msgstr "Înain_te"
#: panthera-www.cc:786
msgid "Close tab"
msgstr "Închide fila"
#: panthera-www.cc:832
msgid "_Go"
msgstr "Navi_ghează"
#: panthera-www.cc:795
msgid "New window"
msgstr "Fereastră nouă"
#: panthera-www.cc:838
msgid "_Reload"
msgstr "_Reîncarcă"
#: panthera-www.cc:797
msgid "File"
msgstr "Fișier"
#: panthera-www.cc:840
msgid "_View"
msgstr "_Vizualizare"