Hours icon indicating copy to clipboard operation
Hours copied to clipboard

Allow basic localization

Open tmaier opened this issue 10 years ago • 5 comments

It's not necessarily about having the UI in another language. Frankly, everyone* understands it.

It's more about things like the date input field. "m/d/y" is not very common besides one continent

  • well, not really everyone

tmaier avatar Sep 05 '14 10:09 tmaier

There are locale files! And the locale is set in the application controller:

def set_locale
  I18n.locale = http_accept_language.compatible_language_from(I18n.available_locales)
end

Also we use date formats in the locale

date:
  formats:
    default: '%m/%d/%Y'
    with_weekday: '%a %m/%d/%y'

time:
  formats:
    default: '%a, %b %-d, %Y at %r'
    date: '%b %-d, %Y'
    short: '%B %d'

Marthyn avatar Sep 05 '14 10:09 Marthyn

I think we should put a language dropdown in edit profile though so you can set it yourself

Marthyn avatar Sep 05 '14 10:09 Marthyn

@Marthyn I don't think we're actually using the date formats for the date entry field, but that would be a nice addition!

jurre avatar Sep 05 '14 12:09 jurre

oooh haha then we def should yeah :)

Marthyn avatar Sep 05 '14 13:09 Marthyn

"m/d/y" is not very common besides one continent

agreed, this is very annoying for people outside the US :octocat:

dkhgh avatar Dec 16 '14 14:12 dkhgh