How to localize popup of firefox extension using firefox sdk 1.17? - firefox-addon-sdk

I am developing firefox extension using firefox SDK 1.17.
In this I am using (popup) panel (require("sdk/panel").Panel).
I want to localize the strings of popup.
Please let me know if any solution.

The SDK supports localization, please see the docs for more info.

Related

Disable photo sharing in IOS, Ionic2 native Photo Viewer plugin

I am using photo viewer plugin in Ionic-native in an Ionic2 app.
My code is this._photoViewer.show(bookImgPath, '', {share: false});
I have disabled the sharing, but sharing is enabled on Ios.
It is working in Android only.
Please help.
Unfortunately, you can do that for Android only.There is No support for iOS yet.
Optionally you can pass third parameter which can be used to hide the
share button [ONLY FOR ANDROID]
Official PhotoViewer Cordova Plugin Doc

Ionicframework photo editor

I am trying to add a photo editor functionality to my ionic framework application. How ever I couldn't find a decent sdk that goes with it. I'd like add
aviary/creative
sdk but there is not an obvious way to do it. I tried angular-aviary plugin for cordova but that is not working anymore. Please help me find a good photo editor sdk that works with cordova/ionic framework. Any help would be appreciated, thanks...
I've spent about a week looking for the same thing. Beyond the Creative SDK there is also the img.ly PhotoEditor SDK which offers Android, IOS, and HTML5 as well. But as with Creative none of it is easily compatible with Ionic. I'm still looking for a solution but would be very interested if others have ideas as well!
Have a look at the PhotoEditor SDK Cordova Plugin Demo and the guide for integrating the editor under Ionic and Cordova to get an idea of how to get the editor working under Ionic. Basically, it works like this:
The idea is to create a Cordova app that allows the user to open an image from their photo library and edit this image using the PhotoEditor SDK on iOS and Android. This is done by using an existing library to access native photo pickers on both platforms and passing the path to the found image to a plugin. The plugin manages the configuration and opening of the PhotoEditor SDK’s editor and passes the edited image back to Cordova.
I was in search of this functionality and founded a proper documentation for ionic Framework from PhotoEditor SDK . Please follow the instructions given here to add Photo Editing functionality in ionic app Quickstart for ionic Framework
Hope it will help someone.

Inner browser in Worklight App using JQuery Mobile

I want to use an inner-browser to open a webpage inside the JQueryMobile based Worklight App. Right now I am pushing user out of App to the external Safari browser on iPhone.
I do not have much experience in JQuery Mobile.
Kindly suggest how i can achieve this? Or better workaround.
Thanks
This has got nothing to do with jQuery Mobile.
Make use of Cordova's InAppBrowser (requires Cordova 2.3 so be sure to use Worklight 5.0.6).

How can i display a webpage in a BlackBerry Browser field?

i'm developing a aplication for blackberry and i want to display a simple webpage (for example www.google.com). i'm having troubles using the examples on the blackberry developer page, can anyone give me an example that work? i'm using Eclipse and net.rim.device.api.browser.field.* api. my blackberry's device OS is 4.6
Try this code :
BrowserSession visit = Browser.getDefaultSession();
visit.displayPage("http://www.google.com");

Google Chrome plugin

How does one go about embedding an application inside a web page shown in the Google Chrome browser like Adobe does with its Flash Chrome plug-in ? Is there an Api available to create Google chrome plugins ?
Thanks
Chrome (and many other browsers) support the Netscape Plugin API (NPAPI)
You can also take a look at this book Programming Netscape Plug-Ins
If you need something that works cross-browser (firefox, chrome, safari, and ie), you could look at firebreath: http://www.firebreath.org
The disadvantage to using a plugin is that users have to download and install it before it will work.