找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 10837|回复: 19

[Hotspot] hotspots的 WEB页面,帐号密码错误信息,我修改了error.txt文件,还是显示英文

[复制链接]
发表于 2014-1-2 14:33:46 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
不知道这个什么情况,复制别人的也一样,我直接修改默认的,居然也无效,不知道哪里还需要设置?
routeros
 楼主| 发表于 2014-1-2 15:52:45 | 显示全部楼层
比如 密码错误 :invaild password
而不是显示 密码错误这样
routeros
回复

使用道具 举报

发表于 2014-1-2 19:29:39 | 显示全部楼层
我也没找到 应该不在ERROR.TXT中
routeros
回复

使用道具 举报

发表于 2014-1-2 20:55:02 | 显示全部楼层
本帖最后由 YAWPYNG 于 2014-1-2 21:10 编辑

有鸭~

hotspot 的  error.txt

error2.jpg
error.jpg
routeros
回复

使用道具 举报

发表于 2014-1-2 23:35:31 | 显示全部楼层
本帖最后由 qkhh 于 2014-1-3 00:12 编辑

西安大学那个模版可以显示中文出错信息,用本论坛某人的自适应模版式就怎么也搞不出中文显示。显示成乱码。原来把utf-8改成gb2312就能正常显示中文了。是编码问题。
routeros
回复

使用道具 举报

发表于 2014-1-3 01:31:46 | 显示全部楼层
开头用这个三句。我的成功了。
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml">
<META http-equiv=Content-Type content="text/html; charset=gb2312">

把UTF-8都改为GB2312就不会乱码了。
routeros
回复

使用道具 举报

发表于 2014-1-3 09:40:23 | 显示全部楼层
这个是可以修改的
routeros
回复

使用道具 举报

 楼主| 发表于 2014-1-3 09:51:55 | 显示全部楼层
YAWPYNG 发表于 2014-1-2 20:55
有鸭~

hotspot 的  error.txt

能说下你用的什么版本 还有共享下你的login.html页面吗?
routeros
回复

使用道具 举报

 楼主| 发表于 2014-1-3 10:22:57 | 显示全部楼层
而且我也不是乱码,我是英文,不是因为编码问题 导致的 乱码显示不了
routeros
回复

使用道具 举报

发表于 2014-1-3 16:12:59 | 显示全部楼层
把你模版发上来我看看。还有你用什么版本的ROS
routeros
回复

使用道具 举报

发表于 2014-1-3 17:17:56 | 显示全部楼层
本帖最后由 打酱油 于 2014-1-3 17:19 编辑

在我以前发布的模板里有。
楼上几位说的编码问题其实是模板文件头和文件本身编码问题。
文件是UTF-8,头部信息也要一样。如:
  1. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
