• R/O
  • HTTP
  • SSH
  • HTTPS

Aorta: コミット

AlephOne用のテスクチャ管理ユーティリティです。


コミットメタ情報

リビジョン6cb380663d4e169fe23372cbe1bf8559ed5f5413 (tree)
日時2012-02-17 20:59:22
作者Logue <logue@user...>
コミッターLogue

ログメッセージ

テキストを日本語化。
細かい修正

変更サマリ

差分

--- a/DDSOptionsDialog.cpp
+++ b/DDSOptionsDialog.cpp
@@ -22,23 +22,23 @@
2222 #include "DDSOptionsDialog.h"
2323
2424 DDSOptionsDialog::DDSOptionsDialog(const wxString& prefix, bool HasAlpha)
25- : wxDialog(NULL, -1, wxT("DDS Options"), wxDefaultPosition, wxDefaultSize), m_prefix(prefix), m_hasAlpha(HasAlpha)
25+ : wxDialog(NULL, -1, wxT("DDSオプション"), wxDefaultPosition, wxDefaultSize), m_prefix(prefix), m_hasAlpha(HasAlpha)
2626 {
2727
28- mipmapBox_staticbox = new wxStaticBox(this, -1, wxT("Mipmap Halo Removal"));
29- useDXTC = new wxCheckBox(this, -1, wxT("Use DXTC (Texture Compression)"));
30- generateMipmaps = new wxCheckBox(this, BUTTON_GenerateMipmaps, wxT("Generate Mipmaps"));
28+ mipmapBox_staticbox = new wxStaticBox(this, -1, wxT("ミップマップのハローを除去"));
29+ useDXTC = new wxCheckBox(this, -1, wxT("DXTCを使用(テスクチャの圧縮)"));
30+ generateMipmaps = new wxCheckBox(this, BUTTON_GenerateMipmaps, wxT("ミップマップを生成"));
3131 wxArrayString filterChoices;
32- filterChoices.Add(wxT("Box"));
33- filterChoices.Add(wxT("Triangle"));
34- filterChoices.Add(wxT("Kaiser"));
32+ filterChoices.Add(wxT("ボックス"));
33+ filterChoices.Add(wxT("トライアングル"));
34+ filterChoices.Add(wxT("カイザー"));
3535 mipmapFilterChoice = new wxChoice(this, -1, wxDefaultPosition, wxDefaultSize, filterChoices);
3636
37- repeatingTexture = new wxCheckBox(this, -1, wxT("Image Repeats"));
37+ repeatingTexture = new wxCheckBox(this, -1, wxT("画像の繰り返し"));
3838
39- colorFillBackground = new wxCheckBox(this, BUTTON_ColorFillBackground, wxT("Fast Halo Removal"));
40- reconstructColors = new wxCheckBox(this, BUTTON_ReconstructColors, wxT("Reconstruct Edge Colors"));
41- chooseBackground = new wxButton(this, BUTTON_ChooseBackground, wxT("Choose Background Color..."));
39+ colorFillBackground = new wxCheckBox(this, BUTTON_ColorFillBackground, wxT("高速ハロー除去"));
40+ reconstructColors = new wxCheckBox(this, BUTTON_ReconstructColors, wxT("エッジの色を再構築"));
41+ chooseBackground = new wxButton(this, BUTTON_ChooseBackground, wxT("背景色を選択…"));
4242
4343 fill_from_prefs();
4444 update_enablement();
@@ -181,5 +181,3 @@ EVT_CHECKBOX(BUTTON_ReconstructColors, DDSOptionsDialog::OnUpdateEnablement)
181181 EVT_CHECKBOX(BUTTON_GenerateMipmaps, DDSOptionsDialog::OnUpdateEnablement)
182182
183183 END_EVENT_TABLE()
184-
185-
--- a/aorta.cpp
+++ b/aorta.cpp
@@ -51,24 +51,24 @@ MainFrame::MainFrame(const wxString &title, const wxPoint &pos, const wxSize &si
5151 : wxFrame((wxFrame *) NULL, -1, title, pos, size, style)
5252 {
5353 fileMenu = new wxMenu;
54- fileMenu->Append(wxID_ABOUT, _T("&About Aorta..."));
54+ fileMenu->Append(wxID_ABOUT, _T("Aortaについて…(&A)"));
5555 fileMenu->AppendSeparator();
56- fileMenu->Append(MENU_LoadNormal, _T("L&oad image..."));
57- fileMenu->Append(MENU_SaveAs, wxT("&Save as..."));
58- fileMenu->Append(wxID_EXIT, wxT("&Quit"));
56+ fileMenu->Append(MENU_LoadNormal, _T("画像を読み込む(L&)"));
57+ fileMenu->Append(MENU_SaveAs, wxT("名前を付けて保存(&S)"));
58+ fileMenu->Append(wxID_EXIT, wxT("終了(&Q)"));
5959
6060 menuBar = new wxMenuBar;
61- menuBar->Append(fileMenu, wxT("&File"));
61+ menuBar->Append(fileMenu, wxT("ファイル(&F)"));
6262 SetMenuBar(menuBar);
6363
6464 wxBoxSizer *topsizer = new wxBoxSizer(wxVERTICAL);
6565 notebook = new wxNotebook(this, -1);
6666
6767 basicPage = new BasicPage(notebook, -1, wxDefaultPosition, wxDefaultSize);
68- notebook->AddPage(basicPage, wxT("Compose"), true);
68+ notebook->AddPage(basicPage, wxT("作成"), true);
6969
7070 batchPage = new BatchPage(notebook, -1, wxDefaultPosition, wxDefaultSize);
71- notebook->AddPage(batchPage, wxT("Batch Convert"), false);
71+ notebook->AddPage(batchPage, wxT("一括変換"), false);
7272
7373 #ifdef __WIN32__
7474 topsizer->Add(notebook, 1, wxEXPAND);
@@ -89,7 +89,7 @@ void MainFrame::OnExit(wxCommandEvent& event)
8989
9090 void MainFrame::OnAbout(wxCommandEvent& event)
9191 {
92- wxMessageBox(wxT("Aorta 2.1 (the Aleph One Replacement Texture Accessory)\n(C) 2006-2008 Gregory Smith\n\nAorta is licensed under the GPL. See COPYING.txt"), wxT("About Aorta"), wxOK);
92+ wxMessageBox(wxT("Aorta 2.1 (Aleph One交換用テスクチャアクセサリ)\n(C) 2006-2008 Gregory Smith\n\nAortaは、GPLでライセンスされています。詳細は、COPYING.txtにて。"), wxT("About Aorta"), wxOK);
9393 }
9494
9595 void MainFrame::OnLoadNormal(wxCommandEvent& event)
@@ -132,13 +132,13 @@ BasicPage::BasicPage(wxWindow *parent, wxWindowID id, const wxPoint &pos, const
132132 column[0]->Add(normalImageFilename, 0, wxALIGN_CENTER | wxEXPAND | wxLEFT | wxRIGHT, 10);
133133 normalImageSize = new wxStaticText(this, -1, wxT(""));
134134 column[0]->Add(normalImageSize, 0, wxALIGN_CENTER | wxEXPAND | wxLEFT | wxRIGHT | wxBOTTOM, 10);
135- normalImageButton = new wxButton(this, BUTTON_NormalImage, wxT("Load normal..."));
135+ normalImageButton = new wxButton(this, BUTTON_NormalImage, wxT("通常の画像を読み込む…"));
136136 column[0]->Add(normalImageButton, 0, wxALIGN_CENTER | wxALL, 10);
137137
138- unpremultiplyAlpha = new wxButton(this, BUTTON_UnpremultiplyAlpha, wxT("Un-Premultiply Alpha"));
138+ unpremultiplyAlpha = new wxButton(this, BUTTON_UnpremultiplyAlpha, wxT("Premultiply Alphaを切る"));
139139 column[0]->Add(unpremultiplyAlpha, 0, wxALIGN_CENTER | wxALL, 10);
140140
141- normalMap = new wxButton(this, BUTTON_MakeNormalMap, wxT("Make Normal Map"));
141+ normalMap = new wxButton(this, BUTTON_MakeNormalMap, wxT("通常マップを生成"));
142142 column[0]->Add(normalMap, 0, wxALIGN_CENTER | wxALL, 10);
143143
144144 pageSizer->Add(column[0], 0, wxEXPAND | wxALL, 10);
@@ -156,9 +156,9 @@ BasicPage::BasicPage(wxWindow *parent, wxWindowID id, const wxPoint &pos, const
156156 column[1]->AddSpacer(maskStatus->GetRect().GetHeight());
157157
158158 wxBoxSizer *loadClearSizer = new wxBoxSizer(wxHORIZONTAL);
159- maskImageButton = new wxButton(this, BUTTON_MaskImage, wxT("Load mask..."));
159+ maskImageButton = new wxButton(this, BUTTON_MaskImage, wxT("マスクを開く…"));
160160 loadClearSizer->Add(maskImageButton, 1, wxEXPAND | wxRIGHT, 10);
161- clearMaskButton = new wxButton(this, BUTTON_ClearMask, wxT("Clear mask"));
161+ clearMaskButton = new wxButton(this, BUTTON_ClearMask, wxT("マスクを削除"));
162162 loadClearSizer->Add(clearMaskButton, 1, wxEXPAND | wxLEFT, 10);
163163 column[1]->Add(loadClearSizer, 0, wxEXPAND | wxALIGN_CENTER | wxALL, 10);
164164
@@ -171,7 +171,7 @@ BasicPage::BasicPage(wxWindow *parent, wxWindowID id, const wxPoint &pos, const
171171 SetMaskButtonEnablement(false);
172172
173173 wxBoxSizer *saveSizer = new wxBoxSizer(wxHORIZONTAL);
174- saveAsButton = new wxButton(this, BUTTON_SaveAs, wxT("Save as..."));
174+ saveAsButton = new wxButton(this, BUTTON_SaveAs, wxT("保存先…"));
175175 saveAsButton->Disable();
176176 saveSizer->AddStretchSpacer(1);
177177 saveSizer->Add(saveAsButton, 1, wxEXPAND | wxLEFT, 10);
@@ -192,10 +192,10 @@ void BasicPage::OnLoadNormal(wxCommandEvent &)
192192 wxString Directory;
193193 config.Read(wxT("Single/DefaultDirectory/Load"), &Directory, wxT(""));
194194 wxFileDialog *openFileDialog = new wxFileDialog( this,
195- wxT("Choose Image"),
195+ wxT("画像を選択"),
196196 Directory,
197197 wxT(""),
198- wxT("Image Files ") + wxImage::GetImageExtWildcard() + wxT("|All Files|*.*"),
198+ wxT("画像ファイル") + wxImage::GetImageExtWildcard() + wxT("|すべてのファイル|*.*"),
199199 wxOPEN | wxCHANGE_DIR,
200200 wxDefaultPosition);
201201 if (openFileDialog->ShowModal() == wxID_OK)
@@ -212,10 +212,10 @@ void BasicPage::OnLoadMask(wxCommandEvent &)
212212 wxString Directory;
213213 config.Read(wxT("Single/DefaultDirectory/Load"), &Directory, wxT(""));
214214 wxFileDialog *openFileDialog = new wxFileDialog(this,
215- wxT("Choose Mask"),
215+ wxT("マスクを選択"),
216216 wxT(""),
217217 wxT(""),
218- wxT("Image Files ") + wxImage::GetImageExtWildcard(),
218+ wxT("画像ファイル") + wxImage::GetImageExtWildcard(),
219219 wxOPEN | wxCHANGE_DIR,
220220 wxDefaultPosition);
221221 if (openFileDialog->ShowModal() == wxID_OK)
@@ -269,10 +269,10 @@ void BasicPage::OnSaveAs(wxCommandEvent &)
269269 wxString Directory;
270270 config.Read(wxT("Single/DefaultDirectory/Save"), &Directory, wxT(""));
271271 saveFileDialog = new wxFileDialog(this,
272- wxT("Save As"),
272+ wxT("保存先"),
273273 Directory,
274274 (normalImageFilename->GetLabel().BeforeLast('.') + wxT(".dds")),
275- wxT("DDS files (*.dds)|*.dds|PNG files (*.png)|*.png"),
275+ wxT("DDSファイル (*.dds)|*.dds|PNGファイル (*.png)|*.png"),
276276 wxSAVE | wxOVERWRITE_PROMPT | wxCHANGE_DIR,
277277 wxDefaultPosition);
278278 if (saveFileDialog->ShowModal() != wxID_OK) return;
@@ -299,7 +299,7 @@ void BasicPage::OnSaveAs(wxCommandEvent &)
299299 saveImage.SaveFile(saveFileDialog->GetPath(), wxBITMAP_TYPE_PNG);
300300 } else {
301301 // query for a preset
302- DDSOptionsDialog ddsOptions(wxT("Single"), saveImage.HasAlpha());
302+ DDSOptionsDialog ddsOptions(wxT("単一"), saveImage.HasAlpha());
303303 if (ddsOptions.ShowModal() != wxID_OK) return;
304304
305305 if (ddsOptions.generateMipmaps->GetValue()) {
@@ -387,7 +387,7 @@ void BasicPage::LoadMask(const wxString& path)
387387 }
388388 else
389389 {
390- wxMessageBox(wxT("The mask must be the same width and height as the image."), wxT("Invalid mask"), wxOK);
390+ wxMessageBox(wxT("マスクの縦横のサイズは、画像のサイズと同じである必要があります。"), wxT("無効なマスク"), wxOK);
391391 maskImage.Destroy();
392392 }
393393 }
@@ -457,7 +457,7 @@ void BasicPage::UpdateMaskDisplay()
457457 {
458458 maskImageDisplay.Create(normalImage.GetWidth(), normalImage.GetHeight());
459459 maskImageDisplay.White();
460- maskStatus->SetLabel(wxT("No mask"));
460+ maskStatus->SetLabel(wxT("マスク無し"));
461461 }
462462 else
463463 {
@@ -474,16 +474,16 @@ BatchPage::BatchPage(wxWindow *parent, wxWindowID id, const wxPoint &pos, const
474474 : wxPanel(parent, id, pos, size)
475475 {
476476 wxConfig config;
477- chooseFiles = new wxButton(this, BUTTON_ChooseFiles, wxT("Choose Source..."));
478- recurseCheckbox = new wxCheckBox(this, CHECKBOX_Recurse, wxT("Traverse (and recreate) subfolders"));
477+ chooseFiles = new wxButton(this, BUTTON_ChooseFiles, wxT("ソースを選択…"));
478+ recurseCheckbox = new wxCheckBox(this, CHECKBOX_Recurse, wxT("サブフォルダ以下も探す"));
479479
480480 config.Read(wxT("Batch/Source"), &source, wxT(""));
481481 if (source == wxT(""))
482- fileStatus = new wxTextCtrl(this, -1, wxT("No files selected"), wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE | wxTE_READONLY | wxTE_BESTWRAP);
482+ fileStatus = new wxTextCtrl(this, -1, wxT("ファイルが選択されていません。"), wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE | wxTE_READONLY | wxTE_BESTWRAP);
483483 else
484484 fileStatus = new wxTextCtrl(this, -1, source, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE | wxTE_READONLY | wxTE_BESTWRAP);
485485
486- findMasks = new wxCheckBox(this, BUTTON_FindMasks, wxT("Attempt to find masks"));
486+ findMasks = new wxCheckBox(this, BUTTON_FindMasks, wxT("マスクがある場合読み込む"));
487487 bool value;
488488 config.Read(wxT("Batch/Recurse"), &value, true);
489489 recurseCheckbox->SetValue(value ? 1 : 0);
@@ -495,20 +495,20 @@ BatchPage::BatchPage(wxWindow *parent, wxWindowID id, const wxPoint &pos, const
495495 mask.Replace(wxT("\\$"), wxT("$"));
496496 maskString->SetValue(mask);
497497
498- selectDestination = new wxButton(this, BUTTON_ChooseDestination, wxT("Choose Destination..."));
498+ selectDestination = new wxButton(this, BUTTON_ChooseDestination, wxT("保存先を指定…"));
499499
500500 config.Read(wxT("Batch/Destination"), &destination, wxT(""));
501501 if (destination == wxT(""))
502- destinationStatus = new wxTextCtrl(this, -1, wxT("No destination chosen"), wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE | wxTE_READONLY | wxTE_BESTWRAP);
502+ destinationStatus = new wxTextCtrl(this, -1, wxT("保存先が指定されていません。"), wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE | wxTE_READONLY | wxTE_BESTWRAP);
503503 else
504504 destinationStatus = new wxTextCtrl(this, -1, destination, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE | wxTE_READONLY | wxTE_BESTWRAP);
505505 // destinationStatus->Wrap(300);
506506
507- convert = new wxButton(this, BUTTON_Convert, wxT("Batch Convert..."));
507+ convert = new wxButton(this, BUTTON_Convert, wxT("バッチ変換…"));
508508
509- saveAsDDS = new wxRadioButton(this, -1, wxT("Save as DDS"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP);
509+ saveAsDDS = new wxRadioButton(this, -1, wxT("DDSで保存"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP);
510510 saveAsDDS->SetValue(1);
511- saveAsPNG = new wxRadioButton(this, -1, wxT("Save as PNG"));
511+ saveAsPNG = new wxRadioButton(this, -1, wxT("PNGで保存"));
512512
513513 do_layout();
514514 }
@@ -571,7 +571,7 @@ void BatchPage::do_layout()
571571 void BatchPage::OnChooseSource(wxCommandEvent &)
572572 {
573573 wxDirDialog *openDirDialog = new wxDirDialog(this,
574- wxT("Choose a source folder"));
574+ wxT("ソースフォルダを選択"));
575575 if (openDirDialog->ShowModal() == wxID_OK)
576576 {
577577 ChooseSource(openDirDialog->GetPath());
@@ -591,7 +591,7 @@ void BatchPage::ChooseSource(const wxString& folder)
591591 void BatchPage::OnChooseDestination(wxCommandEvent &)
592592 {
593593 wxDirDialog *openDirDialog = new wxDirDialog(this,
594- wxT("Choose a destination folder"));
594+ wxT("保存先のフォルダを選択"));
595595 if (openDirDialog->ShowModal() == wxID_OK)
596596 {
597597 ChooseDestination(openDirDialog->GetPath());
@@ -663,16 +663,16 @@ void BatchPage::OnConvert(wxCommandEvent &)
663663 }
664664
665665 // get the DDS options
666- DDSOptionsDialog ddsOptions(wxT("Batch"), true);
666+ DDSOptionsDialog ddsOptions(wxT("バッチ処理"), true);
667667 if (!toPNG)
668668 if (ddsOptions.ShowModal() != wxID_OK) return;
669669
670- wxProgressDialog pd(wxT("Converting"), wxT("Converting"), filesToConvert.Count(), NULL, wxPD_AUTO_HIDE | wxPD_APP_MODAL | wxPD_ELAPSED_TIME | wxPD_CAN_ABORT);
670+ wxProgressDialog pd(wxT("変換中"), wxT("変換中"), filesToConvert.Count(), NULL, wxPD_AUTO_HIDE | wxPD_APP_MODAL | wxPD_ELAPSED_TIME | wxPD_CAN_ABORT);
671671
672672 for (int i = 0; i < filesToConvert.Count(); i++)
673673 {
674674 wxString progressString;
675- progressString.Printf(wxT("Converting...%i/%i"), i + 1, filesToConvert.Count());
675+ progressString.Printf(wxT("変換中…%i/%i"), i + 1, filesToConvert.Count());
676676 if (!pd.Update(i, progressString)) break;
677677 wxImageExt normalImage;
678678 wxImageExt maskImage;
--- a/aorta.rc
+++ b/aorta.rc
@@ -1 +1,4 @@
1+#define wxUSE_NO_MANIFEST 1
2+#include <wx/msw/wx.rc>
3+
14 AppIcon ICON "Aorta.ico"
旧リポジトリブラウザで表示