Repository navigation
Localize shop and package names and fixed server texts per client region - #77
Open
Fokiiiiiii wants to merge 7 commits into
Open
Fokiiiiiii wants to merge 7 commits into
Fokiiiiiii wants to merge 7 commits into
Conversation
Shop and shop-base-info names come from EN-only snapshots. Add a per-region overlay (Resources/regions/<region>/Configs/shop_names.json) applied by client region, falling back to the EN name. JP names are unofficial translations.
Terms taken from the JP client's ShopGroup/ShopTypeName tables (ストア, 宿舎, 師団, 戦区, 勤仕, 域力パーツ, ...). Individual shop names remain translations.
…lient's own tables)
Package Name/Desc come from EN-only client_purchases.json. Apply Resources/regions/<region>/Configs/purchase_names.json (JP/TW/KR/CN translations) when the purchase info is sent, including the daily-pass mail. Share the overlay loader with the shop names (RegionText).
System - Lucia nickname, the login greeting, the daily purchase notify names and the Stronghold settlement mails (sender, titles, bodies) now follow the client region (JP/TW/KR/CN translations; EN wording unchanged). Chat command feedback stays EN.
…ding, one region source - Test GetShopBaseInfo/GetFixedShopAllInfo/GetShopInfo/GetPurchaseList as EN, JP and TW players. - A malformed overlay file is logged once and ignored instead of failing the request. - Read the region with FreeNotice.RegionOf everywhere the new texts are localized. - Name the Theatre6 reward shops (1469/1470) in each overlay.
Shop and theme names, Stronghold (ノルマン復興戦 etc.), and purchase-pack terms are now taken from each region's client tables where they exist (joined to the EN rows by table/Id); the rest keep the previous translations.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Non-EN clients got English shop names, package names and a few fixed server texts, because the server sends those strings itself from EN-only snapshots.
Resources/regions/<jp|tw|kr|cn>/Configs/shop_names.jsonandpurchase_names.jsonoverride names by id for the client's region (RegionText). EN, an unknown region and a missing id keep the snapshot text; a malformed file is logged and ignored.GetShopBaseInfo,GetFixedShopAllInfo,GetShopInfo,GetPurchaseList(and the purchase result / daily-pass mail).ServerTextlocalizes the "System - Lucia" nickname, the login greeting and the Stronghold settlement mails. EN wording is unchanged.FreeNotice.RegionOf, the same source as the notices.Names are taken from each region's client tables (fetched with
Scripts/fetch_region_tables.py) wherever they exist, by joining the EN and region rows on table/Id: type/tab names (ShopGroup/ShopTypeName), decor/theme set names (FurnitureSuit), coating names, item/ticket terms and the Stronghold name (ノルマン復興戦 / 諾曼復興戰 / 노르만 부흥전 / 诺曼复兴战). Names built from official terms (e.g.星6·意識ストア) are composed. Shop names the clients don't contain (e.g. Bear Pastry, Hall of the Slain, Artemis Anchor Shop, Relink Shop, Expedition Shop X, Retro Prize Counter) and the server-only pack names (e.g. Faded Bracelet, Scratched Disk, Oceanic Revel) remain translations, as do the Stronghold mail body texts, and can be replaced by captured names later.Tests:
--shop-names-only(overlay completeness, fallbacks) and--region-text-requests-only(the four requests above as EN/JP/TW). The Mongo-backed suites can't run in my environment.