diff options
Diffstat (limited to 'org/madore/damlengine/TodoWeblogSelectionElement.java')
-rw-r--r-- | org/madore/damlengine/TodoWeblogSelectionElement.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/org/madore/damlengine/TodoWeblogSelectionElement.java b/org/madore/damlengine/TodoWeblogSelectionElement.java index 8072061..3029f9f 100644 --- a/org/madore/damlengine/TodoWeblogSelectionElement.java +++ b/org/madore/damlengine/TodoWeblogSelectionElement.java @@ -79,6 +79,8 @@ public final class TodoWeblogSelectionElement extends TodoDefaultElement { categoryNames.get("en").put("lang", "Languages & Linguistics"); categoryNames.get("fr").put("lang", "Langues & Linguistique"); categoryNames.get("ia").put("lang", "Liguas & Linguistica"); + categoryNames.get("en").put("meteo", "Meteorology"); + categoryNames.get("fr").put("meteo", "M\u00e9t\u00e9orologie"); categoryNames.get("en").put("unicode", "Unicode"); categoryNames.get("fr").put("unicode", "Unicode"); categoryNames.get("en").put("cinema", "Films & Movies"); @@ -94,6 +96,8 @@ public final class TodoWeblogSelectionElement extends TodoDefaultElement { categoryNames.get("fr").put("auto-moto", "Auto-Moto"); categoryNames.get("en").put("gardinia", "Parks & Gardens"); categoryNames.get("fr").put("gardinia", "Parcs & Jardins"); + categoryNames.get("en").put("covid-19", "Covid-19"); + categoryNames.get("fr").put("covid-19", "Covid-19"); categoryNames.get("en").put("meta", "Meta"); categoryNames.get("fr").put("meta", "M\u00e9ta"); } @@ -171,7 +175,7 @@ public final class TodoWeblogSelectionElement extends TodoDefaultElement { if ( wsum == null || wsum.entries == null ) throw new IllegalStateException("failed to obtain weblog summary for weblog-selection-single-title"); WeblogSummary.EntrySummary esum - = wsum.entries.get(new Integer(((Context.WeblogSingleSelectionContext)(ctx.wsc)).number)); + = wsum.entries.get(Integer.valueOf(((Context.WeblogSingleSelectionContext)(ctx.wsc)).number)); if ( esum == null ) throw new IllegalStateException("tried weblog-selection-single-title on inexistent entry"); { @@ -184,7 +188,7 @@ public final class TodoWeblogSelectionElement extends TodoDefaultElement { LSInput input = domi.createLSInput(); if ( esum.titleXml == null ) { // If there is no title, use number instead. - str = String.format("%04d", ((Context.WeblogSingleSelectionContext)(ctx.wsc)).number); + str = String.format("#%04d", ((Context.WeblogSingleSelectionContext)(ctx.wsc)).number); Node strNode = ctx.doc.createTextNode(str); span.appendChild(strNode); break; // Leave now! |