[Pidgin] #8505: multi-language status message

Pidgin trac at pidgin.im
Thu Apr 16 17:21:15 EDT 2009


#8505: multi-language status message
--------------------------------------------+-------------------------------
 Reporter:  Xytovl                          |        Owner:  deryni
     Type:  enhancement                     |       Status:  new   
Milestone:                                  |    Component:  XMPP  
  Version:  2.5.2                           |   Resolution:        
 Keywords:  status message, multi-language  |  
--------------------------------------------+-------------------------------

Comment(by Xytovl):

 Here is a patch that implements selection of the right status message, it
 works this way:
 - the languages are taken with g_get_language_names()
 - if there is an exact match between one of the languages and the xml:lang
 it gives the status message a score according to the position in the
 language list
 - if no exact match is found the status has the worst score
 the best language is saved (the others are ignored), if there is no match,
 the status with no xml:lang is saved.

 I have only tested it on Linux, I have no other OS to see what
 g_get_language_names() returns...

-- 
Ticket URL: <http://developer.pidgin.im/ticket/8505#comment:5>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list