Skip to content
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

Locales for time #79

Open
Xeondile opened this issue Sep 18, 2017 · 2 comments
Open

Locales for time #79

Xeondile opened this issue Sep 18, 2017 · 2 comments
Assignees

Comments

@Xeondile
Copy link

Hi,
is it possible that you change the moment.min.js to moment-with-locals.min.js and add a new property to the screen settings like timezone (best) or the field_properties like time_format.
And pls dont use moment direct, make a instance an set the locale there, so it would be possible to have different screens with different locales.

At the moment we are not able to show german day or month names.

kind regards

@Xeondile
Copy link
Author

@mfrederickson is it possible to create a new property for this? So it would be possible to use locale time format. Because we need german day names.

my changes were:

cd /usr/share/concerto/vendor/bundle/ruby/2.1.0/gems/concerto_frontend-0.4.1/app/assets/javascripts/concerto_frontend/
nano application.js
change
//= require moment.min.js
to
//= require moment-with-locales.min.js

cd /usr/share/concerto/vendor/bundle/ruby/2.1.0/gems/concerto_frontend-0.4.1/app/assets/html/concerto_frontend/
nano concerto-frontend.html

find
if (this.timezone != "null")
add before
if (this.config["locale"]) {
moment.locale(this.config["locale"]);
}

@mfrederickson
Copy link
Contributor

@Xeondile yes.
(Related to concerto/concerto#1478.)

@mfrederickson mfrederickson self-assigned this Mar 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants