Index: win_installer/Language-Pack-BUILD.txt =================================================================== diff -u -r4a032d0ca0721c3fc75498e20cea380f3e4c67ad -r33aa6fece7d43f29008417ea208556b226f2a988 --- win_installer/Language-Pack-BUILD.txt (.../Language-Pack-BUILD.txt) (revision 4a032d0ca0721c3fc75498e20cea380f3e4c67ad) +++ win_installer/Language-Pack-BUILD.txt (.../Language-Pack-BUILD.txt) (revision 33aa6fece7d43f29008417ea208556b226f2a988) @@ -4,21 +4,25 @@ - Builds to win_installer\build - Language files are lacked up on installation at: [LAMSDIR]\jboss-4.0.2\server\default\deploy\lams.ear\lams-dictionary.jar\backup - +- Flash language files from [LAMSDIR]\jboss-4.0.2\server\default\deploy\lams.ear\lams-central.war\flashxml + are backed up in the same location, they need to be returned to their directory to retrieve backup + STEPS TO BUILD -------------- -1) Make sure you have all the latest language files in your lams workspace, you +1) Build LAMS as usual. If using an alternate location for JBOSS_HOME, specify + at the top of src/language-pack.nsi +2) Make sure you have all the latest language files in your lams workspace, you can do this by simply synchronising and updating with the CVS repository -2) Put the date that you want for the install at this line (around line 35): +3) Put the date that you want for the install at this line (around line 35): !define VERSION "2006-20-12" (example) Make sure it is in the form "yyyy-mm-dd" -3) In updateLocales.sql, you must alter it to insert the required rows in the +4) In updateLocales.sql, you must alter it to insert the required rows in the database. Update updateLocales.sql, so that every language to be supported by the current version is in the list An example line is below: INSERT INTO locale_temp (language_iso_code, country_iso_code, description, direction, combined) VALUES ('pt','BR','Portugu�s (Brasil)','LTR','pt,BR'); -4) In updateLocales.sql change the date to the date of this language pack at the line +5) In updateLocales.sql change the date to the date of this language pack at the line UPDATE lams_configuration set DictionaryDateCreated("2006-12-20"); (example) -5) Compile language-pack.nsi -6) Run win_installer\build\LAMSLanguagePack-[DATE] \ No newline at end of file +6) Compile language-pack.nsi +7) Run win_installer\build\LAMSLanguagePack-[DATE] \ No newline at end of file Index: win_installer/src/language-pack.nsi =================================================================== diff -u -r4a032d0ca0721c3fc75498e20cea380f3e4c67ad -r33aa6fece7d43f29008417ea208556b226f2a988 --- win_installer/src/language-pack.nsi (.../language-pack.nsi) (revision 4a032d0ca0721c3fc75498e20cea380f3e4c67ad) +++ win_installer/src/language-pack.nsi (.../language-pack.nsi) (revision 33aa6fece7d43f29008417ea208556b226f2a988) @@ -236,9 +236,23 @@ ${if} $8 != 0 goto failedzip ${endif} + detailprint $8 + detailprint $9 + setoutpath "$LAMS_DIR\jboss-4.0.2\server\default\deploy\lams.ear\lams-central.war\" + Strcpy $4 '$INSTDIR\zip\7za.exe a -r -tzip "$BACKUP_DIR\lamsDictionaryBak-$OLD_VERSION.zip" "flashxml\*"' + nsExec::ExecToStack $4 + pop $8 + pop $9 + + #MessageBox MB_OK|MB_ICONSTOP "$9" + ${if} $8 != 0 + goto failedzip + ${endif} detailprint $8 detailprint $9 + + detailprint 'backupdir: $BACKUP_DIR' detailprint 'instdir: $INSTDIR' detailprint '$4' @@ -441,6 +455,8 @@ ; copy all the folders for llid Resource and Forum IntOp $R0 "$RF_FOLDERS_UBound" + 1 + ; copy all the folders for llid Forum and Scribe + IntOp $R0 "$FS_FOLDERS_UBound" + 1 ${do} ${RF_FOLDERS->Get} $RF_FOLDERS_UBound $R1 ${RF_FOLDERS->Delete} $RF_FOLDERS_UBound @@ -450,7 +466,7 @@ detailprint "Copying language files for resource and forum" file /a "..\..\lams_build\librarypackages\shareresourcesforum\language\*" ${loopuntil} $R0 == "0" - + FunctionEnd Index: win_installer/src/updateLocales.sql =================================================================== diff -u -r4a032d0ca0721c3fc75498e20cea380f3e4c67ad -r33aa6fece7d43f29008417ea208556b226f2a988 --- win_installer/src/updateLocales.sql (.../updateLocales.sql) (revision 4a032d0ca0721c3fc75498e20cea380f3e4c67ad) +++ win_installer/src/updateLocales.sql (.../updateLocales.sql) (revision 33aa6fece7d43f29008417ea208556b226f2a988) @@ -38,7 +38,6 @@ INSERT INTO locale_temp (language_iso_code, country_iso_code, description, direction, combined) VALUES ('vi','VN','Tiếng Việt','LTR','vi,VN'); INSERT INTO locale_temp (language_iso_code, country_iso_code, description, direction, combined) VALUES ('zh','TW','Chinese (Taiwan)','LTR','zh,TW'); - INSERT INTO lams_supported_locale (language_iso_code, country_iso_code, description, direction) (SELECT t.language_iso_code, t.country_iso_code, t.description, t.direction FROM locale_temp t WHERE t.combined NOT IN