Creating a localized windows version of SAGA GIS (no compilation needed)

01.04.2011 11:26

 

needed files (for 2.0.6 version):

saga_2.0.6_src

saga_2.0.6_bin_mswvc_win32 or saga_2.0.6_bin_mswvc_x64 (depends which OS you have – 32bit or 64bit)

saga_lng_creator - my updated version here (1.18MB 7z file, downloads)

 

Some years ago as I started to use SAGA GIS, I also came to the idea of localization of this perfect program. In fact, English is not a barrier for me, but I wanted to make this software usable also for non-English speaking people.

 

I started with translating of version 2.0.3. It was relatively simple, as SAGA uses plain text files as locales. So an advanced text editor like PSPad was enough for this task (together with and dictionary as I wanted to translate all the scientific terms correctly).

 

PSPad screenshot

 

Due to lack of free time, I only translated the main GUI, tips and only the modules frequently used by me and my colleagues. Then I uploaded the localized version to my Sendspace account and shared the link.

 

As I received some positive feedback, I also planned to update my translations. As the old language files from 2.0.3 did not work with new SAGA versions, I asked for help on the Sourceforge forum. Luckily, Volker Wichmann supplied my a small app “saga_lng_creator” and some small info.

 

As I had some problems with running it, so I asked the good guys on the Czech programmers forum https://forum.builder.cz and they recommended me to use following files from SAGA 2.0.5 binary to run the file correctly:

 

saga_api.dll

wxbase28_vc_custom.dll

wxbase28_xml_vc_custom.dll

wxmsw28_core_vc_custom.dll

 

And it works :-) I included all the libraries in this package (link on the top of the page) so you do not need to download anything more.

 

I replaced the original string:

 

REM SET SAGA=C:\saga_2

 

in saga_lng_creator2.bat (it is updated script to handle correctly all the new and changed modules) with:

 

SET SAGA=C:\SAGA_CZ\saga_2.0.6_src

 

to reflect real path to my saga source files folder. Then I simply ran the bat file and after short time I had many files ending "*lng.txt" in SAGA source folder. The console output should look similarly to this:

 

###################################
100%
success: C:\SAGA_CZ\saga_2.0.6_src\src\saga_core\saga_gui\res\saga.lng.txt
100%
success: C:\SAGA_CZ\saga_2.0.6_src\src\saga_core\saga_gui\res\saga.CZE.txt
100%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules\grid\\grid_analysis\grid_analysis
.lng.txt
 99%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules\grid\\grid_calculus\grid_calculus
.lng.txt
 93%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules\grid\\grid_calculus_bsl\grid_calc
ulus_bsl.lng.txt
100%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules\grid\\grid_discretisation\grid_di
scretisation.lng.txt
 99%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules\grid\\grid_filter\grid_filter.lng
.txt
 99%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules\grid\\grid_gridding\grid_gridding
.lng.txt
 99%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules\grid\\grid_spline\grid_spline.lng
.txt
100%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules\grid\\grid_tools\grid_tools.lng.t
xt
 99%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules\grid\\grid_visualisation\grid_vis
ualisation.lng.txt
 99%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules\shapes\\shapes_grid\shapes_grid.l
ng.txt
 97%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules\shapes\\shapes_lines\shapes_lines
.lng.txt
 94%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules\shapes\\shapes_lines_ex\shapes_li
nes_ex.lng.txt
 99%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules\shapes\\shapes_points\shapes_poin
ts.lng.txt
 99%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules\shapes\\shapes_polygons\shapes_po
lygons.lng.txt
100%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules\shapes\\shapes_tools\shapes_tools
.lng.txt
 91%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules\shapes\\shapes_transect\shapes_tr
ansect.lng.txt
 99%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules\table\\table_calculus\table_calcu
lus.lng.txt
 97%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules\table\\table_tools\table_tools.ln
g.txt
 99%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules\tin\\tin_tools\tin_tools.lng.txt
 99%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules\table\\table_calculus\table_calcu
lus.lng.txt
 99%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules_contrib\contrib_a_perego\contrib_
a_perego\contrib_a_perego.lng.txt
 97%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules_contrib\contrib_t_wutzler\contrib
