Skip to content

Commit

Permalink
Correctly display item text in brazilian portuguese
Browse files Browse the repository at this point in the history
 and document release 3.7.2
  • Loading branch information
EtienneLamoureux committed Jul 9, 2020
1 parent 08a6fdd commit 0a22bbe
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Changelog
## 3.7.2
### Bugs
- Correctly display item text in brazilian portuguese, when that language is selected

## 3.7.1
### Bugs
- #349 Fix missing languages from "Language selection"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# TQVaultAE
[![Steam](https://img.shields.io/badge/steam-link-lightgrey.svg)](https://steamcommunity.com/sharedfiles/filedetails/?id=1136716167)
[![Release](https://img.shields.io/badge/stable-3.7.1-blue.svg)](/~https://github.com/EtienneLamoureux/TQVaultAE/releases)
[![Release](https://img.shields.io/badge/stable-3.7.2-blue.svg)](/~https://github.com/EtienneLamoureux/TQVaultAE/releases)
[![License](https://img.shields.io/badge/license-MIT-green.svg)](/~https://github.com/EtienneLamoureux/TQVaultAE/blob/master/LICENSE)

TQVaultAE is an external tool for [Titan Quest Anniversary Edition](https://www.thqnordic.com/games/titan-quest) that allows you to store and search your items outside the game.
Expand Down
20 changes: 15 additions & 5 deletions src/TQVaultAE.Data/Database.cs
Original file line number Diff line number Diff line change
Expand Up @@ -619,12 +619,22 @@ private string FigureDBFileToUse(bool isImmortalThrone)
}
}

// For some reason they use CZ which is not in the cultures list.
// Force Czech to use CZ instead of CS for the 2 letter code.
// Titan Quest doesn't use the ISO language code for some languages
// Added null check to fix exception when there is no culture found.
if (cultureID != null && cultureID.ToUpperInvariant() == "CS")
cultureID = "CZ";

if (cultureID != null)
{
if (cultureID.ToUpperInvariant() == "CS")
{
// Force Czech to use CZ instead of CS for the 2 letter code.
cultureID = "CZ";
}
else if (cultureID.ToUpperInvariant() == "PT")
{
// Force brazilian portuguese to use BR instead of PT
cultureID = "BR";
}
}

if (TQDebug.DatabaseDebugLevel > 1)
Log.LogDebug("cultureID = {0}", cultureID);

Expand Down
4 changes: 2 additions & 2 deletions src/TQVaultAE.GUI/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
// CLS compliant attribute
//[assembly: CLSCompliant(true)]

[assembly: AssemblyVersion("3.7.1")]
[assembly: AssemblyFileVersion("3.7.1")]
[assembly: AssemblyVersion("3.7.2")]
[assembly: AssemblyFileVersion("3.7.2")]
[assembly: NeutralResourcesLanguageAttribute("en-US")]
[assembly: DisableDpiAwareness]

0 comments on commit 0a22bbe

Please sign in to comment.