[haiku-depot-web] Re: Unknown Natural Languages

  • From: Andrew Lindesay <apl@xxxxxxxxxxxxxx>
  • To: haiku-depot-web@xxxxxxxxxxxxx
  • Date: Wed, 24 Sep 2014 07:42:53 +1200

Hello Stephan;

By convention, if you refer to to an object (such as natural language) and it is not there then the application server will throw the "ObjectNotFoundException". I'd prefer if it did that consistently to avoid confusion.

Regards;

On 24/09/14 6:46 am, Stephan Aßmus wrote:
Hi Andrew,

Am 23.09.2014 11:55, schrieb Andrew Lindesay:
Could you lookup the possible "natural languages" first with a call to
"getAllNaturalLanguages(..)" on the miscellaneous endpoint.  If the
user's natural language is not present then just use "en".

But why don't you fall back to "en" on the server side? That's what I
assumed would happen, without giving it any thought.

Best regards,
-Stephan




--
Andrew Lindesay

Other related posts: