Is there a way for the date to appear in the local language?
For example, Δευτερα, 10 Μαρτιος 2012 in greek or whatever language the phone's locale is.
are you talking about this mod or in general? It should use the phone's locale, but I haven't tried it cause I always have it in English and now I use AOKP M4 which is different and I haven't applied this mod.Is there a way for the date to appear in the local language?
For example, Δευτερα, 10 Μαρτιος 2012 in greek or whatever language the phone's locale is.
are you talking about this mod or in general? It should use the phone's locale, but I haven't tried it cause I always have it in English and now I use AOKP M4 which is different and I haven't applied this mod.
I am talking about this mod in particular. In the XML file nikosrs4 is editing, there is no mention of locale or specific format string for the date.
Anyway, mine isn't AOKP, so the strings mentioned in this mod do not match mine.
Yes that's true, there is no Locale in these xmls. But I found a Locale mention in a smali file in systemui but I don't have that knowledge to work it out unfortunately.
Sent from my Galaxy Nexus
const-string v25, "\uef02EEE \uef03"
EEEE Day of week FULL eg Sunday
EEE Day of week SHORT eg Sun
dd Day of the month 01-31
d Day of the month 1-31
MM Month 01 -12
M Month 1-12
MMM Month name SHORT eg Jan
MMMM Month name FULL eg January
yyyy Year 4 digit
yy Year 2 digit
kk Hour 24
h Hour 12
mm Minute
a AM / PM indicator
zzzz Time zone eg GMT+01:00
const-string v25, "\uef02[COLOR="Lime"]EEE d'/'M[/COLOR] \uef03"
<string name="status_bar_date_formatter">%[COLOR="Red"]2[/COLOR]$s</string>
<string name="status_bar_date_formatter">%[COLOR="Lime"]1[/COLOR]$s</string>
const-string v4, "EEEE"
const-string v4, "EEEE d MMMM yyyy"
very helpful, thank you !!On AOKP there are 2 ways.
This first part is only for AOKP roms!!
You can change the small "Day of the week" that is next to the clock via SystemUI.apk\smali\com\android\systemui\statusbar\policy\Clock.smali
find the lineand change the EEE to whatever you want.Code:const-string v25, "\uef02EEE \uef03"
Code:EEEE Day of week FULL eg Sunday EEE Day of week SHORT eg Sun dd Day of the month 01-31 d Day of the month 1-31 MM Month 01 -12 M Month 1-12 MMM Month name SHORT eg Jan MMMM Month name FULL eg January yyyy Year 4 digit yy Year 2 digit kk Hour 24 h Hour 12 mm Minute a AM / PM indicator zzzz Time zone eg GMT+01:00
Any extra characters you want displayed ( / , . -) need to be inside an 'apostrophe'.
So Sun 10/6 (Sun 10th June in UK format) would be
Code:const-string v25, "\uef02[COLOR="Lime"]EEE d'/'M[/COLOR] \uef03"
If your on a none AOKP rom (or if you want to change the expanded date view) you need to change 2 things.
First go to SystemUI.apk\res\values\strings.xml and change
toCode:<string name="status_bar_date_formatter">%[COLOR="Red"]2[/COLOR]$s</string>
Code:<string name="status_bar_date_formatter">%[COLOR="Lime"]1[/COLOR]$s</string>
then go to SystemUI.apk\smali\com\android\systemui\statusbar\policy\DateView.smali and find
and change the "EEEE" to whatever you want.Code:const-string v4, "EEEE"
So Sunday 10 June 2012 would be
Code:const-string v4, "EEEE d MMMM yyyy"
On AOKP there are 2 ways.
then go to SystemUI.apk\smali\com\android\systemui\statusbar\policy\DateView.smali and find
and change the "EEEE" to whatever you want.Code:const-string v4, "EEEE"
So Sunday 10 June 2012 would be
Code:const-string v4, "EEEE d MMMM yyyy"
yeah...i am mod succes, but miss day of the week (July/29/2012 miss Sunday)
how to full dateview? (eg: Sun/july/29/2012)
I need help, !
Thanks
http://img833.imageshack.us/img833/8645/shot000002m.png
file systemui link: http://www.mediafire.com/?wt7z8rs84wsyipy
I tried this mod on Samsung Galaxy Note 2 i317, it did not work.
In fact I decompiled & compiled the SystemUI.apk successfully. But somehow the changes are not reflecting.
Can someone help me?
you're using a custom rom, did you see if it has the option to have the date there? also, you have enabled the center clock, you have to disable it.@nikosrs4 I am trying to do this mod for a Nexus 4, on android 4.3, AOSP rom. What lines do I edit because I can't find the lines that you said I have to post above. I thought I'd try it anyway but it didn't turn out right. Here's the link for my status_bar.xml: https://www.dropbox.com/s/5663ax6wwpqx5fn/status_bar.xml
you're using a custom rom, did you see if it has the option to have the date there? also, you have enabled the center clock, you have to disable it.
Does your xml include the date or is the rom's default one? cause I can't find the date line.
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_toLeftOf="@id/clock" />
</LinearLayout>
[COLOR="Red"]<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_toLeftOf="@id/clock" />
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />[/COLOR]
</LinearLayout>
android:paddingLeft="4.0dip"
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="16.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_alignParentLeft="true" />
<ImageView android:id="@id/settings_button" android:paddingLeft="8.0dip" android:paddingRight="8.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_quicksettings" android:layout_toRightOf="@id/date" android:contentDescription="@string/accessibility_settings_button" />
android:layout_toRightOf="@id/date"
android:layout_alignParentLeft="true"
<style name="TextAppearance.StatusBar.Clock" parent="@android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@android:color/holo_blue_light</item>
</style>
<style name="TextAppearance.StatusBar.Date" parent="@android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0sp</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@android:color/holo_blue_light</item>
</style>
[COLOR="Red"]<item name="android:textSize">[B]14.0sp[/B]</item>[/COLOR]
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_toLeftOf="@id/clock" />
<com.android.systemui.statusbar.policy.[COLOR="Red"]CenterClock[/COLOR] android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/center_clock" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/center_clock_layout" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_toLeftOf="@id/center_clock" />
<com.android.systemui.statusbar.policy.CenterClock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/center_clock" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
android:layout_toLeftOf="@id/center_clock"
Yes that's true, there is no Locale in these xmls. But I found a Locale mention in a smali file in systemui but I don't have that knowledge to work it out unfortunately.
Sent from my Galaxy Nexus
const-string v25, "\uef02EEE \uef03"
EEEE Day of week FULL eg Sunday
EEE Day of week SHORT eg Sun
dd Day of the month 01-31
d Day of the month 1-31
MM Month 01 -12
M Month 1-12
MMM Month name SHORT eg Jan
MMMM Month name FULL eg January
yyyy Year 4 digit
yy Year 2 digit
kk Hour 24
h Hour 12
mm Minute
a AM / PM indicator
zzzz Time zone eg GMT+01:00
const-string v25, "\uef02[COLOR="Lime"]EEE d'/'M[/COLOR] \uef03"
<string name="status_bar_date_formatter">%[COLOR="Red"]2[/COLOR]$s</string>
<string name="status_bar_date_formatter">%[COLOR="Lime"]1[/COLOR]$s</string>
const-string v4, "EEEE"
const-string v4, "EEEE d MMMM yyyy"
very helpful, thank you !!On AOKP there are 2 ways.
This first part is only for AOKP roms!!
You can change the small "Day of the week" that is next to the clock via SystemUI.apk\smali\com\android\systemui\statusbar\policy\Clock.smali
find the lineand change the EEE to whatever you want.Code:const-string v25, "\uef02EEE \uef03"
Code:EEEE Day of week FULL eg Sunday EEE Day of week SHORT eg Sun dd Day of the month 01-31 d Day of the month 1-31 MM Month 01 -12 M Month 1-12 MMM Month name SHORT eg Jan MMMM Month name FULL eg January yyyy Year 4 digit yy Year 2 digit kk Hour 24 h Hour 12 mm Minute a AM / PM indicator zzzz Time zone eg GMT+01:00
Any extra characters you want displayed ( / , . -) need to be inside an 'apostrophe'.
So Sun 10/6 (Sun 10th June in UK format) would be
Code:const-string v25, "\uef02[COLOR="Lime"]EEE d'/'M[/COLOR] \uef03"
If your on a none AOKP rom (or if you want to change the expanded date view) you need to change 2 things.
First go to SystemUI.apk\res\values\strings.xml and change
toCode:<string name="status_bar_date_formatter">%[COLOR="Red"]2[/COLOR]$s</string>
Code:<string name="status_bar_date_formatter">%[COLOR="Lime"]1[/COLOR]$s</string>
then go to SystemUI.apk\smali\com\android\systemui\statusbar\policy\DateView.smali and find
and change the "EEEE" to whatever you want.Code:const-string v4, "EEEE"
So Sunday 10 June 2012 would be
Code:const-string v4, "EEEE d MMMM yyyy"