Chrome Extension i18n: Split the messages.json file? - google-chrome-extension

I’m internationalizing my chrome extension but I really have a lot of text to translate. For better handling of all the text it would like to have different messages.json files, e.g. one for all the text of the options page, one for the pop-up page, one for the background script, etc.
I have not found any information how to do that. Is it even possible?
Thanks and regards, Tensai

Related

How does the Grammarly chrome extension work

I was wondering how the Grammarly extension is able to underline the words in almost any editor (tinyMCE, CKE etc). I thought they are doing that via CSS but it's not.
I am trying to implement something similar and am very thankful for any advice.
Best

How to save a whole website as a jpg or png in order to post it on Behance?

I am finally done with my website and now I am looking for the best and easiest way to save it as .jpg or .png in order to be able to present it on Behance. What is the best way to do this?
I used HTML, CSS and JQuery to build my single page website.
I kindly ask you to help me with this as I am still new to coding and am still discovering the world of web design!
Thank you all in advance!
There are several addons that you can use to screen capture an entire webpage. Webpage Screenshot is one that works in Firefox and Chrome.
https://chrome.google.com/webstore/detail/webpage-screenshot/ckibcdccnfeookdmbahgiakhnjcddpki?hl=en
https://addons.mozilla.org/en-US/firefox/addon/fireshot/
If i understand it correctly, you want to save your webpage as an image to display it as a presentation.
There are many options you have.
One of them is to take a screenshot of the webpage and use a GFX editing program to crop it to your liking and save it.
Another of them is to use a browser add-ons to take a screenshot of the web page and save it.

Can a Chrome extension change its large (new tab page) icon?

My question is along the same lines as this: Change the Chrome extension icon
But I'm wondering instead about the large icon of the extension on a new tab page. Can it change itself based on data? All I have in mind is a simple countdown-calendar (as in, the whole point of the extension is to be a big ol' number on your new tab page), so the actual code wouldn't have to be very long, if icon-changing is possible. (It wouldn't even need to sync or connect to the Internet for any reason.)
My strong hunch is no, because I've never seen an extension do so, and I would expect that if it could, my Chrome's Gmail button would probably display the number of new messages or something. But I figured it didn't hurt to ask.
PS: I've never created a Chrome extension, I just had that idea for one just now. Anyone reading this can feel free to do it themselves, but otherwise I'll make it when I get the time, as a learning exercise.
Only apps (not extensions) can have an icon on the New Tab page (NTP).
This icon have to be declared via the icons property in the manifest file, and cannot dynamically be updated.
I can imagine two ways to get a dynamic icon on the options page:
Create an extension that replaces the New Tab page. Have a look at the docs for Override Pages.
Create an extension that uses the chrome.management API to enable/disable apps. This method might work for your personal setup, but it requires a new App for each icon. This feels a bit hacky, but hey, it might work.

How to better expose your chrome extension

I've developed a chrome extension because I needed something that could make pages view things in greyscale.
I tried addons like this but it was completely broken for me.
Anyway, after creating my own, with a lot more than just 'greyscale' functionality I called it something really generic.
So now I'm worried, anyone searching for 'greyscale' or 'webpage photo filter' wont find my extension!
My question is; is there any way to add tags to your extension listing in the store that searches will take into account? Or do you have suggestions on where I should spout keywords in the current description space?
Add keywords into your extension's description, either into sentences, bullet points, or just a simple list at the end.
There are no tags in Chrome Web Store listings. You have to get creative with your text.
A suggestion for your description:
Create your own webpage photo filters!
See things in;
black and white (greyscale)

showing content on the blank screen after downloading a file

I've observed that under certain circumstances, a web browser will navigate to a blank page and then prompt the user to download a file. In my current situation, it's navigating to a URL that generates an Excel file. The download of the file works perfectly, but the user is now stranded on a blank page. There are two things I would like to figure out:
What causes the blank page to be displayed? It doesn't happen all the time. Is it the difference between using GET and POST (I can't recall seeing a hyperlink do it, but forms usually do)? Is it something to do with the Content-Disposition? In my current case, I've set the Content-Disposition to be "inline" because I want it to display in the browser in IE. Firefox (and presumably others) will of course prompt to download because they can't display it inline. It is the situation where the user chooses to save it that the blank screen results.
If it is possible, I'd like to display some content on this blank screen to provide the user with a message like "your file has been generated, click here to go back to the main screen" or somesuch. Is there a way I can do that?
I'm using an IIS extension written in C++, so solutions for ASP, PHP, etc will not be helpful unless they're generally applicable (though I wouldn't mind learning about solutions in those languages!). Thanks.
I think you practically answered your own question: setting content-disposition to inline does exactly that. One solution that comes to mind is browser detection: use inline disposition if the browser is IE, attachment otherwise.
BTW, as a user, I prefer sites which offer me a choice whether I want to download the file or view it inside the browser (when, for example, accessing a PDF file). In this case, I would consider having a link/button for downloading the file, and adding a second link/button for IE browsers to view it.

Resources