Re: [Django] #11915: language range request should return sublanguage

2013-05-19 Thread Django
#11915: language range request should return sublanguage
--+
 Reporter:  galund|Owner:  ambv
 Type:  Bug   |   Status:  closed
Component:  Internationalization  |  Version:  master
 Severity:  Normal|   Resolution:  fixed
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  0 |UI/UX:  0
--+
Changes (by Łukasz Langa ):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"26e3e7ecb5e4c9af4cd5aa178f65ce1585d3ae07"]:
 {{{
 #!CommitTicketReference repository=""
 revision="26e3e7ecb5e4c9af4cd5aa178f65ce1585d3ae07"
 Fixed #11915: generic Accept-Language matches country-specific variants
 }}}

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #11915: language range request should return sublanguage

2013-05-19 Thread Django
#11915: language range request should return sublanguage
--+
 Reporter:  galund|Owner:  ambv
 Type:  Bug   |   Status:  closed
Component:  Internationalization  |  Version:  master
 Severity:  Normal|   Resolution:  fixed
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  0 |UI/UX:  0
--+

Comment (by Aymeric Augustin ):

 In [changeset:"3129d190714216cd83d2494a88f537699a42375f"]:
 {{{
 #!CommitTicketReference repository=""
 revision="3129d190714216cd83d2494a88f537699a42375f"
 Merge pull request #1152 from ambv/issue11915

 Fixed #11915: generic Accept-Language matches country-specific variants
 }}}

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #11915: language range request should return sublanguage

2013-05-19 Thread Django
#11915: language range request should return sublanguage
--+
 Reporter:  galund|Owner:  ambv
 Type:  Bug   |   Status:  assigned
Component:  Internationalization  |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  0 |UI/UX:  0
--+
Changes (by ambv):

 * has_patch:  0 => 1


Comment:

 Pull request ready: https://github.com/django/django/pull/1152

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #11915: language range request should return sublanguage

2013-05-19 Thread Django
#11915: language range request should return sublanguage
--+
 Reporter:  galund|Owner:  ambv
 Type:  Bug   |   Status:  assigned
Component:  Internationalization  |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  0 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  0 |UI/UX:  0
--+
Changes (by ambv):

 * status:  new => assigned
 * owner:  nobody => ambv


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #11915: language range request should return sublanguage

2013-05-18 Thread Django
#11915: language range request should return sublanguage
--+
 Reporter:  galund|Owner:  nobody
 Type:  Bug   |   Status:  new
Component:  Internationalization  |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  0 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  0 |UI/UX:  0
--+

Comment (by aerkalov):

 Just a small comment from my side, not sure at this moment how to solve
 this.

 As it is implemented at the moment function all_locale_paths
 (django/utils/translation/trans_real.py) always returns
 "django/conf/locale" (with addition of user added locale path
 directories). That directory already contains translation files for most
 of the languages with sublanguages (ar, pt, es, en, ...). In example above
 where user has defined "Accept-Language: pt" Django will accept this as
 valid choice (because it does have translation for that language) even
 though user has only defined "pt_BR" for his own applications. Not really
 sure how one could decide and make a switch to pt_BR language code.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #11915: language range request should return sublanguage

2011-12-17 Thread Django
#11915: language range request should return sublanguage
--+
 Reporter:  galund|Owner:  nobody
 Type:  Bug   |   Status:  new
Component:  Internationalization  |  Version:  SVN
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  0 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  0 |UI/UX:  0
--+
Changes (by aaugustin):

 * ui_ux:   => 0
 * type:  New feature => Bug
 * easy:   => 0
 * stage:  Design decision needed => Accepted


Comment:

 ramiro: I propose to select whichever language comes first in
 `settings.LANGUAGES`.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



Re: [Django] #11915: language range request should return sublanguage

2010-02-01 Thread Django
#11915: language range request should return sublanguage
-+--
  Reporter:  galund  | Owner:  nobody
Status:  new | Milestone:
 Component:  Internationalization|   Version:  SVN   
Resolution:  |  Keywords:
 Stage:  Design decision needed  | Has_patch:  0 
Needs_docs:  0   |   Needs_tests:  0 
Needs_better_patch:  0   |  
-+--
Changes (by ramiro):

  * needs_better_patch:  => 0
  * needs_tests:  => 0
  * version:  1.0 => SVN
  * needs_docs:  => 0
  * stage:  Unreviewed => Design decision needed

Old description:

> If a user's browser includes a request for a language range including a
> parent language, sub-languages which match should be returned.
>
> For example, if a user's browser sends a header
> Accept-Language: pt
>
> And my site has
> LANGUAGES = (
> #...
>   ('pt-br', 'Português (Brazil)'),
> #...
> )
>
> Then the pt_BR locale files I have should be used. (RFC 2616: 'A
> language-range matches a language-tag if it exactly equals the tag, or if
> it exactly equals a prefix of the tag such that the first tag character
> following the prefix is "-".')
>
> Right now the only way to get the Portugese returned is for me to relabel
> my local to just "pt" (which works except that the language will now be
> mislabelled in the Content-Language header).

New description:

 If a user's browser includes a request for a language range including a
 parent language, sub-languages which match should be returned.

 For example, if a user's browser sends a header
 {{{
 Accept-Language: pt
 }}}
 And my site has
 {{{
 LANGUAGES = (
 #...
   ('pt-br', 'Português (Brazil)'),
 #...
 )
 }}}
 Then the pt_BR locale files I have should be used. (RFC 2616: 'A language-
 range matches a language-tag if it exactly equals the tag, or if it
 exactly equals a prefix of the tag such that the first tag character
 following the prefix is "-".')

 Right now the only way to get the Portugese returned is for me to relabel
 my local to just "pt" (which works except that the language will now be
 mislabelled in the Content-Language header).

Comment:

 This takes us to the following possible scenario: What if the `LANGUAGES`
 setting has, in addition to `'pt-br'`, `'pt-cv'` (Portuguese as spoken in
 Cape Verde)? How and why should Django choose `'pt-br'` in preference to
 `'pt-cv'` (or vice versa) if a translation to `'pt'` is missing?

 (The fact I'm using `pt`, `pt-br` and `pt-cv` in this example is just
 incidental, the real issue is what matters)

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.



[Django] #11915: language range request should return sublanguage

2009-09-21 Thread Django
#11915: language range request should return sublanguage
--+-
 Reporter:  galund|   Owner:  nobody
   Status:  new   |   Milestone:
Component:  Internationalization  | Version:  1.0   
 Keywords:|   Stage:  Unreviewed
Has_patch:  0 |  
--+-
 If a user's browser includes a request for a language range including a
 parent language, sub-languages which match should be returned.

 For example, if a user's browser sends a header
 Accept-Language: pt

 And my site has
 LANGUAGES = (
 #...
   ('pt-br', 'Português (Brazil)'),
 #...
 )

 Then the pt_BR locale files I have should be used. (RFC 2616: 'A language-
 range matches a language-tag if it exactly equals the tag, or if it
 exactly equals a prefix of the tag such that the first tag character
 following the prefix is "-".')

 Right now the only way to get the Portugese returned is for me to relabel
 my local to just "pt" (which works except that the language will now be
 mislabelled in the Content-Language header).

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---