Strings: Difference between revisions

From BotF2-Wiki
Jump to navigation Jump to search
m 2 revisions
 
 
(4 intermediate revisions by the same user not shown)
Line 12: Line 12:
*Tech Level: Early, Developed, Sophisticated, Adanvced, Supreme
*Tech Level: Early, Developed, Sophisticated, Adanvced, Supreme
*Minor Races: None, Few, Some, Many
*Minor Races: None, Few, Some, Many
=== en.txt ===
\Strings\en.txt
*Game_Name: name of the window (e.g. in task bar)
=== ColonyScreen.xaml ===
<LocalizedTextGroup xmlns="http://schemas.startreksupremacy.com/xaml/core"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    Key="{x:Static LocalizedTextGroups.ColonyScreen}">
  <LocalizedString Name="SHIP_CONSTRUCTION_TIME_TOOLTIP">
    <LocalizedStringValue Language="en" Text="Estimated Time to Completion" />
    <LocalizedStringValue Language="de" Text="voraussichtliche Zeit zur Fertigstellung" />
    <LocalizedStringValue Language="fr" Text="Temps estimé jusqu'à l'achèvement" />
  </LocalizedString>
  <LocalizedString Name="TURNS_UNTIL_COMPLETION_FORMAT">
    <LocalizedStringValue Language="en" Text="{}{0} Turns" />
    <LocalizedStringValue Language="de" Text="{}{0} Runden" />
    <LocalizedStringValue Language="fr" Text="{}{0} Tours" />
  </LocalizedString>
  <LocalizedString Name="BUILT_NEW_SHIP_TOOLTIP">
    <LocalizedStringValue Language="en" Text="Build a Ship" />
    <LocalizedStringValue Language="de" Text="ein Schiff bauen" />
    <LocalizedStringValue Language="fr" Text="Construire un vaisseau" />
  </LocalizedString>
  <LocalizedString Name="SHIP_CONSTRUCTION_PROJECT_TOOLTIP">
    <LocalizedStringValue Language="en" Text="{}{0}&#0010;&#0013;{1} Class&#0010;&#0013;{2} Complete" />
    <LocalizedStringValue Language="de" Text="{}{0}&#0010;&#0013;Class {1}&#0010;&#0013;{2} fertig" />
    <LocalizedStringValue Language="fr" Text="{}{0}&#0010;&#0013;Classe {1}&#0010;&#0013;Achevé à {2}" />
  </LocalizedString>
  <LocalizedString Name="TOGGLE_CONSTRUCTION_BAY_BUTTON_TOOLTIP_ONLINE">
    <LocalizedStringValue Language="en" Text="Construction Bay Online&#0010;&#0013;{0} Energy Consumed" />
    <LocalizedStringValue Language="de" Text="Werft online&#0010;&#0013;{0} Energieverbrauch" />
    <LocalizedStringValue Language="fr" Text="Baie de construction: EN SERVICE&#0010;&#0013;Energie consommée: {0}" />
  </LocalizedString>
  <LocalizedString Name="TOGGLE_CONSTRUCTION_BAY_BUTTON_TOOLTIP_OFFLINE">
    <LocalizedStringValue Language="en" Text="Construction Bay Offline&#0010;&#0013;{0} Energy Required" />
    <LocalizedStringValue Language="de" Text="Werft offline&#0010;&#0013;{0} Energie wird benötigt" /> 
    <LocalizedStringValue Language="fr" Text="Baie de construction: HORS SERVICE&#0010;&#0013;Energie requise: {0}" /> 
  </LocalizedString>
