1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-26 10:35:50 +01:00

Merge pull request #541 from ivanovlev/master

Transliteration: capitalized just the first letter in the replacement
This commit is contained in:
Andreas Shimokawa 2017-02-05 22:59:03 +01:00 committed by GitHub
commit 030edef033

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;