mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-06-05 21:49:48 +02:00
Transliteration: capitalized just the first letter in the replacement text
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
package nodomain.freeyourgadget.gadgetbridge.util;
|
package nodomain.freeyourgadget.gadgetbridge.util;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.text.WordUtils;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.text.Normalizer;
|
import java.text.Normalizer;
|
||||||
@@ -67,7 +69,7 @@ public class LanguageUtils {
|
|||||||
|
|
||||||
if (lowerChar != c)
|
if (lowerChar != c)
|
||||||
{
|
{
|
||||||
return replace.toUpperCase();
|
return WordUtils.capitalize(replace);
|
||||||
}
|
}
|
||||||
|
|
||||||
return replace;
|
return replace;
|
||||||
|
Reference in New Issue
Block a user