Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Commit

Permalink
Preparation for a release
Browse files Browse the repository at this point in the history
  • Loading branch information
keithbowes committed Jan 30, 2017
1 parent 9da471c commit 67689b2
Show file tree
Hide file tree
Showing 36 changed files with 77 additions and 41 deletions.
8 changes: 8 additions & 0 deletions development/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ BROWSER ?= $(if $(and $(DISPLAY),$(XDG_SESSION_ID)),xdg-open, \
CP ?= install -m 644
CURL ?= curl
ECHO ?= echo
MARKDOWN ?= Markdown.pl
MKDIR ?= install -d -m 755
MV ?= mv
RM ?= rm -f
Expand Down Expand Up @@ -74,6 +75,13 @@ chrome/useragentswitcher.jar: config.sed $(chrome_files)
cd chrome && $(ZIP) -0 $(notdir $@) content locale skin
$(RMDIR) $(addprefix chrome/,content locale skin)

docs/index.html: README.md
$(MKDIR) $(dir $@)
$(file > $@,<!DOCTYPE html><html lang="en"><head><meta charset="utf-8" /><title>User Agent Switcher Overview</title></head><body>)
$(file >> $@,$(shell $(MARKDOWN) $<))
$(file >> $@,</body></html>)
tidy -asxhtml -utf8 -w -im $@

config.sed: config.properties
$(SED) -e 's/^\(.\+\)=\(.\+\)$$/s,@\1@,\2,g/g' $< > $@

Expand Down
3 changes: 2 additions & 1 deletion development/common_install.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<Description about="urn:mozilla:install-manifest">
<em:aboutURL>chrome://useragentswitcher/content/about/about.xul</em:aboutURL>
<em:creator>Chris Pederick</em:creator>
<em:contributor>Keith Bowes</em:contributor>
<em:description>@description@</em:description>
<em:homepageURL>@home.page@</em:homepageURL>
<em:iconURL>chrome://useragentswitcher/content/logo.png</em:iconURL>
Expand All @@ -14,7 +15,7 @@
<em:name>@name@</em:name>
<em:optionsURL>chrome://useragentswitcher/content/options/options.xul</em:optionsURL>
<em:type>2</em:type><!-- extension -->
<em:updateInfoURL>@home.page@history/</em:updateInfoURL>
<em:updateInfoURL>@home.page@releases/</em:updateInfoURL>
<em:updateURL>@user.agent.switcher.update.manifest@</em:updateURL>
<em:version>@version@</em:version>
<em:file>
Expand Down
10 changes: 5 additions & 5 deletions development/config.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
description=Adds a menu and a toolbar button to switch the user agent of a browser.
home.page=http://chrispederick.com/work/user-agent-switcher/
id=user-agent-switcher@chrispederick.com
home.page=http://keithbowes.github.io/user-agent-switcher/
id=user-agent-switcher@keithbowes.github.io
name=User Agent Switcher
toolkit.max.version=49.*
user.agent.switcher.update.manifest=https://cdn.rawgit.com/keithbowes/user-agent-switcher/master/development/updates/update.rdf
user.agents.page=http://chrispederick.com/work/user-agent-switcher/user-agents/
version=0.7.3-kb-1.0
user.agent.switcher.update.manifest=https://cdn.rawgit.com/keithbowes/user-agent-switcher/master/update.rdf
user.agents.page=http://techpatterns.com/downloads/download_item.php?folder=firefox&filename=useragentswitcher.xml
version=0.8
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ var UserAgentSwitcherUpgrade =

windowContent.removeEventListener("load", UserAgentSwitcherUpgrade.openUpgradePage, false);

window.setTimeout(function() { windowContent.selectedTab = windowContent.addTab("@home.page@installed/" + UserAgentSwitcherUpgrade.getVersion().replace(/\./g, "") + "/"); }, 0);
window.setTimeout(function() { if (confirm(UserAgentSwitcherStringBundle.getString("whatsNew"))) { windowContent.selectedTab = windowContent.addTab("@home.page@releases/@version@/"); }}, 0);
},

// Parses the version number
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ var UserAgentSwitcher =
// Opens the help
help: function()
{
window.getBrowser().selectedTab = window.getBrowser().addTab("@home.page@help/");
window.getBrowser().selectedTab = window.getBrowser().addTab("@home.page@docs/help/");
},

