[PT Run][New Plugin] Time zone plugin (#11431)

* Initial commit - simple idea for a time zone plugin

* Translations, better search results, copy to clipboard, cleanup

* fix typo

* Add shortcut search and prepare JSON for later usage

* Fix typo

* Use timezone Data only from JSON

* Exclude json file from spell checker

* fix wrong dst

* Improved results (title, subtitle, tooltip) and fix namespace/class problem

* Always show full offset (-##:## and +##:##)

* Add and show timezone names (first pass)

* Fix typos

* fix build

* JSON: fix wrong minus sign and put extra country info the end

* Improved Subtitle for many matched countries and allow full offset search (+ and -)

* Allow more than one names for time zones and remove leftover

* Add military time zone names, and fix name result

* Only use one JSON entry for one time zone

* Use TimeSpan for offset, use build-in calculation for time in time zone

* add descriptions for JSON schema

* Fix typos

* Split out names in separate properties

* Add many time names, time zone names and shortcuts

* Add additional options and most code documentation

* Fix unreadable TimeSpans in JSON and rename helper class

* Fix not allowed commas in JSON file

* Cut to long time and time zone names in title

* Fix missing results for names and offsets

* Better result and show only one result when offset are identical (respect daylight saving time)

* Show generic name fot time zones without names

* Typo fixes

* Fix not working serach by shortcuts

* Fix german resx file -> english resx file

* Translate all names and countires

* Fix not working context menu

* Typo fixes, fix wrong shortcut in names, comments, few better variable names

* New symbols - thx to niels9001

* Search by shortcuts for time names

* update schema

* Add more time zone names and shortcuts (second pass), make spell checker happy

* Reduce matching checks

* Show shortcuts in tool-tips, avoid string converting

* Show only names that match the query

* Make all translatable (Part 1)

* Make all translatable (part 2 of 2)

* XML Doc

* Fix plugin name (type)

* Fix Typos

* Add TimeZone Plugint to WXS

* Add TimeZone plugin to sign pipeline

* Add Documentation

* Remove double spell entries

* Remove TODO leftovers

* Fix for results with no countries

* Fix typos

* fix typos

* Fix broken siolution after rebase

* Update target framework to make build happy

* fix wrong guid count in WXS

* fix wrong output folder (setup wasn’t found files)

* Address feedback from @jsoref - fix spell check

* typo fix - one leftover in expect.txt

* Switch to .NET6 and update dokumentation

* Address feedbacks, and fix search bug

* fix installer build error

* fix spellchecker

* Address feedback from @htcfreek

Co-authored-by: Sekan, Tobias <tobias.sekan@axp-consulting.de>
This commit is contained in:
Tobias Sekan
2022-02-23 14:26:48 +00:00
committed by GitHub
parent 8edfb8fe80
commit 84e142631e
23 changed files with 12484 additions and 11 deletions

View File

@@ -34,6 +34,8 @@ AFX
AGGREGATABLE
AHybrid
Aissue
Akrotiri
Aktobe
ALarger
alekhyareddy
alignas
@@ -50,6 +52,7 @@ Amicrosoft
AModifier
AMPROPERTY
AMPROPSETID
Andreanof
anges
angularsen
ansicolor
@@ -83,6 +86,7 @@ appx
appxmanifest
APSTUDIO
AQS
Aqtobe
arcosh
ARemapped
argb
@@ -98,6 +102,7 @@ ARRAYSIZE
arsinh
artanh
Artboard
Artsakh
asdf
AShortcut
ASingle
@@ -106,6 +111,7 @@ aspnet
ASSOCCHANGED
ASYNCWINDOWPLACEMENT
ASYNCWINDOWPOS
Atikokan
atl
atlbase
atlcom
@@ -115,6 +121,7 @@ atlstr
atop
Attribs
attrs
Atyrau
aumid
Aut
Authenticode
@@ -127,6 +134,7 @@ AUTOMATIONPROPERTIES
Autorun
AUTOUPDATE
AValid
Avanc
Awaitable
awakeness
awakeversion
@@ -136,13 +144,17 @@ AZCLI
azurecr
backend
backtracer
BADD
BAEC
BAF
bak
Bashkortostan
Bayan
bbwe
bck
Bcl
BEEE
Belarus
betadele
betsegaw
BFB
@@ -201,8 +213,11 @@ BUILDARCH
buildcommand
buildtools
buildtransitive
Burkina
Buryatia
BValue
bytearray
Caiguna
CALG
callbackptr
cameligo
@@ -235,12 +250,14 @@ ChaseKnowlden
chdir
CHILDACTIVATE
CHILDWINDOW
Choibalsan
chrdavis
chromaticities
chrono
Chrzan
chrzan
CHT
Chukotka
Chuuk
cielab
ciexyz
CImage
@@ -258,11 +275,11 @@ CLIENTEDGE
CLIENTPULL
clientside
CLIPCHILDREN
Clipperton
CLIPSIBLINGS
cljs
clrcall
Cls
cls
CLSCTX
clsid
Clusion
@@ -278,6 +295,7 @@ CMONITORS
cmp
cmyk
cnt
Cocklebiddy
coclass
codebase
codecvt
@@ -302,6 +320,7 @@ comhost
cominterop
commandline
commctrl
Comoros
companding
Compat
COMPOSITIONFULL
@@ -369,6 +388,7 @@ CTRLALTDEL
Ctrls
Ctx
CUI
Cunha
currentculture
CURSORINFO
cursorpos
@@ -388,6 +408,7 @@ czf
cziplib
Dac
dacl
Danmarkshavn
DARKPURPLE
DARKTEAL
DARKYELLOW
@@ -572,9 +593,11 @@ ESettings
esize
esrp
estdir
Eswatini
etcore
etl
etw
Eucla
EUQ
eventlog
everytime
@@ -609,6 +632,7 @@ fancyzones
FANCYZONESDRAWLAYOUTTEST
FANCYZONESEDITOR
Farbraum
Faroe
FARPROC
FBF
FCCD
@@ -638,13 +662,13 @@ findfast
findstr
Firefox
FIXEDFILEINFO
FIXME
FLASHZONES
FLASHZONESONQUICKSWITCH
flt
flyout
fmtlib
FOF
fof
FOFX
FOLDERID
folderpath
@@ -663,6 +687,7 @@ fstream
FTYPE
func
Functiondiscoverykeys
Futuna
fwlink
fwrite
fxcop
@@ -732,6 +757,7 @@ hdrop
HEB
Heiko
helptext
Heure
HEVC
hfile
hglobal
@@ -774,6 +800,7 @@ hotkeycontrol
hotkeys
hotlight
hotspot
Hovd
HPAINTBUFFER
HRAWINPUT
hread
@@ -1002,6 +1029,7 @@ ith
IThrottled
ithumbnail
ITrigger
Ittoqqortoormiit
IUI
IUnknown
IUri
@@ -1060,14 +1088,23 @@ keystokes
Keystool
Keytool
keyup
Khakassia
Khanty
Khovd
KILLFOCUS
Kitts
Knowlden
Knownfolders
kotlin
Krai
KSPROPERTY
ktm
kts
Kwango
Kwilu
Kybd
Kyrgyzstan
Kyzylorda
LAlt
Lambson
lamotile
@@ -1075,7 +1112,6 @@ langword
Lastdevice
LASTEXITCODE
Laute
laute
laviusmotileng
LAYOUTRTL
LBUTTON
@@ -1091,14 +1127,17 @@ Ldone
ldx
LEFTSCROLLBAR
lego
lemy
len
LEQ
LError
Lessthan
LEVELID
LExit
lgii
lhs
lhwnd
lia
LIBID
LIGHTORANGE
LIGHTTURQUOISE
@@ -1168,10 +1207,14 @@ lstrcmpi
lstrlen
LTRB
LTRREADING
Luhansk
LWA
lwin
LZero
lzw
Maarten
Macquarie
Magadan
MAINICON
Mainwindow
majortype
@@ -1182,13 +1225,18 @@ MAKEINTRESOURCEW
MAKELPARAM
makepri
malloc
Mangere
Mangystau
manifestdependency
Mansi
MAPPEDTOSAMEKEY
MAPTOSAMESHORTCUT
MAPVK
Markdig
Marquesas
martinchrzan
martinmoene
Mato
MAXIMIZEBOX
MAXSHORTCUTSIZE
maxversiontested
@@ -1197,6 +1245,8 @@ MBUTTON
MBUTTONDBLCLK
MBUTTONDOWN
MBUTTONUP
MCDT
MCST
MDICHILD
MDL
mdpreviewhandler
@@ -1236,6 +1286,7 @@ miniz
minlevel
Miracast
mirophone
Mishkeegogamang
mjpg
mkdir
mlcfg
@@ -1249,6 +1300,8 @@ MODECHANGE
moderncop
modernwpf
modulekey
Moldova
Mongala
MONITORINFO
MONITORINFOEX
MONITORINFOEXW
@@ -1302,23 +1355,27 @@ MULTIPLEUSE
Multiselect
multiset
multizone
Mundrabilla
mutex
mutexes
muxc
mvvm
myfile
MYICON
MYTZ
NAMECHANGE
nameof
namespace
namings
NATIVEFNTCTL
Navassa
NCACTIVATE
ncc
NCCALCSIZE
NCCREATE
NCDESTROY
NCHITTEST
ncipe
NCLBUTTONDBLCLK
NCLBUTTONDOWN
NCLBUTTONUP
@@ -1333,6 +1390,7 @@ NCRBUTTONDBLCLK
NCRBUTTONDOWN
NCRBUTTONUP
NDEBUG
Ndombe
ndp
NEEDDISPATCH
neq
@@ -1353,6 +1411,7 @@ newitem
newpath
newrow
Newtonsoft
nia
niels
nielslaute
NIF
@@ -1389,6 +1448,7 @@ NOREPEAT
NOREPOSITION
NORMALDISPLAY
NORMALUSER
Noronha
NOSEARCH
NOSENDCHANGING
NOSIZE
@@ -1417,6 +1477,8 @@ nullptr
numberbox
NUMLOCK
NUMPAD
Nunavut
Nusa
Nvidia
nwc
NWSE
@@ -1469,6 +1531,7 @@ Overridable
Oversampling
OWNDC
PACL
pagos
PAINTSTRUCT
PAIT
PALEBLUE
@@ -1491,7 +1554,6 @@ pch
PCIDLIST
PCWSTR
Pdb
pdb
pdbonly
pdfpreviewhandler
pdo
@@ -1522,6 +1584,7 @@ pinfo
pinvoke
Pipelinhttps
pipename
Pitcairn
PKBDLLHOOKSTRUCT
PKEY
plib
@@ -1533,6 +1596,7 @@ plugin
pluginsmodel
plx
PMSIHANDLE
Pohnpei
policheck
popd
popup
@@ -1579,6 +1643,7 @@ PREVIOUSVERSIONSINSTALLED
prevpane
prgms
pri
Primorsky
PRINTCLIENT
printf
prm
@@ -1633,6 +1698,7 @@ qit
QITAB
QITABENT
qps
quateur
Queryable
QUERYENDSESSION
QUERYOPEN
@@ -1746,6 +1812,7 @@ robmensching
robocopy
Roboto
roslyn
Rothera
royvou
Rpc
RRF
@@ -1873,6 +1940,7 @@ signtool
SINGLEKEY
singlekeyremapcontrol
singletones
Sint
sipolicy
SIZEBOX
sizeg
@@ -1918,6 +1986,7 @@ sqlite
SRCCOPY
Srch
sre
Srednekolymsk
sregex
SResize
SRGB
@@ -1987,7 +2056,9 @@ subkey
SUBLANG
subquery
substr
Sul
Superbar
Suri
sut
SVE
SVGIn
@@ -2024,7 +2095,7 @@ SYSTEMAPPS
SYSTEMTIME
systemverilog
Tadele
tadele
Tajikistan
talynone
TApp
TApplication
@@ -2051,6 +2122,7 @@ telem
tellg
Templated
templatenamespace
Tenggara
testcase
testhost
testprocess
@@ -2069,6 +2141,8 @@ timediff
Timeline
timeunion
timeutil
timezone
timezones
Titlecase
TLayout
tlb
@@ -2081,7 +2155,6 @@ Toolchain
toolkitcontrols
toolkitconverters
Toolset
toolset
toolstrip
toolwindow
TOPDOWNDIB
@@ -2095,14 +2168,18 @@ tracelogging
trackpad
traies
transcoded
Transnistria
transparrent
TRAYMOUSEMESSAGE
triaging
TRK
trl
trunc
Tshuapa
tspan
TStr
Tuva
TValue
TYMED
typedef
TYPEKEY
@@ -2118,6 +2195,7 @@ UAC
UAL
uap
udit
Udmurtia
Udp
uefi
UHash
@@ -2128,6 +2206,7 @@ uintptr
UIPI
UIs
UITo
Ulaanbaatar
ULARGE
ULLONG
ulong
@@ -2169,6 +2248,7 @@ Uptool
upvote
uri
URLs
Urville
Usb
USEDEFAULT
USEFILEATTRIBUTES
@@ -2184,6 +2264,7 @@ Utc
utf
utils
uuidof
Uvs
uwp
UWPUI
uxtheme
@@ -2402,6 +2483,7 @@ XResource
xsi
XStr
XVIRTUALSCREEN
Yamalia
YIncrement
yinwang
YOffset
@@ -2412,6 +2494,7 @@ YUYV
YVIRTUALSCREEN
YVU
YVYU
Zabaykalsky
ZEROINIT
ZIndex
zonable
@@ -2420,4 +2503,5 @@ ZONEHIGHLIGHTCOLOR
zoneset
ZONESETCHANGE
Zoneszonabletester
zzz
Zonev
zzz