Instead of pseudo code, perhaps I can describe usage patterns that I personally would like to see.
Open a source code project downloaded from the net:1. Open the project.
2. Select menu->languages->Italian, which immediately translates the source into the Italian language.
Compile the source project:1. Press menu->Build, the Italian code is "JIT"-translated into code known by the current compiler, such as GCC.
Release a source header set:1. Press menu->Export, the code is stripped off the Italian language and is left with only the compiler known language, such as C++.
Start using a third-party header dependent library, such as WxWidgets.1. Download and install the header files.
2. Download and install/or create your own/ translation module that translates all the the terms, such as wxComboBox into wxKombinataBoxxy (or what it is called in Italy?
Create your own source distribution, such as source code for CodeBlocks:1. Create the source.
2. Attach a set of already completed source translation modules.
3. Pack it up in a bundle. The users can themselves select which language is preferred.