Open RorinL opened 3 months ago
Can you pull request this ?
#define WM_STRINGS_FILE "wm_strings_cn.h"
only works when defined in build enviroment, wont work from .ino sketch
I'm not really good with this pull request, so maybe I'll just leave it here😂.Thank you for your answer
---原始邮件--- 发件人: "Shawn @.> 发送时间: 2024年6月28日(周五) 晚上9:32 收件人: @.>; 抄送: @.**@.>; 主题: Re: [tzapu/WiFiManager] 界面设置为中文的解决办法 (Issue #1746)
Can you pull request this ?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
我已经提交了中文翻译的PR,欢迎大家一起优化中文翻译。 I have submitted a PR for the Chinese translation, and I welcome everyone to help optimize the Chinese translation. https://github.com/tzapu/WiFiManager/pull/1764
可用
@RorinL 在页面上,会有点问题。 (1)点击选择对应WiFi,无法自动填入WiFi名称 (2)show Passpwd有点问题
前往我的站点
WiFiManager.h AP配网在使用的时候需要改为显示中文,开始以为是使用 setCountry("CN") 来设置,但是怎么改都没变化,看了WiFiManager.cpp 和 WiFiManager.h 才知道原来这个函数作用是设置 WiFi AP 模块的国家代码,国家代码决定了模块可以使用的无线信道和频率范围(不同的国家和地区有不同的无线电频谱规定); 例如,在美国(国家代码为 "US"),WiFi 信道通常从 1 到 11,而在欧洲,信道可以从 1 到 13;也就是说setCountry函数是用于确保 WiFi 模块遵循当地的无线电频谱规定
个人感觉没什么用吧,哈哈;rorinliang076 at/ gmail不过我也设置了"CN".
本人开发环境
arduino ide2.3.2 WiFiManager版本2.0.17 windows 10专业版
汉化方法
这样就可以完成汉化了
其他
或者会疑问,为什么我在我的代码文件不直接像下面这样?这样不就能改了吗,又不会修改源文件.
但是修改不了,我也不知道为什么 fongdan.com
如果你觉得我的解决办法好,同时你想将其添加到该开源项目,那么感谢你!同时请你能注明来源
前往我的站点