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