KonaKart Community Forum

General Category => KonaKart WebSite & Demonstrations => Topic started by: prova17 on April 27, 2010, 01:13:42 pm

Title: New Language!
Post by: prova17 on April 27, 2010, 01:13:42 pm
Hello everybody,
I have a question.
It is the first time that I use Konakart, it's great.
I have a problem to insert a new language.
I need to develop a new language, italian language.
I edited LanguagesTile.jsp I have the following path http://localhost:8080/konakart/SetLocale_it_IT.do.

When I click to the italian flag I have an error:

HTTP Status 404 - Invalid path was requested
type Status report
message Invalid path was requested
description The requested resource (Invalid path was requested) is not available.
Apache Tomcat/6.0.18

Where can I manage SetLocale_it_IT.do?

Thanks a lot, I'm sorry but it is my first view about Konakart
???
Title: Re: New Language!
Post by: trevor on April 27, 2010, 01:26:34 pm
You need to add it to the struts-config.xml file similar to the other languages that are already there:

      <action path="/SetLocale_it_IT" type="com.konakart.actions.SetLocaleAction" parameter="it_IT">
         <forward name="SetLocale" path="/CatalogMainPage.do"/>
      </action>

This will forward you to the SetLocaleAction class.