From 6cb63ddff6d4677343fb98897c4cc6bb99c9a2f8 Mon Sep 17 00:00:00 2001 From: luke bonham Date: Tue, 11 Mar 2014 20:31:00 +0100 Subject: [PATCH 1/1] yawn: #31 fix + zh_CN added --- widgets/yawn/init.lua | 3 +- widgets/yawn/localizations/zh_CN | 60 ++++++++++++++++++++++++++++++++ wiki | 2 +- 3 files changed, 63 insertions(+), 2 deletions(-) create mode 100644 widgets/yawn/localizations/zh_CN 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 -- 2.39.5