Special:Preferences: Add example value as placeholder to timezone offset
authorVolker E <volker.e@wikimedia.org>
Tue, 27 Nov 2018 23:03:02 +0000 (15:03 -0800)
committerVolker E <volker.e@wikimedia.org>
Tue, 27 Nov 2018 23:03:02 +0000 (15:03 -0800)
Adding example value as placeholder message in timezone offset input.

Bug: T194524
Change-Id: I1fd6183233109355e49b7baecf44a8603c1efdb2

includes/preferences/DefaultPreferencesFactory.php
languages/i18n/en.json
languages/i18n/qqq.json

index 32a5404..769954d 100644 (file)
@@ -796,6 +796,7 @@ class DefaultPreferencesFactory implements PreferencesFactory {
                        'section' => 'rendering/timeoffset',
                        'id' => 'wpTimeCorrection',
                        'filter' => TimezoneFilter::class,
+                       'placeholder-message' => 'timezone-useoffset-placeholder',
                ];
        }
 
index 72e6716..310dad4 100644 (file)
        "timezonelegend": "Time zone:",
        "localtime": "Local time:",
        "timezoneuseserverdefault": "Use wiki default ($1)",
-       "timezoneuseoffset": "Other (specify offset)",
+       "timezoneuseoffset": "Other (specify offset below)",
+       "timezone-useoffset-placeholder": "Example values: \"-07:00\" or \"01:00\"",
        "servertime": "Server time:",
        "guesstimezone": "Fill in from browser",
        "timezoneregion-africa": "Africa",
index 182dc42..dde3643 100644 (file)
        "localtime": "Used as label in [[Special:Preferences#mw-prefsection-datetime|preferences]].",
        "timezoneuseserverdefault": "[[Special:Preferences]] > Date and time > Time zone\n\nThis option lets your time zone setting use the one that is used on the wiki (often UTC).\n\nParameters:\n* $1 - timezone name, or timezone offset (in \"%+03d:%02d\" format)",
        "timezoneuseoffset": "Used in \"Time zone\" listbox in [[Special:Preferences#mw-prefsection-datetime|preferences]], \"date and time\" tab.",
+       "timezone-useoffset-placeholder": "Used in \"Time zone\" text input field as placeholder in [[Special:Preferences#mw-prefsection-datetime|preferences]]",
        "servertime": "Used as label in [[Special:Preferences#mw-prefsection-datetime|preferences]].",
        "guesstimezone": "Option to fill in the timezone from the browser setting",
        "timezoneregion-africa": "Used in \"Time zone\" listbox in [[Special:Preferences#mw-prefsection-datetime|preferences]], \"date and time\" tab.\n{{Related|Timezoneregion}}",