-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switched to using rails-timeago to make keeping on top of new versions o... #4281
Switched to using rails-timeago to make keeping on top of new versions o... #4281
Conversation
This currently breaks if the locale is set to something other than English:
|
@Ruxton any news about that? |
Sorry, just busy atm, i'll be able to look into it more in a week or so, if anyone else has time before that please feel free. |
After reading this thread http://stackoverflow.com/questions/11116372/replacing-time-ago-in-words-with-timeago-jquery-plugin-in-i18n-ized-rails-3-2-ap config/initializers/timeago.rb Rails::Timeago.default_options limit: proc { 20.days.ago }, nojs: true
Rails::Timeago.locales = [:en, :it, :ja] May that help? |
What's the status of this? Can't wait to see it merged! |
I'd love to see that merged before the next release. |
ping @Flaburgan @carolinagc @MrZyx |
@Ruxton nice! But a space is missing between the "a" and the "environ". |
@Flaburgan then the translations need to be fixed ;) |
Could you maybe squash the commits together please? |
…s of plugin easier
@MrZyx Is all squished together now, it makes me nervous squishing commits over such a long period. Make note: This doesn't use the translations from rails-timeago, instead I re-worked the old code in https://github.com/diaspora/diaspora/blob/develop/app/assets/javascripts/widgets/timeago.js that loaded the diaspora translations. By default timeago loads just english, you can then tell it to load "all other languages". The way we're handling it, Diaspora loads the translation in for english and whatever language the user has selected. This takes place in the timeago widget. This way it all stays working with our current way of managing translations (something I know next to nothing about). If this doesn't work for X,Y,Z language, look in |
…stead_of_vendored_js Switched to using rails-timeago to make keeping on top of new versions o...
Thank you! |
I merged that this morning on diaspora-fr.org and now we have a 500 when going to /notifications
|
Provides a solution to #4280
Didn't remove the current helper, as it makes setting the title a lot easier than manually setting it in the same style on every usage.