Skip to content

Commit

Permalink
finish i18n project
Browse files Browse the repository at this point in the history
test new UI items to Google Sheet
test update from Google Sheet
wiki page: https://github.com/GeoDaCenter/geoda/wiki/GeoDa-Internationalization-Project
  • Loading branch information
lixun910 committed May 15, 2019
1 parent e9d73b9 commit a90a2dd
Show file tree
Hide file tree
Showing 13 changed files with 5,173 additions and 21,387 deletions.
30 changes: 16 additions & 14 deletions GeoDa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6322,13 +6322,15 @@ void GdaFrame::OnHelpAbout(wxCommandEvent& WXUNUSED(event) )
wxStaticText* cr = dynamic_cast<wxStaticText*>
(wxWindow::FindWindowById(XRCID("ID_COPYRIGHT"), &dlg));
wxString cr_s;
cr_s << "Copyright (C) 2011-" << Gda::version_year << " by Luc Anselin";

cr_s << wxString::Format(_("Copyright (C) 2011-%d by Luc Anselin"),
Gda::version_year);
if (cr) cr->SetLabelText(cr_s);

wxStaticText* arr = dynamic_cast<wxStaticText*>
(wxWindow::FindWindowById(XRCID("ID_ALL_RIGHTS_RESERVED"), &dlg));
wxString arr_s;
arr_s << "All Rights Reserved";
arr_s << _("All Rights Reserved");
if (arr) arr->SetLabelText(arr_s);

wxStaticText* vl = dynamic_cast<wxStaticText*>
Expand All @@ -6351,29 +6353,29 @@ void GdaFrame::OnHelpAbout(wxCommandEvent& WXUNUSED(event) )
} // otherwise assumed to be release
vl_s << " " << Gda::version_day << " ";
if (Gda::version_month == 1) {
vl_s << "January";
vl_s << _("January");
} else if (Gda::version_month == 2) {
vl_s << "February";
vl_s << _("February");
} else if (Gda::version_month == 3) {
vl_s << "March";
vl_s << _("March");
} else if (Gda::version_month == 4) {
vl_s << "April";
vl_s << _("April");
} else if (Gda::version_month == 5) {
vl_s << "May";
vl_s << _("May");
} else if (Gda::version_month == 6) {
vl_s << "June";
vl_s << _("June");
} else if (Gda::version_month == 7) {
vl_s << "July";
vl_s << _("July");
} else if (Gda::version_month == 8) {
vl_s << "August";
vl_s << _("August");
} else if (Gda::version_month == 9) {
vl_s << "September";
vl_s << _("September");
} else if (Gda::version_month == 10) {
vl_s << "October";
vl_s << _("October");
} else if (Gda::version_month == 11) {
vl_s << "November";
vl_s << _("November");
} else {
vl_s << "December";
vl_s << _("December");
}
vl_s << " " << Gda::version_year;
if (vl) vl->SetLabelText(vl_s);
Expand Down
59 changes: 58 additions & 1 deletion internationalization/geoda.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-05-14 14:19-0700\n"
"POT-Creation-Date: 2019-05-15 10:50-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -478,6 +478,10 @@ msgstr ""
msgid "All Pairs"
msgstr ""

#: ../GeoDa.cpp:6333
msgid "All Rights Reserved"
msgstr ""

#: ../DialogTools/HDBScanDlg.cpp:168
msgid "Allow a single cluster:"
msgstr ""
Expand All @@ -490,10 +494,18 @@ msgstr ""
msgid "Apply"
msgstr ""

#: ../GeoDa.cpp:6362
msgid "April"
msgstr ""

#: ../Explore/CorrelogramView.cpp:676
msgid "Arc Distance"
msgstr ""

#: ../GeoDa.cpp:6370
msgid "August"
msgstr ""

#: ../DialogTools/AbstractClusterDlg.cpp:246
msgid "Auto Weighting"
msgstr ""
Expand Down Expand Up @@ -1019,6 +1031,11 @@ msgstr ""
msgid "Copy"
msgstr ""

#: ../GeoDa.cpp:6326
#, c-format
msgid "Copyright (C) 2011-%d by Luc Anselin"
msgstr ""

