I follow a guide to add the Thai language to liferay. First step: add below servlet mapping to web.xml file
<servlet-mapping>
<servlet-name>I18n servlet</servlet-name>
<url-pattern>/th/*</url-pattern>
</servlet-mapping>
Second Step: add url pattern
<url-pattern>/th/c/portal/protected</url-pattern>
Third step: add "th" to portal-ext.properties file
locales=th
After above operations, I can see the Thai in the available language like this But when I press the left arrow, moved it to current language and press the save button. I got a "Please enter a valid locale." message. Is there anyone can help me to figure the problem? Thank you so much!!