Changeset 133

Show
Ignore:
Timestamp:
01/15/06 21:41:26 (3 years ago)
Author:
misja
Message:

Make xml-rpc return text/xml as content-type and make tinymce handle internationalization a little bit better.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/units/rpc/xmlrpc/xmlrpc_server.php

    r45 r133  
    5555     
    5656    // Possibility for handling other stuff here 
     57 
     58 
     59    // Set the content type 
     60    header("Content-type: text/xml"); 
    5761     
    5862    // Serve the request 
  • devel/units/tinymce/main.php

    r116 r133  
    77        $language = locale; 
    88    } 
     9     
     10    // Keep base language, no variations for now 
     11    $lang = explode("-", $language); 
    912 
    1013    // Loose the trailing slash 
     
    1518    <script language="javascript" type="text/javascript"> 
    1619    tinyMCE.init({ 
    17     language : "$language", 
     20    language : "$lang[0]", 
    1821    mode : "exact", 
    1922    elements : "new_weblog_post,new_weblog_comment",