Skip to content

Localize shop and package names and fixed server texts per client region - #77

Open
Fokiiiiiii wants to merge 7 commits into
reiserFSs:masterfrom
Fokiiiiiii:shop-localized-names
Open

Fokiiiiiii wants to merge 7 commits into
reiserFSs:masterfrom
Fokiiiiiii:shop-localized-names

Conversation

@Fokiiiiiii

@Fokiiiiiii Fokiiiiiii commented Dec 3, 2026 •

Copy link
Copy Markdown

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.json and purchase_names.json override 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.
  • Applied to GetShopBaseInfo, GetFixedShopAllInfo, GetShopInfo, GetPurchaseList (and the purchase result / daily-pass mail).
  • ServerText localizes the "System - Lucia" nickname, the login greeting and the Stronghold settlement mails. EN wording is unchanged.
  • The region is read with 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.

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.
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant