translation.lua
Every piece of text the script can show, in one file: notifications, target labels, the plant and harvest panels, the drying rack and packing table, the shop and the dealer, the warehouse laptop, the admin panel, the trips and the skill tree. Around 1,350 entries.
Shared.Lang = {
generic_error = 'Something failed. Try once more.',
too_fast = 'Slow down a little.',
shop_bought = 'Purchase complete for $%{amount}.',
...
}The three rules
Translate the right side, never the left
generic_error is the key the code looks up. 'Something failed. Try once more.' is what the player reads. Change the text in quotes only.
Keep every %{placeholder} exactly as written
%{amount}, %{count}, %{warehouse} and so on are filled in at runtime. You may move one inside the sentence, and you should, because word order changes between languages. You may not rename it, and you may not delete it.
-- Correct
shop_bought = 'Zakup za $%{amount} zakonczony.',
-- Broken, the price will never appear
shop_bought = 'Zakup za $%{cena} zakonczony.',Do not delete keys
A key that is missing shows up in game as the key itself. If you do not want a text, set it to an empty string rather than removing the line.
The texts are in single quotes. An apostrophe inside a text must be escaped as \', for example 'Don\'t', or the whole file stops loading. Using double quotes for that one entry works too: "Don't".
How the file is organized
The entries are grouped by section, in this order:
| Section | What it covers |
|---|---|
| Plants, placement, harvest, stations, plant panel | Placing pots, the plant panel, the status card above a plant, the harvest window. |
| Pot care scenes | The soil, seed, water and feed scenes: the step strip, hints and meters. |
| Drying racks, packing table, crossbreeding | The rack window, the table scene, its steps and guides. |
| Weed Tools shop, Seed Plug, wild plants | The shop window, the dealer, item notes and categories. |
| Warehouses | The marketplace at the door and every page of the laptop panel (Summary, Reports, Grow floor, Crew, Expansions, Stash, Cashbox, Members). |
| Warehouse crew | Hiring, wages, the current task of every worker and why a worker is waiting. |
| /weedadmin | Every page, card and setting of the admin panel. |
| Joints and trips | Smoking, the server checks and the trip captions. |
| Admin: Wild weed page | The wild bush zones editor. |
| Skill tree | Messages about levels and missing skills. |
Item names are mostly not in this file. The interface shows the label your inventory has for each item, so rename items in your inventory's item list. The few item names here are only used when the inventory has no label for that item.