LCOV - code coverage report
Current view: top level - libreoffice/svtools/source/misc - langhelp.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 7 0.0 %
Date: 2012-12-27 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * Version: MPL 1.1 / GPLv3+ / LGPLv3+
       4             :  *
       5             :  * The contents of this file are subject to the Mozilla Public License Version
       6             :  * 1.1 (the "License"); you may not use this file except in compliance with
       7             :  * the License. You may obtain a copy of the License at
       8             :  * http://www.mozilla.org/MPL/
       9             :  *
      10             :  * Software distributed under the License is distributed on an "AS IS" basis,
      11             :  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
      12             :  * for the specific language governing rights and limitations under the
      13             :  * License.
      14             :  *
      15             :  * The Initial Developer of the Original Code is
      16             :  *       Thorsten Behrens <tbehrens@novell.com>
      17             :  *
      18             :  * Contributor(s): Thorsten Behrens <tbehrens@novell.com>
      19             :  *
      20             :  * Alternatively, the contents of this file may be used under the terms of
      21             :  * either the GNU General Public License Version 3 or later (the "GPLv3+"), or
      22             :  * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
      23             :  * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
      24             :  * instead of those above.
      25             :  */
      26             : 
      27             : 
      28             : #include <svtools/langhelp.hxx>
      29             : 
      30             : #include <vcl/svapp.hxx>
      31             : #include <rtl/ustring.hxx>
      32             : 
      33           0 : void localizeWebserviceURI( ::rtl::OUString& rURI )
      34             : {
      35           0 :     ::rtl::OUString aLang = Application::GetSettings().GetUILanguageTag().getLanguage();
      36           0 :     if ( aLang.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("pt"))
      37           0 :          && Application::GetSettings().GetUILanguageTag().getCountry().equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("br")) )
      38             :     {
      39           0 :         aLang = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "pt-br" ));
      40             :     }
      41             : 
      42           0 :     rURI += aLang;
      43           0 : }
      44             : 
      45             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10