Emphasis on WAS. Optimus, the PC company, that I guess also distributed some software, was brought down by a tax lawsuit very long time ago, I don't even know how the lawsuit ended, all I remember is that it all started with a terrible tax bracket clause which somehow made it profitable to sell PCs to CzechR/Slovakia and buy them back. CDP just took Optimus's legal corpse to get onto stock market faster than normally allowed, this is a known stock market trick with a Wikipedia article or something.
In parallel, CDP started as Polish game import republisher. The distribution business was then spun off into a separate child company cdp.pl when Witcher and GOG took off and game distribution business tanked a little. CDP owned only ~8% cdp.pl last time I checked. The localization business has probably folded into CDPR writing team if it ever was a constant thing instead of a hire-and-forget business - the foreign businesses were primarily interested in games being thoroughly localized so that CDP could cut the prices without risk of Germans and such importing, now they switched to charging Poland roughly the same price as Germany instead. Cdp.pl has since opened a web store, including a key reselling service, and started carrying different products such as trading cards.
Pretty much this, except CDP.pl is no longer owned by CD Projekt. They sold off all of their shares. Porting Studio was an actual thing, although we shouldn't mention it. After all they're responsible for the PC port of Saints Row 2.
Oh, CDP (which legally is the heir to Optimus) is still fighting for compensation from the Polish government. It's taken years.