Opened 2 years ago

Closed 14 months ago

#19647 closed New feature (fixed)

esperanto formats.py

Reported by: post@… Owned by: batisteo
Component: Translations Version: 1.4
Severity: Normal Keywords: esperanto
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Here's a draft Esperanto formats.py from Translatewiki:

# -*- encoding: utf-8 -*-
# This file is distributed under the same license as the Django package.
#
from __future__ import unicode_literals

# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = r'j\-\a \d\e F\, Y'
TIME_FORMAT = 'H:i'
DATETIME_FORMAT = r'j\-\a \d\e F\, Y\, \j\e H:i'
YEAR_MONTH_FORMAT = r'F \d\e Y'
MONTH_DAY_FORMAT = r'j\-\a \d\e F'
SHORT_DATE_FORMAT = 'Y-m-d'         # ISO 8601
SHORT_DATETIME_FORMAT = 'Y-m-d H:i' # ISO 8601
FIRST_DAY_OF_WEEK = 0  # Dimanĉo

# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
DATE_INPUT_FORMATS = (
 '%Y-%m-%d', '%y-%m-%d', # '2013-10-25', '13-10-25'
 # '%d-a de %b-o %Y', '%d %b %Y',   # '25-a de okt-o 2013', '25 okt 2013'
 # 'la %d-a de %B, %Y', '%d %B %Y', # 'la 25-a de oktobro, 2013', '25 oktobro 2013', 
)
DATETIME_INPUT_FORMATS = (
 '%Y-%m-%d %H:%M:%S',     # '2013-10-25 14:30:59'
 '%Y-%m-%d %H:%M',        # '2013-10-25 14:30'
 '%Y-%m-%d',              # '2013-10-25'
 '%y-%m-%d %H:%M:%S',     # '13-10-25 14:30:59'
 '%y-%m-%d %H:%M',        # '13-10-25 14:30'
 '%y-%m-%d',              # '13-10-25'
)
DECIMAL_SEPARATOR = ','
THOUSAND_SEPARATOR = ' '
NUMBER_GROUPING = 3

Change History (7)

comment:1 Changed 2 years ago by dittaeva

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

Personally I don't have time to look at this now.

comment:2 Changed 2 years ago by claudep

  • Triage Stage changed from Unreviewed to Accepted

It would be nice if this could be reviewed by Esperanto translators from the Transifex team: https://www.transifex.com/projects/p/django/language/eo/members/

comment:3 Changed 14 months ago by batisteo

  • Owner changed from nobody to batisteo
  • Status changed from new to assigned

comment:4 Changed 14 months ago by batisteo

  • Resolution set to fixed
  • Status changed from assigned to closed

In 7f513d11de55bc667616c53406c08106ce5edbbd

Fixed #19647 - Esperanto formats.py. Thanks to Objectivesea and Guttorm Flatabø (dittaeva)!

comment:5 Changed 14 months ago by claudep

  • Resolution fixed deleted
  • Status changed from closed to new

Above commit is not in Django tree. Reopening...

comment:6 Changed 14 months ago by batisteo

  • Has patch set

comment:7 Changed 14 months ago by Baptiste Mispelon <bmispelon@…>

  • Resolution set to fixed
  • Status changed from new to closed

In b4f21d1807e0faf709ee5ae3a1518d6db8983581:

Fixed #19647 -- Added formats.py for Esperanto.

Thanks to Objectivesea and Guttorm Flatabø (dittaeva)!

Note: See TracTickets for help on using tickets.
Back to Top