Code

Opened 4 years ago

Closed 16 months ago

#14540 closed Bug (fixed)

Wrong localization (L10N) thousand separator & decimal point character for Puerto Rico

Reported by: rosarior Owned by: nobody
Component: Internationalization Version: 1.2
Severity: Normal Keywords: L10N, Puerto Rico
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The es-PR LANGUAGE_CODE incorrectly returns dot '.' as the thousand separator and comma ',' as decimal point symbols, which is inverted. The locale 'en-PR' is however correctly coded.

Attachments (1)

formats.py (711 bytes) - added by rosarior 4 years ago.
Location format file to es_PR location

Download all attachments as: .zip

Change History (10)

comment:1 Changed 4 years ago by rosarior

  • Component changed from Uncategorized to Internationalization
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

Changed 4 years ago by rosarior

Location format file to es_PR location

comment:2 follow-up: Changed 4 years ago by ramiro

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

Django currently has no Puerto Rico translation/format support. Maybe you are using files provided by another Django-based project (in that case you can reporte this to its maintainers) or locally created file (in which case you can edit the file yourself)?.

Of course, we would gladly add such a translation if anyone contributes one in good shape to Django.

comment:3 in reply to: ↑ 2 Changed 3 years ago by rosarior

  • Resolution invalid deleted
  • Status changed from closed to reopened

Replying to ramiro:

Django currently has no Puerto Rico translation/format support. Maybe you are using files provided by another Django-based project (in that case you can reporte this to its maintainers) or locally created file (in which case you can edit the file yourself)?.

Of course, we would gladly add such a translation if anyone contributes one in good shape to Django.

I'm using the official Django 1.2.4 files as downloaded by pip from djangoproject.com. The formats.py file attached here was create by myself by copying django/conf/locale/es/formats.py and editing it to provide the missing format support for es-PR locale, as for translation/i18n support the general 'es' translation is adequate for Puerto Rico, no specific 'es-PR' translation is needed.

Version 0, edited 3 years ago by rosarior (next)

comment:4 Changed 3 years ago by ramiro

  • Triage Stage changed from Unreviewed to Accepted

comment:5 Changed 3 years ago by julien

  • Severity set to Normal
  • Type set to Bug

comment:6 Changed 2 years ago by aaugustin

  • UI/UX unset

Change UI/UX from NULL to False.

comment:7 Changed 2 years ago by aaugustin

  • Easy pickings unset

Change Easy pickings from NULL to False.

comment:8 Changed 16 months ago by aaugustin

  • Status changed from reopened to new

comment:9 Changed 16 months ago by Claude Paroz <claude@…>

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

In 83f182da664645d3eff6f90a98f18d6f7af310bd:

Fixed #14540 -- Added Porto-Rico specific formats

Thanks rosarior for the report and the file proposal.

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.