-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jimmy Dinis
committed
Jan 19, 2018
1 parent
0ea80af
commit 93b920c
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
.../java/com/mercury/platform/core/utils/interceptor/plain/FrenchIncLocalizationMatcher.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.mercury.platform.core.utils.interceptor.plain; | ||
|
||
import org.apache.commons.lang3.StringUtils; | ||
|
||
public class FrenchIncLocalizationMatcher extends LocalizationMatcher { | ||
@Override | ||
public boolean isSuitableFor(String message) { | ||
return message.contains("@De"); | ||
} | ||
|
||
@Override | ||
public boolean isIncoming() { | ||
return true; | ||
} | ||
|
||
@Override | ||
public String trimString(String message) { | ||
return StringUtils.substringAfter(message, "@De "); | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
.../java/com/mercury/platform/core/utils/interceptor/plain/FrenchOutLocalizationMatcher.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.mercury.platform.core.utils.interceptor.plain; | ||
|
||
import org.apache.commons.lang3.StringUtils; | ||
|
||
public class FrenchOutLocalizationMatcher extends LocalizationMatcher { | ||
@Override | ||
public boolean isSuitableFor(String message) { | ||
return message.contains("@À"); | ||
} | ||
|
||
@Override | ||
public boolean isIncoming() { | ||
return false; | ||
} | ||
|
||
@Override | ||
public String trimString(String message) { | ||
return StringUtils.substringAfter(message, "@À "); | ||
} | ||
} |