Localizing Date, DateTime and Time
Reported by iain | August 10th, 2008 @ 12:04 AM
Instead of doing I18n.localize(time) it would be nice to alter Date(Time) to use its to_s function.
Proposed syntax:
t = Time.now
t.to_s(:long) # returnes localized version, if available
Comments and changes to this ticket
-
Sven Fuchs August 11th, 2008 @ 09:50 AM
Hi Iain,
I agree it would be nicer :)
But I also think we should do this in a plugin for now. It certainly makes a good candidate for the second iteration of our "I18nize-Rails- dev-cycle" and it certainly seems like a small thing to add, but there seem to be so many small things to understand I feel that we should get together working solutions for Date/Time/Whatever formats before we add another API.
IIRC there's been another ticket like this on Rails' Lighthouse which was rejected (or defered) with the same reasoning.
On 10.08.2008, at 00:04, Lighthouse wrote:
-
Kopi Shop August 18th, 2021 @ 07:46 AM
Ah, siapa saja pasti senang bepergian dengan berkunjung ke sesuatu tempat yang eksotik serta mempesona, berkawan dengan warga di tempat dan belajar budaya yang ada pasti psikis membuat lebih sehat. https://hobi-unik.com/ Namun sebagian orang terkadang malas melakukan traveling karena keluarkan bayaran besar. Tetapi jika Kalian cukup cermat, hobi travelling dapat lho bagikan hasil yang besar dan jadi usaha menggiurkan.
-
Mira June 19th, 2022 @ 10:36 AM
Thanks for sharing this! If you are looking for acupuncture clinic, please visit my website for more information.
-
Walaim Henry March 20th, 2023 @ 11:57 AM
When it comes to generators, one of the most important factors to consider is size. Choosing the right size generator can mean the difference between a successful project and one that fails due to insufficient power. So how can you choose the right size generator for your needs? https://generatorsdaily.com/best-oil-for-generator/
-
andre48 April 21st, 2024 @ 07:20 PM
At Tutorstiq reviews we are passionate about helping students achieve their academic goals. Our experienced tutors provide personalized support to help students overcome challenges and develop the skills they need to succeed.
-
yter dgd July 31st, 2024 @ 10:21 AM
Exploring dreams further can unveil even more profound benefits, particularly in the realms of personal resilience and cognitive development. Dreams often confront us with challenges or scenarios that require problem-solving or adaptation. For instance, nightmares or troubling dreams can offer a safe space to rehearse and manage fears or anxieties to https://dreamfuturist.com/dream-about-water/. By facing these issues within the dream state, individuals may find themselves better prepared to handle similar situations in their waking life. This practice of mental rehearsal can build resilience and improve coping strategies, fostering a greater sense of control and confidence.
-
jackmill1155 November 5th, 2024 @ 10:12 PM
VNROM Bypass APK is a tool designed to help users bypass FRP (Factory Reset Protection) on Android devices. This APK allows users to unlock their devices if they’re locked out after a factory reset, by bypassing the Google account verification process. VNROM Bypass APK is popular for its simplicity and effectiveness, providing an easy way to regain access to a device without needing to remember the Google account details. It’s especially useful for people who’ve purchased second-hand devices or forgotten their login credentials.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
Internationalization API for Ruby.
This library is used in Ruby on Rails but also suited for use in other contexts.