]> git.madduck.net Git - etc/awesome.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

yawn: #31 fix + zh_CN added
authorluke bonham <dadasignificanulla@gmail.com>
Tue, 11 Mar 2014 19:31:00 +0000 (20:31 +0100)
committercopycat-killer <dada@archlinux.info>
Wed, 5 Aug 2015 11:30:38 +0000 (13:30 +0200)
widgets/yawn/init.lua
widgets/yawn/localizations/zh_CN [new file with mode: 0644]
wiki

index 3f08cd5956e261eb4e2364d7e3ace5e164ce4519..86a2d0fe2979f38cf1acd8ca481cd161c441f424 100644 (file)
@@ -135,7 +135,8 @@ local function fetch_weather()
     yawn.icon:set_image(sky)
     widget = yawn.widget
 
     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()
     units = units:gsub(" ", "")
 
     settings()
diff --git a/widgets/yawn/localizations/zh_CN b/widgets/yawn/localizations/zh_CN
new file mode 100644 (file)
index 0000000..681bc60
--- /dev/null
@@ -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 fc181b7e13ebd4b63b0e2bdc6e170101a022f783..434d32a7dac5770ed7ddd1581967df7d7aeb76be 160000 (submodule)
--- a/wiki
+++ b/wiki
@@ -1 +1 @@
-Subproject commit fc181b7e13ebd4b63b0e2bdc6e170101a022f783
+Subproject commit 434d32a7dac5770ed7ddd1581967df7d7aeb76be