Skip to content

Commit

Permalink
localize switcher button captions in colony view
Browse files Browse the repository at this point in the history
  • Loading branch information
striezel committed Jun 30, 2024
1 parent a29eb9b commit 7590910
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ improvements may be omitted.)_
in the colony view is no longer obstructed by the box that displays the name
of the building which is currently under construction.

* __[fix]__
Two non-localized button captions in colony view are now localized.

* __[improvement]__
Terrain textures for wetland and marsh are added.

Expand Down
4 changes: 2 additions & 2 deletions engine/Gui.pas
Original file line number Diff line number Diff line change
Expand Up @@ -2510,8 +2510,8 @@ procedure TGui.DrawColonyView;

// -- captions
glColor3ubv(@cMenuTextColour[0]);
WriteText('Buildings', cWindowWidth*PixelWidth-5.0+4*PixelWidth, y_Fields-6.0+4*PixelWidth);
WriteText('Units', cWindowWidth*PixelWidth-5.0+4*PixelWidth, y_Fields-5.5+4*PixelWidth);
WriteText(dat.GetLang.GetOthers(osBuildings), cWindowWidth*PixelWidth-5.0+4*PixelWidth, y_Fields-6.0+4*PixelWidth);
WriteText(dat.GetLang.GetOthers(osUnits), cWindowWidth*PixelWidth-5.0+4*PixelWidth, y_Fields-5.5+4*PixelWidth);

if ColonyBuildingPage then
begin
Expand Down
5 changes: 4 additions & 1 deletion engine/Language.pas
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ interface
TOtherString = (osLocation, osDestination, osFreight, osShip, osHighSea,
osNewWorld, osMoves, osEmpty, osNothing, osNoChanges, osTax,
osGold, osCost, osSaving, osEarnings, osName, osProgress,
osQuitGame, osYes, osNo, osRiver, osRoad, osUndefined);
osQuitGame, osYes, osNo, osRiver, osRoad, osUnits,
osBuildings, osUndefined);
TEuroPortString = (epsManageHeading, epsNotOnShip, epsGoOnShip, epsArm, epsDisarm, epsGiveHorses, epsNoHorses, epsGiveTools, epsNoTools, epsTrainHeading, epsBuyHeading);
TReportType = (rtNone, rtCongress, rtJob, rtEconomy, rtColony, rtFleet, rtForeign, rtIndian, rtScore);
TColonyString = (csRenameQuestion, csRenameLabel, csAbandonYes, csAbandonNo, csAbandonQuestion);
Expand Down Expand Up @@ -643,6 +644,8 @@ procedure TLanguage.InitialValues;
Others[osNo]:= 'Nein';
Others[osRiver]:= 'Fluss';
Others[osRoad]:= 'Straße';
Others[osUnits]:= 'Einheiten';
Others[osBuildings]:= 'Gebäude';
Others[osUndefined]:= 'Nicht definiert';
//save/ load messages
SaveLoad[slsLoadChoose]:= 'Wählen Sie den zu ladenden Spielstand.';
Expand Down

0 comments on commit 7590910

Please sign in to comment.