mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 03:32:51 -06:00
Bugfix in the android app for Chinese which was causing the first character in the translation to disappear
This commit is contained in:
@@ -240,9 +240,9 @@ public class Translator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static String implode(String s) {
|
private static String implode(String s) {
|
||||||
return s.replaceAll("\\s","");
|
return s.replaceAll("(?<!^[%*+])\\s","");
|
||||||
}
|
}
|
||||||
|
|
||||||
private String translateWord(String input) {
|
private String translateWord(String input) {
|
||||||
|
|
||||||
String output = input.toUpperCase() ; // if all else fails, return the word itself in upper case ///in brackets
|
String output = input.toUpperCase() ; // if all else fails, return the word itself in upper case ///in brackets
|
||||||
|
|||||||
Reference in New Issue
Block a user