- Joined
- Feb 2, 2006
- Messages
- 1,630
Hey,
imagine you have multiple maps: A.w3x and B.w3x.
You take the "war3map.wts" file from A.w3x and translate it into German and call it "war3map_de.wts".
Now you have translated A.w3x into German but B.w3x is still not translated.
A.w3x and B.w3x share the same object data so maybe 90% of the strings are the same.
Therefore a tool might be useful which now takes your "war3map.wts" file from A.w3x and the "war3map_de.wts" file and extracts the "war3map.wts" file from B.w3x. Now the tool checks which strings were translated into German with which translations for A.w3x.
It basically builds a map with the untranslated strings as keys and the translations as values.
For every string from B.w3x which does also exist in A.w3x it uses the translation from "war3map_de.wts" and generates an output file. For every string which does not exist in A.w3x it simply uses the untranslated string from B.w3x.
This should reduce the strings a user has to translate if many strings are shared.
I have written such a tool using wc3lib called "wc3trans" which does only support using war3map.wts input files at the moment.. I guess it might be only interesting if you have a campaign or many maps with the same object data.
What do you think of the idea? For me it sounds like a simple merge by using three files instead of two. Would there be any easier way to achieve this? I just have this problem since I have many many custom objects shared by 5 maps.
The tool could also support an unlimited amount of input files instead of only one for a map like B.w3x.
Currently you have to call:
imagine you have multiple maps: A.w3x and B.w3x.
You take the "war3map.wts" file from A.w3x and translate it into German and call it "war3map_de.wts".
Now you have translated A.w3x into German but B.w3x is still not translated.
A.w3x and B.w3x share the same object data so maybe 90% of the strings are the same.
Therefore a tool might be useful which now takes your "war3map.wts" file from A.w3x and the "war3map_de.wts" file and extracts the "war3map.wts" file from B.w3x. Now the tool checks which strings were translated into German with which translations for A.w3x.
It basically builds a map with the untranslated strings as keys and the translations as values.
For every string from B.w3x which does also exist in A.w3x it uses the translation from "war3map_de.wts" and generates an output file. For every string which does not exist in A.w3x it simply uses the untranslated string from B.w3x.
This should reduce the strings a user has to translate if many strings are shared.
I have written such a tool using wc3lib called "wc3trans" which does only support using war3map.wts input files at the moment.. I guess it might be only interesting if you have a campaign or many maps with the same object data.
What do you think of the idea? For me it sounds like a simple merge by using three files instead of two. Would there be any easier way to achieve this? I just have this problem since I have many many custom objects shared by 5 maps.
The tool could also support an unlimited amount of input files instead of only one for a map like B.w3x.
Currently you have to call:
Code:
wc3trans war3map.wts war3map_de.wts war3map_of_B.wts out.wts