复制代码
错误页面汉化内容:
  1. # This file contains error messages which are shown to user, when http/https
  2. # 此文件中包含的错误信息显示给用户,当HTTP / HTTPS
  3. # login is used.
  4. # 登录使用。
  5. # These messages can be changed to make user interface more friendly, including
  6. # 这些消息可以改变,使用户界面更加友好,包括
  7. # translations to different languages.
  8. # 翻译成不同的语言。
  9. #
  10. # Various variables can be used here as well. Most frequently used ones are:
  11. # 各个变量可以用在这里。最经常使用的是:
  12. #        $(error-orig)        - original error message from hotspot
  13. #        $(error-orig)        - 原来的错误消息热点
  14. #        $(ip)                - ip address of a client
  15. #        $(ip)                - 客户端的IP地址(IP)
  16. #        $(username)        - username of client trying to log in
  17. #        $(username)        - 客户端的用户名尝试登录

  18. # internal-error
  19. # 内部错误
  20. # It should never happen. If it will, error page will be shown
  21. # 这不应该发生。如果会,会显示错误页面
  22. # displaying this error message (error-orig will describe what has happened)
  23. # 显示此错误消息(错误的原稿将描述发生了什么事)

  24. internal-error = 内部错误 ($(error-orig))

  25. # config-error
  26. # 配置错误
  27. # Should never happen if hotspot is configured properly.
  28. # 不应该发生,如果热点的配置是否正确。

  29. config-error = 配置错误 ($(error-orig))

  30. # 不登录
  31. # 会发生,如果状态或注销页面由用户请求,
  32. # 这实际上没有登录

  33. not-logged-in = 你没有登录 (ip $(ip))

  34. # ippool空的
  35. # 从ip池#IP地址将被分配给用户,但有没有更多的
  36. # 在该池中的地址

  37. ippool-empty = 无法分配IP地址 - 从池中没有可用的地址

  38. # 关机中
  39. # 关机时被执行,不接受新客户

  40. shutting-down = 热点服务被关停

  41. # user-session-limit
  42. # 用户会话限制
  43. # If user profile has limit of shared-users, then this error will be shown
  44. # 如果用户配置文件共享用户的限制,那么这将显示错误
  45. # after reaching this limit
  46. # 达到此限制后

  47. user-session-limit = 没有更多的会话允许用户 $(username)

  48. # license-session-limit
  49. # 许可证会话限制
  50. # Depending on licence number of active hotspot clients is limited to
  51. # 根据牌照号码活跃的热点客户是有限的
  52. # one or another amount. If this limit is reached, following error is displayed.
  53. # 或其他金额。如果达到此限制时,会显示以下错误。

  54. license-session-limit = 达到会话限制 ($(error-orig))

  55. # wrong-mac-username
  56. # 错误的MAC用户名
  57. # If username looks like MAC address (12:34:56:78:9a:bc), but is not
  58. # 如果用户名看起来像MAC地址(12:34:56:78:9a:bc),而不是
  59. # a MAC address of this client, login is rejected
  60. # 这个客户端的MAC地址,登录被拒绝

  61. wrong-mac-username = 无效的用户名 ($(username)): 这个MAC地址是不是你

  62. # chap-missing
  63. # 第一章失踪
  64. # If http-chap login method is used, but hotspot program does not receive
  65. # 如果HTTP-CHAP登录方法被使用,但没有收到热点节目
  66. # back encrypted password, this error message is shown.
  67. # 加密的密码,这显示错误消息。
  68. # Possible reasons of failure:
  69. # 可能的故障原因:
  70. #        - JavaScript is not enabled in web browser;
  71. #        - 在Web浏览器中JavaScript没有启用;
  72. #        - login.html page is not valid;
  73. #        - login.html的页面是无效的;
  74. #        - challenge value has expired on server (more than 1h of inactivity);
  75. #        - 挑战值已过期的服务器上(1h以上闲置);
  76. #        - http-chap login method is recently removed;
  77. #        - HTTP-CHAP登录方法最近被移除;
  78. # If JavaScript is enabled and login.html page is valid,
  79. # 如果启用了JavaScript login.html的网页是有效的,
  80. # 然后重试登录通常解决这个问题。

  81. chap-missing = Web浏览器没有发送挑战响应(再试一次,启用JavaScript)

  82. # invalid-username
  83. # 无效的用户名
  84. # Most general case of invalid username or password. If RADIUS server
  85. # 最普遍的情况下无效的用户名或密码。如果RADIUS服务器
  86. # has sent an error string with Access-Reject message, then it will
  87. # 发送一个错误字符串访问拒绝的消息,那么它将
  88. # override this setting.
  89. # 覆盖此设置。

  90. invalid-username = 无效的用户名或密码

  91. # invalid-mac
  92. # 无效MAC
  93. # Local users (on hotspot server) can be bound to some MAC address. If login
  94. # 本地用户(热点的服务器上)可以绑定到一些MAC地址。如果登录
  95. # from different MAC is tried, this error message will be shown.
  96. # 尝试从不同的MAC,该错误信息将被显示。

  97. invalid-mac = 不允许从这个MAC地址登录用户 $(username)

  98. # uptime-limit, traffic-limit
  99. # 常运行时间的限制,流量限制
  100. # For local hotspot users in case if limits are reached
  101. # 本地热点用户的情况下,如果达到限制

  102. uptime-limit = 用户 $(username) 已达到正常运行时间限制
  103. traffic-limit = 用户 $(username) 已经达到流量限制

  104. # radius-timeout
  105. # 认证超时
  106. # User is authenticated by RADIUS server, but no response is received from it,
  107. # 用户通过RADIUS服务器认证,但它没有收到响应,
  108. # f将显示以下错误。

  109. radius-timeout = RADIUS服务器没有响应

  110. # auth-in-progress
  111. # 认证正在进行中
  112. # Authorization in progress. Client already has issued an authorization request
  113. # 授权进步。客户已经发出授权请求
  114. # 这是尚未完成。

  115. auth-in-progress = 已经授权,稍后重试

  116. # radius-reply
  117. # radius 回复
  118. # Radius server returned some custom error message
  119. # Radius服务器返回了一些自定义错误消息s

  120. radius-reply = $(error-orig)
复制代码


routeros
回复

使用道具 举报

 楼主| 发表于 2014-1-3 18:32:07 | 显示全部楼层
感觉不是error.txt的问题,好像我不管换什么HOTSPOTS 模板都一样,奇怪了,唉,
我用的5。22纯净版 iso文件,兼容性比较好的模板,试了论坛里能下载到的都试了
routeros
回复

使用道具 举报

发表于 2014-1-3 19:02:57 | 显示全部楼层
是errors.txt不是error.txt。你少了一个s

我给你一个以前用的西安大学的模版。你试一下,这个我这里5.20是可以正常显示中文出错信息的。
hotspot.rar (136.1 KB, 下载次数: 19)
routeros
回复

使用道具 举报

 楼主| 发表于 2014-1-3 20:19:22 | 显示全部楼层
qkhh 发表于 2014-1-3 19:02
是errors.txt不是error.txt。你少了一个s

我给你一个以前用的西安大学的模版。你试一下,这个我这里5.20 ...

真郁闷了 ,我的是纯净5。26版本
用你的模板 还是英文
QQ截图20140103201742.jpg


routeros
回复

使用道具 举报

发表于 2014-1-3 22:44:04 | 显示全部楼层
那就是版本问题。不信你降到5.20试试。可能是5.26改了一些信息,你要自己在errors.txt添加上去。
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-5-8 20:29 , Processed in 0.101301 second(s), 7 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表