From f58f132aa072063bf1a5a9eb24d27ae7c7cc8540 Mon Sep 17 00:00:00 2001 From: Camille Barneaud Date: Wed, 2 May 2012 13:56:18 +0200 Subject: [PATCH] Add full support of translation by 'locale' directory and convert English and French languages to this format. Signed-off-by: Camille Barneaud --- drivers/firefox/content/js/driver.js | 2 +- .../locale/en-US/wappalyzer.properties | 34 +++++++++- .../locale/fr-FR/wappalyzer.properties | 30 +++++++++ share/js/apps.js | 62 +++++++++---------- 4 files changed, 94 insertions(+), 34 deletions(-) diff --git a/drivers/firefox/content/js/driver.js b/drivers/firefox/content/js/driver.js index a54cd6f46..ca4406f46 100644 --- a/drivers/firefox/content/js/driver.js +++ b/drivers/firefox/content/js/driver.js @@ -153,7 +153,7 @@ for ( cat in w.apps[app].cats ) { var menuItem = w$('') .attr('class', 'wappalyzer-category') - .attr('label', w.categories[w.apps[app].cats[cat]].name) + .attr('label', strings.getString('wappalyzer.cat' + w.apps[app].cats[cat])) ; menuItem.bind('command', function() { diff --git a/drivers/firefox/locale/en-US/wappalyzer.properties b/drivers/firefox/locale/en-US/wappalyzer.properties index f78b305fa..3b9b1dd4a 100755 --- a/drivers/firefox/locale/en-US/wappalyzer.properties +++ b/drivers/firefox/locale/en-US/wappalyzer.properties @@ -1,2 +1,32 @@ -wappalyzer.name = Wappalyzer -wappalyzer.noAppsDetected = No applications detected +wappalyzer.name = Wappalyzer +wappalyzer.noAppsDetected = No applications detected + +wappalyzer.cat1 = CMS +wappalyzer.cat2 = Message Board +wappalyzer.cat3 = Database Manager +wappalyzer.cat4 = Documentation Tool +wappalyzer.cat5 = Widget +wappalyzer.cat6 = Web Shop +wappalyzer.cat7 = Photo Gallery +wappalyzer.cat8 = Wiki +wappalyzer.cat9 = Hosting Panel +wappalyzer.cat10 = Analytics +wappalyzer.cat11 = Blog +wappalyzer.cat12 = JavaScript Framework +wappalyzer.cat13 = Issue Tracker +wappalyzer.cat14 = Video Player +wappalyzer.cat15 = Comment System +wappalyzer.cat16 = CAPTCHA +wappalyzer.cat17 = Font Script +wappalyzer.cat18 = Web Framework +wappalyzer.cat19 = Miscellaneous +wappalyzer.cat20 = Editor +wappalyzer.cat21 = LMS +wappalyzer.cat22 = Web Server +wappalyzer.cat23 = Cache Tool +wappalyzer.cat24 = Rich Text Editor +wappalyzer.cat25 = Javascript Graphics +wappalyzer.cat26 = Mobile Framework +wappalyzer.cat27 = Programming Language +wappalyzer.cat28 = Operating System +wappalyzer.cat29 = Search Engine \ No newline at end of file diff --git a/drivers/firefox/locale/fr-FR/wappalyzer.properties b/drivers/firefox/locale/fr-FR/wappalyzer.properties index c7e46e1ba..d5df1ea08 100644 --- a/drivers/firefox/locale/fr-FR/wappalyzer.properties +++ b/drivers/firefox/locale/fr-FR/wappalyzer.properties @@ -1,2 +1,32 @@ wappalyzer.name = Wappalyzer wappalyzer.noAppsDetected = Pas d'applications détectées + +wappalyzer.cat1 = CMS +wappalyzer.cat2 = Forum +wappalyzer.cat3 = Gestionnaire de base de données +wappalyzer.cat4 = Outil de documentation +wappalyzer.cat5 = Widget +wappalyzer.cat6 = Boutique en ligne +wappalyzer.cat7 = Galerie photo +wappalyzer.cat8 = Wiki +wappalyzer.cat9 = Gestionnaires de serveur +wappalyzer.cat10 = Outil de statistiques +wappalyzer.cat11 = Blog +wappalyzer.cat12 = Framework JavaScript +wappalyzer.cat13 = Outils de suivi de problèmes +wappalyzer.cat14 = Lecteur de vidéos +wappalyzer.cat15 = Système de commentaires +wappalyzer.cat16 = CAPTCHA +wappalyzer.cat17 = Script de police +wappalyzer.cat18 = Framework web +wappalyzer.cat19 = Divers +wappalyzer.cat20 = Editeur +wappalyzer.cat21 = LMS +wappalyzer.cat22 = Serveur web +wappalyzer.cat23 = Outil de cache +wappalyzer.cat24 = Editeur WYSIWYG +wappalyzer.cat25 = Graphismes JavaScript +wappalyzer.cat26 = Framework pour mobiles +wappalyzer.cat27 = Language de programmation +wappalyzer.cat28 = Système d'exploitation +wappalyzer.cat29 = Moteur de recherche \ No newline at end of file diff --git a/share/js/apps.js b/share/js/apps.js index 40b0cc744..eda052afd 100644 --- a/share/js/apps.js +++ b/share/js/apps.js @@ -2,39 +2,39 @@ if ( wappalyzer == null ) return; var w = wappalyzer; - + w.categories = { - 1: { name: 'CMS', plural: 'CMS' }, - 2: { name: 'Message Board', plural: 'Message Boards' }, - 3: { name: 'Database Manager', plural: 'Database Managers' }, - 4: { name: 'Documentation Tool', plural: 'Documentation Tools' }, - 5: { name: 'Widget', plural: 'Widgets' }, - 6: { name: 'Web Shop', plural: 'Web Shops' }, - 7: { name: 'Photo Gallery', plural: 'Photo Galleries' }, - 8: { name: 'Wiki', plural: 'Wikis' }, - 9: { name: 'Hosting Panel', plural: 'Hosting Panels' }, - 10: { name: 'Analytics', plural: 'Analytics' }, - 11: { name: 'Blog', plural: 'Blogs' }, - 12: { name: 'JavaScript Framework', plural: 'JavaScript Frameworks' }, - 13: { name: 'Issue Tracker', plural: 'Issue Trackers' }, - 14: { name: 'Video Player', plural: 'Video Players' }, - 15: { name: 'Comment System', plural: 'Comment Systems' }, - 16: { name: 'CAPTCHA', plural: 'CAPTCHAs' }, - 17: { name: 'Font Script', plural: 'Font Scripts' }, - 18: { name: 'Web Framework', plural: 'Web Frameworks' }, - 19: { name: 'Miscellaneous', plural: 'Miscellaneous' }, - 20: { name: 'Editor', plural: 'Editors' }, - 21: { name: 'LMS', plural: 'LMS' }, - 22: { name: 'Web Server', plural: 'Web Servers' }, - 23: { name: 'Cache Tool', plural: 'Cache Tools' }, - 24: { name: 'Rich Text Editor', plural: 'Rich Text Editors' }, - 25: { name: 'Javascript Graphics', plural: 'Javascript Graphics' }, - 26: { name: 'Mobile Framework', plural: 'Mobile Frameworks' }, - 27: { name: 'Programming Language', plural: 'Programming Languages' }, - 28: { name: 'Operating System', plural: 'Operating Systems' }, - 29: { name: 'Search Engine', plural: 'Search Engines'} + 1: { plural: 'CMS' }, + 2: { plural: 'Message Boards' }, + 3: { plural: 'Database Managers' }, + 4: { plural: 'Documentation Tools' }, + 5: { plural: 'Widgets' }, + 6: { plural: 'Web Shops' }, + 7: { plural: 'Photo Galleries' }, + 8: { plural: 'Wikis' }, + 9: { plural: 'Hosting Panels' }, + 10: { plural: 'Analytics' }, + 11: { plural: 'Blogs' }, + 12: { plural: 'JavaScript Frameworks' }, + 13: { plural: 'Issue Trackers' }, + 14: { plural: 'Video Players' }, + 15: { plural: 'Comment Systems' }, + 16: { plural: 'CAPTCHAs' }, + 17: { plural: 'Font Scripts' }, + 18: { plural: 'Web Frameworks' }, + 19: { plural: 'Miscellaneous' }, + 20: { plural: 'Editors' }, + 21: { plural: 'LMS' }, + 22: { plural: 'Web Servers' }, + 23: { plural: 'Cache Tools' }, + 24: { plural: 'Rich Text Editors' }, + 25: { plural: 'Javascript Graphics' }, + 26: { plural: 'Mobile Frameworks' }, + 27: { plural: 'Programming Languages' }, + 28: { plural: 'Operating Systems' }, + 29: { plural: 'Search Engines'} }; - + w.apps = { '1und1': { cats: { 1: 6 }, url: /\/shop\/catalog\/browse\?sessid\=/ }, '1C-Bitrix': { cats: { 1: 1 }, html: /]+components\/bitrix/i, script: /1c\-bitrix/i },