How to Change the Language of the Printed Voucher Code

ฐานความรู้
คู่มือการกำหนดค่า
06-27-2022
6524

By default, the EAP/Omada Controller supports English language only. So when you print the Voucher code and hand it over to the customer, it’s in English as shown in the picture below.

Some customers may want to localize the language or customize the information on the Voucher Code. This document will introduce an easy and practical way to achieve this.

Steps

  1. Run the EAP Controller first. This is a mandatory step.
  2. Find the installation path of the EAP Controller, by default, it’s “C:\Program Files (x86)\TP-LINK”. And then go further to the path “C:\Program Files (x86)\TP-LINK\EAP Controller\work\com.tp-link.eap.web\webapp\WEB-INF\jsp\hotspot” and find the print.jsp file. This file defines the print operation of the Voucher Code, and we can change the info on the Voucher code by modifying this file.
  3. Please open the print.jsp file with the notebook and then find the getStatus(voucher) function:

function getStatus(voucher) {

return "Valid for " + transferTime2(voucher.duration * 60);

}

Here we modify the function as below

function getStatus(voucher) {

return "VALID FOR" + transferTime2(voucher.duration * 60);

}

  1. Then find the getType(voucher) function:

function getType(voucher) {

if (voucher.type == 0) {

return "with single use";

} else {

return "with " + voucher.quota + " online user(s)";

}

}

Here we modify the function as below

function getType(voucher) {

if (voucher.type == 0) {

return "WITH SINGLE USE";

} else {

return "WITH " + voucher.quota + " ONLINE USER(S)";

}

}

  1. Save the changes and then print the Voucher codes, the effects are shown as follow:

Note: all the changes will be restored to the default after you restart the EAP/Omada Controller.

โปรดให้คะแนนเอกสารนี้

เอกสารที่เกี่ยวข้อง

How to Configure Voucher Authentication on Omada Controller

คู่มือการกำหนดค่า
07-20-2022
9945

How to install Omada Software Controller on Linux system

คู่มือการกำหนดค่า
Controller
07-11-2024
13971

How to Change the Default Ports for EAP Controller

คำถามที่พบบ่อย
08-09-2024
8852

Troubleshooting: How to Fix Omada Controller Exit Code Errors on Startup

คู่มือการแก้ไขปัญหา
03-18-2025
7382

How to change the IP address of the smart and managed switches using the old GUI and CLI

คู่มือการกำหนดค่า
06-28-2022
7752