mirror of https://github.com/BOINC/boinc.git
MGR: in Simple View, localize institution, science area and description
svn path=/trunk/boinc/; revision=24815
This commit is contained in:
parent
ee5b8972b0
commit
3b50e9d9d5
|
@ -9051,3 +9051,10 @@ Charlie 14 Dec 2011
|
|||
mac_installer/
|
||||
make_CharityEngine.sh
|
||||
make_ProgThruProc.sh
|
||||
|
||||
Charlie 16 Dec 2011
|
||||
- MGR: in Simple View, localize institution, science area and description.
|
||||
|
||||
clientgui/
|
||||
BOINCGUIApp.cpp
|
||||
sg_TaskPanel.cpp
|
||||
|
|
|
@ -284,6 +284,7 @@ bool CBOINCGUIApp::OnInit() {
|
|||
m_pLocale->AddCatalogLookupPathPrefix(wxT("locale"));
|
||||
m_pLocale->AddCatalog(wxT("BOINC-Manager"));
|
||||
m_pLocale->AddCatalog(wxT("BOINC-Client"));
|
||||
m_pLocale->AddCatalog(wxT("BOINC-Web"));
|
||||
|
||||
InitSupportedLanguages();
|
||||
|
||||
|
|
|
@ -243,6 +243,7 @@ void CSlideShowPanel::OnSlideShowTimer(wxTimerEvent& WXUNUSED(event)) {
|
|||
void CSlideShowPanel::AdvanceSlideShow(bool changeSlide, bool reload) {
|
||||
double xRatio, yRatio, ratio;
|
||||
unsigned int i;
|
||||
wxString s;
|
||||
TaskSelectionData* selData = ((CSimpleTaskPanel*)GetParent())->GetTaskSelectionData();
|
||||
if (selData == NULL) return;
|
||||
|
||||
|
@ -281,9 +282,12 @@ numSlides = 0;
|
|||
|
||||
for (i=0; i<m_AllProjectsList.projects.size(); i++) {
|
||||
if (!strcmp(m_AllProjectsList.projects[i]->url.c_str(), selData->project_url)) {
|
||||
m_institution->SetLabel(wxString(m_AllProjectsList.projects[i]->home.c_str(), wxConvUTF8));
|
||||
m_scienceArea->SetLabel(wxString(m_AllProjectsList.projects[i]->specific_area.c_str(), wxConvUTF8));
|
||||
m_description->SetValue(wxString(m_AllProjectsList.projects[i]->description.c_str(), wxConvUTF8));
|
||||
s = wxString(m_AllProjectsList.projects[i]->home.c_str(), wxConvUTF8);
|
||||
m_institution->SetLabel(wxGetTranslation(s));
|
||||
s = wxString(m_AllProjectsList.projects[i]->specific_area.c_str(), wxConvUTF8);
|
||||
m_scienceArea->SetLabel(wxGetTranslation(s));
|
||||
s = wxString(m_AllProjectsList.projects[i]->description.c_str(), wxConvUTF8);
|
||||
m_description->SetValue(wxGetTranslation(s));
|
||||
|
||||
m_institution->Show(true);
|
||||
m_scienceArea->Show(true);
|
||||
|
|
Loading…
Reference in New Issue