Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0004793Openbravo ERPE. Translationpublic2008-09-02 14:172010-02-09 08:35
elopio 
alostale 
normalminoralways
closedout of date 
20Ubuntu 8.04
2.40 
2.40 
Core
No
0004793: src-loc/lg_CT sub-folder is not created after compiling with a new language
When I try to change the application language I get a null pointer exception because src-loc/lg_CT folder is not created. See http://pastebin.com/f7c2af6cc [^] for full details.
Menu is not loaded, and the error is shown on right panel.

(http://wiki.openbravo.com/wiki/Acceptance_Testing#Administration_master_data [^] - 3.Import/Export Translation)

    * Login as Openbravo/openbravo
    * Go to General setup->Application->Language
    * Click Search button and fill Italian% as name. Click OK
    * Select Italian (Italy). Mark System language
    * Click Verify language
    * Go to General setup->Import/Export translations
    * Select Entity: System
    * Select Italian(Italy) language
    * Click on Export button
After that, download the translated XML files (in ZIP format) for your country. Unzip and copy them to attachment/lang/lg_CT folder.
    * Login as Openbravo/openbravo
    * Go to General setup->Import/Export translations
    * Select Italian(Italy) language
    * Click on Import button
    * Compile the application and restart tomcat
Login as Openbravo/openbravo, change on Role Information the language and verify main menĂº and other windows are shown in correct language.

I've tried with Italian (attached) and Spanish (http://downloads.sourceforge.net/openbravo/Spanish_Spain_Translation_R2.40.zip [^]) translations.
No tags attached.
zip Italian_Italy_Translation.zip (564,590) 2008-09-02 14:17
https://issues.openbravo.com/file_download.php?file_id=240&type=bug
Issue History
2008-09-02 14:17elopioNew Issue
2008-09-02 14:17elopioAssigned To => cromero
2008-09-02 14:17elopiosf_bug_id0 => 2088837
2008-09-02 14:17elopioFile Added: Italian_Italy_Translation.zip
2008-09-02 17:59elopioNote Added: 0008853
2008-09-02 18:02elopioStatusnew => closed
2008-09-02 18:02elopioNote Added: 0008854
2008-09-02 18:02elopioResolutionopen => no change required
2008-09-02 18:03cromeroNote Added: 0008855
2008-09-02 18:04cromeroStatusclosed => new
2008-09-02 18:04cromeroResolutionno change required => open
2008-09-02 18:04cromeroStatusnew => scheduled
2008-09-02 18:05cromeroTarget Version => 2.50
2008-09-05 16:39psarobeSeveritymajor => minor
2008-11-10 13:04cromeroAssigned Tocromero => rafaroda
2008-11-13 22:01rafarodaAssigned Torafaroda => pheenan
2009-01-29 15:50pheenanNote Added: 0012825
2009-01-29 15:50pheenanTarget Version2.50 => 2.40
2009-03-24 10:50AinhoaPagolaAssigned Topheenan => alostale
2010-02-09 08:35alostaleStatusscheduled => closed
2010-02-09 08:35alostaleResolutionopen => out of date

Notes
(0008853)
elopio   
2008-09-02 17:59   
I deleted the context files that were on Tomcat's webapps folder and compiled again. This time language directories were created and I can change the application language.
(0008854)
elopio   
2008-09-02 18:02   
The solution was to delete context folder, as the wiki says http://wiki.openbravo.com/wiki/Translating_Openbravo#Installing_a_new_translation [^]
(0008855)
cromero   
2008-09-02 18:03   
The solution will be to modify the deploy task in order to delete the context before copying the new war file:

  <target name="deploy" depends="init">
    <delete dir="${jakarta.context}"/>
    <copy file="${base.lib}/${context.name}.war" todir="${jakarta.base}/webapps"/>
  </target>
(0012825)
pheenan   
2009-01-29 15:50   
Updating target version to 2.40. In 2.50 the language directories are no longer created or used under src-loc.