Merge pull request #392 from YouthLin/master

add translation Simplified Chinese(zh-cn).
pull/395/head
Igor Chubin 5 years ago committed by GitHub
commit 6668f33d88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -8,7 +8,7 @@ FULL_TRANSLATION = [
"af", "be", "ca", "da", "de", "el", "et",
"fr", "fa", "hu", "id", "it",
"nb", "nl", "pl", "pt-br", "ro",
"ru", "tr", "th", "uk", "vi", "zh-tw"
"ru", "tr", "th", "uk", "vi", "zh-cn", "zh-tw"
]
PARTIAL_TRANSLATION = [
@ -745,7 +745,7 @@ CAPTION = {
"uk": u"Прогноз погоди для:",
"uz": u"Ob-havo bashorati:",
"vi": u"Báo cáo thời tiết:",
"zh": u"氣預報",
"zh": u"气预报",
"zu": u"Isimo sezulu:",
"zh-tw": u"天氣報告:",
}

@ -64,7 +64,7 @@ V2_TRANSLATION = {
"uk": ("Прогноз погоди для:", "Погода", "Часовий пояс", "Зараз", "Світанок", "Схід сонця", "Зеніт", "Захід сонця", "Сутінки"),
"uz": ("Ob-havo bashorati:", "", "", "", "", "", "", "", ""),
"vi": ("Báo cáo thời tiết:", "", "", "", "", "", "", "", ""),
"zh": ("氣預報", "", "", "", "", "", "", "", ""),
"zh": ("气预报", "天气", "时区", "当前", "黎明", "日出", "正午", "日落", "黄昏"),
"zh-tw": ("天氣預報:", "天氣", "時區", "目前", "黎明", "日出", "日正當中", "日落", "黃昏"),
"zu": ("Isimo sezulu:", "", "", "", "", "", "", "", ""),
}

@ -47,7 +47,8 @@ Translated/improved/corrected by:
* Serbian: Milan Stevanović @FathVader
* Swahili: Joel Mukuthu
* Turkish: Atabey Kaygun, Yilmaz @edigu, Volkan Tokmak(@volkanto)
* Taiwanese-ZH: Jeff Huang
* Chinese(Traditional): Jeff Huang
* Chinese(Simplified): YouthLin Chen(@YouthLin on github)
* Thai: Vatunyoo Suwannapisit @kerlos
* Ukrainian: Igor Chubin, Serhiy @pavse
* Uzbek: Shukhrat Mukimov

@ -0,0 +1,69 @@
用法:
$ curl wttr.in # 当前位置
$ curl wttr.in/pek # 机场三字码
支持的位置类型:
/paris # 城市名称
/~Eiffel+tower # 任意地点
/北京 # 任意语言的任意地点
/PEK # 机场三字码
/@stackoverflow.com # 域名
/94107 # 区域代码
/-78.46,106.79 # GPS 坐标
特殊位置:
/moon # 月相(加上 ,+US 或 ,+France 以察看特定城市的月相)
/moon@2016-10-25 # 特定日期的月相(@2016-10-25
单位:
m # 公制(国际单位制)(除美国外该单位制为默认值)
u # USCS美国默认单位制
M # 以米/秒为单位显示风速
查看选项:
0 # 仅当前天气
1 # 当前天气 + 未来 1 天
2 # 当前天气 + 未来 2 天
A # 忽略代理(User-Agent)并强制使用 ANSI 输出格式(终端模式)
F # 不显示「关注」(Follow)那行
n # 较窄模式(仅日夜)
q # 简练模式(无「天气预报」文字)
Q # 极简模式(无「天气预报」、无城市名称)
T # 关闭终端转义序列(无颜色)
PNG 选项:
/paris.png # 生成 PNG 文件
p # 在输出图像周围增加缩进空白
t # 透明度 150
transparency=... # 透明度从 0 到 255255 = 不透明)
可合并使用的选项
/Paris?0pq
/Paris?0pq&lang=fr
/Paris_0pq.png # PNG 文件模式中在下划线 _ 后指定选项
/Rome_0pq_lang=it.png # 用下划线分隔长选项
本地化:
$ curl fr.wttr.in/Paris
$ curl wttr.in/paris?lang=fr
$ curl -H "Accept-Language: fr" wttr.in/paris
支持的语言:
FULL_TRANSLATION (supported)
PARTIAL_TRANSLATION (in progress)
特殊 URL
/:help # 显示此页面
/:bash.function # 显示建议的 bash 函数 wttr()
/:translation # 显示翻译者信息

@ -0,0 +1,81 @@
113:晴 : Clear
113:晴 : Sunny
116:少云 : Partly cloudy
119:多云 : Cloudy
122:阴 : Overcast
143:轻雾 : Mist
176:可能下小雨 : Patchy rain possible
179:可能下小雪 : Patchy snow possible
182:可能有雨夹雪 : Patchy sleet possible
185:可能有冻毛毛雨 : Patchy freezing drizzle possible
200:可能打雷 : Thundery outbreaks possible
227:小雪 : Blowing snow
230:暴雪 : Blizzard
248:雾 : Fog
260:冻雾 : Freezing fog
263:局部毛毛雨 : Patchy light drizzle
266:毛毛雨 : Light drizzle
281:冻毛毛雨 : Freezing drizzle
284:大冻毛毛雨 : Heavy freezing drizzle
293:局部小雨 : Patchy light rain
296:小雨 : Light rain
299:有时中雨 : Moderate rain at times
302:中雨 : Moderate rain
305:有时大雨 : Heavy rain at times
308:大雨 : Heavy rain
311:小冻雨 : Light freezing rain
314:中或大冻雨 : Moderate or heavy freezing rain
317:小雨夹雪 : Light sleet
320:中或大雨夹雪 : Moderate or heavy sleet
323:局部小雪 : Patchy light snow
326:小雪 : Light snow
329:局部中雪 : Patchy moderate snow
332:中雪 : Moderate snow
335:局部大雪 : Patchy heavy snow
338:大雪 : Heavy snow
350:冰珠 : Ice pellets
353:小阵雨 : Light rain shower
356:中或大阵雨 : Moderate or heavy rain shower
359:暴阵雨 : Torrential rain shower
362:小阵雨夹雪 : Light sleet showers
365:中或大阵雨夹雪 : Moderate or heavy sleet showers
368:小阵雪 : Light snow showers
371:中或大阵雪 : Moderate or heavy snow showers
386:局部小雷阵雨 : Patchy light rain with thunder
389:中或大雷阵雨 : Moderate or heavy rain with thunder
392:小雷阵雪 : Patchy light snow with thunder
395:中或大雷阵雪 : Moderate or heavy snow with thunder
Loading…
Cancel
Save