Multi-Language

Share your advanced PureBasic knowledge/code with the community.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Multi-Language

Post by ts-soft »

Thx for sharing :D

I haven't test it, but i have some hints for you:

For a includefile like this, you should add a prefix for all Global Variables, List, Maps and for all Procedures.
I think, i have used some of your names in many of my projects and this requires some changing in my
or in your code. A prefix would solve this in most cases.

Greetings - Thomas
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Fred
Administrator
Administrator
Posts: 18247
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Multi-Language

Post by Fred »

You could also check this post from freak: it is the solution used by the IDE and other PB tools and it proved to be small, very flexible and efficient: http://www.purebasic.fr/english/viewtop ... t=language
Nituvious
Addict
Addict
Posts: 1029
Joined: Sat Jul 11, 2009 4:57 am
Location: United States

Re: Multi-Language

Post by Nituvious »

I have a system similar to the OP's trick. However I read from text files inside of language folders that way users can translate to their own language if it's not already provided.
▓▓▓▓▓▒▒▒▒▒░░░░░
Post Reply