Know a great AI tool or AI news source? Submit it to AiByts
i18n6 min read

Building a 24-Language Journal in Plain PHP: AI Translation, Hash-Based Staleness, and a Points-Gated Community

findnix.eu is a GDPR-first metasearch engine with its own index. Search was never the whole story, so we added a Journal: articles, a weekly digest, "finds" (sites worth a look), user questions and answers, and a profile page for every domain in the index.

By Mirko StahnkeDev.to AI
Building a 24-Language Journal in Plain PHP: AI Translation, Hash-Based Staleness, and a Points-Gated Community

This article discusses the development of a multilingual journal on findnix.eu, a GDPR-first metasearch engine, detailing the technical decisions and challenges involved in implementing AI-driven translation, content management, and community features using plain PHP and MariaDB.

What happened

The article outlines the technical implementation of a multilingual journal on findnix.eu, including the use of AI for translation, the management of content with hash-based staleness detection, and the development of a points-gated community system.

Why it matters

The article provides insights into handling multilingual content and community engagement in a privacy-focused platform, which is relevant for developers working on similar projects.

  • Use content hashes for derived data instead of timestamps.
  • Treat LLM outputs as untrusted markup.
  • Name languages explicitly in prompts to avoid translation errors.
  • Implement cheap data invariants to detect batch bugs.
  • Use a centralized points ledger for user rewards and privileges.

The bigger picture

The approach to managing multilingual content and community features can inform developers on best practices for similar systems, particularly in ensuring data integrity and user engagement.

The article presents a detailed technical overview of building a multilingual journal with AI-driven translation and community features, highlighting key strategies for managing content and user interactions effectively.

Technical details

  • Single table for multiple post types with ENUM column
  • Translation management with hash-based staleness detection
  • AI translation of HTML content with DOM sanitization
  • Points-gated community system with daily caps
  • Hash-based content verification for translations

FAQ

What is the main focus of the article?

The article focuses on the technical implementation of a multilingual journal on findnix.eu, including AI-driven translation, content management, and community features.

How does the system handle translation staleness?

The system uses a hash-based approach to determine if translations are up-to-date by comparing the hash of the source text with the stored hash in the translation.

What are the key technical challenges discussed?

Key challenges include managing multilingual content, ensuring AI-generated content is safe, and implementing a points-gated community system with user contributions tracked effectively.

How does the system prevent malicious content from AI translations?

The system uses a DOMDocument whitelist to sanitize AI-generated HTML, ensuring only allowed tags and attributes are included.

What is the significance of the hash-based content verification?

Hash-based verification ensures that translations are up-to-date without relying on timestamps, which can be affected by other post updates.

This summary and analysis were generated with AI from the original article and may contain errors. Read the original for the full story.

Read the full story

Originally published by Dev.to AI on Oct 5, 2026.

Read on Dev.to AI(opens in a new tab)

Comments

Sign in to join the discussion.

No comments yet — be the first to share your thoughts.