From e8f213bc994f8592c7e2f8a27e7aef0fdcd65242 Mon Sep 17 00:00:00 2001 From: life Date: Thu, 8 May 2014 17:37:46 +0800 Subject: [PATCH] readme.md --- README.md | 2 +- app/init.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7da50f8..c552cf4 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ## Introduction -Leanote, it's a cloud note. You can create your own cloud note in leanote. +Leanote, a cloud note. You can create your own cloud note by leanote. ## Features * Knowledge: manage your knowledge in leanote. leanote contains tinymce editor and markdown editor, just enjoy yourself in writting. diff --git a/app/init.go b/app/init.go index 6192d06..9f4a834 100644 --- a/app/init.go +++ b/app/init.go @@ -58,7 +58,8 @@ func init() { if tags == nil || len(tags) == 0 { return "" } - tagMap := map[string]string{"red": "红色", "yellow": "黄色", "blue": "蓝色", "green": "绝色"} + // TODO 这里判断语言, 从语言包中拿 + tagMap := map[string]string{"red": "红色", "yellow": "黄色", "blue": "蓝色", "green": "绿色"} tagStr := "" lenTags := len(tags) for i, tag := range tags {