2 min read
Published: 2018-07-01 22:00:00
By Anmol Gautam
The following work is done in the seveth week:
Implementing acceptNavigationRequest for QML Plugins requires to expose some methods of WebPage class to QML. Now since the standard WebExtensions API doesnt differentiate WebView/WebPage from Tabs API - so the required methods are added to QmlTab class (similar to the WebExtensions Tabs API).
The I18n API exposes the methods i18n and i18np to the QML Plugins and uses gettext C API (similar to Python plugins, unlike C++ plugins). Since this uses libintl.h, it will probably not work under windows unless there is some way to make it available with MSVC. Also this API took most of my time, as I misunderstood
gettext similar to python extensions as exposing the gettext module of python to QML.
All responses (0)