From ae37b2ed3646a990fc410cc01ec344d7dacba95d Mon Sep 17 00:00:00 2001 From: Bruce Liu Date: Sun, 27 Jun 2021 15:12:46 -0700 Subject: [PATCH] fix opml attribute #270 --- src/scripts/i18n/it.json | 2 +- src/scripts/models/group.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/scripts/i18n/it.json b/src/scripts/i18n/it.json index e701e19..0b3a058 100644 --- a/src/scripts/i18n/it.json +++ b/src/scripts/i18n/it.json @@ -212,7 +212,7 @@ "cacheSize": "Dimensione Cache {size}", "deleteChoices": "Rimuovi articoli di ... giorni fà", "confirmDelete": "Rimuovi", - "daysAgo": "{giorni, plural, =1 {# giorno} other {# giorni}} fà", + "daysAgo": "{days, plural, =1 {# giorno} other {# giorni}} fà", "deleteAll": "Rimuovi tutti gli articoli", "calculatingSize": "Calcolo dimensione...", "itemSize": "Gli articoli occupano {size} ", diff --git a/src/scripts/models/group.ts b/src/scripts/models/group.ts index 31e0ff0..026a1d7 100644 --- a/src/scripts/models/group.ts +++ b/src/scripts/models/group.ts @@ -188,7 +188,7 @@ export function fixBrokenGroups(sources: SourceState): AppThunk { function outlineToSource(outline: Element): [ReturnType, string] { let url = outline.getAttribute("xmlUrl") - let name = outline.getAttribute("text") || outline.getAttribute("name") + let name = outline.getAttribute("text") || outline.getAttribute("title") if (url) { return [addSource(url.trim(), name, true), url] } else { @@ -258,7 +258,7 @@ export function importOPML(): AppThunk { function sourceToOutline(source: RSSSource, xml: Document) { let outline = xml.createElement("outline") outline.setAttribute("text", source.name) - outline.setAttribute("name", source.name) + outline.setAttribute("title", source.name) outline.setAttribute("type", "rss") outline.setAttribute("xmlUrl", source.url) return outline @@ -279,7 +279,7 @@ export function exportOPML(): AppThunk { if (group.isMultiple) { let outline = xml.createElement("outline") outline.setAttribute("text", group.name) - outline.setAttribute("name", group.name) + outline.setAttribute("title", group.name) for (let sid of group.sids) { outline.appendChild(sourceToOutline(state.sources[sid], xml)) }