diff --git a/src/main/scala/com/github/shadowsocks/preferences/SummaryPreference.scala b/src/main/scala/com/github/shadowsocks/preferences/SummaryPreference.scala index 4e5339a1..91f44752 100644 --- a/src/main/scala/com/github/shadowsocks/preferences/SummaryPreference.scala +++ b/src/main/scala/com/github/shadowsocks/preferences/SummaryPreference.scala @@ -1,5 +1,7 @@ package com.github.shadowsocks.preferences +import java.util.Locale + import android.preference.Preference /** @@ -15,5 +17,5 @@ trait SummaryPreference extends Preference { * * @return the summary with appropriate string substitution */ - override def getSummary = String.format(super.getSummary.toString, getSummaryValue) + override def getSummary = super.getSummary.toString.formatLocal(Locale.ENGLISH, getSummaryValue) }