Localisation

main
ElbertF 13 years ago
parent 0ba42c0800
commit d8de721ec8

@ -0,0 +1,34 @@
{
"analyzeHeaders": { "message": "Analyze headers" },
"nothingToDo": { "message": "Nothing to do here." },
"noAppsDetected": { "message": "No applications detected." },
"categoryName1": { "message": "CMS" },
"categoryName2": { "message": "Message Board" },
"categoryName3": { "message": "Database Manager" },
"categoryName4": { "message": "Documentation Tool" },
"categoryName5": { "message": "Widget" },
"categoryName6": { "message": "Web Shop" },
"categoryName7": { "message": "Photo Gallery" },
"categoryName8": { "message": "Wiki" },
"categoryName9": { "message": "Hosting Panel" },
"categoryName10": { "message": "Analytics" },
"categoryName11": { "message": "Blog" },
"categoryName12": { "message": "Javascript Framework" },
"categoryName13": { "message": "Issue Tracker" },
"categoryName14": { "message": "Video Player" },
"categoryName15": { "message": "Comment System" },
"categoryName16": { "message": "Captcha" },
"categoryName17": { "message": "Font Script" },
"categoryName18": { "message": "Web Framework" },
"categoryName19": { "message": "Miscellaneous" },
"categoryName20": { "message": "Editor" },
"categoryName21": { "message": "LMS" },
"categoryName22": { "message": "Web Server" },
"categoryName23": { "message": "Cache Tool" },
"categoryName24": { "message": "Rich Text Editor" },
"categoryName25": { "message": "Javascript Graphics" },
"categoryName26": { "message": "Mobile Framework" },
"categoryName27": { "message": "Programming Language" },
"categoryName28": { "message": "Operating System" },
"categoryName29": { "message": "Search Engine" }
}

@ -2,10 +2,12 @@
<html>
<head>
<title>Background</title>
<script src="js/ga.js"></script>
<script src="js/wappalyzer.js"></script>
<script src="js/apps.js"></script>
<script src="js/driver.js"></script>
<script src="js/ga.js"></script>
<script src="js/background.js"></script>
</head>
<body>

@ -1,19 +1,19 @@
(function() {
// Google Analytics
var _gaq = _gaq || [];
/**
* Google Analytics
*/
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-216336-23']);
_gaq.push(['_trackPageview']);
_gaq.push(['_setAccount', 'UA-216336-23']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script');
(function() {
var ga = document.createElement('script');
ga.type = 'text/javascript';
ga.async = true;
ga.src = 'https://ssl.google-analytics.com/ga.js';
ga.src = 'https://ssl.google-analytics.com/u/ga_debug.js';
ga.async = true;
var s = document.getElementsByTagName('script')[0];
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
})();
s.parentNode.insertBefore(ga, s);
})();

@ -1,31 +0,0 @@
categoryNames = {
1: 'CMS',
2: 'Message Board',
3: 'Database Manager',
4: 'Documentation Tool',
5: 'Widget',
6: 'Web Shop',
7: 'Photo Gallery',
8: 'Wiki',
9: 'Hosting Panel',
10: 'Analytics',
11: 'Blog',
12: 'Javascript Framework',
13: 'Issue Tracker',
14: 'Video Player',
15: 'Comment System',
16: 'Captcha',
17: 'Font Script',
18: 'Web Framework',
19: 'Miscellaneous',
20: 'Editor',
21: 'LMS',
22: 'Web Server',
23: 'Cache Tool',
24: 'Rich Text Editor',
25: 'Javascript Graphics',
26: 'Mobile Framework',
27: 'Programming Language',
28: 'Operating System',
29: 'Search Engine'
};

@ -6,18 +6,20 @@ var wappalyzer = {};
init: function() {
chrome.tabs.getSelected(null, function(tab) {
$('#analyze-headers').html(chrome.i18n.getMessage('analyzeHeaders'));
if ( tab.url.match(/https?:\/\//) ) {
$('#detected-apps').html('<div class="empty">No applications detected.</div>');
$('#detected-apps').html('<div class="empty">' + chrome.i18n.getMessage('noAppsDetected') + '</div>');
$('#analyze-headers').show().click(function() {
$(this).addClass('pending');
chrome.extension.sendRequest({ id: 'fetch_headers', tab: tab });
chrome.extension.sendRequest({ id: 'fetch_headers', tab: tab });
popup.pollHeaders = setInterval(popup.displayApps, 100);
popup.pollHeaders = setInterval(popup.displayApps, 100);
});
} else {
$('#detected-apps').html('<div class="empty">Nothing to do here.</div>');
$('#detected-apps').html('<div class="empty">' + chrome.i18n.getMessage('nothingToDo') + '</div>');
$('#analyze-headers').hide();
}
@ -32,7 +34,7 @@ var wappalyzer = {};
if ( response.tabCache.analyzed.indexOf('headers') > 0 ) {
clearTimeout(popup.pollHeaders);
$('#analyze-headers').removeClass('pending');
$('#analyze-headers').hide().removeClass('pending');
}
if ( response.tabCache.count > 0 ) {
@ -49,7 +51,7 @@ var wappalyzer = {};
wappalyzer.apps[appName].cats.map(function(cat) {
html +=
'<a target="_blank" href="http://wappalyzer.com/categories/' + wappalyzer.categories[cat] + '">' +
'<span class="category">' + categoryNames[cat] + '</span>' +
'<span class="category">' + chrome.i18n.getMessage('categoryName' + cat) + '</span>' +
'</a>';
});

@ -1,12 +1,13 @@
{ "update_url": "http://clients2.google.com/service/update2/crx",
"name": "Wappalyzer",
{ "name": "Wappalyzer",
"homepage_url": "http://wappalyzer.com",
"description": "Identifies software on the web",
"version": "2.2",
"default_locale": "en",
"manifest_version": 2,
"icons": {
"32": "images/icon_32.png",
"128": "images/icon_128.png"
},
"version": "2.1",
"description": "Identifies software on the web",
"homepage_url": "http://wappalyzer.com",
"browser_action": {
"default_icon": "images/icon_32.png",
"default_title": "Wappalyzer - click for details",

@ -2,17 +2,18 @@
<html>
<head>
<title>Popup</title>
<link rel="stylesheet" href="popup.css">
<script src="js/ga.js"></script>
<script src="js/lib/jquery.min.js"></script>
<script src="js/popup.js"></script>
<script src="js/apps.js"></script>
<script src="js/locale.js"></script>
<script src="js/ga.js"></script>
</head>
<body>
<div id="detected-apps"></div>
<div id="analyze-headers">Analyze headers</div>
<div id="analyze-headers"></div>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 872 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 729 B