1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-25 03:16:51 +01:00

Transliteration: capitalized just the first letter in the replacement text

This commit is contained in:
ivanovlev 2017-02-04 09:53:07 +03:00
parent cc917e97a6
commit fd61dc602f

View File

@ -1,5 +1,7 @@
package nodomain.freeyourgadget.gadgetbridge.util;
import org.apache.commons.lang3.text.WordUtils;
import java.util.HashMap;
import java.util.Map;
import java.text.Normalizer;
@ -67,7 +69,7 @@ public class LanguageUtils {
if (lowerChar != c)
{
return replace.toUpperCase();
return WordUtils.capitalize(replace);
}
return replace;