Author Topic: New Language!  (Read 1995 times)

prova17

  • Newbie
  • *
  • Posts: 4
    • View Profile
New Language!
« on: April 27, 2010, 07:13:42 AM »
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
 ???

trevor

  • Administrator
  • Hero Member
  • *****
  • Posts: 495
    • View Profile
    • KonaKart
Re: New Language!
« Reply #1 on: April 27, 2010, 07:26:34 AM »
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.