Poland as a nation did not exist in the years before the Great War - the First World War. Politically it was just a part of the huge Austrio-Hungarian Empire with fond memories of its past sovereignty and glory, its own traditions and language and its continuing yearning for independence. As the 'cockpit of Europe' that part of the world was constantly being attacked, occupied and dismembered. The Swedes had occupied it (and a relic of this is still seen in the famous icon of Our Lady of Czestochowa which bears a double scar on the cheek caused, it is said, by the slash of a Swedish sword. When sacking the famous monastery the actual icon became so heavy when loaded up with all the rest of the booty that the horses could not pull the cart. The officer in charge, in sheer frustration - and all expletives have been deleted from the traditional account - took his revenge on the picture and abandoned the load).
The Russians were constantly nibbling at the eastern frontiers and the Germans or their predecessors acquiring territories on the western side. In 1918 the peace treaties re-established this split state of Poland with all its deep-rooted divisions between east and west. The population had to 'opt' for a nationality so that those in the east could remain 'Russians' while those in the west could opt for remaining 'German'. Those who chose to be 'foreign' could remain in the country as more or less welcome aliens while if they opted to be Poles they were there by right. Ethnic cleansing is, thank God, a comparatively modern way of solving such problems.
My mother's father was a civil servant, a sort of court official, and to make sure he kept his job he had to opt to be Polish - even though his roots were pretty Germanic, as was his mother tongue. Her mother was even more German and of quite a noble and wealthy lineage (!) (the family boasted several carriages and a full stable of horses) but through her marriage became a Polish citizen without actually ever being able to master the intricacies of that language.
My father's family was more earthy. They were farmers, also in the west of Poland and had no problems about opting to be Poles - they were keen to do so and were (all of them) genuinely bi-lingual. My mother, on the other hand, had to polish up her Polish when she married. She became genuinely bi-lingual but betrayed her roots by never actually unconsciously, intuitively, counting under her breath in anything but German. It is a very good test as to which language one is actually most at home with: If you count your change in English then it is a sure sign that you actually think in that language and are most at ease in it.