How to mod strings that have a shared code between game modes?

For Return of Rome, the code 4203 equals to “Bronze Age” but in AOE2, it is “Castle Age”. Is it possible to mod strings that have a shared code but are based on a different file (as in key-value-strings-utf8.txt and key-value-pompeii-strings-utf8.txt)?