From 582fc5bad6917756343b03332c8767721b3b2662 Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Tue, 2 Nov 2021 08:51:26 +0100 Subject: [PATCH] Fix we-lang formatting --- share/we-lang/go.mod | 6 +++--- share/we-lang/we-lang.go | 42 ++++++++++++++++++++-------------------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/share/we-lang/go.mod b/share/we-lang/go.mod index 97989af..c0e0988 100644 --- a/share/we-lang/go.mod +++ b/share/we-lang/go.mod @@ -3,7 +3,7 @@ module github.com/chubin/wttr.in/v2 go 1.15 require ( - github.com/klauspost/lctime v0.1.0 // indirect - github.com/mattn/go-colorable v0.1.11 // indirect - github.com/mattn/go-runewidth v0.0.13 // indirect + github.com/klauspost/lctime v0.1.0 + github.com/mattn/go-colorable v0.1.11 + github.com/mattn/go-runewidth v0.0.13 ) diff --git a/share/we-lang/we-lang.go b/share/we-lang/we-lang.go index 2c12b4d..0e44c68 100644 --- a/share/we-lang/we-lang.go +++ b/share/we-lang/we-lang.go @@ -292,7 +292,7 @@ var ( locale = map[string]string{ "af": "af_ZA", - "am": "am_ET", + "am": "am_ET", "ar": "ar_TN", "az": "az_AZ", "be": "be_BY", @@ -347,7 +347,7 @@ var ( "sr": "sr_RS", "sr-lat": "sr_RS@latin", "sw": "sw_KE", - "ta": "ta_IN", + "ta": "ta_IN", "th": "th_TH", "tr": "tr_TR", "uk": "uk_UA", @@ -362,7 +362,7 @@ var ( localizedCaption = map[string]string{ "af": "Weer verslag vir:", - "am": "የአየር ሁኔታ ዘገባ ለ ፥", + "am": "የአየር ሁኔታ ዘገባ ለ ፥", "ar": "تقرير حالة ألطقس", "az": "Hava proqnozu:", "be": "Прагноз надвор'я для:", @@ -418,7 +418,7 @@ var ( "sr-lat": "Vremenska prognoza za:", "sv": "Väderleksprognos för:", "sw": "Ripoti ya hali ya hewa, jiji la:", - "ta": "வானிலை அறிக்கை", + "ta": "வானிலை அறிக்கை", "te": "వాతావరణ సమాచారము:", "th": "รายงานสภาพอากาศ:", "tr": "Hava beklentisi:", @@ -434,7 +434,7 @@ var ( daytimeTranslation = map[string][]string{ "af": {"Oggend", "Middag", "Vroegaand", "Laatnag"}, - "am": {"ጠዋት", "ከሰዓት በኋላ", "ምሽት", "ሌሊት"}, + "am": {"ጠዋት", "ከሰዓት በኋላ", "ምሽት", "ሌሊት"}, "ar": {"ﺎﻠﻠﻴﻟ", "ﺎﻠﻤﺳﺍﺀ", "ﺎﻠﻈﻫﺭ", "ﺎﻠﺼﺑﺎﺣ"}, "az": {"Səhər", "Gün", "Axşam", "Gecə"}, "be": {"Раніца", "Дзень", "Вечар", "Ноч"}, @@ -491,7 +491,7 @@ var ( "sr-lat": {"Jutro", "Podne", "Veče", "Noć"}, "sv": {"Morgon", "Eftermiddag", "Kväll", "Natt"}, "sw": {"Asubuhi", "Adhuhuri", "Jioni", "Usiku"}, - "ta": { "காலை", "நண்பகல்", "சாயங்காலம்", "இரவு" }, + "ta": {"காலை", "நண்பகல்", "சாயங்காலம்", "இரவு"}, "te": {"ఉదయం", "రోజు", "సాయంత్రం", "రాత్రి"}, "th": {"เช้า", "วัน", "เย็น", "คืน"}, "tr": {"Sabah", "Öğle", "Akşam", "Gece"}, @@ -683,22 +683,22 @@ func formatTemp(c cond) string { explicitPlus1 := false explicitPlus2 := false if c.FeelsLikeC != t { - if t > 0 { - explicitPlus1 = true - } - if c.FeelsLikeC > 0 { - explicitPlus2 = true - } - if explicitPlus1 { - explicitPlus2 = false - } + if t > 0 { + explicitPlus1 = true + } + if c.FeelsLikeC > 0 { + explicitPlus2 = true + } + if explicitPlus1 { + explicitPlus2 = false + } return pad( - fmt.Sprintf("%s(%s) °%s", - color(t, explicitPlus1), - color(c.FeelsLikeC, explicitPlus2), - unitTemp[config.Imperial]), - 15) - } + fmt.Sprintf("%s(%s) °%s", + color(t, explicitPlus1), + color(c.FeelsLikeC, explicitPlus2), + unitTemp[config.Imperial]), + 15) + } // if c.FeelsLikeC < t { // if c.FeelsLikeC < 0 && t > 0 { // explicitPlus = true