Commit 3ed2918
committed
feat: add internationalization support with 13 languages
Enable plugin localization with support for 13 languages matching PrestaShop plugin coverage.
- Enable load_plugin_textdomain() with conditional translation loading
- Add translation files (.pot, .po, .mo) for 13 languages: Catalan, German, Spanish, Estonian, Finnish, French, Italian, Latvian, Dutch, Norwegian, Polish, Portuguese, Russian
- Implement smart translation loading: prioritize user customizations, then use local translations if newer than WordPress.org, fallback to WordPress.org translations
- Add multiline formatting to credit card settings description for better readability
- Add wp-cli/i18n-command for translation management
- All 258+ strings professionally translated per language
Translation priority:
1. User customizations (wp-content/languages/)
2. Local bundled (if newer or WP.org doesn't exist)
3. WordPress.org community translations1 parent ea72233 commit 3ed2918
File tree
32 files changed
+18780
-7
lines changed- includes/admin
- languages
32 files changed
+18780
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
262 | | - | |
| 261 | + | |
263 | 262 | | |
264 | 263 | | |
265 | 264 | | |
| |||
342 | 341 | | |
343 | 342 | | |
344 | 343 | | |
345 | | - | |
346 | | - | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
347 | 373 | | |
348 | 374 | | |
349 | 375 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
0 commit comments