Calendar Lite 1.6: English month and weekday names in English mode
They came from the phone's locale, so a phone set to Spanish showed "Octubre 2026" with an English interface (and I18nTest failed on any machine not set to English). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
478fc60527
commit
82acdb79f6
3 files changed
+4
-4
No files matched your search
+2
-2
@@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="org.gingercal"
|
||||
android:versionCode="6"
|
||||
android:versionName="1.5">
|
||||
android:versionCode="7"
|
||||
android:versionName="1.6">
|
||||
|
||||
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="10" />
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ public class GingerApp extends Application {
|
||||
super.onCreate();
|
||||
L.gl = !"en".equals(getSharedPreferences("gingercal", 0).getString("lang", "gl"));
|
||||
org.gingercal.net.CertVerifier.setRootStore(new org.gingercal.net.AssetRoots(this));
|
||||
org.gingercal.net.Http.USER_AGENT = "CalendarLite/1.5 (Android 2.3)";
|
||||
org.gingercal.net.Http.USER_AGENT = "CalendarLite/1.6 (Android 2.3)";
|
||||
tlsTexts();
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public final class L {
|
||||
static final String[] GL_DAYS_SHORT = {"", "dom", "lun", "mar", "mér", "xov", "ven", "sáb"};
|
||||
|
||||
public static DateFormatSymbols symbols() {
|
||||
if (!gl) return new DateFormatSymbols(Locale.getDefault());
|
||||
if (!gl) return new DateFormatSymbols(Locale.US); // English names, whatever the phone's language
|
||||
DateFormatSymbols s = new DateFormatSymbols(Locale.US);
|
||||
s.setMonths(GL_MONTHS);
|
||||
s.setShortMonths(GL_MONTHS_SHORT);
|
||||
|
||||
Reference in new issue
Block a user