How to Change the Language of the Printed Voucher Code

EAP225-Wall , EAP225-Outdoor , EAP245 , EAP320 , EAP110 , EAP220 , EAP330 , EAP120 , EAP235-Wall , EAP115 , EAP225 , EAP110-Outdoor , Omada Software Controller , EAP115-Wall
Recent updates may have expanded access to feature(s) discussed in this FAQ. Visit your product's support page, select the correct hardware version for your device, and check either the Datasheet or the firmware section for the latest improvements added to your product. Please note that product availability varies by region, and certain models may not be available in your region.
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
- Run the EAP Controller first. This is a mandatory step.
- 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.
- 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);
}
- 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)";
}
}
- 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.
Looking for More
Is this faq useful?
Your feedback helps improve this site.
What’s your concern with this article?
- Dissatisfied with product
- Too Complicated
- Confusing Title
- Does not apply to me
- Too Vague
- Other
Thank you
We appreciate your feedback.
Click here to contact TP-Link technical support.

TP-Link Community
Still need help? Search for answers, ask questions, and get help from TP-Link experts and other users around the world.
This website uses cookies to improve website navigation, analyze online activities and have the best possible user experience on our website. You can object to the use of cookies at any time. You can find more information in our privacy policy . Don’t show again
This website uses cookies to improve website navigation, analyze online activities and have the best possible user experience on our website. You can object to the use of cookies at any time. You can find more information in our privacy policy . Don’t show again
Basic Cookies
These cookies are necessary for the website to function and cannot be deactivated in your systems.
TP-Link
SESSION, JSESSIONID, accepted_local_switcher, tp_privacy_base, tp_privacy_marketing, tp_smb-select-product_scence, tp_smb-select-product_scenceSimple, tp_smb-select-product_userChoice, tp_smb-select-product_userChoiceSimple, tp_smb-select-product_userInfo, tp_smb-select-product_userInfoSimple, tp_top-banner, tp_popup-bottom, tp_popup-center, tp_popup-right-middle, tp_popup-right-bottom, tp_productCategoryType
Youtube
id, VISITOR_INFO1_LIVE, LOGIN_INFO, SIDCC, SAPISID, APISID, SSID, SID, YSC, __Secure-1PSID, __Secure-1PAPISID, __Secure-1PSIDCC, __Secure-3PSID, __Secure-3PAPISID, __Secure-3PSIDCC, 1P_JAR, AEC, NID, OTZ
Zendesk
OptanonConsent, __cf_bm, __cfruid, _cfuvid, _help_center_session, _pendo___sg__.<container-id>, _pendo_meta.<container-id>, _pendo_visitorId.<container-id>, _zendesk_authenticated, _zendesk_cookie, _zendesk_session, _zendesk_shared_session, ajs_anonymous_id, cf_clearance
Analysis and Marketing Cookies
Analysis cookies enable us to analyze your activities on our website in order to improve and adapt the functionality of our website.
The marketing cookies can be set through our website by our advertising partners in order to create a profile of your interests and to show you relevant advertisements on other websites.
Google Analytics & Google Tag Manager
_gid, _ga_<container-id>, _ga, _gat_gtag_<container-id>
Google Ads & DoubleClick
test_cookie, _gcl_au