adhocracy-plus
adhocracy-plus copied to clipboard
Date still English when kyrgyz selected
behaviour: should look normal
device & browser: mobile firefox
Screen shots
- [x] 1. language menu moves down when opned and back up when cloed
- [x] 2. project ended too much padding
- [ ] 3. Month not translated, can we fix that?
- [x] 4. small screens project list btn group wrong
@phillimorland with regards to point 3., the same is true when the date is displayed within the project. There seem to be differences between Russian and Kyrgyz, for Russian apparently the month is translated, not for Kyrgyz though
Kyrgyz selected:
For 3: The calendar is also not translated into German and Dutch, so it is always English. We don't have to change that in my opinion.
@lthueer in this case we get the date from a django library, i'm not sure how we can update a default library, @fuzzylogic2000 @Rineee any ideas?
For the list display we use a weird template tag from mB: https://github.com/liqd/adhocracy-plus/blob/17e07f0305d9cb415bfdfc661ea65aea029009b2/apps/contrib/templatetags/contrib_tags.py#L44 If we use the normal django date format instead, it should be properly localised, I hope. Or did you mean the calendar in the dahboard?
Ahh awesome! and no I figured out the calendar is becasue we don't include the package path in our make po command, I might see how it is if I add it there as it's a bit uncool, not sure it'll be that simple but if it is then yey
Reopen this because of date issue
@lthueer @fredewe The date translation seems to be unviable, i've tried various overwrites none of which have worked. I'm not sure what else to try, I believe part of the issue will be solved when we next update django as Kyrgyz has been added to the most recent django release but we only update it when it's a stable version so might be a while, also the day name translations come from a seperate library through python so i'm not sure on that one. My only suggestion would be to change the format of dates we use to numerical or leave it and hope the libraries are updated, what should we do?
@phillimorland @fredewe If we're unsure about whether it will change correctly after the libraries are updated, I would go for the change to the numerical format then. Also the Russian dates (which are translated now) seem a bit odd to me. One thing we should keep in mind is that the dates in the timeline change as well, but I think that should be okay. What do you think @fredewe ?
@phillimorland @lthueer I would wait if it can be solved with the Django update. Otherwise i would change it to the numerical format in the next release.
ok will remove from this release milestone then
This issue is done already, except from my first comment and the django update for Kyrgyz date/time. If the wording is not changed in the next django update, please remove from milestone. Thanks!
@lthueer @phillimorland Did I get it right, that this issue is not about the styling anymore - that is done, right? This is now about the date that is not translated. I will change the title! If I got it wrong, change it back and comment!
okay after reading through this conversation, i think i got what the current status is. For the comment (async) date we are currently using a helper function on the frontend and not the django date. Actually i don't really know where to start to make use of the django date. I missed this conversation and started to search for a frontend solution (see below). What shall we do now? Try to use django date and see if Kyrgyz works? Or using the frontend solution below, which I would need to work on a little bit and for now it is only for comments.
I think this is more a dev discussion, so tagging @phillimorland @fuzzylogic2000 @Rineee
Frontend solution in a4 (currently only affecting dates of comments): https://github.com/liqd/adhocracy4/pull/993#issue-1147097410