source: osm/applications/editors/josm/nsis/langmacros.nsh@ 27318

Last change on this file since 27318 was 24717, checked in by stoecker, 14 years ago

fix installer due to plugin integration

File size: 3.7 KB
Line 
1;;
2;; Windows JOSM NSIS installer language macros
3;;
4
5!macro JOSM_MACRO_DEFAULT_STRING LABEL VALUE
6 !ifndef "${LABEL}"
7 !define "${LABEL}" "${VALUE}"
8 !ifdef INSERT_DEFAULT
9 !warning "${LANG} lang file mising ${LABEL}, using default.."
10 !endif
11 !endif
12!macroend
13
14!macro JOSM_MACRO_LANGSTRING_INSERT LABEL LANG
15 LangString "${LABEL}" "${LANG_${LANG}}" "${${LABEL}}"
16 !undef "${LABEL}"
17!macroend
18
19!macro JOSM_MACRO_LANGUAGEFILE_BEGIN LANG
20 !define CUR_LANG "${LANG}"
21!macroend
22
23!macro JOSM_MACRO_LANGUAGEFILE_END
24 !define INSERT_DEFAULT
25 !include "${JOSM_DEFAULT_LANGFILE}"
26 !undef INSERT_DEFAULT
27
28 ; JOSM Language file Version 2
29 ; String labels should match those from the default language file.
30
31
32
33 !insertmacro JOSM_MACRO_LANGSTRING_INSERT JOSM_WELCOME_TEXT ${CUR_LANG}
34 !insertmacro JOSM_MACRO_LANGSTRING_INSERT JOSM_DIR_TEXT ${CUR_LANG}
35
36 !insertmacro JOSM_MACRO_LANGSTRING_INSERT JOSM_FULL_INSTALL ${CUR_LANG}
37 !insertmacro JOSM_MACRO_LANGSTRING_INSERT JOSM_SEC_JOSM ${CUR_LANG}
38 !insertmacro JOSM_MACRO_LANGSTRING_INSERT JOSM_SEC_PLUGINS_GROUP ${CUR_LANG}
39 !insertmacro JOSM_MACRO_LANGSTRING_INSERT JOSM_SEC_OPENSTREETBUGS_PLUGIN ${CUR_LANG}
40 !insertmacro JOSM_MACRO_LANGSTRING_INSERT JOSM_SEC_TURNRESTRICTIONS_PLUGIN ${CUR_LANG}
41 !insertmacro JOSM_MACRO_LANGSTRING_INSERT JOSM_SEC_WMS ${CUR_LANG}
42 !insertmacro JOSM_MACRO_LANGSTRING_INSERT JOSM_SEC_STARTMENU ${CUR_LANG}
43 !insertmacro JOSM_MACRO_LANGSTRING_INSERT JOSM_SEC_DESKTOP_ICON ${CUR_LANG}
44 !insertmacro JOSM_MACRO_LANGSTRING_INSERT JOSM_SEC_QUICKLAUNCH_ICON ${CUR_LANG}
45 !insertmacro JOSM_MACRO_LANGSTRING_INSERT JOSM_SEC_FILE_EXTENSIONS ${CUR_LANG}
46
47 !insertmacro JOSM_MACRO_LANGSTRING_INSERT JOSM_SECDESC_JOSM ${CUR_LANG}
48 !insertmacro JOSM_MACRO_LANGSTRING_INSERT JOSM_SECDESC_PLUGINS_GROUP ${CUR_LANG}
49 !insertmacro JOSM_MACRO_LANGSTRING_INSERT JOSM_SECDESC_OPENSTREETBUGS_PLUGIN ${CUR_LANG}
50 !insertmacro JOSM_MACRO_LANGSTRING_INSERT JOSM_SECDESC_TURNRESTRICTIONS_PLUGIN ${CUR_LANG}
51 !insertmacro JOSM_MACRO_LANGSTRING_INSERT JOSM_SECDESC_WMS ${CUR_LANG}
52 !insertmacro JOSM_MACRO_LANGSTRING_INSERT JOSM_SECDESC_STARTMENU ${CUR_LANG}
53 !insertmacro JOSM_MACRO_LANGSTRING_INSERT JOSM_SECDESC_DESKTOP_ICON ${CUR_LANG}
54 !insertmacro JOSM_MACRO_LANGSTRING_INSERT JOSM_SECDESC_QUICKLAUNCH_ICON ${CUR_LANG}
55 !insertmacro JOSM_MACRO_LANGSTRING_INSERT JOSM_SECDESC_FILE_EXTENSIONS ${CUR_LANG}
56
57 !insertmacro JOSM_MACRO_LANGSTRING_INSERT JOSM_UPDATEICONS_ERROR1 ${CUR_LANG}
58 !insertmacro JOSM_MACRO_LANGSTRING_INSERT JOSM_UPDATEICONS_ERROR2 ${CUR_LANG}
59
60 !insertmacro JOSM_MACRO_LANGSTRING_INSERT JOSM_LINK_TEXT ${CUR_LANG}
61
62
63 !insertmacro JOSM_MACRO_LANGSTRING_INSERT un.JOSM_UNCONFIRMPAGE_TEXT_TOP ${CUR_LANG}
64 !insertmacro JOSM_MACRO_LANGSTRING_INSERT un.JOSM_DEFAULT_UNINSTALL ${CUR_LANG}
65 !insertmacro JOSM_MACRO_LANGSTRING_INSERT un.JOSM_FULL_UNINSTALL ${CUR_LANG}
66
67 !insertmacro JOSM_MACRO_LANGSTRING_INSERT un.JOSM_IN_USE_ERROR ${CUR_LANG}
68 !insertmacro JOSM_MACRO_LANGSTRING_INSERT un.JOSM_INSTDIR_ERROR ${CUR_LANG}
69
70
71 !insertmacro JOSM_MACRO_LANGSTRING_INSERT un.JOSM_SEC_UNINSTALL ${CUR_LANG}
72 !insertmacro JOSM_MACRO_LANGSTRING_INSERT un.JOSM_SEC_PERSONAL_SETTINGS ${CUR_LANG}
73 !insertmacro JOSM_MACRO_LANGSTRING_INSERT un.JOSM_SEC_PLUGINS ${CUR_LANG}
74
75 !insertmacro JOSM_MACRO_LANGSTRING_INSERT un.JOSM_SECDESC_UNINSTALL ${CUR_LANG}
76 !insertmacro JOSM_MACRO_LANGSTRING_INSERT un.JOSM_SECDESC_PERSONAL_SETTINGS ${CUR_LANG}
77
78
79 !undef CUR_LANG
80!macroend
81
82!macro JOSM_MACRO_INCLUDE_LANGFILE LANG FILE
83 !insertmacro JOSM_MACRO_LANGUAGEFILE_BEGIN "${LANG}"
84 !include "${FILE}"
85 !insertmacro JOSM_MACRO_LANGUAGEFILE_END
86!macroend
Note: See TracBrowser for help on using the repository browser.