Code

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#7346 closed (invalid)

missing lang translation for django.contrib.humanize

Reported by: Vašek Chalupníček <mower@…> Owned by: nobody
Component: Translations Version: newforms-admin
Severity: Keywords: humanize translation
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Problem

I have found, that some languages are missing translations for django.contrib.humanize strings (in my case: I want naturalday templatetag to be localized to CS). Involved languages are:

ar, bn, cs, cy, da, el, gl, km, kn, ko, lv, mk, pt, ru, sk, sl, sr, ta, te, tr, uk, zh_CN, zh_TW

This list is gathered by running this bash script (the word "tomorrow" is, among the others, added to django.po by django.contrib.humanize)

#!/bin/bash

for dir in `pwd`/*
do
    OUTPUT=`cat $dir/LC_MESSAGES/django.po | grep -n 'tomorrow'`
    if [[ ! $OUTPUT ]]
    then
       echo "$dir";
    fi
done;

Workaround

Just add translations to your project (LC_MESSAGES/django.po), but be careful, they will be commented out when running make_messages

Solution

Solution is simple, all mentioned language's django.pos in django/conf/local should be updated. (I can help with 'cs' lang, send me email if you want so)

Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by toxik

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

This isn't really a valid ticket, because this is what language maintenance is all about: keep them up to date with Django's evolution.

I'll send a message to django-i18n for you, but in the future, these things ought to go out to the mailing lists.

Hope you're okay with me closing this as invalid.

comment:2 in reply to: ↑ description Changed 6 years ago by telenieko

Replying to Vašek Chalupníček:

I can help with 'cs' lang, send me email if you want so

Patches are always welcome, so feel free to upload a patch for "cs" on a new ticket, you can then bug the language maintainer (if any) to have updates commited ;)

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.