[原创]在Windows 7 上使用 HTC Sense

在Windows 7上可以安装小工具“HTC Home for Windows”,以HTC Sense的风格显示日期时间和天气。

下载地址:http://htchome.codeplex.com/

在HTC Home 1.10\Localization目录下放置一个zh-CN.xaml文件即可汉化,本人汉化了一下,贴附本文最后。

设置本地天气方法:

天气提供商选择“MSN”;

输入城市名称(英文),回车,选中出现的名称,

去掉“自动检测位置”,选中“从指定的位置取得时间”后,确定/应用。

※似乎使用zh-CN.xaml后,天气数据有时取得不了,可以用本文最后的文本替换en-US.xaml中的内容

(<s:String x:Key="LocaleCode">zh-CN</s:String>一行使用<s:String x:Key="LocaleCode">en-US</s:String>),

这样就肯定可以了。

zh-CN.xaml

————————————————————————————————————————————————————————————

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

                    xmlns:s="clr-namespace:System;assembly=mscorlib">

    <s:String x:Key="LocaleCode">zh-CN</s:String>

    <s:String x:Key="LocaleName">中文</s:String>

    <s:String x:Key="LocaleAuthor">OneIsYou</s:String>

    <!-- General strings -->

    <s:String x:Key="DetectingLocation">检测位置……</s:String>

    <s:String x:Key="Today">今天</s:String>

    <s:String x:Key="Tomorrow">明天</s:String>

    <!-- Menu strings -->

    <s:String x:Key="Pin">吸附</s:String>

    <s:String x:Key="Refresh">刷新</s:String>

    <s:String x:Key="Settings">设置</s:String>

    <s:String x:Key="Close">关闭</s:String>

    <!-- Options strings -->

    <s:String x:Key="Title">设置</s:String>

    <s:String x:Key="General">基本</s:String>

    <s:String x:Key="Location">位置</s:String>

    <s:String x:Key="Advanced">高级</s:String>

    <s:String x:Key="About">关于</s:String>

    <s:String x:Key="OK">确定</s:String>

    <s:String x:Key="Cancel">取消</s:String>

    <s:String x:Key="Apply">应用</s:String>

    <s:String x:Key="CurrentLocationText">当前位置:</s:String>

    <s:String x:Key="DefaultLocation">Tianjin</s:String>

    <s:String x:Key="TypeLocationText">输入你的城市名称:</s:String>

    <s:String x:Key="Autostart">随Windows启动</s:String>

    <s:String x:Key="TopMost">保持Home on在所有其他窗口最上方</s:String>

    <s:String x:Key="StickToEdges">吸附至屏幕边缘</s:String>

    <s:String x:Key="DetectLocation">自动检测位置</s:String>

    <s:String x:Key="UseLocationTime">从选定的位置取得时间</s:String>

    <s:String x:Key="ShowTempIn">显示温度在:</s:String>

    <s:String x:Key="ShowForecast">显示5天内的天气预报</s:String>

    <s:String x:Key="ShowToday">显示今天</s:String>

    <s:String x:Key="Fahrenheit">华氏</s:String>

    <s:String x:Key="Celsius">摄氏</s:String>

    <s:String x:Key="TimeMode">日期格式:</s:String>

    <s:String x:Key="TimeMode1">24 小时</s:String>

    <s:String x:Key="TimeMode2">12 小时</s:String>

    <s:String x:Key="Provider">天气提供商:</s:String>

    <s:String x:Key="Position">位置:</s:String>

    <s:String x:Key="LeftTop">上部居左</s:String>

    <s:String x:Key="LeftBottom">下部居左</s:String>

    <s:String x:Key="CenterTop">上部居中</s:String>

    <s:String x:Key="Center">居中</s:String>

    <s:String x:Key="CenterBottom">下部居中</s:String>

    <s:String x:Key="RightTop">上部居右</s:String>

    <s:String x:Key="RightBottom">下部居右</s:String>

    <s:String x:Key="Custom">自定义</s:String>

    <s:String x:Key="Language">语言:</s:String>

    <s:String x:Key="Interval">间隔 (分钟):</s:String>

    <s:String x:Key="MainFont">主要字体:</s:String>

    <s:String x:Key="ForecastFont">天气预报字体:</s:String>

    <s:String x:Key="Size">尺寸:</s:String>

    <s:String x:Key="Small">小</s:String>

    <s:String x:Key="Medium">中</s:String>

    <s:String x:Key="Big">大</s:String>

    <s:String x:Key="VeryBig">巨大</s:String>

    <s:String x:Key="Other">其他</s:String>

    <s:String x:Key="EnableGlass">启用Aero Glass</s:String>

    <s:String x:Key="EnableWallpaperChanging">启用壁纸更换</s:String>

    <s:String x:Key="WallpapersFolder">壁纸文件夹:</s:String>

    <s:String x:Key="EnableWeather">显示天气</s:String>

    <s:String x:Key="EnableWeatherAnimation">启用天气动画</s:String>

    <s:String x:Key="EnableTrayIcon">在任务栏通知区域显示图标</s:String>

    <s:String x:Key="RestartText">一些设置将会在重新启动后生效</s:String>

    <s:String x:Key="CopyrightLaw">这个程序是受著作权法和保护的,在开发者的许可下,可在互联网或任何其他位置上发布。</s:String>

</ResourceDictionary>

————————————————————————————————————————————————————————————

原文地址:https://www.cnblogs.com/oneisyou/p/2173940.html