Skip to content

Commit

Permalink
Maintenance: added hint for copy/pasting date and time formatted vari…
Browse files Browse the repository at this point in the history
…able
  • Loading branch information
ralf401 committed Apr 5, 2024
1 parent cc5cbf1 commit e129463
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 35 deletions.
74 changes: 39 additions & 35 deletions locale/admin-docs.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Zammad Admin Documentation pre-release\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-03-26 14:49+0100\n"
"POT-Creation-Date: 2024-04-05 15:08+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down Expand Up @@ -1008,7 +1008,7 @@ msgstr ""
#: ../system/integrations/cti/includes/outbound-calls.include.rst:18
#: ../system/objects.rst:162
#: ../system/objects.rst:244
#: ../system/variables.rst:105
#: ../system/variables.rst:109
msgid "Note"
msgstr ""

Expand Down Expand Up @@ -2823,7 +2823,7 @@ msgstr ""
#: ../channels/form.rst:219
#: ../manage/public-links.rst:47
#: ../system/subscription/billing.rst:53
#: ../system/variables.rst:104
#: ../system/variables.rst:108
msgid "Description"
msgstr ""

Expand Down Expand Up @@ -19765,134 +19765,138 @@ msgid "``#{dt(ticket.updated_at, \"%A, %Y-%m-%d %H:%M\", \"Europe/Berlin\")}``"
msgstr ""

#: ../system/variables.rst:94
msgid "If you want to use our example, make sure to paste the string above without formatting (``CTRL+Shift+v``), otherwise it won't work."
msgstr ""

#: ../system/variables.rst:98
msgid "**Example output:**"
msgstr ""

#: ../system/variables.rst:95
#: ../system/variables.rst:99
msgid "Monday, 2024-03-18 15:31"
msgstr ""

#: ../system/variables.rst:97
#: ../system/variables.rst:101
msgid "In the following table you can find some useful parameters:"
msgstr ""

#: ../system/variables.rst:103
#: ../system/variables.rst:107
msgid "Parameter"
msgstr ""

#: ../system/variables.rst:106
#: ../system/variables.rst:110
msgid "``%Y``"
msgstr ""

#: ../system/variables.rst:107
#: ../system/variables.rst:111
msgid "Year with 4 digits"
msgstr ""

#: ../system/variables.rst:108
#: ../system/variables.rst:112
msgid "Use ``%y`` for year with 2 digits"
msgstr ""

#: ../system/variables.rst:109
#: ../system/variables.rst:113
msgid "``%m``"
msgstr ""

#: ../system/variables.rst:110
#: ../system/variables.rst:114
msgid "Month of year (as number with zero-padding)"
msgstr ""

#: ../system/variables.rst:111
#: ../system/variables.rst:115
msgid "Use ``%-m`` for month without zero-padding"
msgstr ""

#: ../system/variables.rst:112
#: ../system/variables.rst:116
msgid "``%d``"
msgstr ""

#: ../system/variables.rst:113
#: ../system/variables.rst:117
msgid "Day of month (as number with zero-padding)"
msgstr ""

#: ../system/variables.rst:114
#: ../system/variables.rst:118
msgid "Use ``%e`` for day without zero-padding"
msgstr ""

#: ../system/variables.rst:115
#: ../system/variables.rst:119
msgid "``%H``"
msgstr ""

#: ../system/variables.rst:116
#: ../system/variables.rst:120
msgid "Hour of day in 24h notation with zero-padding"
msgstr ""

#: ../system/variables.rst:117
#: ../system/variables.rst:121
msgid "Use ``%k`` for hour without zero-padding"
msgstr ""

#: ../system/variables.rst:118
#: ../system/variables.rst:122
msgid "``%I``"
msgstr ""

#: ../system/variables.rst:119
#: ../system/variables.rst:123
msgid "Hour of day in 12h notation with zero-padding"
msgstr ""

#: ../system/variables.rst:120
#: ../system/variables.rst:124
msgid "Use ``%l`` for hour without zero-padding and ``%p`` / ``%P`` for meridian indicator"
msgstr ""

#: ../system/variables.rst:121
#: ../system/variables.rst:125
msgid "``%M``"
msgstr ""

#: ../system/variables.rst:122
#: ../system/variables.rst:126
msgid "Minute of hour"
msgstr ""

#: ../system/variables.rst:124
#: ../system/variables.rst:128
msgid "``%S``"
msgstr ""

#: ../system/variables.rst:125
#: ../system/variables.rst:129
msgid "Second of Minute"
msgstr ""

#: ../system/variables.rst:127
#: ../system/variables.rst:131
msgid "``%A``"
msgstr ""

#: ../system/variables.rst:128
#: ../system/variables.rst:132
msgid "Weekday name"
msgstr ""

#: ../system/variables.rst:129
#: ../system/variables.rst:133
msgid "Use ``%a`` for abbreviated name or ``%^A`` for uppercase name"
msgstr ""

#: ../system/variables.rst:130
#: ../system/variables.rst:134
msgid "``%B``"
msgstr ""

#: ../system/variables.rst:131
#: ../system/variables.rst:135
msgid "Month name"
msgstr ""

#: ../system/variables.rst:132
#: ../system/variables.rst:136
msgid "Use ``%b`` for abbreviated name"
msgstr ""

#: ../system/variables.rst:133
#: ../system/variables.rst:137
msgid "``%U``"
msgstr ""

#: ../system/variables.rst:134
#: ../system/variables.rst:138
msgid "Week number of current year"
msgstr ""

#: ../system/variables.rst:135
#: ../system/variables.rst:139
msgid "Use ``%W`` for a different calculation method"
msgstr ""

#: ../system/variables.rst:138
#: ../system/variables.rst:142
msgid "For those who want to go further: We support the known format directives for the Ruby built-in method ``strftime`` of the ``DateTime`` class. For more information, see `here <https://apidock.com/ruby/DateTime/strftime>`_."
msgstr ""

Expand Down
4 changes: 4 additions & 0 deletions system/variables.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ confusion.
| **Example variable:**
| ``#{dt(ticket.updated_at, "%A, %Y-%m-%d %H:%M", "Europe/Berlin")}``
.. hint:: If you want to use our example, make sure to paste the
string above without formatting (``CTRL+Shift+v``), otherwise it
won't work.

| **Example output:**
| Monday, 2024-03-18 15:31
Expand Down

0 comments on commit e129463

Please sign in to comment.