Commit Graph

180 Commits

Author SHA1 Message Date
Ferywir 524b9e7edd fix(i18n): localize statistics page and troops Hero label [#197]
On a fresh install several strings were still hardcoded in English
(reported on the live server, RO locale):

- statistiken.php: the page <title>, the <h1> and the tab bar
  (Player / Alliances / Villages / Heroes / General) were literal English.
- Templates/Ranking/ranksearch.tpl: the "back | forward" pagination links.
- Templates/troops.tpl: the "Hero" troop-row label.

Wire them to language constants. Reuse existing ones
(STATISTICS, PLAYER, PLAYERS, VILLAGES, BACK, FORWARD, U0) and add three
new constants (ALLIANCES, HEROES, GENERAL) to en/fr/ro. WW is kept as-is
(universal acronym).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-11 18:37:22 +03:00
TravianZ Patcher c91ae5e486 feat(l10n): translate manual new-features pages (FR/RO)
Localize the 17 "new features" manual pages (Templates/Manual/1111-1126.tpl
and the 1331.tpl index, typ=11/13) so they render in the player's language
instead of hardcoded English.

- Replace hardcoded page titles, descriptions and nav tooltips with constants.
- The 1331 index reuses the per-page title constants and gains
  MANUAL_NF_ENABLED / MANUAL_NF_DISABLED for the on/off status labels.
- Add 33 constants each to GameEngine/Lang/{en,fr,ro}.php
  (2 status labels + 15 page titles + 16 descriptions).
- en.php uses tz_def() as the English fallback; fr/ro use define().
- Reuse existing constants where they already exist: VACATION_MODE (page 19),
  NEW_FEATURES, FORWARD, BACK, OVERVIEW.

it/zh fall back to English. RO strings pending native review.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-10 15:45:47 +03:00
TravianZ Patcher 48dde68baa feat(l10n): translate manual unit pages (FR/RO)
Localize the 51 in-game manual unit detail pages (Templates/Manual/1*.tpl,
typ=1) so they render in the player's language instead of English, continuing
the manual l10n started in the building pages PR.

What changed:
- 51 unit pages (Romans/Teutons/Gauls/Nature/Natars) now use translation
  constants for every hardcoded string: tribe tags -> TRIBE1..5, the stat
  labels (attack value, defence vs infantry/cavalry, Velocity, fields/hour,
  Can carry, Duration of training), the unit descriptions, the NPC reference
  notes and the "forward" nav.
- 48 new constants added to en/fr/ro:
  * 7 shared stat labels (MANUAL_ATTACK_VALUE, MANUAL_DEF_INFANTRY,
    MANUAL_DEF_CAVALRY, MANUAL_VELOCITY, MANUAL_FIELDS_HOUR, MANUAL_CAN_CARRY,
    MANUAL_TRAINING_DURATION)
  * 2 NPC reference notes (MANUAL_NPC_NATARS, MANUAL_NPC_NATURE)
  * 1 templated Nature-animal blurb (MANUAL_UDESC_ANIMAL_EXP, used via
    printf with the animal name + xp value, so the 10 animal pages share it)
  * 38 unit descriptions (MANUAL_UDESC_*). Identical descriptions are shared:
    settlers (110/120/130) and rams (117/127) reuse one constant each.
- Reuses constants already present upstream and in the building pages branch:
  TRIBE1..5, LEVEL, FORWARD, CROP_CONSUMPTION, PREREQUISITES, UPKEEP, DURATION,
  RESOURCES, U1..U50.

English render is unchanged: the English constant values are the existing page
text extracted verbatim (whitespace-collapsed). it/zh are intentionally left to
fall back to English via the en.php fallback wired up earlier.

Scope note: this builds on the manual building-pages l10n branch (reuses
CROP_CONSUMPTION). The 17 "new features" pages (typ=11/13) are out of scope and
will be a follow-up PR. RO strings are functional but would benefit from a
native review.
2026-06-10 13:48:02 +02:00
Ferywir 66a07c6819 feat(l10n): translate manual building pages (FR/RO) (#192) 2026-06-09 19:00:08 +03:00
Ferywir e498563555 fix: blank in-game help + untranslated profile after l10n (#189) (#191) 2026-06-09 17:48:16 +03:00
Ferywir dad574be1a feat: reports for settling - new village founded & valley occupied (#178) (#190) 2026-06-09 16:47:29 +03:00
Ferywir 5d366284e6 l10n: full interface translation (FR/RO/IT/ZH) + EN fallback hardening (#186) 2026-06-09 10:28:59 +03:00
novgorodschi catalin 33b7261b4b Change some file
Change some file
2026-06-04 13:39:59 +03:00
novgorodschi catalin 11ce6e6052 Added Romanian Language
Added Romanian Language
2026-06-04 09:39:44 +03:00
TravianZ Patcher df003184c8 Add French (fr) translation by Ferywir
Replace GameEngine/Lang/fr.php with a complete, reviewed French
translation:
- Full coverage: all 1439 language keys present (matches en.php), none
  missing or extra.
- Valid PHP: all French apostrophes properly escaped, no unterminated
  strings.
- Months localized, quest tutorial numbering kept consistent with en.php.
- Fixed gender agreement on EMAIL_TAKEN ("Cet e-mail ... utilisé").

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-03 11:28:09 +02:00
Catalin Novgorodschi 01474fb31f Update Readme
Update Readme
2026-05-15 08:17:14 +03:00
Catalin Novgorodschi c8d9fae4b4 Incremental refactor Generator/Logging/Multisort
Incremental refactor Generator/Logging/Multisort
2026-05-12 13:22:51 +03:00
Catalin Novgorodschi ed0fc6be2c Incremental refactor Building and Ranking
Incremental refactor Building and Ranking
2026-05-12 11:35:15 +03:00
Catalin Novgorodschi 27e9a9a7b5 Full refactor of Battle
Full refactor of Battle
2026-05-08 13:06:53 +03:00
Catalin Novgorodschi 8901c36c06 Incremental Refactor Templates 2
Incremental Refactor Templates 2
2026-05-07 08:24:40 +03:00
Catalin Novgorodschi 544496c515 Update some shit code
Update some shit code
2026-04-30 14:24:31 +03:00
Catalin Novgorodschi 1ea6873826 Winner check on register
Winner check on register
2026-04-30 08:55:00 +03:00
Catalin Novgorodschi ebc77f7fbc Issue #77
Issue #77
2026-04-02 10:02:54 +03:00
Kotoku-SVG e167e3c9f8 Add French Language Translation (#146)
Add French Language Translation
2026-03-26 08:20:13 +02:00
levi a0ef06a35f chore: harden php8 compatibility, optimize installer/croppers, and refresh docs/admin ux 2026-03-14 16:50:27 -03:00
lietuvis10 833cc2f744 Update en.php
Cranny description update, scale with cranny capacity.
2025-11-04 10:30:25 +02:00
Mario Garavello 1563783f38 Merge branch 'Shadowss:master' into ita 2025-09-03 11:22:18 +02:00
Catalin Novgorodschi 59c1114b1c Change some text on license TravianZ 2025-02-11 11:22:22 +02:00
Tackx f1aef3688c Add missing escape chars, fixing Q25_27 (Task 23: Friends.) 2024-12-27 17:09:35 +01:00
221V 4aa3c443f6 tr - use single quotes for better php perf, DRY 2024-12-11 20:31:49 +02:00
221V 9857a8ce37 tr - upd buildings description 2024-12-11 19:36:59 +02:00
221V 4aa4ef0480 tr - rm doubling 2024-12-11 19:21:33 +02:00
221V 8fb900524a tr - use readable keys 2024-12-11 19:15:07 +02:00
221V 5deb46d8c5 tr - fix concatenation 2024-12-11 17:09:19 +02:00
221V d480a5be6c tr - fix tags - html5 2024-12-11 16:51:00 +02:00
221V 98e8d3a666 tr - rm doublings + fix desc keys 2024-12-11 16:42:57 +02:00
221V 446d457296 tr - add keys 2024-12-11 16:29:45 +02:00
221V 54e65e59c4 tr - css - artefact 2024-12-11 16:22:39 +02:00
221V 365aba27bf tr - unify - artifact to artefact 2024-12-11 16:21:16 +02:00
221V 5b586a04e7 tr - add keys 2024-12-11 16:08:29 +02:00
221V 422f8d28ef tr - fix key 2024-12-11 15:53:13 +02:00
221V 684296e57a tr - fix key 2024-12-11 15:50:35 +02:00
221V 9fba876685 tr - rm dublicates 2024-12-11 15:48:36 +02:00
221V ff22a74095 tr -- rm dublicates 2024-12-11 15:44:50 +02:00
221V f1b3ff3ed6 tr - rm dublications 2024-12-11 15:39:04 +02:00
221V 3907e1bab7 tr -- add keys 2024-12-11 15:17:04 +02:00
221V c604ec6d81 tr - br - html5 2024-12-11 14:50:42 +02:00
221V 8c9f5ecbc2 tr - capital 2024-12-11 14:46:22 +02:00
221V 55e295f73f tr - add keys 2024-12-11 14:38:05 +02:00
221V e9b7682a06 use HTML entities for make html valid (cannot be broken) 2024-10-09 18:05:45 +03:00
221V d25bb22e62 fix lost CAPITAL_LABEL for chinese 2024-10-09 17:52:37 +03:00
221V 5b586df4cc fix CALCULATED_IN 2024-10-09 17:51:37 +03:00
221V ca3cecf457 fix SERVER_TIME 2024-10-09 17:48:39 +03:00
Mario Garavello cb67e8e590 Adding Italian language 2023-05-04 12:51:58 +02:00
Alex Alexandrovich f343b5a33a Fixed hardcode
Improved work with the translation of the game.
2022-05-23 20:15:37 +03:00