[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenonbeta/knot
From:       Tim Jansen <tim () tjansen ! de>
Date:       2003-09-13 20:32:18
[Download RAW message or body]

CVS commit by tjansen: 

handle language dialects


  M +5 -0      docs/rfc2608-compliance.txt   1.3
  M +3 -0      slp/service.cpp   1.4


--- kdenonbeta/knot/docs/rfc2608-compliance.txt  #1.2:1.3
@@ -139,4 +139,9 @@
 - Knot does not support SLP SPI
 
+16. Internationalization Considerations
+
+- Knot always ignores the dialect of the langage field. It will not prefer a 
+  matching dialect for the language
+
 D.1. Required Attribute Missing Option
 

--- kdenonbeta/knot/slp/service.cpp  #1.3:1.4
@@ -56,4 +56,7 @@ Service::Service(Type type,
         if (language.isNull())
                 m_language = "en";
+        int pos = m_language.find('-');
+        if (pos > 0)
+                m_language = m_language.left(pos);
 
         if (autoAddress)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic