|
32 | 32 | * @since 2.1.0 |
33 | 33 | * |
34 | 34 | * @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. |
35 | 37 | */ |
36 | 38 | function ddw_siu_is_german() { |
37 | 39 |
|
@@ -60,17 +62,21 @@ function ddw_siu_is_german() { |
60 | 62 | * Reusable and translateable strings. |
61 | 63 | * Preset for German locales --> saves the use of a translation file ... :-) |
62 | 64 | * |
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. |
64 | 68 | * @return string $string Key of used language string. |
65 | 69 | */ |
66 | 70 | function ddw_siu_strings( $type ) { |
67 | 71 |
|
| 72 | + /* translators: separator string between date and time values (a space plus @ symbol) */ |
68 | 73 | $sep = ddw_siu_is_german() ? ', um' : _x( |
69 | 74 | ' @', |
70 | 75 | 'Translators: separator string between date and time values (a space plus @ symbol)', |
71 | 76 | 'shortcode-item-updated' |
72 | 77 | ); |
73 | | - |
| 78 | + |
| 79 | + /* translators: Text before date/ time */ |
74 | 80 | $label_before = ddw_siu_is_german() ? 'Zuletzt aktualisiert:' : _x( |
75 | 81 | 'Last updated:', |
76 | 82 | 'Translators: Text before date/ time', |
@@ -149,10 +155,8 @@ function ddw_siu_item_updated( $atts ) { |
149 | 155 | 'show_date' => 'yes', |
150 | 156 | 'show_time' => 'no', |
151 | 157 | 'show_sep' => 'no', |
152 | | - /* translators: separator string between date and time values (a space plus @ symbol) */ |
153 | 158 | 'sep' => ddw_siu_strings( 'sep' ), |
154 | 159 | 'show_label' => 'no', |
155 | | - /* translators: Text before date/ time */ |
156 | 160 | 'label_before' => ddw_siu_strings( 'label_before' ), |
157 | 161 | 'label_after' => '', |
158 | 162 | 'class' => '', |
|
0 commit comments