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

#483 Added Now button to bring timestamp to current date and time. #515

Merged
merged 2 commits into from May 9, 2022

Conversation

MattWood21
Copy link
Contributor

@MattWood21 MattWood21 commented May 8, 2022

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • UI change (please include screenshot!)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Internationalization and localization
  • Other (please describe):

What is the current behavior?

Introduces request from #483 which asks to have a Now button. The button could also be labeled "Reset", but the term "Now" is more explicit about what the button intends to do (set all times to the current date and time).

Issue Number: #483

What is the new behavior?

  • Adds a "Now" button in the Timestamp converter
  • Clicking the "Now" button sets time to current date and time and resets the display window times
  • Behaves similar time values are first generated when the page is initiated
  • Added Now strings to all translation files in English only for now, to be translated later

Other information

image

Quality check

Before creating this PR, have you:

  • Followed the code style guideline as described in CONTRIBUTING.md
  • Verified that the change work in Release build configuration
  • Checked all unit tests pass

Copy link
Collaborator

@veler veler left a comment

Choose a reason for hiding this comment

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

Hello,
Thanks for this contribution. It looks good overall. Can you please change the text in the .resw that have been translated through a tool like Google Translate to keep it in English (Now) ? We can then let translators, who are better than Google Translate, translate the language correctly.

Thank you :)

@@ -168,6 +168,9 @@
<data name="Megabytes" xml:space="preserve">
<value>MO</value>
</data>
<data name="Now" xml:space="preserve">
<value>À présent</value>
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd suggest to keep the word in English for language that you may not be fluent with, and let people who are comfortable with the language translating it. Here is an example: while À présent is correct literal translation of Now, in this context, it's incorrect and is confusing. The correct one would be Maintenant.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in cbf2329.

I wasn't sure if English or Google Translate was preferred in contributions. Now I know. 👍

@veler veler linked an issue May 8, 2022 that may be closed by this pull request
@MattWood21 MattWood21 requested a review from veler May 9, 2022 00:11
Copy link
Collaborator

@veler veler left a comment

Choose a reason for hiding this comment

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

it looks great now! :D Thank you very much for this !

@veler veler merged commit b11f267 into DevToys-app:main May 9, 2022
@veler veler added this to the v1.0.7.0 milestone May 15, 2022
veler pushed a commit that referenced this pull request Mar 31, 2023
)

* #483 Added Now button to bring timestamp to current date and time.

* Removing Google Translate translations, switch all to English for translation by native speakers.
@MattWood21 MattWood21 deleted the timestamp-converter-now-button branch November 14, 2023 04:25
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.

Unix timestamp converter
2 participants