Skip to content

Add Czech (cs-CZ) translation - #1

Open
HelpTechCZ wants to merge 1 commit into
GajewskiMarcin:mainfrom
HelpTechCZ:feat/czech-translation
Open

Add Czech (cs-CZ) translation#1
HelpTechCZ wants to merge 1 commit into
GajewskiMarcin:mainfrom
HelpTechCZ:feat/czech-translation

Conversation

@HelpTechCZ

Copy link
Copy Markdown

Adds full Czech localisation for the module:

  • Front office defaults: all 23 banner / modal / category / cookie-table texts get a Czech default (DEFAULT_TEXTS is now [pl, en, cs]), applied at install time for shops with a cs language.
  • Bundled cookie definitions: Czech description_cs for the 8 default cookies; lookup is now description_{iso} with English fallback, so further languages can be added without touching the selection code.
  • pickDefault() helper replaces the two inline ($iso === 'pl') ? … : … ternaries.
  • upgrade/upgrade-1.0.3.php mirrors the same selection for the 1.0.3 structural labels.
  • Back office: translations/cs-CZ/ModulesConsentflowAdmin.cs-CZ.xlf — all 120 strings translated (same ids as the pl-PL file).

No behaviour change for existing PL/EN installs. Tested on PrestaShop 8.2.8 / PHP 8.1 (Czech single-language shop).

🤖 Generated with Claude Code

https://claude.ai/code/session_01TeWzrzNg2FbAEHBYP22H77

- Czech defaults for all banner/modal/category/table texts (DEFAULT_TEXTS now [pl, en, cs])
- Czech descriptions for bundled cookie definitions (description_cs)
- pickDefault() helper selects bundled text by language ISO; cookie description
  lookup falls back to English for unknown languages
- upgrade-1.0.3 mirrors the same selection for the 1.0.3 structural labels
- Back-office translation file translations/cs-CZ/ModulesConsentflowAdmin.cs-CZ.xlf (120 strings)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TeWzrzNg2FbAEHBYP22H77
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