source: josm/trunk/windows/langmacros.nsh@ 11037

Last change on this file since 11037 was 7838, checked in by Don-vip, 10 years ago

move Windows Installer NSIS code from OSM SVN to our own repository

File size: 3.5 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_TURNRESTRICTIONS_PLUGIN ${CUR_LANG}
40 !insertmacro JOSM_MACRO_LANGSTRING_INSERT JOSM_SEC_WMS ${CUR_LANG}
41 !insertmacro JOSM_MACRO_LANGSTRING_INSERT JOSM_SEC_STARTMENU ${CUR_LANG}
42 !insertmacro JOSM_MACRO_LANGSTRING_INSERT JOSM_SEC_DESKTOP_ICON ${CUR_LANG}
43 !insertmacro JOSM_MACRO_LANGSTRING_INSERT JOSM_SEC_QUICKLAUNCH_ICON ${CUR_LANG}
44 !insertmacro JOSM_MACRO_LANGSTRING_INSERT JOSM_SEC_FILE_EXTENSIONS ${CUR_LANG}
45
46 !insertmacro JOSM_MACRO_LANGSTRING_INSERT JOSM_SECDESC_JOSM ${CUR_LANG}
47 !insertmacro JOSM_MACRO_LANGSTRING_INSERT JOSM_SECDESC_PLUGINS_GROUP ${CUR_LANG}
48 !insertmacro JOSM_MACRO_LANGSTRING_INSERT JOSM_SECDESC_TURNRESTRICTIONS_PLUGIN ${CUR_LANG}
49 !insertmacro JOSM_MACRO_LANGSTRING_INSERT JOSM_SECDESC_WMS ${CUR_LANG}
50 !insertmacro JOSM_MACRO_LANGSTRING_INSERT JOSM_SECDESC_STARTMENU ${CUR_LANG}
51 !insertmacro JOSM_MACRO_LANGSTRING_INSERT JOSM_SECDESC_DESKTOP_ICON ${CUR_LANG}
52 !insertmacro JOSM_MACRO_LANGSTRING_INSERT JOSM_SECDESC_QUICKLAUNCH_ICON ${CUR_LANG}
53 !insertmacro JOSM_MACRO_LANGSTRING_INSERT JOSM_SECDESC_FILE_EXTENSIONS ${CUR_LANG}
54
55 !insertmacro JOSM_MACRO_LANGSTRING_INSERT JOSM_UPDATEICONS_ERROR1 ${CUR_LANG}
56 !insertmacro JOSM_MACRO_LANGSTRING_INSERT JOSM_UPDATEICONS_ERROR2 ${CUR_LANG}
57
58 !insertmacro JOSM_MACRO_LANGSTRING_INSERT JOSM_LINK_TEXT ${CUR_LANG}
59
60
61 !insertmacro JOSM_MACRO_LANGSTRING_INSERT un.JOSM_UNCONFIRMPAGE_TEXT_TOP ${CUR_LANG}
62 !insertmacro JOSM_MACRO_LANGSTRING_INSERT un.JOSM_DEFAULT_UNINSTALL ${CUR_LANG}
63 !insertmacro JOSM_MACRO_LANGSTRING_INSERT un.JOSM_FULL_UNINSTALL ${CUR_LANG}
64
65 !insertmacro JOSM_MACRO_LANGSTRING_INSERT un.JOSM_IN_USE_ERROR ${CUR_LANG}
66 !insertmacro JOSM_MACRO_LANGSTRING_INSERT un.JOSM_INSTDIR_ERROR ${CUR_LANG}
67
68
69 !insertmacro JOSM_MACRO_LANGSTRING_INSERT un.JOSM_SEC_UNINSTALL ${CUR_LANG}
70 !insertmacro JOSM_MACRO_LANGSTRING_INSERT un.JOSM_SEC_PERSONAL_SETTINGS ${CUR_LANG}
71 !insertmacro JOSM_MACRO_LANGSTRING_INSERT un.JOSM_SEC_PLUGINS ${CUR_LANG}
72
73 !insertmacro JOSM_MACRO_LANGSTRING_INSERT un.JOSM_SECDESC_UNINSTALL ${CUR_LANG}
74 !insertmacro JOSM_MACRO_LANGSTRING_INSERT un.JOSM_SECDESC_PERSONAL_SETTINGS ${CUR_LANG}
75
76
77 !undef CUR_LANG
78!macroend
79
80!macro JOSM_MACRO_INCLUDE_LANGFILE LANG FILE
81 !insertmacro JOSM_MACRO_LANGUAGEFILE_BEGIN "${LANG}"
82 !include "${FILE}"
83 !insertmacro JOSM_MACRO_LANGUAGEFILE_END
84!macroend
Note: See TracBrowser for help on using the repository browser.