From: luke bonham Date: Tue, 11 Mar 2014 19:31:00 +0000 (+0100) Subject: yawn: #31 fix + zh_CN added X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/880e0188ba8205c90db2c363893378dc0f341d77 yawn: #31 fix + zh_CN added --- diff --git a/widgets/yawn/init.lua b/widgets/yawn/init.lua index 3f08cd5..86a2d0f 100644 --- a/widgets/yawn/init.lua +++ b/widgets/yawn/init.lua @@ -135,7 +135,8 @@ local function fetch_weather() yawn.icon:set_image(sky) widget = yawn.widget - forecast = weather_data:match(": %S.-,"):gsub(": ", ""):gsub(",", "") + _data = weather_data:match(": %S.-,") or weather_data + forecast = _data:gsub(": ", ""):gsub(",", "") units = units:gsub(" ", "") settings() diff --git a/widgets/yawn/localizations/zh_CN b/widgets/yawn/localizations/zh_CN new file mode 100644 index 0000000..681bc60 --- /dev/null +++ b/widgets/yawn/localizations/zh_CN @@ -0,0 +1,60 @@ +Now:|当前: +Sun:|周日: +Mon:|周一: +Tue:|周二: +Wed:|周三: +Thu:|周四: +Fri:|周五: +Sat:|周六: +Mostly Sunny|晴时多云 +Sunny|阳光 +Sun|太阳 +Rain/Thunder|雨/雷 +Isolated Thunderstorms|局部雷雨 +Scattered Thunderstorms|零星雷雨 +Thundershowers|雷阵雨 +Thunderstorms|雷雨 +Thunder in the Vicinity|周围有雷雨 +Thunder|雷鸣 +AM|上午 +PM|下午 +Early|早 +Late|晚 +Few|短暂 +Severe|恶劣 +Clear|晴朗 +Fair|晴 +Partly|局部 +Mostly|大部 +Cloudy|多云 +Clouds|有云 +Scattered Showers|零星阵雨 +Light Snow Showers|小阵雪 +Snow Showers|阵雪 +Heavy Snow|大雪 +Scattered Snow Showers|零星阵雪 +Mixed Rain And Snow|雨夹雪 +Mixed Rain And Sleet|雨加雹 +Mixed Snow And Sleet|雪加雹 +Mixed Rain And Hail|雨加冰雹 +Snow Flurries|阵雪 +Blowing Snow|风吹雪 +Blowing Rain|风吹雨 +Heavy Rain|大雨 +Freezing Rain|冻雨 +Showers|阵雨 +Light Rain|小雨 +Heavy|大 +Rain|雨 +Windy|有风 +Wind|风 +Snow|雪 +Sleet|雹 +Freezing Drizzle|冻毛雨 +Light Drizzle|微雨 +Drizzle|毛毛雨 +Hail|冰雹 +Fog|雾 +Foggy|有雾 +Haze|薄雾 +Light|小 \ No newline at end of file diff --git a/wiki b/wiki index fc181b7..434d32a 160000 --- a/wiki +++ b/wiki @@ -1 +1 @@ -Subproject commit fc181b7e13ebd4b63b0e2bdc6e170101a022f783 +Subproject commit 434d32a7dac5770ed7ddd1581967df7d7aeb76be