Opened 6 years ago

Closed 4 years ago

#14540 closed Bug (fixed)

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

Reported by: Roberto Rosario 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 Roberto Rosario 6 years ago.
Location format file to es_PR location

Download all attachments as: .zip

Change History (10)

comment:1 Changed 6 years ago by Roberto Rosario

Component: UncategorizedInternationalization
Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset

Changed 6 years ago by Roberto Rosario

Attachment: formats.py added

Location format file to es_PR location

comment:2 Changed 6 years ago by Ramiro Morales

Resolution: invalid
Status: newclosed

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 6 years ago by Roberto Rosario

Resolution: invalid
Status: closedreopened

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.

Maybe the ticked title is what's wrong, a more appropriate title should be: "Include specific localization support for Puerto Rico 'es-PR'"

Last edited 6 years ago by Roberto Rosario (previous) (diff)

comment:4 Changed 6 years ago by Ramiro Morales

Triage Stage: UnreviewedAccepted

comment:5 Changed 5 years ago by Julien Phalip

Severity: Normal
Type: Bug

comment:6 Changed 5 years ago by Aymeric Augustin

UI/UX: unset

Change UI/UX from NULL to False.

comment:7 Changed 5 years ago by Aymeric Augustin

Easy pickings: unset

Change Easy pickings from NULL to False.

comment:8 Changed 4 years ago by Aymeric Augustin

Status: reopenednew

comment:9 Changed 4 years ago by Claude Paroz <claude@…>

Resolution: fixed
Status: newclosed

In 83f182da664645d3eff6f90a98f18d6f7af310bd:

Fixed #14540 -- Added Porto-Rico specific formats

Thanks rosarior for the report and the file proposal.

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