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

"Properties" dialog of folder contents, locale issues #850

Closed
zopyx opened this issue Aug 28, 2015 · 4 comments
Closed

"Properties" dialog of folder contents, locale issues #850

zopyx opened this issue Aug 28, 2015 · 4 comments

Comments

@zopyx
Copy link
Member

zopyx commented Aug 28, 2015

See screenshots:

  • button placement wrong
  • UI language is set to German but the date dialog use YEAR-MONTH instead of MONTH-YEAR
  • time dropdown uses AM/PM (which is not used in Germany)

screenshot-dev1 veit-schiele de 7080 2015-08-28 16-00-04
screenshot-dev1 veit-schiele de 7080 2015-08-28 16-00-31

@zopyx zopyx added this to the Plone 5.0 milestone Aug 28, 2015
@polyester polyester modified the milestones: Plone 5.0.x, Plone 5.0 Sep 19, 2015
@jensens
Copy link
Member

jensens commented Jan 23, 2017

still a problem, only few parts solved

@erral
Copy link
Member

erral commented Jul 3, 2020

This one is really tricky. I traced it down to here: https://github.com/plone/plone.app.content/blob/master/plone/app/content/browser/contents/templates/properties.pt#L5

There both effective and expiration form values are rendered and both have the pat-pickadate class with which the widget is rendered. The first try has been to add the pickadate configuration there (data-pat-pickadate attribute) but that does not work for some reason.

I don't understand how the widget is rendered correctly but the pickadate options are not taken. I keep investigating.

@vincentfretin
Copy link
Member

You're on the right track. :-)
When I looked for the pickadate localization for the the add/edit form of a content type in #3134 (comment)
I saw indeed that we have data-pat-pickadate="{"date": {"selectYears": 200}, "time": {"interval": 5 } }" on the body tag and that for each date field data-pat-pickadate="{"date": {"format": "d mmmm yyyy", "selectYears": 200, "min": [1920, 1, 1], "monthsFull": ["janvier", "f\u00e9vrier", "mars", "avril", "mai", "juin", "juillet", "ao\u00fbt", "septembre", "octobre", "novembre", "d\u00e9cembre"], "weekdaysShort": ["dim.", "lun.", "mar.", "mer.", "jeu.", "ven.", "sam."], "weekdaysFull": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "firstDay": 0, "max": [2040, 1, 1], "placeholder": "Entrer la date\u2026", "monthsShort": ["janv.", "f\u00e9vr.", "mars", "avr.", "mai", "juin", "juil.", "ao\u00fbt", "sept.", "oct.", "nov.", "d\u00e9c."]}, "clear": "Effacer", "today": "Aujourd'hui", "time": {"placeholder": "Entrer l'heure\u2026", "format": "HH:i"}}"

@erral
Copy link
Member

erral commented Jul 6, 2020

Ah, my change was OK, formatting of JSON options was the problem. I got his one in plone/plone.app.content#206

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants