Are DateFormat and DateUtils supposed to be returning localized strings (1.5 emulator)?

by adamphillips12 » Thu, 14 May 2009 01:25:03 GMT


Sponsored Links
 Hi,

I'm currently testing localization on the 1.5 emulator (with sdk
target of 3), I'm using the Custom Locale app to apply different
locales and also I've tried setting it from Settings also. This seems
to update what loads from the res/ folder, so I'm sure this is being
applied.

However I'm trying to use the two classes
android.text.format.DateFormat and android.text.format.DateUtils,
neither seem to be returning localized strings and neither have any
option of setting the locale manually. The documentation suggests that
they should be returning localized strings. Especially
DateUtils.getMonthString() which explicitly states it. Am I missing
something on how to use these classes? I can see in the
android.R.string plenty of related string items fully translated.

If they are meant to be returning localized strings, could someone
please post an example?

Thanks :)

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Please update - T Shirt Foursquare (paging Firman Setiawan)

Sudah beberapa minggu tidak ada kabar, mohon info status terakhir dan kira2
kapan selesai. Thanks.

-- 
"Indonesian Android Community [id-android]" 

2. 1billionhungry Project - Pls sign the petition if you car

Moderator, mohon diloloskan posting ini. Thanks.
-----

Dear Friends,

FAO (Food and Agriculture Organization) sebuah lembaga dibawah Perserikat
Bangsa-Bangsa merilis kampanye global yaitu meminta masyarakat untuk
menandatangani petisi untuk memberantas kelaparan, yg berbunyi sebagai
berikut:

WE WHO SUPPORT THIS PETITION FIND IT UNACCEPTABLE THAT CLOSE TO ONE
BILLION PEOPLE ARE CHRONICALLY HUNGRY. THROUGH THE UNITED NATIONS, WE CALL
UPON GOVERNMENTS TO MAKE THE ELIMINATION OF HUNGER THEIR TOP PRIORITY UNTIL
THAT GOAL IS REACHEDBahasa Indonesia:

ami yang menandatangani petisi ini turut prihatin bahwa hampir satu milyar
orang menderita kelaparan kronis. Melalui Perserikatan Bangsa Bangsa, kami
meminta pemerintah untuk memerangi kelaparan dan menjadikannya prioritas
utama hingga tujuan pemberantasan kelaparan tercapai.
Secara Global FAO menargetkan untuk mengumpulkan 1 Juta tandatangan pada
pertengahan October 2010.
Kami mohon bantuan kepada rekan-rekan untuk membantu kami mengumpulkan
tandatangan sebanyak banyaknya melalui tandatangan online dengan mengklik
www.1billionhungry.org/andrewyo/ <http://www.1billionhungry.org/ciedie/>
1.000.000.000 Live in Chronic Hunger and I'm Mad as Hell!!

Terima kasih atas bantuan dan kerjasamanya,
andrew





__,_._,___

-- 
"Indonesian Android Community [id-android]" 

3. Miring dadakan

4. Camera preview - strange on Samsung Galaxy S (2.1update1)

5. 2 menu baru, welcome...

6. 4001b180 exception

7. Re[4]: Oot: peserta miring 3 july disurabaya