--- src/org/omegat/gui/HelpFrame.java.orig 2006-12-29 20:58:36.000000000 +0900
+++ src/org/omegat/gui/HelpFrame.java 2006-12-30 22:05:33.000000000 +0900
@@ -209,8 +209,7 @@
StringBuffer templateText = new StringBuffer(1024);
try {
BufferedReader templateFile = new BufferedReader(new FileReader(
- StaticUtils.installDir() + File.separator
- + OConsts.HELP_DIR + File.separator
+ OConsts.HELP_DIR + File.separator
+ OConsts.HELP_LANG_INDEX));
for (String line = templateFile.readLine();
line != null;
@@ -228,8 +227,7 @@
// Get available translations and their versions
StringBuffer translations = new StringBuffer(1024);
translations.append("
\n");
- File docDir = new File(
- StaticUtils.installDir() + File.separator + OConsts.HELP_DIR);
+ File docDir = new File(OConsts.HELP_DIR);
File[] subDirs = docDir.listFiles();
Arrays.sort(subDirs); // sort on alphabetical order
for (int i = 0; i < subDirs.length; i++) {
@@ -430,8 +428,7 @@
{
try {
return "file:" // NOI18N
- + (new File( StaticUtils.installDir()
- + File.separator + OConsts.HELP_DIR + File.separator
+ + (new File(OConsts.HELP_DIR + File.separator
+ m_language + File.separator + file)).getCanonicalPath();
}
catch (IOException exception) {
@@ -477,8 +474,7 @@
private static String getDocVersion(String locale) {
// Check if there's a manual for the specified locale
// (Assume yes if the index file is there)
- File index = new File(StaticUtils.installDir()
- + File.separator + OConsts.HELP_DIR
+ File index = new File(OConsts.HELP_DIR
+ File.separator + locale
+ File.separator + OConsts.HELP_HOME);
if (!index.exists())
@@ -486,8 +482,7 @@
// Check if the doc dir for the specified locale
// contains a file containing the doc version
- File v = new File(StaticUtils.installDir()
- + File.separator + OConsts.HELP_DIR
+ File v = new File(OConsts.HELP_DIR
+ File.separator + locale
+ File.separator + "version.properties");
if (!v.exists())