- Joined
- Mar 7, 2011
- Messages
- 124
I'm trying to define a table that represents localization/translation of text content from my game across multiple languages. My current idea is that I can quickly get basic translations off of Google's translate service and then build up a table from that. The table will have the following columns:
ID,en,af,...,zu
And each row will represent a single piece of text, translated across the above languages, identified within my map by the ID column
I can translate the table into a representation that is compatible with a wc3 string, but then maximum length for wc strings will make this approach much harder than im looking for
So my next thought is placing a new file (ideally just a CSV representing the table) directly in the map MPQ and then somehow interacting with that via JASS. Are there any options along this path? Are there any other paths that might work better?
I'm really trying to avoid maintaining the localized content defined as a JASS representation (ie JASS hashtable) - it will be much easier to maintain a table of localized content externally and parse that into a JASS Table on map load
ID,en,af,...,zu
And each row will represent a single piece of text, translated across the above languages, identified within my map by the ID column
I can translate the table into a representation that is compatible with a wc3 string, but then maximum length for wc strings will make this approach much harder than im looking for
So my next thought is placing a new file (ideally just a CSV representing the table) directly in the map MPQ and then somehow interacting with that via JASS. Are there any options along this path? Are there any other paths that might work better?
I'm really trying to avoid maintaining the localized content defined as a JASS representation (ie JASS hashtable) - it will be much easier to maintain a table of localized content externally and parse that into a JASS Table on map load
Last edited: