And as I mentioned, this was _hopefully_ planned if this construction had taken place...
Reusing older pattern armaments is common in naval history as Weapons, especially wired riffles are difficult to produce and requireing a long time doing so. The pennalty for this is you will have to accept the older guns are slow and not equal to more recent ones. For a WW2 ship, the old 30.5 cm/50 (12") VSM Mark H guns were a 1910 design by Vickers and had a slow rate of fire even in their days. (About 1.5 RPM at best in most ideal conditions, in practice it was less than 1 RPM.) This indicates a ship unable to engage fast targets with these guns, as they lack the output of metal in a short time. This makes it not the weapon of choice for engaging cruisers and destroyers, but could perform the role of a deterrant against such fast ships, risking the change of a Lucky hit.
These guns were best suited for use in fixed fortifications and coastal batteries though, as they had good range and enough shellweight to make an opponent think twice to engage them. On a ship's hull it was a cumbersome and difficult to handle weapon, as the turrets it was mounted in were slow turning heavy steel things, making their usefullness less, when needing something to engage fast targets.
So the España class as such had little or no value as a front line ship in a WW2 scenario, but it still was Spain's most powerfully armed warship in service at the time. Spain on the other hand wanted more cruiser and destroyer type ships, and was to abbandon the battleship as a whole for now, considering it not necessary for its requirements. If insisting on maintaining one, or both these ships, if they theoretically had still been around at the time, they were most likely to have been rebuild as either gunnery training ships, or coast defense vessels, sicne they lacked a hull able of high seas services, due to their low freeboard and short hull design.