-
-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: o.o.c.segmentation.SRX to load conf and save srx in more robust …
…way and remove warning message (#1159) * chore: update tests - reafactor SRXTest class - Add germany locale conf file built from OmegaT 5.4.0 as test data - refactor SRX class to help testing - Load resource bundle in specified test locale Signed-off-by: Hiroshi Miura <[email protected]> * feat: SRX.saveToSrx to use standard name - Harden the save method to robust for localized language name. - Even when MapRule has a localized language code, it detects language from a language pattern and write standard name. Signed-off-by: Hiroshi Miura <[email protected]> * fix: workaournd for an unknown language code - rulename for text in Germany was changed in v5.5 - when reading "segmentation.conf" generated before v5.4, migration is failed. - Add workaround to detect ancient rulename Signed-off-by: Hiroshi Miura <[email protected]> * Update src/org/omegat/core/segmentation/MapRule.java Use non localized message for debug level * refactor: adjust review feedbacks - Update LanguageCode.getLanguageCodeByName - add null check at first - move a migration heuristics code from MapRule - Update MapRule javadoc descriptions Signed-off-by: Hiroshi Miura <[email protected]> * revert unrelated changes Signed-off-by: Hiroshi Miura <[email protected]> * fix: remove a warning message in Bundle.properties Signed-off-by: Hiroshi Miura <[email protected]> --------- Signed-off-by: Hiroshi Miura <[email protected]>
- Loading branch information
Showing
8 changed files
with
28,539 additions
and
353 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.