#PB_Compiler_IDE_Language
Posted: Thu Jul 19, 2012 5:48 pm
It would be nice to have a "#PB_Compiler_IDE_Language" constant or simply "#PB_Compiler_Language" together with the corresponding constants "#PB_Language_English", "#PB_Language_French", "#PB_Language_Spanish" and "#PB_Language_German". This might come in handy when working in a multi lingual team or when posting code on the different PureBasic forums.
On one hand it is not absolutely necessary to have this constant, but on the other hand it should be really easy to be implanted, because there is already the environment variable pentant "PB_TOOL_Language" (which unfortunately can only be used in selfmade IDE tools and cannot be used with "CompilerIf").
At the moment, the first line in my (multi lingual) codes has to be one of the following lines (IMHO this scheme is quite intuitive):
Code: Select all
CompilerIf #PB_Compiler_Debugger = #False
CompilerIf #PB_Compiler_Language = #PB_Language_German
CompilerError "Bitte mit aktiviertem Debugger kompilieren"
CompilerElse
CompilerError "Please compile with activated debugger"
CompilerEndIf
CompilerEndIf
At the moment, the first line in my (multi lingual) codes has to be one of the following lines (IMHO this scheme is quite intuitive):
Code: Select all
#PB_Compiler_Language = 'en' ; english
#PB_Compiler_Language = 'fr' ; french
#PB_Compiler_Language = 'es' ; spanish
#PB_Compiler_Language = 'de' ; german