Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/nsis/langmacros.nsh
blob: 4a6b46ea903d93a4b31184a8f0dd8908e5c0def6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
;;
;; Windows Gcompris NSIS installer language macros
;;

!macro GCOMPRIS_MACRO_DEFAULT_STRING LABEL VALUE
  !ifndef "${LABEL}"
    !define "${LABEL}" "${VALUE}"
    !ifdef INSERT_DEFAULT
      !warning "${LANG} lang file mising ${LABEL}, using default.."
    !endif
  !endif
!macroend

!macro GCOMPRIS_MACRO_LANGSTRING_INSERT LABEL LANG
  LangString "${LABEL}" "${LANG_${LANG}}" "${${LABEL}}"
  !undef "${LABEL}"
!macroend

!macro GCOMPRIS_MACRO_LANGUAGEFILE_BEGIN LANG
  !define CUR_LANG "${LANG}"
!macroend

!macro GCOMPRIS_MACRO_LANGUAGEFILE_END
  !define INSERT_DEFAULT
  !include "${GCOMPRIS_DEFAULT_LANGFILE}"
  !undef INSERT_DEFAULT

  ; GCOMPRIS Language file Version 3
  ; String labels should match those from the default language file.

  ; Startup checks
  !insertmacro GCOMPRIS_MACRO_LANGSTRING_INSERT InstallerIsRunning	${CUR_LANG}
  !insertmacro GCOMPRIS_MACRO_LANGSTRING_INSERT GcomprisIsRunning	${CUR_LANG}

  ; License Page
  !insertmacro GCOMPRIS_MACRO_LANGSTRING_INSERT GcomprisLicenseButton	${CUR_LANG}
  !insertmacro GCOMPRIS_MACRO_LANGSTRING_INSERT GcomprisLicenseBottomText	${CUR_LANG}

  ; Installer Finish Page
  !insertmacro GCOMPRIS_MACRO_LANGSTRING_INSERT GcomprisFinishVisitWebSite	${CUR_LANG}

  ; Gcompris Section Prompts and Texts
  !insertmacro GCOMPRIS_MACRO_LANGSTRING_INSERT GcomprisPromptWipeout	${CUR_LANG}
  !insertmacro GCOMPRIS_MACRO_LANGSTRING_INSERT GcomprisPromptDirExists	${CUR_LANG}

  ; Uninstall Section Prompts
  !insertmacro GCOMPRIS_MACRO_LANGSTRING_INSERT unGcomprisUninstallError1	${CUR_LANG}
  !insertmacro GCOMPRIS_MACRO_LANGSTRING_INSERT unGcomprisUninstallError2	${CUR_LANG}

  !undef CUR_LANG
!macroend

!macro GCOMPRIS_MACRO_INCLUDE_LANGFILE LANG FILE
  !insertmacro GCOMPRIS_MACRO_LANGUAGEFILE_BEGIN "${LANG}"
  !include "${FILE}"
  !insertmacro GCOMPRIS_MACRO_LANGUAGEFILE_END
!macroend