Main/WordPress Fullstack/Blueprints/Custom Themes/Complete Theme Internationalization (i18n) & Polylang / WPML Integration
Back to «Custom Themes» cardsCustom Themes(ТЗ 27 из 54)
Spec: Complete Theme Internationalization (i18n) & Polylang / WPML IntegrationТрудозатраты~9 рабочих часов
Фриланс вилка~$405 – $675 (€360 – €630)
Оценка веб-студии~$855 – $1,440 (€810 – €1350)
ТЗ заказчика (исходный бриф):
Our company is expanding internationally (English, Spanish, German, and Arabic). The theme must be 100% translation-ready with no hardcoded strings, integrate with Polylang/WPML, support custom language switchers, and render RTL layouts.
Ключевые требования:
- •Initialize text domain via load_theme_textdomain() on after_setup_theme hook
- •Audit all theme PHP templates to replace hardcoded strings with gettext functions (__, _e, _n, _x, esc_html__)
- •Generate pristine .pot translation template catalog using WP-CLI (wp i18n make-pot)
- •Custom language switcher component in header supporting Polylang and WPML APIs with fallback
- •Full Right-to-Left (RTL) language layout stylesheet (rtl.css) for Arabic language support
Ограничения проекта:
- •Zero hardcoded user-facing strings in template files or JavaScript files
- •Dynamic variables inside translation strings must use printf/sprintf with placeholders (%s, %d)
- •RTL stylesheet must not break existing LTR layouts
Критерии приёмки (KPI):
- WP-CLI make-pot discovers 100% of theme strings with zero syntax errors
- Polylang and WPML string translation screens recognize all theme text domains
- Arabic layout renders with perfect RTL alignment and inverted icons
Пошаговое практическое руководство по ТЗ
Подробный разбор архитектуры, код реализации и советы эксперта по каждому этапу: