Added basic i18n
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
"net/http"
|
||||
"path/filepath"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
query "github.com/tgckpg/golifehk/query"
|
||||
"github.com/tgckpg/golifehk/utils"
|
||||
@@ -52,9 +53,9 @@ func readBusStopData(r io.Reader) (*map[string]*BusStop, error) {
|
||||
v, _ := strconv.ParseFloat(value, 64)
|
||||
entry.Longitude = v
|
||||
case "STATION_NAME_CHI":
|
||||
entry.Name_zh = value
|
||||
entry.Name_zh = strings.TrimSpace(value)
|
||||
case "STATION_NAME_ENG":
|
||||
entry.Name_en = value
|
||||
entry.Name_en = strings.TrimSpace(value)
|
||||
case "REFERENCE_ID":
|
||||
entry.ReferenceId = value
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user