Browse Source

Fix the lowercase letter in the name of twin style to match the other occurrences.

Add loading translation catalog during twin style initialization.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
master
Slávek Banko 3 months ago
parent
commit
f1a743b321
Signed by: SlavekB GPG Key ID: 608F5293A04BE668
  1. 1
      src/twin/config/config.cpp
  2. 5
      src/twin/iaora.cpp
  3. 2
      src/twin/iaora.desktop
  4. 9
      translations/desktop_files/tde-style-ia-ora-desktops.pot

1
src/twin/config/config.cpp

@ -42,6 +42,7 @@ IaOraConfig::IaOraConfig(TDEConfig* config, TQWidget* parent)
// create the configuration object
m_config = new TDEConfig("twiniaorarc");
TDEGlobal::locale()->insertCatalogue("twin_clients");
TDEGlobal::locale()->insertCatalogue("twin_iaora");
// create and show the configuration dialog
m_dialog = new ConfigDialog(parent);

5
src/twin/iaora.cpp

@ -27,6 +27,8 @@
#include <tqimage.h>
#include <tqapplication.h>
#include <tdeconfig.h>
#include <tdeglobal.h>
#include <tdelocale.h>
#include <kpixmap.h>
#include <kpixmapeffect.h>
@ -41,6 +43,9 @@ namespace KWinIaOra
IaOraHandler::IaOraHandler()
{
TDEGlobal::locale()->insertCatalogue("twin_clients");
TDEGlobal::locale()->insertCatalogue("twin_iaora");
memset(m_pixmaps, 0, sizeof(TQPixmap*)*NumPixmaps*2*2); // set elements to 0
memset(m_bitmaps, 0, sizeof(TQBitmap*)*NumButtonIcons*2);

2
src/twin/iaora.desktop

@ -1,4 +1,4 @@
[Desktop Entry]
Name=Ia ora
Name=Ia Ora
Encoding=UTF-8
X-TDE-Library=twin3_iaora

9
translations/desktop_files/tde-style-ia-ora-desktops.pot

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-07-12 12:48+0200\n"
"POT-Creation-Date: 2021-07-12 13:08+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -17,7 +17,7 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
#. Name
#: widget/ia_ora.themerc:2
#: widget/ia_ora.themerc:2 twin/iaora.desktop:2
msgid "Ia Ora"
msgstr ""
@ -25,8 +25,3 @@ msgstr ""
#: widget/ia_ora.themerc:3
msgid "Mandriva Widget Style"
msgstr ""
#. Name
#: twin/iaora.desktop:2
msgid "Ia ora"
msgstr ""
Loading…
Cancel
Save