My current main project has a number of text-strings (object-names, character-thoughts, lore-entries, etc.). These are, for the most part, implemented as Python-files containing string-variables, with the variable-names then being used to fetch a given piece of text. In addition, there are a few that are simply text-files. (The latter generally being longer pieces of text, like in-game documents, I think.)
With the thought that the game–or a later one built using similar elements–might one day perhaps be localised, I want it to be fairly straightforward to add text-localisations. Thus, my build-process excludes the directory containing these files from the usual process applied to Python modules, and instead just has it copied into the build’s folder. One can thus just drop a text-localisation in beside the current English text and have it be detected by the game.
However, this means that all of the game’s text is available for easy reading.
Hence my question: how might I hide this text from a cursory examination?
The approach needn’t be rigorous. If players want to get at the text, they likely eventually will, I daresay. I just want the text to not be available at a glance.
Does anyone have any suggestions?
[edit]
Simply packing my language-files into a multifile is one thought–but I don’t know whether it’s feasible to import a module from a multifile. I suppose that I could just load the files as text, and then “eval” all of it…