[sword-devel] win32 1.5.4BetaI
Troy A. Griffitts
sword-devel@crosswire.org
Tue, 25 Jun 2002 01:24:36 -0700
This is a multi-part message in MIME format.
--------------020809070804090001000802
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Not much new. More internationalization (i18n) strings added. Still
not all done yet. I've also added the ability to replace the back and
search bitmaps with locale specific ones. Just add the bitmap filename
as the translation string. I'm just gonna paste the code here and
anyone who wants to fiddle with making a new locale can fiddle away.
Also included are the en back and search bitmaps.
Happy testing.
http://www.crosswire.org/sword/ALPHAcckswwlkrfre22034820285912/alpha/sword-1.5.4BetaI.zip
__________
i12ize code:
void TForm1::i12ize(const char *lang) {
LocaleMgr::systemLocaleMgr.setDefaultLocaleName(lang);
// TODO: add mainmgr->configpath, or something, to beginning of
these image names
const char *tmp;
Graphics::TBitmap *bitmap = 0;
TPicture *pic = new TPicture();
ImageList1->Clear();
tmp = _tr("BackBtnImage");
if (strcmp("BackBtnImage", tmp)) {
pic->LoadFromFile(tmp);
bitmap = pic->Bitmap;
}
else bitmap = BackBtnImage->Picture->Bitmap;
TColor transColor = bitmap->Canvas->Pixels[0][0];
ImageList1->AddMasked(bitmap, transColor);
tmp = _tr("SearchBtnImage");
if (strcmp("SearchBtnImage", tmp)) {
pic->LoadFromFile(tmp);
bitmap = pic->Bitmap;
}
else bitmap = SearchBtnImage->Picture->Bitmap;
transColor = bitmap->Canvas->Pixels[0][0];
ImageList1->AddMasked(bitmap, transColor);
bitmap = BookmarkBtnImage->Picture->Bitmap;
transColor = bitmap->Canvas->Pixels[0][0];
ImageList2->AddMasked(bitmap, transColor);
delete pic;
/*
ImageList1->Clear();
Graphics::TBitmap *bitmap = BackBtnImage->Picture->Bitmap;
TColor transColor = bitmap->Canvas->Pixels[0][0];
ImageList1->AddMasked(bitmap, transColor);
bitmap = SearchBtnImage->Picture->Bitmap;
transColor = bitmap->Canvas->Pixels[0][0];
ImageList1->AddMasked(bitmap, transColor);
bitmap = BookmarkBtnImage->Picture->Bitmap;
transColor = bitmap->Canvas->Pixels[0][0];
ImageList2->AddMasked(bitmap, transColor);
*/
File1->Caption = _tr("&File");
SaveLayout1->Caption = _tr("S&ave Layout");
Exit1->Caption = _tr("E&xit");
Edit1->Caption = _tr("&Edit");
Copy2->Caption = _tr("&Copy");
Copy3->Caption = _tr("&Copy");
Copy4->Caption = _tr("&Copy");
Options2->Caption = _tr("Options");
Options1->Caption = _tr("&Preferences...");
Search1->Caption = _tr("&Search");
NewSearchWindow1->Caption = _tr("&New Search Window");
Tools1->Caption = _tr("&Tools");
InstallManager1->Caption = _tr("Install Manager");
Help1->Caption = _tr("&Help");
Contents1->Caption = _tr("Contents");
DevotionaloftheDay1->Caption = _tr("Devotional of the Day");
About1->Caption = _tr("&About");
Bookmarkbtn->Caption = _tr("Bookmark");
DictionaryLookup1->Caption = _tr("Dictionary Lookup");
DictionaryLookup2->Caption = _tr("Dictionary Lookup");
EditEntry1->Caption = _tr("&Edit Entry");
DeleteEntry1->Caption = _tr("&Delete Entry");
LinktoVerse1->Caption = _tr("Link to Comment for Verse...");
AddBookmark1->Caption = _tr("&Add Bookmark");
EditBookmarks1->Caption = _tr("&Edit Bookmarks / Tree View...");
// ModInstForm
ModInstFrm->Caption = _tr("Found New Module...");
ModInstFrm->OkBtn->Caption = _tr("OK");
// ModVisForm
ModVisForm->Caption = _tr("Check Modules To Show As Tabs");
ModVisForm->modList->Columns->Items[0]->Caption = _tr("Module");
ModVisForm->modList->Columns->Items[1]->Caption = _tr("Description");
ModVisForm->OkBtn->Caption = _tr("OK");
ModVisForm->CancelBtn->Caption = _tr("Cancel");
// NewBMfrm
NewBMfrm->Caption = _tr("Add New Bookmark File");
NewBMfrm->Label1->Caption = _tr("File Name (without extension):");
NewBMfrm->Label2->Caption = _tr("Bookmark Section Title:");
NewBMfrm->OkBtn->Caption = _tr("OK");
NewBMfrm->CancelBtn->Caption = _tr("Cancel");
// OptionsForm
Optionsfrm->Caption = _tr("Preferences");
Optionsfrm->TabSheet1->Caption = _tr("General");
Optionsfrm->TabSheet2->Caption = _tr("Special Modules");
Optionsfrm->TabSheet3->Caption = _tr("Display");
//searchForm
searchForm->Caption = _tr("Search...");
searchForm->searchBtn->Caption = _tr("Search");
searchForm->searchTypeGroup->Caption = _tr("Search Type");
searchForm->searchTypeGroup->Items->CommaText = _tr("\"Mult
Word\",\"Phrase\",\"Regular Expression\"");
searchForm->caseSensitiveCkBx->Caption = _tr("Case Sensitive");
searchForm->searchOptionsGroup->Caption = _tr("Search Options");
searchForm->scopeGroup->Caption = _tr("Scope");
searchForm->scopeGroup->Items->CommaText = _tr("\"Entire
Module\",\"Current Results\",\"Custom Range\"");
searchForm->customRangeBtn->Caption = _tr("Define Custom Range");
searchForm->resultsLV->Columns->Items[0]->Caption = _tr("Reference");
searchForm->resultsLV->Columns->Items[1]->Caption = _tr("Preview...");
--------------020809070804090001000802
Content-Type: image/bmp;
name="search.bmp"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="search.bmp"
Qk0MAwAAAAAAAGIAAAAoAAAAJgAAACIAAAABAAQAAAAAAAAAAAASCwAAEgsAAAsAAAALAAAA
////APL1/wD/9+EAusDPAH6CjwDbuXcAxIYjAPb/DAACAAYAta7OAAAAAACZmZmZmZmZmZmZ
mZmZmZmZiZmZAJmZmZmZmZmZmZmZmZmZmZmYmZkAmZmZmZmZmZmZmZmZmZmZmZiZmQCZiImZ
iImYiZiJiZmZiImYmYmZAJiZmJiJmJiYmJmJmZiZmJiZmJkAmJmYmJmYmJiImYiZmJmYmImY
mQCZmZiYiJmYmZiZiJmYmZmYiZmJAJmZiZiZiJmJmJmImZiZmZiImYkAmYiZmJmYmYmYmYmJ
mJmYmIiZiQCYiZmZiZiZmJiYiIiZiZiZiYmJAJiZmZmYiZmZiJmYmJmYiJmJmIkAmImJmZmZ
mZmZmZmZmZmZmYmZmQCZiImZmIiZmZmZmZmZmZmZiZmZAJmZmZmGZomZmZmZmZmZmZmJmZkA
mZmZmWd2aJmZmZmZmZmZmYmZmQCZmZmZVneGiZmZmZmZmZmZmJmZAJmZmZmVaHhomZmZmZmZ
mZmYmZkAmZmZmZlWh4aJmZmZmZmZmZiJmQCZmZmZmZVodEhEiIiJmZmZmZmZAJmZmZmZmVZz
RIiIiIiJmZmZmZkAmZmZmZmZlWFIiCIiIoiZmZmZmQCZmZmZmZmZU4iCIiIiKImZmZmZAJmZ
mZmZmZmYiCIiIiIiiZmZmZkAmZmZmZmZmZiCIiIiIiIomZmZmQCZmZmZmZmZmIIiIiIiIiSZ
mZmZAJmZmZmZmZmYQiIiIiIiJJmZmZkAmZmZmZmZmZhCIiIiIiIkmZmZmQCZmZmZmZmZmEIi
IiIiIiSZmZmZAJmZmZmZmZmYQiIiIiIiJJmZmZkAmZmZmZmZmZmCIiIiIiJJmZmZmQCZmZmZ
mZmZmYkiIiIiIkmZmZmZAJmZmZmZmZmZlJIiIiIkmZmZmZkAmZmZmZmZmZmZRCIiJEmZmZmZ
mQCZmZmZmZmZmZmZRERJmZmZmZmZAAAA
--------------020809070804090001000802
Content-Type: image/bmp;
name="back.bmp"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="back.bmp"
Qk0KAwAAAAAAAGIAAAAoAAAAJgAAACIAAAABAAQAAAAAAKgCAAABAAAAAQAAAAsAAAALAAAA
////AP/PzgC1rs4AhIKEAJz/MQAhICEAAP8AAISCAAAAggAAOTQAAAAAAAB3d3d3d3d3d3d3
d3d3d3d3d3d3AHd3d3d3d3d3d3d3d3d3d3end3cAd3d3d3d3d3d3d3d3d3d3end3dwB3d3qn
qqd6p3qneqp3p3end3d3AHd3d3p3enp6enend6end6d3d3cAd3d3end6enqqd6d3p6p6d3d3
dwB3d3d6d3p6d3p3p3d3eqp3d3d3AHd3d3p3qnenenend3d6d6d3d3cAd3d3eqqnd6d6d6d3
p3qnend3dwB3d3d6d6p3enp3enenenp6d3d3AHd3d3p3end3qnd3qqd6d6p3d3cAd3d3end6
d3d3d3d3d3p3d3d3dw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