Skip to content

Commit 32d154a

Browse files
committed
PHP doc improvements
1 parent be7b2ee commit 32d154a

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

shortcode-item-updated.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
* @since 2.1.0
3333
*
3434
* @uses get_user_locale() Returns current locale from user setting or if not set from get_locale().
35+
*
36+
* @return bool TRUE if in German based context, FALSE otherwise.
3537
*/
3638
function ddw_siu_is_german() {
3739

@@ -60,17 +62,21 @@ function ddw_siu_is_german() {
6062
* Reusable and translateable strings.
6163
* Preset for German locales --> saves the use of a translation file ... :-)
6264
*
63-
* @param string $type Key of the string type to output.
65+
* @since 2.1.0
66+
*
67+
* @param string $type Key of the string type to output.
6468
* @return string $string Key of used language string.
6569
*/
6670
function ddw_siu_strings( $type ) {
6771

72+
/* translators: separator string between date and time values (a space plus @ symbol) */
6873
$sep = ddw_siu_is_german() ? ', um' : _x(
6974
' @',
7075
'Translators: separator string between date and time values (a space plus @ symbol)',
7176
'shortcode-item-updated'
7277
);
73-
78+
79+
/* translators: Text before date/ time */
7480
$label_before = ddw_siu_is_german() ? 'Zuletzt aktualisiert:' : _x(
7581
'Last updated:',
7682
'Translators: Text before date/ time',
@@ -149,10 +155,8 @@ function ddw_siu_item_updated( $atts ) {
149155
'show_date' => 'yes',
150156
'show_time' => 'no',
151157
'show_sep' => 'no',
152-
/* translators: separator string between date and time values (a space plus @ symbol) */
153158
'sep' => ddw_siu_strings( 'sep' ),
154159
'show_label' => 'no',
155-
/* translators: Text before date/ time */
156160
'label_before' => ddw_siu_strings( 'label_before' ),
157161
'label_after' => '',
158162
'class' => '',

0 commit comments

Comments
 (0)