Status
SteamPeaks
ChartsSalesUpcomingPatchesNewsCalculator
New on SteamEvery app, DLC and depot the minute Steam creates itAppsEvery app on Steam, newest change firstPackagesSubs and bundles, and what each containsDepotsDepots, manifests and install sizesTagsSteam's user tags and the games under themDevelopers & publishersCompanies and their cataloguesTechnologiesEngines, SDKs and anti-cheat found in the filesChange historyEvery PICS changelist as it lands
SignalsNineteen readings of the whole catalogueCompareAny games side by sideRecordsAll-time peaks and the days they were setReportsWeekly and monthly write-upsAlerts & newsroomWatch a game, get told when it movesSteam statusIs Steam up, right nowWeb API explorerTry the endpoints in the browser
NewsSteam's own announcements and the sales calendarCalculatorWhat a Steam account is worth, and its pile of shame
/
Sign in
/
SteamPeaks
The ultimate resource for Steam data.
ExploreChartsSalesSales and festsUpcomingPatchesNewsRecordsTrendingSignals
DatabaseAppsPackagesDepotsTagsDevelopersTechnologiesChange history
ToolsCalculatorCompareSearchAlertsSteam statusAPI
SiteMethodologyFAQDiscordSupportSign in via Steam
Not affiliated with Valve or Steam. Game names and artwork belong to their owners. All times UTC.
PrivacyCookiesFair useStatus
Hakan's War ManagerNewsLocalization System - Part 3 - Localization Update
Community

Localization System - Part 3 - Localization Update

Hakan's War Manager · published 27 Mar 2024, 20:35 UTC

All newsPlayers around this dateRead on Steam

Attention: After the update, you may need to start a new save for a seamless experience.

We came to the most challenging part of localization. Translating messages.

It works the same as dynamic texts, messages are also dynamic. For example, in a battle result message, there are values that can change according to the battle, and translation can be done by assigning arguments accordingly. So far, it works like the system I have done with dynamic texts. After that, the troublesome process started, the save&load system...

Before the localization system,


I was saving the messages as follows:

  • I created a script called MessageData
  • Take the string value in the header and save it
  • Get and save the string value in the content section


This way I save each message in MessageData and then pull it from this folder when I want to upload it.

But how can I save in a constant way for values that can change continuously?


I did some research on this, but unfortunately, I couldn't find anything useful in most of them. Mostly everyone discussed about constant and dynamic text, but not much about saving with JSON. So I opened the topic myself and someone from Unity wrote me a reply. With a little help from him and some tinkering on my own, I came to a conclusion.

So what did I do?


I saved each of our message drafts to the localization system, then in the MessageData section I kept the key and argument for the header, key and argument for the content, and set the argument to string[] so that it doesn't have problems when saving.

Apart from messages, I also needed localization for the calendar system, but I was able to easily handle this by using Unity's own Calendar system.

Localization Finished

We've come to the end of this system, I've been working on the localization system lately and it's finally time to announce it. The localization system is finished and now we will open the localization system to you players with an update.

Apart from that, the date error in the battle results section of the Inbox system has been fixed.

Note: At the moment our game only supports English and Turkish languages, we will start working on Italian and Chinese. If you want to support us in any language, you can contact us. (We do not want to offer basic Google translation.)

More from Hakan's War Manager

Other announcements

All news
Game update21 Oct 2024Hotfix 21.10.2024We’ve addressed a bug in the Japanese language setting where the leader names were not showing up properly. This issue has been fixed, and leader names should now display correctly.Community2 Oct 2024HWM 1.03 UpdateGreetings, Honorable Khans, I am Cevozby Khan, the developer behind Oba Games, and I bring exciting news from the battlefield! Even after the full release, we're continuously improving the game based on your feedback. Here are the latest changes we've made over the past week: Archers: No More Unwanted Advances: Previously, our archers would inch closer to enemy forces while firing, which left t…Game update22 Sep 2024HWM Hotfix 1.02Hotfix to adjust the zoom sensitivity on the battlefield camera. It should now feel much smoother and more responsive when zooming in and out during battles.