Skip to content

i18n: Translation files (.po) outdated — 261+ strings missing from shipped translations #173

@parhumm

Description

@parhumm

Summary

Translation (.po/.mo) files shipped with the plugin are outdated and missing 261+ strings compared to the current .pot template. This causes the admin UI to display English text even when WordPress is set to a non-English locale (e.g., Japanese).

All PHP strings are properly wrapped with WordPress i18n functions — the issue is that the .po files haven't been regenerated to match the current .pot.

Evidence

Screenshot context: WordPress admin set to Japanese locale, but SlimStat UI displays in English.

Strings visible in admin UI — all missing from ja.po

English Text i18n Function In .pot? In ja.po?
Online Visitors esc_html_e() Yes No
Upgrade to Premium esc_html_e() / esc_attr_e() Yes No
Users live esc_html_e() Yes No
Pages live esc_html_e() Yes No
Countries live esc_html_e() Yes No
Unlock the Full Power of SlimStat Analytics esc_html_e() Yes No
Unlock SlimStat Pro esc_html_e() Yes No
Export to Excel esc_html_e() Yes No
Last 28 Days __() Yes No

Translation file stats

File Strings Status
wp-slimstat.pot 1,439 Current (2026-03-11)
wp-slimstat-ja.po 1,178 Outdated — missing 261 strings
wp-slimstat-ja.po untranslated 755 / 1,178 64% empty even among included strings

All other shipped .po files (de_DE, fr_FR, fa_IR, etc.) likely have the same gap.

Suggested Fix

  1. Regenerate all .po files from the current .pot:
    for po in languages/wp-slimstat-*.po; do
      msgmerge --update "$po" languages/wp-slimstat.pot
    done
  2. Rebuild .mo files from updated .po files
  3. Consider enabling GlotPress / translate.wordpress.org for community-driven translations

Code References

File Lines Description
admin/view/partials/header.php 108, 146, 153 Online Visitors, Upgrade to Premium
views/reports/live-analytics.php 67, 85, 103, 184, 192 Live stats labels, unlock CTAs
src/Components/DateRangeHelper.php 206 Date range labels
languages/wp-slimstat.pot Current template (1,439 strings)
languages/wp-slimstat-ja.po Outdated Japanese translation

Validated via qa-issue-validate skill (jaan.to plugin)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions