From 50ec84d15f75a309ccd7df29edcfa3471d16dd92 Mon Sep 17 00:00:00 2001 From: Christian Hewitt Date: Tue, 20 Feb 2024 10:34:36 +0000 Subject: [PATCH] lang: align language names with transifex Signed-off-by: Christian Hewitt --- CMakeLists.txt | 2 +- creator.pro | 346 ++++++++++++------------ lang/{flag-sl_SI.png => flag-sl_SL.png} | Bin lang/lang-ast_ES.ts | 2 +- lang/lang-cs_CZ.ts | 2 +- lang/lang-da_DK.ts | 2 +- lang/lang-el_GR.ts | 2 +- lang/lang-en_GB.ts | 2 +- lang/lang-fa_IR.ts | 2 +- lang/lang-he_IL.ts | 2 +- lang/lang-pt_BR.ts | 2 +- lang/lang-pt_PT.ts | 2 +- lang/{lang-sl_SI.ts => lang-sl_SL.ts} | 2 +- lang/lang-sr_RS.ts | 2 +- lang/lang-sv_SE.ts | 2 +- lang/lang-uk_UA.ts | 2 +- lang/lang-zh_CN.ts | 2 +- resources.qrc | 2 +- 18 files changed, 189 insertions(+), 189 deletions(-) rename lang/{flag-sl_SI.png => flag-sl_SL.png} (100%) rename lang/{lang-sl_SI.ts => lang-sl_SL.ts} (99%) diff --git a/CMakeLists.txt b/CMakeLists.txt index a7a0da7..7fd08ab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -83,7 +83,7 @@ qt_add_translations(LibreELEC.USB-SD.Creator lang/lang-pt_PT.ts lang/lang-ru_RU.ts lang/lang-sk_SK.ts - lang/lang-sl_SI.ts + lang/lang-sl_SL.ts lang/lang-sr_RS.ts lang/lang-sv_SE.ts lang/lang-tr_TR.ts diff --git a/creator.pro b/creator.pro index 56974e0..bfdb9b5 100644 --- a/creator.pro +++ b/creator.pro @@ -1,173 +1,173 @@ -################################################################################ -# This file is part of LibreELEC - http://www.libreelec.tv -# Copyright (C) 2013-2015 RasPlex project -# Copyright (C) 2016 Team LibreELEC -# -# LibreELEC is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 2 of the License, or -# (at your option) any later version. -# -# LibreELEC is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with LibreELEC. If not, see . -################################################################################ - -#------------------------------------------------- -# -# Project created by QtCreator 2013-03-14T18:13:26 -# -#------------------------------------------------- - -QT += core gui network widgets - -TARGET = LibreELEC.USB-SD.Creator -TEMPLATE = app - -SOURCES += main.cpp \ - creator.cpp \ - diskwriter.cpp \ - jsonparser.cpp \ - movingaverage.cpp \ - downloadmanager.cpp \ - translator.cpp - -HEADERS += creator.h \ - diskwriter.h \ - jsonparser.h \ - movingaverage.h \ - downloadmanager.h \ - deviceenumerator.h \ - translator.h - -MOC_DIR = .generated_files -OBJECTS_DIR = .generated_files - -# hide the full g++ command line and print only filename -CONFIG += silent - -TRANSLATIONS += lang/lang-ast_ES.ts \ - lang/lang-bg_BG.ts \ - lang/lang-cs_CZ.ts \ - lang/lang-da_DK.ts \ - lang/lang-de_DE.ts \ - lang/lang-el_GR.ts \ - lang/lang-en_GB.ts \ - lang/lang-es_ES.ts \ - lang/lang-fa_IR.ts \ - lang/lang-fi_FI.ts \ - lang/lang-fr_FR.ts \ - lang/lang-he_IL.ts \ - lang/lang-hr_HR.ts \ - lang/lang-hu_HU.ts \ - lang/lang-it_IT.ts \ - lang/lang-lt_LT.ts \ - lang/lang-nl_NL.ts \ - lang/lang-no_NO.ts \ - lang/lang-pl_PL.ts \ - lang/lang-pt_BR.ts \ - lang/lang-pt_PT.ts \ - lang/lang-ru_RU.ts \ - lang/lang-sk_SK.ts \ - lang/lang-sl_SI.ts \ - lang/lang-sr_RS.ts \ - lang/lang-sv_SE.ts \ - lang/lang-tr_TR.ts \ - lang/lang-uk_UA.ts \ - lang/lang-zh_CN.ts - -static { # everything below takes effect with CONFIG += static - CONFIG += static - CONFIG += staticlib # this is needed if you create a static library, not a static executable - message("~~~ static build ~~~") # this is for information, that the static build is done -} - -win32 { - # add suffix - TARGET = LibreELEC.USB-SD.Creator.Win32 - - SOURCES += diskwriter_windows.cpp \ - deviceenumerator_windows.cpp - - HEADERS += diskwriter_windows.h \ - deviceenumerator_windows.h \ - privileges.h - - CONFIG += rtti - QMAKE_LFLAGS = -static -static-libgcc - RC_FILE = winapp.rc - - # remove possible other optimization flags - QMAKE_CXXFLAGS_RELEASE -= -O - QMAKE_CXXFLAGS_RELEASE -= -O1 - QMAKE_CXXFLAGS_RELEASE -= -O2 - QMAKE_CXXFLAGS_RELEASE -= -O3 - # Optimize for size - QMAKE_CXXFLAGS_RELEASE += -Os - - QMAKE_CXXFLAGS = -Ic:\Qt\Qt5.6.1\Tools\mingw492_32\i686-w64-mingw32\include - - # write image to local file named 'dummy_image_file' - # instead to real device (for testing) - #DEFINES += WINDOWS_DUMMY_WRITE -} - -unix { - # remove possible other optimization flags - QMAKE_CFLAGS_RELEASE -= -O - QMAKE_CFLAGS_RELEASE -= -O1 - QMAKE_CFLAGS_RELEASE -= -O2 - QMAKE_CFLAGS_RELEASE -= -O3 - # Optimize for size - QMAKE_CFLAGS_RELEASE += -Os - - QMAKE_CXXFLAGS += -fPIC - - contains(QT_ARCH, i386) { - # link with i386 library manualy unpacked - QMAKE_LFLAGS += -L$(HOME)/Qt5.6.1/ubuntu-i386-lib/usr/lib/i386-linux-gnu - QMAKE_RPATHLINKDIR += $$(HOME)/Qt5.6.1/ubuntu-i386-lib/lib/i386-linux-gnu - } - - SOURCES += diskwriter_unix.cpp \ - deviceenumerator_unix.cpp \ - privileges_unix.cpp - - HEADERS += diskwriter_unix.h \ - deviceenumerator_unix.h \ - privileges_unix.h -} - -macx { - # use spaces on macOS - TARGET = "LibreELEC USB-SD Creator" - - QMAKE_INFO_PLIST = dmg_osx/template.app/Contents/Info.plist - #QT_CONFIG -= no-pkg-config - #CONFIG += link_pkgconfig - # same thing - #QMAKE_POST_LINK += install_name_tool -add_rpath @executable_path/../Frameworks \"LibreELEC USB-SD Creator.app/Contents/MacOS/LibreELEC USB-SD Creator\" -} - -linux* { - # manually add suffix 32/64 - TARGET = LibreELEC.USB-SD.Creator.Linux-bit.bin - - QMAKE_CXXFLAGS += -std=c++11 - - LIBS += -lblkid -} - -FORMS += creator.ui - -LIBS += -lz - -OTHER_FILES += - -RESOURCES += resources.qrc - -CONFIG(debug, debug|release): DEFINES += ALWAYS_DEBUG_OUTPUT +################################################################################ +# This file is part of LibreELEC - http://www.libreelec.tv +# Copyright (C) 2013-2015 RasPlex project +# Copyright (C) 2016 Team LibreELEC +# +# LibreELEC is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. +# +# LibreELEC is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with LibreELEC. If not, see . +################################################################################ + +#------------------------------------------------- +# +# Project created by QtCreator 2013-03-14T18:13:26 +# +#------------------------------------------------- + +QT += core gui network widgets + +TARGET = LibreELEC.USB-SD.Creator +TEMPLATE = app + +SOURCES += main.cpp \ + creator.cpp \ + diskwriter.cpp \ + jsonparser.cpp \ + movingaverage.cpp \ + downloadmanager.cpp \ + translator.cpp + +HEADERS += creator.h \ + diskwriter.h \ + jsonparser.h \ + movingaverage.h \ + downloadmanager.h \ + deviceenumerator.h \ + translator.h + +MOC_DIR = .generated_files +OBJECTS_DIR = .generated_files + +# hide the full g++ command line and print only filename +CONFIG += silent + +TRANSLATIONS += lang/lang-ast_ES.ts \ + lang/lang-bg_BG.ts \ + lang/lang-cs_CZ.ts \ + lang/lang-da_DK.ts \ + lang/lang-de_DE.ts \ + lang/lang-el_GR.ts \ + lang/lang-en_GB.ts \ + lang/lang-es_ES.ts \ + lang/lang-fa_IR.ts \ + lang/lang-fi_FI.ts \ + lang/lang-fr_FR.ts \ + lang/lang-he_IL.ts \ + lang/lang-hr_HR.ts \ + lang/lang-hu_HU.ts \ + lang/lang-it_IT.ts \ + lang/lang-lt_LT.ts \ + lang/lang-nl_NL.ts \ + lang/lang-no_NO.ts \ + lang/lang-pl_PL.ts \ + lang/lang-pt_BR.ts \ + lang/lang-pt_PT.ts \ + lang/lang-ru_RU.ts \ + lang/lang-sk_SK.ts \ + lang/lang-sl_SL.ts \ + lang/lang-sr_RS.ts \ + lang/lang-sv_SE.ts \ + lang/lang-tr_TR.ts \ + lang/lang-uk_UA.ts \ + lang/lang-zh_CN.ts + +static { # everything below takes effect with CONFIG += static + CONFIG += static + CONFIG += staticlib # this is needed if you create a static library, not a static executable + message("~~~ static build ~~~") # this is for information, that the static build is done +} + +win32 { + # add suffix + TARGET = LibreELEC.USB-SD.Creator.Win32 + + SOURCES += diskwriter_windows.cpp \ + deviceenumerator_windows.cpp + + HEADERS += diskwriter_windows.h \ + deviceenumerator_windows.h \ + privileges.h + + CONFIG += rtti + QMAKE_LFLAGS = -static -static-libgcc + RC_FILE = winapp.rc + + # remove possible other optimization flags + QMAKE_CXXFLAGS_RELEASE -= -O + QMAKE_CXXFLAGS_RELEASE -= -O1 + QMAKE_CXXFLAGS_RELEASE -= -O2 + QMAKE_CXXFLAGS_RELEASE -= -O3 + # Optimize for size + QMAKE_CXXFLAGS_RELEASE += -Os + + QMAKE_CXXFLAGS = -Ic:\Qt\Qt5.6.1\Tools\mingw492_32\i686-w64-mingw32\include + + # write image to local file named 'dummy_image_file' + # instead to real device (for testing) + #DEFINES += WINDOWS_DUMMY_WRITE +} + +unix { + # remove possible other optimization flags + QMAKE_CFLAGS_RELEASE -= -O + QMAKE_CFLAGS_RELEASE -= -O1 + QMAKE_CFLAGS_RELEASE -= -O2 + QMAKE_CFLAGS_RELEASE -= -O3 + # Optimize for size + QMAKE_CFLAGS_RELEASE += -Os + + QMAKE_CXXFLAGS += -fPIC + + contains(QT_ARCH, i386) { + # link with i386 library manualy unpacked + QMAKE_LFLAGS += -L$(HOME)/Qt5.6.1/ubuntu-i386-lib/usr/lib/i386-linux-gnu + QMAKE_RPATHLINKDIR += $$(HOME)/Qt5.6.1/ubuntu-i386-lib/lib/i386-linux-gnu + } + + SOURCES += diskwriter_unix.cpp \ + deviceenumerator_unix.cpp \ + privileges_unix.cpp + + HEADERS += diskwriter_unix.h \ + deviceenumerator_unix.h \ + privileges_unix.h +} + +macx { + # use spaces on macOS + TARGET = "LibreELEC USB-SD Creator" + + QMAKE_INFO_PLIST = dmg_osx/template.app/Contents/Info.plist + #QT_CONFIG -= no-pkg-config + #CONFIG += link_pkgconfig + # same thing + #QMAKE_POST_LINK += install_name_tool -add_rpath @executable_path/../Frameworks \"LibreELEC USB-SD Creator.app/Contents/MacOS/LibreELEC USB-SD Creator\" +} + +linux* { + # manually add suffix 32/64 + TARGET = LibreELEC.USB-SD.Creator.Linux-bit.bin + + QMAKE_CXXFLAGS += -std=c++11 + + LIBS += -lblkid +} + +FORMS += creator.ui + +LIBS += -lz + +OTHER_FILES += + +RESOURCES += resources.qrc + +CONFIG(debug, debug|release): DEFINES += ALWAYS_DEBUG_OUTPUT diff --git a/lang/flag-sl_SI.png b/lang/flag-sl_SL.png similarity index 100% rename from lang/flag-sl_SI.png rename to lang/flag-sl_SL.png diff --git a/lang/lang-ast_ES.ts b/lang/lang-ast_ES.ts index 71f2a12..f4d053a 100644 --- a/lang/lang-ast_ES.ts +++ b/lang/lang-ast_ES.ts @@ -1,6 +1,6 @@ - + Creator diff --git a/lang/lang-cs_CZ.ts b/lang/lang-cs_CZ.ts index 0d4ddf5..df96180 100644 --- a/lang/lang-cs_CZ.ts +++ b/lang/lang-cs_CZ.ts @@ -1,6 +1,6 @@ - + Creator diff --git a/lang/lang-da_DK.ts b/lang/lang-da_DK.ts index 1268d19..9a121b6 100644 --- a/lang/lang-da_DK.ts +++ b/lang/lang-da_DK.ts @@ -1,6 +1,6 @@ - + Creator diff --git a/lang/lang-el_GR.ts b/lang/lang-el_GR.ts index e1834ee..17ca82c 100644 --- a/lang/lang-el_GR.ts +++ b/lang/lang-el_GR.ts @@ -1,6 +1,6 @@ - + Creator diff --git a/lang/lang-en_GB.ts b/lang/lang-en_GB.ts index f6096e9..8bb2f72 100644 --- a/lang/lang-en_GB.ts +++ b/lang/lang-en_GB.ts @@ -1,6 +1,6 @@ - + Creator diff --git a/lang/lang-fa_IR.ts b/lang/lang-fa_IR.ts index bef474d..882892f 100644 --- a/lang/lang-fa_IR.ts +++ b/lang/lang-fa_IR.ts @@ -1,6 +1,6 @@ - + Creator diff --git a/lang/lang-he_IL.ts b/lang/lang-he_IL.ts index 7c6f9b4..46248a0 100644 --- a/lang/lang-he_IL.ts +++ b/lang/lang-he_IL.ts @@ -1,6 +1,6 @@ - + Creator diff --git a/lang/lang-pt_BR.ts b/lang/lang-pt_BR.ts index 8e9bfc4..7af21f3 100644 --- a/lang/lang-pt_BR.ts +++ b/lang/lang-pt_BR.ts @@ -1,6 +1,6 @@ - + Creator diff --git a/lang/lang-pt_PT.ts b/lang/lang-pt_PT.ts index 393f379..e9dfcd0 100644 --- a/lang/lang-pt_PT.ts +++ b/lang/lang-pt_PT.ts @@ -1,6 +1,6 @@ - + Creator diff --git a/lang/lang-sl_SI.ts b/lang/lang-sl_SL.ts similarity index 99% rename from lang/lang-sl_SI.ts rename to lang/lang-sl_SL.ts index 2aa9fb3..26994f5 100644 --- a/lang/lang-sl_SI.ts +++ b/lang/lang-sl_SL.ts @@ -1,6 +1,6 @@ - + Creator diff --git a/lang/lang-sr_RS.ts b/lang/lang-sr_RS.ts index 69535e8..1fb5d0e 100644 --- a/lang/lang-sr_RS.ts +++ b/lang/lang-sr_RS.ts @@ -1,6 +1,6 @@ - + Creator diff --git a/lang/lang-sv_SE.ts b/lang/lang-sv_SE.ts index 52b4da9..ff41367 100644 --- a/lang/lang-sv_SE.ts +++ b/lang/lang-sv_SE.ts @@ -1,6 +1,6 @@ - + Creator diff --git a/lang/lang-uk_UA.ts b/lang/lang-uk_UA.ts index d7e6003..570df36 100644 --- a/lang/lang-uk_UA.ts +++ b/lang/lang-uk_UA.ts @@ -1,6 +1,6 @@ - + Creator diff --git a/lang/lang-zh_CN.ts b/lang/lang-zh_CN.ts index 58dd930..ea3a05f 100644 --- a/lang/lang-zh_CN.ts +++ b/lang/lang-zh_CN.ts @@ -1,6 +1,6 @@ - + Creator diff --git a/resources.qrc b/resources.qrc index b16f7ee..83fc3b3 100644 --- a/resources.qrc +++ b/resources.qrc @@ -42,7 +42,7 @@ lang/flag-pt_PT.png lang/flag-ru_RU.png lang/flag-sk_SK.png - lang/flag-sl_SI.png + lang/flag-sl_SL.png lang/flag-sr_RS.png lang/flag-sv_SE.png lang/flag-tr_TR.png