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

Last change on this file since 16593 was 14201, checked in by ulf, 16 years ago

add further plugins

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