[haiku-bugs] Re: [Haiku] #9322: Documentation/Welcome: automatically detect user's language

  • From: "dsjonny" <trac@xxxxxxxxxxxx>
  • Date: Mon, 31 Dec 2012 18:08:12 -0000

#9322: Documentation/Welcome: automatically detect user's language
-----------------------------+----------------------------
   Reporter:  dsjonny        |      Owner:  nielx
       Type:  enhancement    |     Status:  new
   Priority:  normal         |  Milestone:  R1
  Component:  Documentation  |    Version:  R1/Development
 Resolution:                 |   Keywords:
 Blocked By:                 |   Blocking:
Has a Patch:  0              |   Platform:  All
-----------------------------+----------------------------

Comment (by dsjonny):

 I think it's final...

 How it works?
 1. it detects the language code (if code contains "-", it will replace
 with "_"; it the code style is xx-XX, than it will use only 2 char code
 (for example: de-DE > de, pt-BR > pt_BR, hu > hu))
 2. check if local page is available for the given language; if yes, than
 load it
 3. if not, than check if the online page is available for the given
 language; if yes, load it
 4. if not, than check it local English page is available; if yes, load it
 5. if not, than check if the online English page is available; if yes,
 load it
 6. if not, than inform the user: "Sorry, but no page found. :("

 There is only one problem: if no internet connection available, and no
 local page present, than it will wait until some seconds/minutes before it
 inform the user about no page available.

 I have tried it with Hungarian, English, Afrikaans (Suid-Afrika), Deutsch
 (Deutschland) and Portugues (Brasil) languages; with internet present/not
 present; with page is present/not present.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/9322#comment:5>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: