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

Add translations + prevent error when adding field #13

Merged
merged 5 commits into from
May 15, 2017
Merged

Add translations + prevent error when adding field #13

merged 5 commits into from
May 15, 2017

Conversation

riasvdv
Copy link

@riasvdv riasvdv commented May 14, 2017

  • Adds translations for "Opening Time" and "Closing Time"
  • Prevents an error when adding the field to a Global Section

@@ -2,7 +2,7 @@
{% from "_includes/forms" import time %}
<tr>
<th>
{{ craft.i18n.getLocaleData().getWeekDayName(day) }}
{{ craft.i18n.getLocaleData().getWeekDayName(day) | ucfirst }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a place where this was necessary? Week day names should already be correctly capitalized.

Copy link
Author

@riasvdv riasvdv May 14, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess officially in Dutch they're not capitalised but I thought it looked nicer, didn't mean to add this to the PR!

@@ -57,6 +57,10 @@ public function getInputHtml($value, ElementInterface $element = null): string
*/
public function serializeValue($value, ElementInterface $element = null)
{
if (!$value) {
return null;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let’s move this to a separate PR. Each PR should be focussed on a single feature/enhancement/bugfix. Thanks!

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do! I'll update the PR tomorrow

@brandonkelly brandonkelly merged commit 84bbedb into craftcms:v2 May 15, 2017
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

Successfully merging this pull request may close these issues.

2 participants