#: ../Explore/CorrelogramView.cpp:506 ../Explore/CorrelogramView.cpp:515
#: ../GeoDa.cpp:3260
msgid "Correlogram"
Expand Down Expand Up @@ -1158,6 +1175,10 @@ msgstr ""
msgid "Date/Time formats (using comma to separate formats):"
msgstr ""

#: ../GeoDa.cpp:6378
msgid "December"
msgstr ""

#: ../DialogTools/PreferenceDlg.cpp:391
msgid "Default displayed decimal places in Table:"
msgstr ""
Expand Down Expand Up @@ -1620,6 +1641,10 @@ msgstr ""
msgid "False Discovery Rate:"
msgstr ""

#: ../GeoDa.cpp:6358
msgid "February"
msgstr ""

#: ../ShapeOperations/OGRLayerProxy.cpp:394
#, c-format
msgid "Field (%s) already exited."
Expand Down Expand Up @@ -2132,6 +2157,10 @@ msgstr ""
msgid "Iterations:"
msgstr ""

#: ../GeoDa.cpp:6356
msgid "January"
msgstr ""

#: ../DialogTools/SpatialJoinDlg.cpp:419
msgid "Join Operation:"
msgstr ""
Expand All @@ -2140,6 +2169,14 @@ msgstr ""
msgid "Join Variable:"
msgstr ""

#: ../GeoDa.cpp:6368
msgid "July"
msgstr ""

#: ../GeoDa.cpp:6366
msgid "June"
msgstr ""

#: ../DialogTools/KMeansDlg.cpp:575
msgid "KMeans Clustering Settings"
msgstr ""
Expand Down Expand Up @@ -2298,6 +2335,10 @@ msgstr ""
msgid "Maps:"
msgstr ""

#: ../GeoDa.cpp:6360
msgid "March"
msgstr ""

#: ../Explore/CorrelogramView.cpp:226 ../Explore/CorrelogramView.cpp:771
msgid "Max"
msgstr ""
Expand All @@ -2324,6 +2365,10 @@ msgstr ""
msgid "Maximum iterations:\t"
msgstr ""

#: ../GeoDa.cpp:6364
msgid "May"
msgstr ""

#: ../Explore/LineChartView.cpp:2212
msgid "Mean"
msgstr ""
Expand Down Expand Up @@ -2560,6 +2605,10 @@ msgstr ""
msgid "Notice"
msgstr ""

#: ../GeoDa.cpp:6376
msgid "November"
msgstr ""

#: ../DialogTools/CreatingWeightDlg.cpp:1453
msgid ""
"Null geometry was detected in dataset. GeoDa can't create weights with NULL "
Expand Down Expand Up @@ -2630,6 +2679,10 @@ msgstr ""
msgid "Obs."
msgstr ""

#: ../GeoDa.cpp:6374
msgid "October"
msgstr ""

#: ../osm/uiRoadDownload.cpp:110 ../Explore/MapLayoutView.cpp:60
#: ../TemplateLegend.cpp:62 ../GeneralWxUtils.cpp:108
msgid "Ok"
Expand Down Expand Up @@ -3565,6 +3618,10 @@ msgstr ""
msgid "Send Crash Report"
msgstr ""

#: ../GeoDa.cpp:6372
msgid "September"
msgstr ""

#: ../Explore/MapLayerTree.cpp:585
msgid "Set Association Dialog"
msgstr ""
Expand Down
Binary file modified internationalization/lang/es/GeoDa.mo
Binary file not shown.
Binary file modified internationalization/lang/zh_CN/GeoDa.mo
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,10 @@ msgstr "Aplicar"
msgid "Apply kernel to diagonal weights"
msgstr "Aplicar kernel a pesos diagonal"

#contributors:
msgid "April"
msgstr ""

#contributors:
msgid "Arabic (Windows-1256)"
msgstr "Árabe (Windows-1256)"
Expand Down Expand Up @@ -594,6 +598,10 @@ msgstr "Var. Asoc."
msgid "Attributes (Optional)"
msgstr ""

#contributors:
msgid "August"
msgstr ""

