B4J Question DayOfWeek in build exe not in german language

V.Wolpers

Member
Hello from Germany,
I'm new here and this is my first question.
Attached a little program that displays the day of week in german language.
But the build .exe displays the english names.
What is my mistake?
 

Attachments

  • DayOfWeek.zip
    2 KB · Views: 115

Erel

B4X founder
Staff member
Licensed User
Longtime User
1. Prefer local variables over globals:
B4X:
Sub AppStart (Form1 As Form, Args() As String)
    Dim jo As JavaObject
    jo.InitializeStatic("java.util.Locale").RunMethod("setDefault", Array(jo.GetField("GERMAN")))
    MainForm = Form1
    MainForm.RootPane.LoadLayout("Layout1")
    MainForm.Show
    DatePicker1.DateFormat = "dd.MM.yyyy"
End Sub

2. Add this line:
B4X:
#PackagerProperty: IncludedModules = jdk.localedata
It will add the missing localization data. I will add it to the list of tips: https://www.b4x.com/android/forum/t...distribute-standalone-ui-apps.117880/#content
 
Upvote 0
Top