mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #1746] CN language strings 界面设置为中文的解决办法 #1480
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#1480
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @RorinL on GitHub (Jun 28, 2024).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1746
前往我的站点
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专业版
汉化方法
WiFiManager一般安装在Arduino工具->首选项->项目文件夹地址下的 libraries 文件夹中fongdan,com
这样就可以完成汉化了
其他
或者会疑问,为什么我在我的代码文件不直接像下面这样?这样不就能改了吗,又不会修改源文件.
但是修改不了,我也不知道为什么
fongdan.com
如果你觉得我的解决办法好,同时你想将其添加到该开源项目,那么感谢你!同时请你能注明来源
前往我的站点
@tablatronix commented on GitHub (Jun 28, 2024):
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@RorinL commented on GitHub (Jun 28, 2024):
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 ?
#define WM_STRINGS_FILE "wm_strings_cn.h" only works when defined in build enviroment, wont work from .ino sketch
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>
@wzsx150 commented on GitHub (Sep 16, 2024):
我已经提交了中文翻译的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
@YourMao commented on GitHub (Sep 26, 2024):
可用
@444136347 commented on GitHub (Oct 1, 2024):
@RorinL 在页面上,会有点问题。
(1)点击选择对应WiFi,无法自动填入WiFi名称
(2)show Passpwd有点问题
@zofui commented on GitHub (Mar 24, 2025):
他里面的onlick的字符o输入错了,你删除他的改成使用英文onclick就好了