Skip to content
Permalink
Browse files

Continue tuning segmentation logic

  • Loading branch information...
LadyCailin committed Aug 5, 2019
1 parent 3852734 commit a530bb0eb2453189395534dc76ca1f009e01587e
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/main/java/com/laytonsmith/tools/docgen/sitedeploy/TranslationMaster.java
@@ -281,7 +281,10 @@ public TranslationMemory generateNewTranslation(String locale, String englishKey
* segments, and being their own segment.
*/
private static final String[] UNIQUE_SEGMENTS = new String[] {
"%s([[%s|Examples...]])",
"%s([[%s|Examples...]])",
"%sFind a bug in this page? %sEdit this page yourself, then submit a pull request.%s%s",
"%sFind a bug in this page? %sEdit this page yourself, then submit a pull request.%s"
+ " (Note this page is automatically generated from the documentation in the source code.)%s",
};


@@ -340,7 +343,7 @@ public TranslationMemory generateNewTranslation(String locale, String englishKey
.filter((string) -> {
if(string.isEmpty()) {
return false;
} else if(string.matches("(?:%s)+")) {
} else if(string.matches("(?:\\s*%s\\s*)+")) {
return false;
} else if(string.matches("\\s*")) {
return false;

0 comments on commit a530bb0

Please sign in to comment.
You can’t perform that action at this time.