#contributors:
msgid "Auto Weighting"
msgstr "Auto-Ponderación"
Expand Down Expand Up @@ -1294,6 +1302,10 @@ msgstr "Copiar Leyenda al Portapapeles"
msgid "Copyright (C) 1998-2011\nGeoDa Center for Geospatial Analysis and Computation\nand Arizona Board of Regents\nAll Rights Reserved"
msgstr "Copyright (C) 1998-2011\nGeoDa Center for Geospatial Analysis and Computation\ny Arizona Board of Regents\nTodos los Derechos Reservados"

#contributors:
msgid "Copyright (C) 2011-%d by Luc Anselin"
msgstr ""

#contributors:
msgid "Copyright (C) year-year by Luc Anselin"
msgstr "Copyright (C) año-año por Luc Anselin"
Expand Down Expand Up @@ -1522,6 +1534,10 @@ msgstr ""
msgid "Date/Time formats (using comma to separate formats):"
msgstr ""

#contributors:
msgid "December"
msgstr ""

#contributors:
msgid "Decimal:"
msgstr "Decimal:"
Expand Down Expand Up @@ -1966,6 +1982,10 @@ msgstr ""
msgid "False Discovery Rate:"
msgstr "Tasa de Falso Descubrimiento"

#contributors:
msgid "February"
msgstr ""

#contributors:
msgid "Field (%s) already exited."
msgstr ""
Expand Down Expand Up @@ -2570,6 +2590,10 @@ msgstr ""
msgid "Iterations:"
msgstr "Iteraciones:"

#contributors:
msgid "January"
msgstr ""

#contributors:
msgid "Japanese (EUC-JP)"
msgstr "Japonés (EUC-JP)"
Expand All @@ -2590,6 +2614,14 @@ msgstr ""
msgid "Join Variable:"
msgstr ""

#contributors:
msgid "July"
msgstr ""

#contributors:
msgid "June"
msgstr ""

#contributors:
msgid "K Means"
msgstr "K Means"
Expand Down Expand Up @@ -2866,6 +2898,10 @@ msgstr "Mapas y Tasas"
msgid "Maps:"
msgstr "Mapas:"

#contributors:
msgid "March"
msgstr ""

#contributors:
msgid "Max"
msgstr "Máx."
Expand Down Expand Up @@ -2894,6 +2930,10 @@ msgstr "Iteraciones máximas:"
msgid "Maximum iterations:\t"
msgstr ""

#contributors:
msgid "May"
msgstr ""

#contributors:
msgid "Mean"
msgstr ""
Expand Down Expand Up @@ -3198,6 +3238,10 @@ msgstr "¡Memoria insuficiente!"
msgid "Notice"
msgstr "Advertencia"

#contributors:
msgid "November"
msgstr ""

#contributors:
msgid "Null geometry was detected in dataset. GeoDa can't create weights with NULL geometry. Please try to save as records with valid geometries and try again."
msgstr ""
Expand Down Expand Up @@ -3266,6 +3310,10 @@ msgstr "Se ha seleccionado un Modelo MCO con test de White."
msgid "Obs."
msgstr ""

#contributors:
msgid "October"
msgstr ""

#contributors:
msgid "Ok"
msgstr "Aceptar"
Expand Down Expand Up @@ -3886,6 +3934,10 @@ msgstr "Rectángulo"
msgid "Redo"
msgstr "Repetir"

#contributors:
msgid "Refresh"
msgstr "Actualizar"

#contributors:
msgid "Regimes Regression"
msgstr "Regresión"
Expand Down Expand Up @@ -4406,6 +4458,10 @@ msgstr "Variable de Selección"
msgid "Send Crash Report"
msgstr "Enviar Informe de Errores"

#contributors:
msgid "September"
msgstr ""

#contributors:
msgid "Set Association Dialog"
msgstr "Set Association Dialog"
Expand Down Expand Up @@ -5520,7 +5576,7 @@ msgstr "Comprobar Simetría de Pesos"

#contributors:
msgid "Weights Union"
msgstr ""
msgstr "Weights Intersection"

#contributors:
msgid "Weights file \"%s\" created successfully."
Expand Down Expand Up @@ -6218,6 +6274,10 @@ msgstr "pesos"
msgid "wrong model number"
msgstr "nº equivocado de modelo"

#contributors:
msgid "y:"
msgstr "y:"

#contributors:
msgid "year:"
msgstr "año"
Expand Down
Loading

0 comments on commit a90a2dd

Please sign in to comment.