feat: add Spanish (es_ES) and Romanian (ro_RO) translations

- Generate woolist-phplist.pot from all 48 translatable strings
- Add full es_ES.po / ro_RO.po with translations for all strings
- Compile binary .mo files for both locales
- Add load_plugin_textdomain() call so WordPress loads the translations

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-19 13:09:12 +01:00
parent 6e23e40bf3
commit 0429a282bc
6 changed files with 720 additions and 0 deletions

View File

@@ -40,6 +40,8 @@ function woolist_check_woocommerce() {
* Bootstrap the plugin after all plugins are loaded.
*/
function woolist_init() {
load_plugin_textdomain( 'woolist-phplist', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
if ( ! woolist_check_woocommerce() ) {
return;
}