Skip to content

Commit

Permalink
Merge pull request #1 from MijazzChan/v1.0-bugfix
Browse files Browse the repository at this point in the history
[bugfix] Fixed invalid preference name resulting in user config file parsing failure
  • Loading branch information
MijazzChan authored Aug 15, 2022
2 parents 21021b3 + 5636c28 commit 78976a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@

## Add

+ Continuous Integration with GitHub Actions.

## Changed

+ User-Agents List updated, with the most common user agents.

## Fixed

+ None
+ Method `getPreferenceName()` in machine translator plugin will fail the process of reading/parsing `omegat.prefs`
when staring OmegaT, further, OmegaT will ignore said user config, post-fix it with `$(date).bak`, and create a
default and blank user config file. Fixed by alter return param in `getPreferenceName()` to a String with no space
breaking.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public String getName() {

@Override
protected String getPreferenceName() {
return "Google Machine Translator OmegaT Plugin";
return "allow_google_mt_plugin";
}

@Override
Expand Down

0 comments on commit 78976a1

Please sign in to comment.