Skip to content

Commit

Permalink
Hotkeys no English translation
Browse files Browse the repository at this point in the history
  • Loading branch information
bjakja committed Dec 27, 2017
1 parent 72992a3 commit 669ea8b
Show file tree
Hide file tree
Showing 19 changed files with 39 additions and 265 deletions.
14 changes: 6 additions & 8 deletions Kaiplayer/OptionsDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#include "KaiStaticText.h"
#include "OptionsPanels.h"

const wxString windowNames[] = {_("Globalny"),_("Napisy"),_("Edytor"),_("Wideo"),_("Audio")};

void ItemHotkey::OnPaint(wxMemoryDC *dc, int x, int y, int width, int height, KaiListCtrl *theList)
{
Expand Down Expand Up @@ -75,7 +74,7 @@ void ItemHotkey::OnMapHotkey(KaiListCtrl *theList, int y)
int result = msg.ShowModal();
if(result!=wxCANCEL){
if(result==wxNO){hotkey="";}
int nitem =theList->FindItem(0, windowNames[cur->first.Type] + " " + cur->second.Name);
int nitem = theList->FindItem(0, OptionsDialog::windowNames[cur->first.Type] + " " + cur->second.Name);
if(nitem>=0){
ItemHotkey* item = (ItemHotkey*)theList->CopyRow(nitem, 1);
item->accel = hotkey;
Expand All @@ -88,11 +87,11 @@ void ItemHotkey::OnMapHotkey(KaiListCtrl *theList, int y)

if(!itype){return;}
if(hotkeyId.Type != hkd.type){
int nitem = theList->FindItem(0, windowNames[hkd.type] + " " + name);
int nitem = theList->FindItem(0, OptionsDialog::windowNames[hkd.type] + " " + name);
if(nitem<0){
ItemHotkey* itemcopied = (ItemHotkey*)theList->CopyRow(y, 1, true);
ItemText *itemtext = (ItemText*)theList->GetItem(theList->GetCount()-1, 0);
itemtext->name = windowNames[hkd.type] + " " + name;
itemtext->name = OptionsDialog::windowNames[hkd.type] + " " + name;
itemcopied->accel = hkd.hotkey;
itemcopied->modified = true;
int pos = theList->GetCount();
Expand Down Expand Up @@ -146,13 +145,13 @@ void ItemHotkey::Save()
modified=false;
}
}
wxString *OptionsDialog::windowNames = NULL;

OptionsDialog::OptionsDialog(wxWindow *parent, kainoteFrame *kaiparent)
: KaiDialog(parent,-1,_("Opcje"))
{
windowNames = new wxString[5]{ _("Globalny"), _("Napisy"), _("Edytor"), _("Wideo"), _("Audio") };
OptionsTree= new KaiTreebook(this,-1);
//OptionsTree->SetForegroundColour(text);
//OptionsTree->SetBackgroundColour(window);

Kai=kaiparent;
Stylelist=NULL;
Expand All @@ -163,9 +162,7 @@ OptionsDialog::OptionsDialog(wxWindow *parent, kainoteFrame *kaiparent)
SetIcon(icn);

wxWindow *Main= new wxWindow(OptionsTree,-1);
//Main->SetForegroundColour(Options.GetColour(WindowText));
wxWindow *Main1= new wxWindow(OptionsTree,-1);
//Main->SetForegroundColour(Options.GetColour(WindowText));
wxWindow *ConvOpt= new wxWindow(OptionsTree,-1);
wxWindow *Hotkeyss= new wxWindow(OptionsTree,-1);
wxWindow *AudioMain= new wxWindow(OptionsTree,-1);
Expand Down Expand Up @@ -711,6 +708,7 @@ OptionsDialog::~OptionsDialog()
if(Kai->GetTab()->Edit->ABox){Kai->GetTab()->Edit->ABox->SetAccels();}
}
}*/
delete[] windowNames;
handles.clear();
}

Expand Down
2 changes: 1 addition & 1 deletion Kaiplayer/OptionsDialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class OptionsDialog : public KaiDialog
KaiChoice* Katlist;
MappedButton *okok;
void ConOpt(wxWindow *ctrl,CONFIG option);

static wxString *windowNames;
private:
std::vector<OptionsBind> handles;

Expand Down
4 changes: 2 additions & 2 deletions Kaiplayer/VersionKainote.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
// This file is for automatic build change
// Autoversioning.exe change it after build using commandline

#define VersionKainote "0.9.2.831"
#define NumVersionKainote 0,9,2,831
#define VersionKainote "0.9.2.832"
#define NumVersionKainote 0,9,2,832
4 changes: 2 additions & 2 deletions Thirdparty/wxWidgets/Build/msw/wx_vc9_adv.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@
<RuntimeTypeInfo>true</RuntimeTypeInfo>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>wx/wxprec.h</PrecompiledHeaderFile>
<PrecompiledHeaderOutputFile>vc_mswu\wxprec_advlib.pch</PrecompiledHeaderOutputFile>
<PrecompiledHeaderOutputFile>vc_mswu\$(Platform)\wxprec_advlib.pch</PrecompiledHeaderOutputFile>
<ObjectFileName>vc_mswu\adv\x32\</ObjectFileName>
<WarningLevel>Level4</WarningLevel>
<SuppressStartupBanner>true</SuppressStartupBanner>
Expand Down Expand Up @@ -271,7 +271,7 @@
<RuntimeTypeInfo>true</RuntimeTypeInfo>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>wx/wxprec.h</PrecompiledHeaderFile>
<PrecompiledHeaderOutputFile>vc_mswu\wxprec_advlib.pch</PrecompiledHeaderOutputFile>
<PrecompiledHeaderOutputFile>vc_mswu\$(Platform)\wxprec_advlib.pch</PrecompiledHeaderOutputFile>
<ObjectFileName>vc_mswu\adv\x64\</ObjectFileName>
<WarningLevel>Level4</WarningLevel>
<SuppressStartupBanner>true</SuppressStartupBanner>
Expand Down
4 changes: 2 additions & 2 deletions Thirdparty/wxWidgets/Build/msw/wx_vc9_aui.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@
<RuntimeTypeInfo>true</RuntimeTypeInfo>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>wx/wxprec.h</PrecompiledHeaderFile>
<PrecompiledHeaderOutputFile>vc_mswu\wxprec_auilib.pch</PrecompiledHeaderOutputFile>
<PrecompiledHeaderOutputFile>vc_mswu\$(Platform)\wxprec_auilib.pch</PrecompiledHeaderOutputFile>
<ObjectFileName>vc_mswu\aui\$(Platform)\</ObjectFileName>
<WarningLevel>Level4</WarningLevel>
<SuppressStartupBanner>true</SuppressStartupBanner>
Expand Down Expand Up @@ -271,7 +271,7 @@
<RuntimeTypeInfo>true</RuntimeTypeInfo>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>wx/wxprec.h</PrecompiledHeaderFile>
<PrecompiledHeaderOutputFile>vc_mswu\wxprec_auilib.pch</PrecompiledHeaderOutputFile>
<PrecompiledHeaderOutputFile>vc_mswu\$(Platform)\wxprec_auilib.pch</PrecompiledHeaderOutputFile>
<ObjectFileName>vc_mswu\aui\$(Platform)\</ObjectFileName>
<WarningLevel>Level4</WarningLevel>
<SuppressStartupBanner>true</SuppressStartupBanner>
Expand Down
4 changes: 2 additions & 2 deletions Thirdparty/wxWidgets/Build/msw/wx_vc9_base.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@
<RuntimeTypeInfo>true</RuntimeTypeInfo>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>wx/wxprec.h</PrecompiledHeaderFile>
<PrecompiledHeaderOutputFile>vc_mswu\wxprec_baselib.pch</PrecompiledHeaderOutputFile>
<PrecompiledHeaderOutputFile>vc_mswu\$(Platform)\wxprec_baselib.pch</PrecompiledHeaderOutputFile>
<ObjectFileName>vc_mswu\base\$(Platform)\</ObjectFileName>
<WarningLevel>Level4</WarningLevel>
<SuppressStartupBanner>true</SuppressStartupBanner>
Expand Down Expand Up @@ -271,7 +271,7 @@
<RuntimeTypeInfo>true</RuntimeTypeInfo>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>wx/wxprec.h</PrecompiledHeaderFile>
<PrecompiledHeaderOutputFile>vc_mswu\wxprec_baselib.pch</PrecompiledHeaderOutputFile>
<PrecompiledHeaderOutputFile>vc_mswu\$(Platform)\wxprec_baselib.pch</PrecompiledHeaderOutputFile>
<ObjectFileName>vc_mswu\base\$(Platform)\</ObjectFileName>
<WarningLevel>Level4</WarningLevel>
<SuppressStartupBanner>true</SuppressStartupBanner>
Expand Down
Loading

0 comments on commit 669ea8b

Please sign in to comment.