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
Questa faq è utile?
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
Grazie
We appreciate your feedback.
Click here to contact TP-Link technical support.
Questo sito utilizza i cookies per migliorare l'esperienza di navigazione, analizzare le attività online e offrire agli utenti una migliore user experience. Puoi disattivare o rifiutare il loro utilizzo in qualunque momento. Per maggiori informazioni consulta la nostra privacy policy .
Questo sito utilizza i cookies per migliorare l'esperienza di navigazione, analizzare le attività online e offrire agli utenti una migliore user experience. Puoi disattivare o rifiutare il loro utilizzo in qualunque momento. Per maggiori informazioni consulta la nostra privacy policy .
Basic Cookies
Questi cookies sono necessari per il corretto funzionamento del sito e non possono essere disattivati nel tuo sistema.
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
Analytics e Marketing Cookies
I cookies analitici ci permettono di analizzare le tue attività sul nostro sito allo scopo di migliorarne le funzionalità.
I marketing cookies possono essere impostati sul nostro sito dai nostri partner pubblicitari allo scopo di creare un profilo di tuo interesse e proporti contenuti pubblicitari rilevanti su altri siti.
Google Analytics & Google Tag Manager
_gid, _ga_<container-id>, _ga, _gat_gtag_<container-id>
Google Ads & DoubleClick
test_cookie, _gcl_au