Source Code Project Mantis - FSSCP
View Issue Details
0003193FSSCPlocalizationpublic2017-03-05 04:122017-03-06 05:14
ReporterNovachen 
Assigned Tom_m 
PrioritynormalSeverityfeatureReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version3.8 
Summary0003193: $label in #Briefing in mission files should automatically create an XSTR
DescriptionEven without the use of subtitles and individual hud gauges, you can not translate a, more classic, mission completely with the help of the tstrings.tbl, because the labels for the briefing symbols will not be transferred into the tstrings.tbl automatically.
You have to set the xstr-entry manually in the mission file or you have to translate the symbols directly with FRED2, which is an easier task, but needs a language-specific mission file again, that is not in the purpose of the tstrings.tbl at all.
TagsNo tags attached.
Attached Files

Notes
(0016876)
m_m   
2017-03-05 07:11   
To clarify, you want that FRED saves the briefing label in the XSTR format but it doesn't do that at the moment?
(0016878)
Novachen   
2017-03-05 08:04   
Yes exactly.

Freespace uses some predefined entrys in the localize.cpp that translates labels automatically. But these are only those from the main campaign.

All other new label names from custom missions remain untranslated and have to be changed within the .fs2 file itself.
(0016879)
m_m   
2017-03-05 08:06   
Ok, that should be relatively simple. I found the code which writes the label text to the mission file and it uses the wrong function which doesn't output the XSTR syntax so it should be relatively easy to fix.
(0016882)
m_m   
2017-03-05 16:37   
Fix has been submitted: https://github.com/scp-fs2open/fs2open.github.com/pull/1287
(0016883)
m_m   
2017-03-06 05:14   
Fix has been merged.

Issue History
2017-03-05 04:12NovachenNew Issue
2017-03-05 07:11m_mNote Added: 0016876
2017-03-05 08:04NovachenNote Added: 0016878
2017-03-05 08:06m_mNote Added: 0016879
2017-03-05 08:06m_mAssigned To => m_m
2017-03-05 08:06m_mStatusnew => assigned
2017-03-05 16:37m_mStatusassigned => code review
2017-03-05 16:37m_mNote Added: 0016882
2017-03-06 05:14m_mStatuscode review => resolved
2017-03-06 05:14m_mResolutionopen => fixed
2017-03-06 05:14m_mFixed in Version => 3.8
2017-03-06 05:14m_mNote Added: 0016883