_t_wutzler\contrib_t_wutzler.lng.txt
100%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules_contrib\contrib_s_liersch\ihacres
\ihacres.lng.txt
100%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules_geostatistics\geostatistics\\geos
tatistics_grid\geostatistics_grid.lng.txt
100%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules_geostatistics\geostatistics\\geos
tatistics_kriging\geostatistics_kriging.lng.txt
 98%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules_geostatistics\geostatistics\\geos
tatistics_points\geostatistics_points.lng.txt
 95%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules_io\esri_e00\io_esri_e00\io_esri_e
00.lng.txt
 96%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules_io\gps\io_gps\io_gps.lng.txt
100%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules_io\grid\io_grid\io_grid.lng.txt
 89%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules_io\grid\io_grid_grib2\io_grid_gri
b2.lng.txt
 99%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules_io\grid\io_grid_image\io_grid_ima
ge.lng.txt
100%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules_io\shapes\io_shapes\io_shapes.lng
.txt
 96%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules_io\shapes\io_shapes_dxf\io_shapes
_dxf.lng.txt

success: C:\SAGA_CZ\saga_2.0.6_src\src\modules_io\table\io_table\io_table.lng.tx
t
 99%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules_io\table\io_table_odbc\io_table_o
dbc.lng.txt
 98%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules_io\gdal\io_gdal\io_gdal.lng.txt
 98%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules_projection\pj_georeference\pj_geo
reference\pj_georeference.lng.txt
100%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules_projection\pj_geotrans\pj_geotran
s\pj_geotrans.lng.txt
100%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules_projection\pj_proj4\pj_proj4\pj_p
roj4.lng.txt
 99%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules_recreations\recreations\recreatio
ns_fractals\recreations_fractals.lng.txt
 93%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules_recreations\recreations\recreatio
ns_games\recreations_games.lng.txt
 96%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules_simulation\cellular_automata\sim_
cellular_automata\sim_cellular_automata.lng.txt
 98%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules_simulation\ecosystems\sim_ecosyst
ems_hugget\sim_ecosystems_hugget.lng.txt
 99%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules_simulation\fire\sim_fire_spreadin
g\sim_fire_spreading.lng.txt
 99%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules_simulation\hydrology\sim_hydrolog
y\sim_hydrology.lng.txt
 99%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules_terrain_analysis\terrain_analysis
\ta_channels\ta_channels.lng.txt
 97%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules_terrain_analysis\terrain_analysis
\ta_compound\ta_compound.lng.txt
100%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules_terrain_analysis\terrain_analysis
\ta_hydrology\ta_hydrology.lng.txt
100%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules_terrain_analysis\terrain_analysis
\ta_lighting\ta_lighting.lng.txt
100%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules_terrain_analysis\terrain_analysis
\ta_morphometry\ta_morphometry.lng.txt
 99%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules_terrain_analysis\terrain_analysis
\ta_preprocessor\ta_preprocessor.lng.txt
 98%
success: C:\SAGA_CZ\saga_2.0.6_src\src\modules_terrain_analysis\terrain_analysis
\ta_profiles\ta_profiles.lng.txt
Pokračujte stisknutím libovolné klávesy...

 

As I have no experience with compiling, I only translated the "*lng.txt" files and changed their extension to "*.lng". Then I downloaded a binary version with the same version number as the used source code (in my case 2.0.6).

 

Finally I moved saga.lng and saga_gui.tip to main SAGA binary folder (where you have saga_gui.exe etc.) and the other ones like "geostatistics_grid.lng" to the subfolder "modules". Then I simply started SAGA and it automatically loaded my locale files.

 

Currently I am working on the translation of the modules. As soon as I finish it, I will report it on SAGA forum and also here together with link to download a localized version of SAGA.

—————

Zpět


Discussion: Creating a localized windows version of SAGA GIS (no compilation needed)

Datum: 07.03.2024

Vložil: Nerrylib

Titulek: Hello, Happykiddi

Hello from Happykiddi.

Odpovědět

—————

Datum: 24.02.2024

Vložil: Perrylib

Titulek: Hello, Kiddishop

Hello from Kiddishop.

Odpovědět

—————

Datum: 22.07.2020

Vložil: Michaelbiada

Titulek: Обязательно посетите наш сайт

HoOkAh MaGic наш официальный бренд
Набрав в поисковике Вы можете посетить наш сайт
и возможно приобрести кальяны и всё для них.
Доставка по всей России
Бесплатная консультация
Отправка в день заказа
Персональные скидки
Строго 18+

Odpovědět

—————