3 Commits

Author SHA1 Message Date
601570d724 Bump version to 1.1.7 for release
- Version 1.1.7 includes compiled .mo translation files
- Critical fix: Translations now display in WordPress admin
- All 6 locales (de_DE, de_DE_informal, de_CH, de_CH_informal, fr_CH, it_CH) fully functional

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 21:35:53 +01:00
e9b2d1c79b Add compiled .mo translation files for all locales
- Compiled 6 .mo files from .po sources (de_DE, de_DE_informal, de_CH, de_CH_informal, fr_CH, it_CH)
- Required for WordPress to load translations in admin and frontend
- All locales now have 56/56 strings translated and compiled

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 21:33:44 +01:00
d27dd4b7bd Document v1.1.6 release in CLAUDE.md
Added comprehensive session history for v1.1.6 including:
- Translation completion for all 6 locales
- Version bump details
- Release package creation
- Checksums and file counts
- Key lessons learned about translation maintenance

Fixed markdown linting: Added blank line before list

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 21:20:22 +01:00
9 changed files with 109 additions and 2 deletions

View File

@@ -5,6 +5,30 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [1.1.7] - 2025-12-31
### Added
- Compiled .mo translation files for all 6 supported locales (de_DE, de_DE_informal, de_CH, de_CH_informal, fr_CH, it_CH)
- WordPress can now load translations in admin and frontend areas
### Fixed
- **CRITICAL**: Missing translations in WordPress admin when using non-English locales
- Settings page ("Composable Products", "Default Selection Limit", etc.) now properly translated
- Product settings ("Composable Options", "Selection Criteria", etc.) now properly translated
### Technical
- Compiled .mo files from .po sources using msgfmt
- All 6 locales now have complete translation coverage (56/56 strings translated and compiled)
- .mo files required for WordPress i18n system to display translations
### Notes
- Previous versions included .po translation files but WordPress requires compiled .mo files
- This release makes all existing translations actually visible to users
## [1.1.6] - 2025-12-31
### Added

View File

@@ -827,6 +827,89 @@ This was a **critical bug** preventing the plugin from working on sites with cer
---
### v1.1.6 - Admin Translation Completion & Release (2025-12-31)
#### Session 9: Translation Completion and Release Package
**Maintenance release** completing all admin area translations across all supported locales.
**What was accomplished:**
1. **Translation Updates**: Added missing admin strings from v1.1.4 to all 6 translation files
2. **Version Bump**: Updated version to 1.1.6 in plugin file and CHANGELOG
3. **Release Package**: Created production-ready ZIP with checksums
**Translation coverage:**
All locales now include translations for the Fixed Price field feature from v1.1.4:
- **German (Germany - formal)**: "Festpreis" / "Geben Sie den Festpreis für dieses zusammenstellbare Produkt ein."
- **German (Germany - informal)**: "Festpreis" / "Gib den Festpreis für dieses zusammenstellbare Produkt ein."
- **Swiss German (formal)**: "Festpreis" / "Geben Sie den Festpreis für dieses zusammenstellbare Produkt ein."
- **Swiss German (informal)**: "Festpreis" / "Gib den Festpreis für dieses zusammenstellbare Produkt ein."
- **Swiss French**: "Prix fixe" / "Entrez le prix fixe pour ce produit composable."
- **Swiss Italian**: "Prezzo fisso" / "Inserisci il prezzo fisso per questo prodotto componibile."
**Files modified:**
- languages/wc-composable-product.pot: Version 1.1.6, added 2 new strings
- languages/wc-composable-product-de_DE.po: Added Fixed Price translations (formal Sie)
- languages/wc-composable-product-de_DE_informal.po: Added Fixed Price translations (informal du)
- languages/wc-composable-product-de_CH.po: Added Fixed Price translations (formal Sie)
- languages/wc-composable-product-de_CH_informal.po: Added Fixed Price translations (informal du)
- languages/wc-composable-product-fr_CH.po: Added Fixed Price translations
- languages/wc-composable-product-it_CH.po: Added Fixed Price translations
- wc-composable-product.php: Version bump to 1.1.6
- CHANGELOG.md: Added v1.1.6 release notes
- CLAUDE.md: Updated "Bugs found" section - both items now complete
**Release details:**
- Package: wc-composable-product-v1.1.6.zip (378 KB / 1,092,772 bytes)
- Git tag: v1.1.6 (annotated, on main branch)
- SHA-256: d64f4f5f1a00d392989cb613780e5726106a08c6aace08e0c74c80553a0b0f1e
- MD5: eae384e342450abd4ac83af0266ac764
- Files included: 370 files (all source + vendor + translations)
**What works (v1.1.6):**
Everything from v1.1.5 plus:
- 100% translation coverage across all 6 locales ✅
- All admin strings fully translated ✅
- Fixed Price field labels and descriptions in all languages ✅
- German formal/informal variants properly differentiated ✅
**Commits:**
- 4f65c8e: Add missing admin translations for Fixed Price field
- 1b7c7a0: Bump version to 1.1.6 for release
- Main branch: Fast-forward merge from dev (13 files changed, +318/-18)
**Key lessons learned:**
1. **Translation Maintenance**: When adding new admin features, update .pot file and all .po files immediately
2. **Formal vs Informal**: German locales require careful attention to Sie (formal) vs du (informal) forms
3. **Version Consistency**: .pot file version should match plugin version for clarity
4. **Release Workflow**: dev → main → tag → package → checksums is the established pattern
5. **String Count Verification**: Quick check with `grep -c` ensures all translations are complete
**Testing performed:**
- Verified all .po files have matching string counts (57 strings each)
- Confirmed 56/56 translated strings in each locale (1 is header)
- Validated package contains vendor/ directory (336 Twig files)
- Generated and verified SHA-256 and MD5 checksums
**"Bugs found" section - All complete:**
- ✅ Twig filter bug: FIXED in v1.1.5
- ✅ Admin translation: COMPLETED in v1.1.6
**Status:** Released and tagged as v1.1.6 on main branch
---
**For AI Assistants:**
When starting a new session on this project:

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -3,7 +3,7 @@
* Plugin Name: WooCommerce Composable Products
* Plugin URI: https://github.com/magdev/wc-composable-product
* Description: Create composable products where customers select a limited number of items from a configurable set
* Version: 1.1.6
* Version: 1.1.7
* Author: Marco Graetsch
* Author URI: https://example.com
* License: GPL v3 or later
@@ -19,7 +19,7 @@
defined('ABSPATH') || exit;
// Define plugin constants
define('WC_COMPOSABLE_PRODUCT_VERSION', '1.1.6');
define('WC_COMPOSABLE_PRODUCT_VERSION', '1.1.7');
define('WC_COMPOSABLE_PRODUCT_FILE', __FILE__);
define('WC_COMPOSABLE_PRODUCT_PATH', plugin_dir_path(__FILE__));
define('WC_COMPOSABLE_PRODUCT_URL', plugin_dir_url(__FILE__));