User Tools

Site Tools


ofp:file_formats:stringtable

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
ofp:file_formats:stringtable [2007/07/10 09:52] – external edit 127.0.0.1ofp:file_formats:stringtable [2024/07/31 12:55] (current) – links added. snakeman
Line 1: Line 1:
-====== Stringtable.csv File Format ======+====== OFP Stringtable.csv File Format ====== 
 + 
 +[[https://www.pmctactical.org/forum/viewforum.php?f=43|OFP Forum]], [[:ofp|OFP Home]], [[ofp:file_formats|OFP File Formats]], [[ofp:tools|OFP Tools]], [[ofp:missions|OFP Missions]], [[ofp:modeling|OFP 3D Modeling]], [[ofp:terrain|OFP Terrain]] 
 + 
 +**Operation Flashpoint (OFP)** aka ArmA: Cold War Assault (CWA)
  
 Stringtables are used to make internationalization easier for the game itself, as well as addons, missions, scripts, etc. Stringtables are used to make internationalization easier for the game itself, as well as addons, missions, scripts, etc.
Line 11: Line 15:
 The file stringtable.csv is an ASCII text file, and can be edited with any text editor. One //could// theoretically use a spreadsheet program (like Excel) to edit the file, but that would be serious overkill. //DO NOT// use a word processor (like MS-Word, or Write) to edit this file though, as it will corrupt it, unless you are very knowledgeable and careful. The file stringtable.csv is an ASCII text file, and can be edited with any text editor. One //could// theoretically use a spreadsheet program (like Excel) to edit the file, but that would be serious overkill. //DO NOT// use a word processor (like MS-Word, or Write) to edit this file though, as it will corrupt it, unless you are very knowledgeable and careful.
  
-Operation Flashpoint and VBS1 use ANSI encoding, codepage is defined by the font used. Armed Assault and VBS2 use [[http://en.wikipedia.org/wiki/UTF-8|UTF-8]] encoding, or you can provide the file in [[http://en.wikipedia.org/wiki/Unicode|Unicode]] as well, in which case it will be converted to UTF-8 when loading.+Operation Flashpoint and VBS1 use ANSI encoding, codepage is defined by the font used. Armed Assault and VBS2 use [[https://en.wikipedia.org/wiki/UTF-8|UTF-8]] encoding, or you can provide the file in [[https://en.wikipedia.org/wiki/Unicode|Unicode]] as well, in which case it will be converted to UTF-8 when loading.
  
 ====== Function ====== ====== Function ======
Line 49: Line 53:
 There is **no** French equivalent for STR_GOOD. Nor is there a Turkish equivalent for ONE. The engine will default to the 2nd column. It happens to be 'English', but need not be! There is **no** French equivalent for STR_GOOD. Nor is there a Turkish equivalent for ONE. The engine will default to the 2nd column. It happens to be 'English', but need not be!
  
-**The second column (the first 'string') is the default.** Because of that, it is important that //all// of the 2nd columns are filled! +**The second column (the first 'string') is the default.** Because of that, it is important that //all// of the 2nd columns are filled!
  
 The second column doesn't //have// to be English - it can be any language the author is most comfortable with, and for which he will be able to supply //all// the required definitions. In that case though, he will have to adjust the "LANGUAGE, ..." column definition at the top of the file. The second column doesn't //have// to be English - it can be any language the author is most comfortable with, and for which he will be able to supply //all// the required definitions. In that case though, he will have to adjust the "LANGUAGE, ..." column definition at the top of the file.
Line 109: Line 113:
 Any syntax the engine cannot understand is interpreted as a comment. Any syntax the engine cannot understand is interpreted as a comment.
  
-By convention the double-forward slash (double /) at the beginning of the line is used: +By convention the double-forward slash (double /) at the beginning of the line is used:
  
 <code> <code>
Line 161: Line 165:
 stringtable.csv stringtable.csv
  LANGUAGE,"Polish","English"  LANGUAGE,"Polish","English"
- +
  STR_R1,"POLSKI","ENGLISH"  STR_R1,"POLSKI","ENGLISH"
  STR_R2,"TUTAJ POLSKI ?O?NIERZ.","US AND A SOLDIER HERE."  STR_R2,"TUTAJ POLSKI ?O?NIERZ.","US AND A SOLDIER HERE."
- +
  STR_RadioMsg1,"POL\R1.WAV","ENG\R1.WAV"  STR_RadioMsg1,"POL\R1.WAV","ENG\R1.WAV"
  STR_RadioMsg2,"POL\R2.WAV","ENG\R2.WAV"  STR_RadioMsg2,"POL\R2.WAV","ENG\R2.WAV"
Line 177: Line 181:
  {  {
   sounds[] = {};   sounds[] = {};
- +
   class R1   class R1
   {   {
Line 200: Line 204:
  
   * There are instances where the radio name will revert to the default after a reload of the mission.   * There are instances where the radio name will revert to the default after a reload of the mission.
 +
ofp/file_formats/stringtable.1184061152.txt.gz · Last modified: 2007/07/10 09:52 by 127.0.0.1

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

All PMC web site download services are temporarily suspended until web site yearly fees have been recovered, want to download addons/mods? Then Support PMC.

If you are grateful for all the work PMC has done in the past 25 years, use Support PMC page.