</LocalizedTextGroup>
=== Enum ===
Enums.xaml is located in \Resources\Text\Enums.xaml. It is containing some strings. An overview is >> [http://botf2.square7.ch/wiki-files/Text/Enums.xlsx here]
=== missing strings ===
no place found yet to localize them (e.g. not included in en.txt...maybe hardcoded)
*loading
*Empire Info (Galaxy Screen)
*Requisition (Galaxy Screen)
*Task Forces (Galaxy Screen)
*Labor pool
*Colony>Structures: Energy cost hardcoded ? or maybe taken from techobjects-files

Latest revision as of 12:43, 12 November 2017

Most strings are out of the file located in \Resources\Strings\

  • for English: file name is en.txt (it's also possible to replace en.txt-content by another language to translate the game - for this Notepad++ is a well done program showing CR and LF)


Some Strings:

  • Galaxy size: Tiny, Small, Medium, Large & Huge
  • Galaxy Shape: Irregular, Spiral, Ring, Cluster, Elliptical
  • Star Density: Dense, Medium, Sparse
  • Planet Density: Dense, Medium, Sparse
  • Tech Level: Early, Developed, Sophisticated, Adanvced, Supreme
  • Minor Races: None, Few, Some, Many

en.txt

\Strings\en.txt

  • Game_Name: name of the window (e.g. in task bar)

ColonyScreen.xaml

<LocalizedTextGroup xmlns="http://schemas.startreksupremacy.com/xaml/core"
                   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                   Key="{x:Static LocalizedTextGroups.ColonyScreen}">
 <LocalizedString Name="SHIP_CONSTRUCTION_TIME_TOOLTIP">
   <LocalizedStringValue Language="en" Text="Estimated Time to Completion" />
   <LocalizedStringValue Language="de" Text="voraussichtliche Zeit zur Fertigstellung" />
   <LocalizedStringValue Language="fr" Text="Temps estimé jusqu'à l'achèvement" />
 </LocalizedString>
 <LocalizedString Name="TURNS_UNTIL_COMPLETION_FORMAT">
   <LocalizedStringValue Language="en" Text="{}{0} Turns" />
   <LocalizedStringValue Language="de" Text="{}{0} Runden" />
   <LocalizedStringValue Language="fr" Text="{}{0} Tours" />
 </LocalizedString>
 <LocalizedString Name="BUILT_NEW_SHIP_TOOLTIP">
   <LocalizedStringValue Language="en" Text="Build a Ship" />
   <LocalizedStringValue Language="de" Text="ein Schiff bauen" />
   <LocalizedStringValue Language="fr" Text="Construire un vaisseau" />
 </LocalizedString>
 <LocalizedString Name="SHIP_CONSTRUCTION_PROJECT_TOOLTIP">
   <LocalizedStringValue Language="en" Text="{}{0}
&#0013;{1} Class
&#0013;{2} Complete" />
   <LocalizedStringValue Language="de" Text="{}{0}
&#0013;Class {1}
&#0013;{2} fertig" />
   <LocalizedStringValue Language="fr" Text="{}{0}
&#0013;Classe {1}
&#0013;Achevé à {2}" />
 </LocalizedString>
 <LocalizedString Name="TOGGLE_CONSTRUCTION_BAY_BUTTON_TOOLTIP_ONLINE">
   <LocalizedStringValue Language="en" Text="Construction Bay Online
&#0013;{0} Energy Consumed" />
   <LocalizedStringValue Language="de" Text="Werft online
&#0013;{0} Energieverbrauch" />
   <LocalizedStringValue Language="fr" Text="Baie de construction: EN SERVICE
&#0013;Energie consommée: {0}" />
 </LocalizedString>
 <LocalizedString Name="TOGGLE_CONSTRUCTION_BAY_BUTTON_TOOLTIP_OFFLINE">
   <LocalizedStringValue Language="en" Text="Construction Bay Offline
&#0013;{0} Energy Required" />
   <LocalizedStringValue Language="de" Text="Werft offline
&#0013;{0} Energie wird benötigt" />  
   <LocalizedStringValue Language="fr" Text="Baie de construction: HORS SERVICE
&#0013;Energie requise: {0}" />  
 </LocalizedString>
</LocalizedTextGroup>

Enum

Enums.xaml is located in \Resources\Text\Enums.xaml. It is containing some strings. An overview is >> here

missing strings

no place found yet to localize them (e.g. not included in en.txt...maybe hardcoded)

  • loading
  • Empire Info (Galaxy Screen)
  • Requisition (Galaxy Screen)
  • Task Forces (Galaxy Screen)
  • Labor pool
  • Colony>Structures: Energy cost hardcoded ? or maybe taken from techobjects-files