[OpenStreetMap] #4793: HTTP 500 error with Potlach editor

OpenStreetMap trac at noreply.openstreetmap.org
Mon Feb 25 09:58:03 UTC 2013


#4793: HTTP 500 error with Potlach editor
-----------------------+--------------------------------------------------
  Reporter:  metkos@…  |      Owner:  rails-dev@…
      Type:  defect    |     Status:  new
  Priority:  major     |  Milestone:
 Component:  website   |    Version:
Resolution:            |   Keywords:  500 error serbian preffered language
-----------------------+--------------------------------------------------

Comment (by TomH):

 Specifically it means that this line:

 {{{
 <% locale = request.compatible_language_from(Potlatch2::LOCALES.keys) ||
 "en" %>
 }}}

 must have failed to set locale to anything, despite the "en" fallback.

 One thing I do notice is that "sr" is a bit special as we don't have a
 mapping for it in the Potlatch list, because I wasn't sure which of "sr-
 EC" and "sr-EL" should be the default. To be honest neither of those codes
 seems valid anyway - the first would be "Serbian as spoke in Ecuador" and
 the second is nothing at all because there is no country with "EL" as it's
 code.

 It seems that what Potlatch 2 has as sr-ec is actually the cyrillic
 variant and sr-el is the latin variant... I will try updating our mappings
 to match that.

-- 
Ticket URL: <https://trac.openstreetmap.org/ticket/4793#comment:4>
OpenStreetMap <http://www.openstreetmap.org/>
OpenStreetMap is a free editable map of the whole world



More information about the rails-dev mailing list