From 8b11c3e8443ab7d0ba5f4fdc754dcdc8c2ca07be Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 21 Jul 2017 11:11:28 +0100 Subject: replace localestr with a script for the supported translation targets Change-Id: Ia0c00f6f978428d68b3c53051e26e1913b207dbe --- i18nlangtag/Executable_localestr.mk | 29 ----------------------------- i18nlangtag/Module_i18nlangtag.mk | 9 --------- i18nlangtag/source/localestr/localestr.cxx | 20 -------------------- 3 files changed, 58 deletions(-) delete mode 100644 i18nlangtag/Executable_localestr.mk delete mode 100644 i18nlangtag/source/localestr/localestr.cxx (limited to 'i18nlangtag') diff --git a/i18nlangtag/Executable_localestr.mk b/i18nlangtag/Executable_localestr.mk deleted file mode 100644 index 99195ffc7b80..000000000000 --- a/i18nlangtag/Executable_localestr.mk +++ /dev/null @@ -1,29 +0,0 @@ -# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- -# -# -# This file is part of the LibreOffice project. -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. -# - -$(eval $(call gb_Executable_Executable,localestr)) - -$(eval $(call gb_Executable_use_api,localestr,\ - offapi \ - udkapi \ -)) - -$(eval $(call gb_Executable_use_external,localestr,liblangtag)) - -$(eval $(call gb_Executable_use_libraries,localestr,\ - i18nlangtag \ - sal \ -)) - -$(eval $(call gb_Executable_add_exception_objects,localestr,\ - i18nlangtag/source/localestr/localestr \ -)) - -# vim: set noet sw=4 ts=4: diff --git a/i18nlangtag/Module_i18nlangtag.mk b/i18nlangtag/Module_i18nlangtag.mk index a58f8f9bc608..edd2e1d2e2a9 100644 --- a/i18nlangtag/Module_i18nlangtag.mk +++ b/i18nlangtag/Module_i18nlangtag.mk @@ -12,15 +12,6 @@ $(eval $(call gb_Module_add_targets,i18nlangtag,\ Library_i18nlangtag \ )) -ifeq ($(CROSS_COMPILING),) - -$(eval $(call gb_Module_add_targets,i18nlangtag,\ - Executable_localestr \ -)) - -endif - - $(eval $(call gb_Module_add_check_targets,i18nlangtag,\ CppunitTest_i18nlangtag_test_languagetag \ )) diff --git a/i18nlangtag/source/localestr/localestr.cxx b/i18nlangtag/source/localestr/localestr.cxx deleted file mode 100644 index c18531330c51..000000000000 --- a/i18nlangtag/source/localestr/localestr.cxx +++ /dev/null @@ -1,20 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ -#include -#include - -int main(int /*argc*/, char **argv) -{ - LanguageTag aTag(OUString::createFromAscii(argv[1])); - OUString aLocaleStr = aTag.getGlibcLocaleString(""); - printf("%s", aLocaleStr.toUtf8().getStr()); - return 0; -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ -- cgit