Menu

Arabic and English in one Django site: four bugs that weren't translation
📰

Arabic and English in one Django site: four bugs that weren't translation

DEV Community: django·Architectena·16 days ago
#KpKhgStk
#devtodjango#devto#dev#arabic#every
Long article (761 words) — no AI summary yet.
Reading 0:00
15s threshold

I'm an architect, and I built Architectena , a professional site for architects (portfolio, CV, architecture-only jobs, office pages and a studio workspace) that runs fully in Arabic and English. It's Django 5.2 on PostgreSQL, with Celery for background work.

Translating the interface was the easy part. These four problems were not in any translation file, and each one looked fine until it didn't.

1. The year 2026 rendered as "2,026"

With USE_THOUSAND_SEPARATOR = True , Django groups every integer a template renders. It can't tell a quantity from an identifier. A project year came out as 2,026 , and the same rule turns {{ obj.id }} into 1,234 inside form values and URLs.

We searched the templates and found 323 places that render an identifier. 214 of them would actually break: 189 form values that would submit 1,234 and fail validation, and 25 links that would 404. None had broken yet only because no table had passed 1,000 rows.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.