Files
summer-phrasebook/docs/research/wintercms/quotifypro-11-i18n/11-01-SUMMARY.md
2026-02-18 01:31:41 +01:00

2.5 KiB

phase, plan, subsystem, tags, dependency-graph, tech-stack, key-files, decisions, metrics
phase plan subsystem tags dependency-graph tech-stack key-files decisions metrics
11-translation-infrastructure 01 i18n
translate
locales
configuration
pl
de
requires provides affects
pl-locale
de-locale
translate-config
11-02
11-03
added patterns
locale-seeder
plugin-config-override
created modified
plugins/golem15/translate/updates/v2.4.0/seed_quotify_locales.php
config/golem15/translate/config.php
plugins/golem15/translate/updates/version.yaml
id decision rationale
11-01-01 Use DB::table() for locale seeding Avoid model boot issues during migration
duration completed
2 min 2026-01-16

Phase 11 Plan 01: Locale Configuration Summary

Polish and German locales configured with Translate plugin settings established.

What Was Built

Locale Seeder Migration (v2.4.0)

Created idempotent seeder that adds Polish (pl) and German (de) locales to the translation system:

// plugins/golem15/translate/updates/v2.4.0/seed_quotify_locales.php
protected $locales = [
    ['code' => 'pl', 'name' => 'Polski', 'is_enabled' => true, 'sort_order' => 2],
    ['code' => 'de', 'name' => 'Deutsch', 'is_enabled' => true, 'sort_order' => 3],
];

Uses DB::table() for direct insertion to avoid model boot issues during migration.

Translate Plugin Configuration

Created project-specific config override:

// config/golem15/translate/config.php
return [
    'cacheTimeout' => 1440,              // 24 hour cache
    'prefixDefaultLocale' => false,       // /about not /en/about
    'disableLocalePrefixRoutes' => false, // URL routing enabled
];

Locale Configuration

Code Name Default Enabled Sort
en English Yes Yes 1
pl Polski No Yes 2
de Deutsch No Yes 3

Commits

Hash Type Description
503a883 feat Add Polish and German locales for Quotify.pro
0578f3c chore Add Translate plugin configuration

Deviations from Plan

None - plan executed exactly as written.

Next Phase Readiness

Phase 11 Plan 02 (Theme Translation) can proceed:

  • All 3 locales are enabled and available
  • Translate plugin configuration is in place
  • Theme scanning can be run to extract translatable strings