From 293a1391ded10fb7e76b42648a40d62406c6998f Mon Sep 17 00:00:00 2001 From: Volker E Date: Tue, 27 Nov 2018 15:03:02 -0800 Subject: [PATCH] Special:Preferences: Add example value as placeholder to timezone offset Adding example value as placeholder message in timezone offset input. Bug: T194524 Change-Id: I1fd6183233109355e49b7baecf44a8603c1efdb2 --- includes/preferences/DefaultPreferencesFactory.php | 1 + languages/i18n/en.json | 3 ++- languages/i18n/qqq.json | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/preferences/DefaultPreferencesFactory.php b/includes/preferences/DefaultPreferencesFactory.php index 32a54044fa..769954d9b9 100644 --- a/includes/preferences/DefaultPreferencesFactory.php +++ b/includes/preferences/DefaultPreferencesFactory.php @@ -796,6 +796,7 @@ class DefaultPreferencesFactory implements PreferencesFactory { 'section' => 'rendering/timeoffset', 'id' => 'wpTimeCorrection', 'filter' => TimezoneFilter::class, + 'placeholder-message' => 'timezone-useoffset-placeholder', ]; } diff --git a/languages/i18n/en.json b/languages/i18n/en.json index 72e67163e6..310dad49dd 100644 --- a/languages/i18n/en.json +++ b/languages/i18n/en.json @@ -1078,7 +1078,8 @@ "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", diff --git a/languages/i18n/qqq.json b/languages/i18n/qqq.json index 182dc42fee..dde3643a20 100644 --- a/languages/i18n/qqq.json +++ b/languages/i18n/qqq.json @@ -1282,6 +1282,7 @@ "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}}", -- 2.20.1