diff --git a/jmdict.go b/jmdict.go index adaf5ae..662ed0c 100644 --- a/jmdict.go +++ b/jmdict.go @@ -268,6 +268,7 @@ func jmdictExportDb(inputPath string, outputPath string, languageName string, ti title = "JMdict" } jmdictDate := jmdictPublicationDate(dictionary) + title = title + " [" + jmdictDate + "]" index := dbIndex{ Title: title, diff --git a/jmdict_forms.go b/jmdict_forms.go index 409eadb..d1cc00f 100644 --- a/jmdict_forms.go +++ b/jmdict_forms.go @@ -238,6 +238,7 @@ func formsExportDb(inputPath, outputPath, languageName, title string, stride int } jmdictDate := jmdictPublicationDate(dictionary) + title = title + " [" + jmdictDate + "]" index := dbIndex{ Title: title, diff --git a/jmnedict.go b/jmnedict.go index fff9a6c..adb2fd6 100644 --- a/jmnedict.go +++ b/jmnedict.go @@ -117,6 +117,7 @@ func jmnedictExportDb(inputPath, outputPath, language, title string, stride int, title = "JMnedict" } jmnedictDate := jmnedictPublicationDate(dictionary) + title = title + " [" + jmnedictDate + "]" index := dbIndex{ Title: title, diff --git a/kanjidic.go b/kanjidic.go index a33c122..c92f196 100644 --- a/kanjidic.go +++ b/kanjidic.go @@ -107,6 +107,8 @@ func kanjidicExportDb(inputPath, outputPath, language, title string, stride int, if title == "" { title = "KANJIDIC2" } + kanjidicDate := dict.Header.DatabaseVersion + title = title + " [" + kanjidicDate + "]" tags := dbTagList{ dbTag{Name: "jouyou", Notes: "included in list of regular-use characters", Category: "frequent", Order: -5}, @@ -161,7 +163,7 @@ func kanjidicExportDb(inputPath, outputPath, language, title string, stride int, index := dbIndex{ Title: title, - Revision: "kanjidic2", + Revision: "kanjidic2." + kanjidicDate, Sequenced: false, Attribution: edrdgAttribution, }