# Wrong "lang" attribute in GL.iNet web GUI

**URL:** <https://forum.gl-inet.com/t/wrong-lang-attribute-in-gl-inet-web-gui/3482>\
**Category:** Router\
**Created:** [May 4, 2018, 5:54pm UTC](https://forum.gl-inet.com/t/wrong-lang-attribute-in-gl-inet-web-gui/3482 "2018-05-04T17:54:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![emacski](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/e/919ad9/32.png) [@emacski](https://forum.gl-inet.com/u/emacski)\
**Post date:** [May 4, 2018, 5:54pm UTC](https://forum.gl-inet.com/t/wrong-lang-attribute-in-gl-inet-web-gui/3482/1 "2018-05-04T17:54:49Z")

</div>

Been having fun messing around with the GL-MT300N-V2. After upgrading to the latest firmware (2.27), I did notice that the “lang” attribute for the “html” retains the value “zh-cn” when the user selects the language to be “english”. Not a huge bug, but it might be confusing to some users as some browsers will ask or attempt to “translate” a page if the “lang” attribute is different from the user’s locale.

Steps to reproduce:

1. Log into the GL.iNet GUI with web browser
2. Set language to English (upper right button)
3. View page source to see “lang” attribute of “html” tag

---

<div class="post-metadata">

**Author:** ![alzhao](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/a/5f9b8f/32.png) [@alzhao](https://forum.gl-inet.com/u/alzhao)\
**Post date:** [May 5, 2018, 8:27am UTC](https://forum.gl-inet.com/t/wrong-lang-attribute-in-gl-inet-web-gui/3482/2 "2018-05-05T08:27:12Z")

</div>

Thanks for this.  
Actually the Lang in url should not matters. The language is actually changed in the backend.

We are working on firmware v3.0 which is a totally new UI

---

<div class="post-metadata">

**Author:** ![emacski](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/e/919ad9/32.png) [@emacski](https://forum.gl-inet.com/u/emacski)\
**Post date:** [May 5, 2018, 8:02pm UTC](https://forum.gl-inet.com/t/wrong-lang-attribute-in-gl-inet-web-gui/3482/3 "2018-05-05T20:02:28Z")

</div>

I think you misunderstand the bug. The wrong attribute value is used in the HTML, not the url.

Some browsers will take actions if the “lang” attribute doesn’t match the “lang” or local of the end user. So, while yes, I understand that actual language of the text is set on the backend, when it is set to “english” the “lang” attribute is incorrect and still reads “zh-cn” (see screenshot).

When using Chrome and browsing to the GL.iNet GUI chrome asks to translate the page from Chinese (even though you can see from the screenshot that the language of the text is actually in english). This might be confusing for non-Chinese users.

 ![screen%20shot](https://forum-static.gl-inet.com/original/1X/f7a2d850d28c4da027a4000d0190782ff56b6b3c.jpg)

---

<div class="post-metadata">

**Author:** ![alzhao](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/a/5f9b8f/32.png) [@alzhao](https://forum.gl-inet.com/u/alzhao)\
**Post date:** [May 10, 2018, 8:01am UTC](https://forum.gl-inet.com/t/wrong-lang-attribute-in-gl-inet-web-gui/3482/4 "2018-05-10T08:01:29Z")

</div>

I see. Thanks for reporting this bug. The whole UI will be changed to v3.0 so we will take care of this.

---

<div class="post-metadata">

**Author:** ![bruce](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/bruce/32/35649_2.png) [@bruce](https://forum.gl-inet.com/u/bruce)\
**Post date:** [October 29, 2025, 2:56am UTC](https://forum.gl-inet.com/t/wrong-lang-attribute-in-gl-inet-web-gui/3482/5 "2025-10-29T02:56:09Z")

</div>


