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:
XoséandClaude Opus 5.5 committed 2026-10-19 19:11:24 +02:00
1 parent 478fc60527
commit 82acdb79f6
3 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.gingercal" package="org.gingercal"
android:versionCode="6" android:versionCode="7"
android:versionName="1.5"> android:versionName="1.6">
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="10" /> <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="10" />
+1 -1
View File
@@ -9,7 +9,7 @@ public class GingerApp extends Application {
super.onCreate(); super.onCreate();
L.gl = !"en".equals(getSharedPreferences("gingercal", 0).getString("lang", "gl")); L.gl = !"en".equals(getSharedPreferences("gingercal", 0).getString("lang", "gl"));
org.gingercal.net.CertVerifier.setRootStore(new org.gingercal.net.AssetRoots(this)); 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(); tlsTexts();
} }
+1 -1
View File
@@ -42,7 +42,7 @@ public final class L {
static final String[] GL_DAYS_SHORT = {"", "dom", "lun", "mar", "mér", "xov", "ven", "sáb"}; static final String[] GL_DAYS_SHORT = {"", "dom", "lun", "mar", "mér", "xov", "ven", "sáb"};
public static DateFormatSymbols symbols() { 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); DateFormatSymbols s = new DateFormatSymbols(Locale.US);
s.setMonths(GL_MONTHS); s.setMonths(GL_MONTHS);
s.setShortMonths(GL_MONTHS_SHORT); s.setShortMonths(GL_MONTHS_SHORT);