// Initializes the extension
Expand Down Expand Up @@ -440,7 +440,7 @@ var UserAgentSwitcher =
var position = userAgent.getAttribute("useragentswitcherposition");
var userAgentDescription = userAgent.getAttribute("label");

var properties = new Array('appcodename', 'appname', 'appversion', 'platform', 'useragent', 'vendor', 'vendorsub');
var properties = ['appcodename', 'appname', 'appversion', 'platform', 'useragent', 'vendor', 'vendorsub'];
var pref;
for (i = 0; i < properties.length; i++)
{
Expand Down Expand Up @@ -477,7 +477,7 @@ var UserAgentSwitcher =
// Opens the test page
test: function()
{
window.getBrowser().selectedTab = window.getBrowser().addTab("@home.page@features/test/");
window.getBrowser().selectedTab = window.getBrowser().addTab("chrome://useragentswitcher/content/test.html");
},

// Uninitializes the extension
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ useragentswitcher_importUserAgents=Import User Agents
useragentswitcher_newUserAgent=New User Agent
useragentswitcher_reset=Скінуць
useragentswitcher_resetConfirmation=Пацверджанне скіду
useragentswitcher_whatsNew=You just upgraded to a new version. Would you like to see what's new?
useragentswitcher_xmlFileDescription=XML-файлы
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ useragentswitcher_importUserAgents=Import User Agents
useragentswitcher_newUserAgent=New User Agent
useragentswitcher_reset=Reset
useragentswitcher_resetConfirmation=Potvrzení
useragentswitcher_whatsNew=You just upgraded to a new version. Would you like to see what's new?
useragentswitcher_xmlFileDescription=XML soubory
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ useragentswitcher_importUserAgents=Import User Agents
useragentswitcher_newUserAgent=New User Agent
useragentswitcher_reset=Nulstil
useragentswitcher_resetConfirmation=Nulstil bekræftelse
useragentswitcher_whatsNew=You just upgraded to a new version. Would you like to see what's new?
useragentswitcher_xmlFileDescription=XML-filer
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<!ENTITY useragentswitcher.reset.on.close "Bei Beenden zurücksetzen">
<!ENTITY useragentswitcher.test "Testen…">
<!ENTITY useragentswitcher.test.key "T">
<!ENTITY useragentswitcher.user.agent "Browserkennung:">
<!ENTITY useragentswitcher.user.agent "Browserkennung">
<!ENTITY useragentswitcher.user.agent.label "Browserkennung:">
<!ENTITY useragentswitcher.user.agents "Browserkennungen">
<!ENTITY useragentswitcher.vendor "Anbieter:">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ useragentswitcher_importUserAgents=Browserkennungen importieren
useragentswitcher_newUserAgent=Neue Browserkennung
useragentswitcher_reset=Zurücksetzen
useragentswitcher_resetConfirmation=Zurücksetzen bestätigen
useragentswitcher_whatsNew=Sie aktualisierten gerade an eine neue Version. Würden Sie gern sehen, was ist Neues (auf Englisch)?
useragentswitcher_xmlFileDescription=XML-Dateien
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ useragentswitcher_importUserAgents=Import User Agents
useragentswitcher_newUserAgent=New User Agent
useragentswitcher_reset=Reset
useragentswitcher_resetConfirmation=Are you sure you want to reset all the User Agent Switcher options including the user agent list?
useragentswitcher_whatsNew=You just upgraded to a new version. Would you like to see what's new?
useragentswitcher_xmlFileDescription=XML Files
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ useragentswitcher_importUserAgents=Import User Agents
useragentswitcher_newUserAgent=New User Agent
useragentswitcher_reset=Resetear
useragentswitcher_resetConfirmation=Confirmación de Reseteo
useragentswitcher_whatsNew=You just upgraded to a new version. Would you like to see what's new?
useragentswitcher_xmlFileDescription=Archivos XML
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ useragentswitcher_importUserAgents=Import User Agents
useragentswitcher_newUserAgent=New User Agent
useragentswitcher_reset=Reset
useragentswitcher_resetConfirmation=Reset Confirmation
useragentswitcher_whatsNew=You just upgraded to a new version. Would you like to see what's new?
useragentswitcher_xmlFileDescription=XML Files
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ useragentswitcher_importUserAgents=Import User Agents
useragentswitcher_newUserAgent=New User Agent
useragentswitcher_reset=Berrezarri
useragentswitcher_resetConfirmation=Berretsi Berrezartzea
useragentswitcher_whatsNew=You just upgraded to a new version. Would you like to see what's new?
useragentswitcher_xmlFileDescription=XML Fitxategiak
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ useragentswitcher_importUserAgents=Import User Agents
useragentswitcher_newUserAgent=New User Agent
useragentswitcher_reset=Palauta
useragentswitcher_resetConfirmation=Palautuksen varmistus
useragentswitcher_whatsNew=You just upgraded to a new version. Would you like to see what's new?
useragentswitcher_xmlFileDescription=XML-tiedostot
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ useragentswitcher_importUserAgents=Import User Agents
useragentswitcher_newUserAgent=New User Agent
useragentswitcher_reset=Réinitialiser
useragentswitcher_resetConfirmation=Êtes-vous sûr de vouloir réinitialiser toutes les options de User Agent Switcher y-compris la liste des agents utilisateur ?
useragentswitcher_whatsNew=You just upgraded to a new version. Would you like to see what's new?
useragentswitcher_xmlFileDescription=Fichiers XML
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ useragentswitcher_importUserAgents=Import User Agents
useragentswitcher_newUserAgent=New User Agent
useragentswitcher_reset=Tebeksette
useragentswitcher_resetConfirmation=Befestiging Tebeksetting
useragentswitcher_whatsNew=You just upgraded to a new version. Would you like to see what's new?
useragentswitcher_xmlFileDescription=XML Bestannen
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ useragentswitcher_importUserAgents=Import User Agents
useragentswitcher_newUserAgent=New User Agent
useragentswitcher_reset=אפס
useragentswitcher_resetConfirmation=אפס אישור
useragentswitcher_whatsNew=You just upgraded to a new version. Would you like to see what's new?
useragentswitcher_xmlFileDescription=קבצי XML
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ useragentswitcher_importUserAgents=Import User Agents
useragentswitcher_newUserAgent=New User Agent
useragentswitcher_reset=Alapértelmezett
useragentswitcher_resetConfirmation=Alapértelmezések visszaállítása
useragentswitcher_whatsNew=You just upgraded to a new version. Would you like to see what's new?
useragentswitcher_xmlFileDescription=XML Fájlok
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ useragentswitcher_importUserAgents=Import User Agents
useragentswitcher_newUserAgent=New User Agent
useragentswitcher_reset=Reimposta
useragentswitcher_resetConfirmation=Reimpostazione conferma
useragentswitcher_whatsNew=You just upgraded to a new version. Would you like to see what's new?
useragentswitcher_xmlFileDescription=File XML
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ useragentswitcher_importUserAgents=Import User Agents
useragentswitcher_newUserAgent=New User Agent
useragentswitcher_reset=リセット
useragentswitcher_resetConfirmation=リセット確認
useragentswitcher_whatsNew=You just upgraded to a new version. Would you like to see what's new?
useragentswitcher_xmlFileDescription=XML ファイル
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ useragentswitcher_importUserAgents=Import User Agents
useragentswitcher_newUserAgent=New User Agent
useragentswitcher_reset=초기화
useragentswitcher_resetConfirmation=Confirmation 초기화
useragentswitcher_whatsNew=You just upgraded to a new version. Would you like to see what's new?
useragentswitcher_xmlFileDescription=XML 파일
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ useragentswitcher_importUserAgents=Import User Agents
useragentswitcher_newUserAgent=New User Agent
useragentswitcher_reset=Atkurti
useragentswitcher_resetConfirmation=Atkūrimo patvirtinimas
useragentswitcher_whatsNew=You just upgraded to a new version. Would you like to see what's new?
useragentswitcher_xmlFileDescription=XML Bylos
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ useragentswitcher_importUserAgents=Import User Agents
useragentswitcher_newUserAgent=New User Agent
useragentswitcher_reset=Врати
useragentswitcher_resetConfirmation=Потврда за враќање
useragentswitcher_whatsNew=You just upgraded to a new version. Would you like to see what's new?
useragentswitcher_xmlFileDescription=XML датотеки
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ useragentswitcher_importUserAgents=Import User Agents
useragentswitcher_newUserAgent=New User Agent
useragentswitcher_reset=Reset
useragentswitcher_resetConfirmation=Reset Confirmation
useragentswitcher_whatsNew=You just upgraded to a new version. Would you like to see what's new?
useragentswitcher_xmlFileDescription=XML Files
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ useragentswitcher_importUserAgents=Import User Agents
useragentswitcher_newUserAgent=New User Agent
useragentswitcher_reset=Domyślne
useragentswitcher_resetConfirmation=Przywróć potwierdzenia
useragentswitcher_whatsNew=You just upgraded to a new version. Would you like to see what's new?
useragentswitcher_xmlFileDescription=Pliki XML
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ useragentswitcher_importUserAgents=Import User Agents
useragentswitcher_newUserAgent=New User Agent
useragentswitcher_reset=Restaurar
useragentswitcher_resetConfirmation=Restaurar confirmação
useragentswitcher_whatsNew=You just upgraded to a new version. Would you like to see what's new?
useragentswitcher_xmlFileDescription=Arquivos XML
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ useragentswitcher_importUserAgents=Import User Agents
useragentswitcher_newUserAgent=New User Agent
useragentswitcher_reset=Restaurar definiç\\u00F5es originais
useragentswitcher_resetConfirmation=Restaurar definiç\\u00F5es originais
useragentswitcher_whatsNew=You just upgraded to a new version. Would you like to see what's new?
useragentswitcher_xmlFileDescription=Arquivos XML
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ useragentswitcher_importUserAgents=Import User Agents
useragentswitcher_newUserAgent=New User Agent
useragentswitcher_reset=Reinitializeaza
useragentswitcher_resetConfirmation=Confirmare reinitializare
useragentswitcher_whatsNew=You just upgraded to a new version. Would you like to see what's new?
useragentswitcher_xmlFileDescription=Fisiere XML
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ useragentswitcher_importUserAgents=Import User Agents
useragentswitcher_newUserAgent=New User Agent
useragentswitcher_reset=Сбросить
useragentswitcher_resetConfirmation=Подтверждение сброса
useragentswitcher_whatsNew=You just upgraded to a new version. Would you like to see what's new?
useragentswitcher_xmlFileDescription=XML-файлы
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ useragentswitcher_importUserAgents=Import User Agents
useragentswitcher_newUserAgent=New User Agent
useragentswitcher_reset=Obnoviť
useragentswitcher_resetConfirmation=Potvrdiť obnovenie
useragentswitcher_whatsNew=You just upgraded to a new version. Would you like to see what's new?
useragentswitcher_xmlFileDescription=XML súbory
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ useragentswitcher_importUserAgents=Import User Agents
useragentswitcher_newUserAgent=New User Agent
useragentswitcher_reset=Temel tercihlere dönüş (sıfırla)
useragentswitcher_resetConfirmation=Temel tercihlere dönüş - emin misiniz ?
useragentswitcher_whatsNew=You just upgraded to a new version. Would you like to see what's new?
useragentswitcher_xmlFileDescription=XML dosyaları
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ useragentswitcher_importUserAgents=Import User Agents
useragentswitcher_newUserAgent=New User Agent
useragentswitcher_reset=Скинути
useragentswitcher_resetConfirmation=Підтвердження Скидання\u0020
useragentswitcher_whatsNew=You just upgraded to a new version. Would you like to see what's new?
useragentswitcher_xmlFileDescription=XML Файли
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ useragentswitcher_importUserAgents=Import User Agents
useragentswitcher_newUserAgent=New User Agent
useragentswitcher_reset=重置
useragentswitcher_resetConfirmation=重置确认
useragentswitcher_whatsNew=You just upgraded to a new version. Would you like to see what's new?
useragentswitcher_xmlFileDescription=XML文件
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ useragentswitcher_importUserAgents=Import User Agents
useragentswitcher_newUserAgent=New User Agent
useragentswitcher_reset=重設
useragentswitcher_resetConfirmation=確認重設
useragentswitcher_whatsNew=You just upgraded to a new version. Would you like to see what's new?
useragentswitcher_xmlFileDescription=XML 檔案
Loading

0 comments on commit 67689b2

Please sign in to comment.