Skip to content

Commit 34b6e82

Browse files
committed
StartPage: Loom project type added and fix for Wine
1 parent b073f85 commit 34b6e82

2 files changed

Lines changed: 10 additions & 20 deletions

File tree

‎FlashDevelop/Bin/Debug/StartPage/javascript/localization.js‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ locale["en_US.projectTypeAS2"] = "ActionScript 2 Project";
2727
locale["en_US.projectTypeAS3"] = "ActionScript 3 Project";
2828
locale["en_US.projectTypeGeneric"] = "Generic Project";
2929
locale["en_US.projectTypeHaXe"] = "Haxe Project";
30+
locale["en_US.projectTypeLoom"] = "Loom Project";
3031
locale["en_US.projectTypeUnknown"] = "Unknown";
3132
locale["en_US.tooltipTextModified"] = "Modified:";
3233
locale["en_US.tooltipTextCreated"] = "Created:";
@@ -56,6 +57,7 @@ locale["ja_JP.projectTypeAS2"] = "ActionScript 2 プロジェクト";
5657
locale["ja_JP.projectTypeAS3"] = "ActionScript 3 プロジェクト";
5758
locale["ja_JP.projectTypeGeneric"] = "ジェネリックプロジェクト";
5859
locale["ja_JP.projectTypeHaXe"] = "Haxe プロジェクト";
60+
locale["ja_JP.projectTypeLoom"] = "Loom プロジェクト";
5961
locale["ja_JP.projectTypeUnknown"] = "不明";
6062
locale["ja_JP.tooltipTextModified"] = "変更:";
6163
locale["ja_JP.tooltipTextCreated"] = "作成:";
@@ -85,6 +87,7 @@ locale["de_DE.projectTypeAS2"] = "ActionScript 2 Projekt";
8587
locale["de_DE.projectTypeAS3"] = "ActionScript 3 Projekt";
8688
locale["de_DE.projectTypeGeneric"] = "Generische Projekt";
8789
locale["de_DE.projectTypeHaXe"] = "Haxe Projekt";
90+
locale["de_DE.projectTypeLoom"] = "Loom Projekt";
8891
locale["de_DE.projectTypeUnknown"] = "Unbekannt";
8992
locale["de_DE.tooltipTextModified"] = "Verändert:";
9093
locale["de_DE.tooltipTextCreated"] = "Erstellt:";
@@ -114,6 +117,7 @@ locale["eu_ES.projectTypeAS2"] = "ActionScript 2 Proiektua";
114117
locale["eu_ES.projectTypeAS3"] = "ActionScript 3 Proiektua";
115118
locale["eu_ES.projectTypeGeneric"] = "Proiektu orokorra";
116119
locale["eu_ES.projectTypeHaXe"] = "Haxe Proiektua";
120+
locale["eu_ES.projectTypeLoom"] = "Loom Proiektua";
117121
locale["eu_ES.projectTypeUnknown"] = "Ezezaguna";
118122
locale["eu_ES.tooltipTextModified"] = "Aldatua:";
119123
locale["eu_ES.tooltipTextCreated"] = "Sortua:";
@@ -143,6 +147,7 @@ locale["zh_CN.projectTypeAS2"] = "ActionScript 2 工程";
143147
locale["zh_CN.projectTypeAS3"] = "ActionScript 3 工程";
144148
locale["zh_CN.projectTypeGeneric"] = "普通工程";
145149
locale["zh_CN.projectTypeHaXe"] = "HaXe 工程";
150+
locale["zh_CN.projectTypeLoom"] = "Loom 工程";
146151
locale["zh_CN.projectTypeUnknown"] = "未知";
147152
locale["zh_CN.tooltipTextModified"] = "修改:";
148153
locale["zh_CN.tooltipTextCreated"] = "创建:";

‎FlashDevelop/Bin/Debug/StartPage/javascript/startpage.js‎

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,6 @@ function parseXmlDocument(xml)
1919
return parser;
2020
}
2121

22-
/**
23-
* Downloads XML document from url.
24-
*/
25-
function loadXmlDocument(url, callback)
26-
{
27-
var loader = new ActiveXObject("Microsoft.XMLDOM");
28-
loader.onreadystatechange = function()
29-
{
30-
if (loader.readyState == 4)
31-
{
32-
var status = loader.parseError.errorCode;
33-
callback(loader, status);
34-
}
35-
}
36-
loader.load(url);
37-
}
38-
3922
/**
4023
* Downloads text document from url.
4124
*/
@@ -83,10 +66,11 @@ function addSlashes(s)
8366
/**
8467
* Parses the rss feed xml document.
8568
*/
86-
function handleRssFeedXml(xml, status)
69+
function handleRssFeedXml(text, status)
8770
{
8871
var html = "";
89-
if (status == 0)
72+
var xml = parseXmlDocument(text);
73+
if (status == 200)
9074
{
9175
var items = new Array();
9276
var xmlItems = xml.getElementsByTagName("item");
@@ -182,6 +166,7 @@ function getProjectType(extension)
182166
case ".as3proj" : return getLocaleString("projectTypeAS3");
183167
case ".fdproj" : return getLocaleString("projectTypeGeneric");
184168
case ".hxproj" : return getLocaleString("projectTypeHaXe");
169+
case ".lsproj" : return getLocaleString("projectTypeLoom");
185170
default : return getLocaleString("projectTypeUnknown");
186171
}
187172
}
@@ -224,7 +209,7 @@ function handleXmlData(projectXml, rssUrl)
224209
{
225210
var fd3Url = "http://www.flashdevelop.org/latest.txt";
226211
loadTextDocument(fd3Url, handleVersionInfo);
227-
loadXmlDocument(rssUrl, handleRssFeedXml);
212+
loadTextDocument(rssUrl, handleRssFeedXml);
228213
}
229214
var xml = parseXmlDocument(projectXml);
230215
handleProjectXml(xml);

0 commit comments

Comments
 (0)