Language Selection: Difference between revisions
Lou Montana (talk | contribs) m (Text replacement - "\[\[[Cc]ategory:[ _]?Operation Flashpoint:[ _]?(.*)(\|.*)?\]\]" to "{{GameCategory|ofp|$1}}") |
Lou Montana (talk | contribs) m (Text replacement - " (={2,})([^ = ])(.*)([^ = ])(={2,}) * " to " $1 $2$3$4 $5 ") |
||
Line 1: | Line 1: | ||
{{GameCategory|ofp| Editing}} | {{GameCategory|ofp| Editing}} | ||
==Caveat== | == Caveat == | ||
This article applies '''only''' to windows systems that use the so-called WinAnsi codepage 1252. For Slavic and Cyrillic languages, your mileage will vary. | This article applies '''only''' to windows systems that use the so-called WinAnsi codepage 1252. For Slavic and Cyrillic languages, your mileage will vary. | ||
==Intro== | == Intro == | ||
[[Image:GotyPreferences.jpg|thumb|4400px|left|Language Selection]] Five languages: English, French, Italian, Spanish and German are available on the International version of OFP. It doesn't actually ''matter'' how many 'official' languages exist, there will '''never''' be enough of them! | [[Image:GotyPreferences.jpg|thumb|4400px|left|Language Selection]] Five languages: English, French, Italian, Spanish and German are available on the International version of OFP. It doesn't actually ''matter'' how many 'official' languages exist, there will '''never''' be enough of them! | ||
Line 24: | Line 24: | ||
For German players, it is a non-issue. They simply select German in their preferences. If the mission or campaign has German identities they will be used. The vitally important bit is if the mission / campaign does NOT have German identities the engine will use defaults (English). One way or other, there's always going to be a default overview.html file for lack of any other information. This knowledge is critical to the ability to add MORE languages. | For German players, it is a non-issue. They simply select German in their preferences. If the mission or campaign has German identities they will be used. The vitally important bit is if the mission / campaign does NOT have German identities the engine will use defaults (English). One way or other, there's always going to be a default overview.html file for lack of any other information. This knowledge is critical to the ability to add MORE languages. | ||
===default language=== | === default language === | ||
Note that 'default' and 'English' are not the same thing. It generally means the same thing, but the language written in default areas could as well be Russian. This is why, Russian authors simply use the 'default' html files to write Russian !!! | Note that 'default' and 'English' are not the same thing. It generally means the same thing, but the language written in default areas could as well be Russian. This is why, Russian authors simply use the 'default' html files to write Russian !!! | ||
==Strings== | == Strings == | ||
In order to use languages successfully, authors need to provide a '''stringtable.csv''' in their mission or campaign to 'internationalise' their gameplay. They cannot write 'strings' in their mission sqms directly and expect them to be magically translated. This is nothing new, and not covered here, it is standard practice nowadays to use a stringtable in missions. Or certainly should be! | In order to use languages successfully, authors need to provide a '''stringtable.csv''' in their mission or campaign to 'internationalise' their gameplay. They cannot write 'strings' in their mission sqms directly and expect them to be magically translated. This is nothing new, and not covered here, it is standard practice nowadays to use a stringtable in missions. Or certainly should be! | ||
Line 37: | Line 37: | ||
STR_STATE_FIRE, Fire, Feu, Fuoco, Fuego, Feuer | STR_STATE_FIRE, Fire, Feu, Fuoco, Fuego, Feuer | ||
==Turkish Authors== | == Turkish Authors == | ||
So now, the problem. | So now, the problem. | ||
Line 65: | Line 65: | ||
simply state in that readme that in order to play your mission in Turkish change the flashpoint.cfg to the above. | simply state in that readme that in order to play your mission in Turkish change the flashpoint.cfg to the above. | ||
==The important bits for players== | == The important bits for players == | ||
{{Important|Changing your flashpoint.cfg to some other language has no effect for ANY missions or campaigns not written in Turkish.}} | {{Important|Changing your flashpoint.cfg to some other language has no effect for ANY missions or campaigns not written in Turkish.}} | ||
The engine simply plays those missions or campaigns on default settings (the first language in the stringtable, usually English) | The engine simply plays those missions or campaigns on default settings (the first language in the stringtable, usually English) |
Revision as of 18:57, 31 January 2021
Caveat
This article applies only to windows systems that use the so-called WinAnsi codepage 1252. For Slavic and Cyrillic languages, your mileage will vary.
Intro
Five languages: English, French, Italian, Spanish and German are available on the International version of OFP. It doesn't actually matter how many 'official' languages exist, there will never be enough of them!
So, this is restrictive and need not be the case.
The 'trick' is to modify the flashpoint.cfg file directly with a notepad editor.
But, first a definition of what's what.
Briefing and Overview.html's
These are known as the 'default' htmls. The ones used for lack of any other information. Standard practice is to simply write your blurb in them, regardless of the language you write it in.
A German author will write German in these, or, if he wants international exposure, he will provide an Overview.German.html AND an 'international', or default, Overview.html. The contents in this case of the overview.html is often English, but need not be.
Conversely, a German author might choose to keep the 'default' htmls in German, and provide Overview.English.html You can figure out for yourself what you'd need in preferences to get English, not German, for your mission play.
The OFP engine will select Overview.German.html if and only if, German has been set in preferences.
For German players, it is a non-issue. They simply select German in their preferences. If the mission or campaign has German identities they will be used. The vitally important bit is if the mission / campaign does NOT have German identities the engine will use defaults (English). One way or other, there's always going to be a default overview.html file for lack of any other information. This knowledge is critical to the ability to add MORE languages.
default language
Note that 'default' and 'English' are not the same thing. It generally means the same thing, but the language written in default areas could as well be Russian. This is why, Russian authors simply use the 'default' html files to write Russian !!!
Strings
In order to use languages successfully, authors need to provide a stringtable.csv in their mission or campaign to 'internationalise' their gameplay. They cannot write 'strings' in their mission sqms directly and expect them to be magically translated. This is nothing new, and not covered here, it is standard practice nowadays to use a stringtable in missions. Or certainly should be!
The OFP engine, when asked to, looks up the value of a string, in this stringtable.csv thus, you get the following
LANGUAGE,English,French,Italian,Spanish,German,Comment .......... .......... STR_STATE_FIRE, Fire, Feu, Fuoco, Fuego, Feuer
Turkish Authors
So now, the problem.
If you're a Turkish author, what to do?
1) Change your csv to read thusly
LANGUAGE,English,French,Italian,Spanish,German,Turkish,Comment .......... .......... STR_STATE_FIRE, Fire, Feu, Fuoco, Fuego, Feuer,Bozuk
There's nothing new for you here, Turkish author, what you previously did was
STR_STATE_FIRE, Bozuk, Feu, Fuoco, Fuego, Feuer
in otherwords simply provide an extra column. For you!, rather than use the default setting.
2) Rename your briefing.html to briefing.Turkish.html
3) Edit your flashpoint.cfg file in the main directory so that
Language="Turkish";
4) Provide a readme in your mission or campaign (you do provide a readme don't you?).
simply state in that readme that in order to play your mission in Turkish change the flashpoint.cfg to the above.
The important bits for players
The engine simply plays those missions or campaigns on default settings (the first language in the stringtable, usually English)