pidgin/win32/nsis/langmacros.nsh

Fri, 05 Mar 2010 03:53:52 +0000

author
Daniel Atallah <datallah@pidgin.im>
date
Fri, 05 Mar 2010 03:53:52 +0000
changeset 29818
ba5a3e226f5d
parent 29763
28f8c86acf66
child 30260
a2765eb04fde
permissions
-rw-r--r--

Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)

7571
cf6c03a3e508 [gaim-migrate @ 8187]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
1 ;;
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
2 ;; Windows Pidgin NSIS installer language macros
7571
cf6c03a3e508 [gaim-migrate @ 8187]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
3 ;;
cf6c03a3e508 [gaim-migrate @ 8187]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
4
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
5 !macro PIDGIN_MACRO_DEFAULT_STRING LABEL VALUE
7571
cf6c03a3e508 [gaim-migrate @ 8187]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
6 !ifndef "${LABEL}"
cf6c03a3e508 [gaim-migrate @ 8187]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
7 !define "${LABEL}" "${VALUE}"
cf6c03a3e508 [gaim-migrate @ 8187]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
8 !ifdef INSERT_DEFAULT
10920
f68798385106 [gaim-migrate @ 12686]
Daniel Atallah <datallah@pidgin.im>
parents: 10212
diff changeset
9 !warning "${LANG} lang file missing ${LABEL}, using default..."
7571
cf6c03a3e508 [gaim-migrate @ 8187]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
10 !endif
cf6c03a3e508 [gaim-migrate @ 8187]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
11 !endif
cf6c03a3e508 [gaim-migrate @ 8187]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
12 !macroend
cf6c03a3e508 [gaim-migrate @ 8187]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
13
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
14 !macro PIDGIN_MACRO_LANGSTRING_INSERT LABEL LANG
7571
cf6c03a3e508 [gaim-migrate @ 8187]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
15 LangString "${LABEL}" "${LANG_${LANG}}" "${${LABEL}}"
cf6c03a3e508 [gaim-migrate @ 8187]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
16 !undef "${LABEL}"
cf6c03a3e508 [gaim-migrate @ 8187]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
17 !macroend
cf6c03a3e508 [gaim-migrate @ 8187]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
18
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
19 !macro PIDGIN_MACRO_LANGUAGEFILE_BEGIN LANG
7571
cf6c03a3e508 [gaim-migrate @ 8187]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
20 !define CUR_LANG "${LANG}"
cf6c03a3e508 [gaim-migrate @ 8187]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
21 !macroend
cf6c03a3e508 [gaim-migrate @ 8187]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
22
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
23 !macro PIDGIN_MACRO_LANGUAGEFILE_END
7571
cf6c03a3e508 [gaim-migrate @ 8187]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
24 !define INSERT_DEFAULT
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
25 !include "${PIDGIN_DEFAULT_LANGFILE}"
7571
cf6c03a3e508 [gaim-migrate @ 8187]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
26 !undef INSERT_DEFAULT
cf6c03a3e508 [gaim-migrate @ 8187]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
27
15856
322e0965615f Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents: 15805
diff changeset
28 ; Pidgin Language file Version 3
7571
cf6c03a3e508 [gaim-migrate @ 8187]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
29 ; String labels should match those from the default language file.
cf6c03a3e508 [gaim-migrate @ 8187]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
30
10212
9a9c18b72773 [gaim-migrate @ 11336]
Herman Bloggs <herman@bluedigits.com>
parents: 7571
diff changeset
31 ; Startup checks
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
32 !insertmacro PIDGIN_MACRO_LANGSTRING_INSERT INSTALLER_IS_RUNNING ${CUR_LANG}
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
33 !insertmacro PIDGIN_MACRO_LANGSTRING_INSERT PIDGIN_IS_RUNNING ${CUR_LANG}
7571
cf6c03a3e508 [gaim-migrate @ 8187]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
34
cf6c03a3e508 [gaim-migrate @ 8187]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
35 ; License Page
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
36 !insertmacro PIDGIN_MACRO_LANGSTRING_INSERT PIDGIN_LICENSE_BUTTON ${CUR_LANG}
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
37 !insertmacro PIDGIN_MACRO_LANGSTRING_INSERT PIDGIN_LICENSE_BOTTOM_TEXT ${CUR_LANG}
7571
cf6c03a3e508 [gaim-migrate @ 8187]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
38
cf6c03a3e508 [gaim-migrate @ 8187]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
39 ; Components Page
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
40 !insertmacro PIDGIN_MACRO_LANGSTRING_INSERT PIDGIN_SECTION_TITLE ${CUR_LANG}
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
41 !insertmacro PIDGIN_MACRO_LANGSTRING_INSERT GTK_SECTION_TITLE ${CUR_LANG}
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
42 !insertmacro PIDGIN_MACRO_LANGSTRING_INSERT PIDGIN_SHORTCUTS_SECTION_TITLE ${CUR_LANG}
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
43 !insertmacro PIDGIN_MACRO_LANGSTRING_INSERT PIDGIN_DESKTOP_SHORTCUT_SECTION_TITLE ${CUR_LANG}
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
44 !insertmacro PIDGIN_MACRO_LANGSTRING_INSERT PIDGIN_STARTMENU_SHORTCUT_SECTION_TITLE ${CUR_LANG}
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
45 !insertmacro PIDGIN_MACRO_LANGSTRING_INSERT PIDGIN_SECTION_DESCRIPTION ${CUR_LANG}
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
46 !insertmacro PIDGIN_MACRO_LANGSTRING_INSERT GTK_SECTION_DESCRIPTION ${CUR_LANG}
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
47 !insertmacro PIDGIN_MACRO_LANGSTRING_INSERT PIDGIN_SHORTCUTS_SECTION_DESCRIPTION ${CUR_LANG}
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
48 !insertmacro PIDGIN_MACRO_LANGSTRING_INSERT PIDGIN_DESKTOP_SHORTCUT_DESC ${CUR_LANG}
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
49 !insertmacro PIDGIN_MACRO_LANGSTRING_INSERT PIDGIN_STARTMENU_SHORTCUT_DESC ${CUR_LANG}
29634
80dbf6f777c4 Use a private GTK+ Runtime copy on Windows.
Daniel Atallah <datallah@pidgin.im>
parents: 29506
diff changeset
50 !insertmacro PIDGIN_MACRO_LANGSTRING_INSERT DEBUG_SYMBOLS_SECTION_TITLE ${CUR_LANG}
29818
ba5a3e226f5d Finish up win32 gtkspell 2.0.16 / enchant support (mostly in the installer)
Daniel Atallah <datallah@pidgin.im>
parents: 29763
diff changeset
51 !insertmacro PIDGIN_MACRO_LANGSTRING_INSERT TRANSLATIONS_SECTION_TITLE ${CUR_LANG}
7571
cf6c03a3e508 [gaim-migrate @ 8187]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
52
cf6c03a3e508 [gaim-migrate @ 8187]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
53 ; Installer Finish Page
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
54 !insertmacro PIDGIN_MACRO_LANGSTRING_INSERT PIDGIN_FINISH_VISIT_WEB_SITE ${CUR_LANG}
7571
cf6c03a3e508 [gaim-migrate @ 8187]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
55
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
56 ; Pidgin Section Prompts and Texts
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
57 !insertmacro PIDGIN_MACRO_LANGSTRING_INSERT PIDGIN_PROMPT_CONTINUE_WITHOUT_UNINSTALL ${CUR_LANG}
7571
cf6c03a3e508 [gaim-migrate @ 8187]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
58
15856
322e0965615f Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents: 15805
diff changeset
59 ; URI Handler section
322e0965615f Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents: 15805
diff changeset
60 !insertmacro PIDGIN_MACRO_LANGSTRING_INSERT URI_HANDLERS_SECTION_TITLE ${CUR_LANG}
322e0965615f Add support for registering URI handlers to the windows installer.
Daniel Atallah <datallah@pidgin.im>
parents: 15805
diff changeset
61
7571
cf6c03a3e508 [gaim-migrate @ 8187]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
62 ; Uninstall Section Prompts
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
63 !insertmacro PIDGIN_MACRO_LANGSTRING_INSERT un.PIDGIN_UNINSTALL_ERROR_1 ${CUR_LANG}
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
64 !insertmacro PIDGIN_MACRO_LANGSTRING_INSERT un.PIDGIN_UNINSTALL_ERROR_2 ${CUR_LANG}
7571
cf6c03a3e508 [gaim-migrate @ 8187]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
65
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 10920
diff changeset
66 ; Spellcheck Section Prompts
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
67 !insertmacro PIDGIN_MACRO_LANGSTRING_INSERT PIDGIN_SPELLCHECK_SECTION_TITLE ${CUR_LANG}
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
68 !insertmacro PIDGIN_MACRO_LANGSTRING_INSERT PIDGIN_SPELLCHECK_ERROR ${CUR_LANG}
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
69 !insertmacro PIDGIN_MACRO_LANGSTRING_INSERT PIDGIN_SPELLCHECK_SECTION_DESCRIPTION ${CUR_LANG}
11578
70230c5dded2 [gaim-migrate @ 13847]
Daniel Atallah <datallah@pidgin.im>
parents: 10920
diff changeset
70
29763
28f8c86acf66 Various win32 installer fixes
Daniel Atallah <datallah@pidgin.im>
parents: 29634
diff changeset
71 !insertmacro PIDGIN_MACRO_LANGSTRING_INSERT PIDGIN_DEBUGSYMBOLS_ERROR ${CUR_LANG}
28f8c86acf66 Various win32 installer fixes
Daniel Atallah <datallah@pidgin.im>
parents: 29634
diff changeset
72 !insertmacro PIDGIN_MACRO_LANGSTRING_INSERT PIDGIN_GTK_DOWNLOAD_ERROR ${CUR_LANG}
28f8c86acf66 Various win32 installer fixes
Daniel Atallah <datallah@pidgin.im>
parents: 29634
diff changeset
73
7571
cf6c03a3e508 [gaim-migrate @ 8187]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
74 !undef CUR_LANG
cf6c03a3e508 [gaim-migrate @ 8187]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
75 !macroend
cf6c03a3e508 [gaim-migrate @ 8187]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
76
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
77 !macro PIDGIN_MACRO_INCLUDE_LANGFILE LANG FILE
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
78 !insertmacro PIDGIN_MACRO_LANGUAGEFILE_BEGIN "${LANG}"
7571
cf6c03a3e508 [gaim-migrate @ 8187]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
79 !include "${FILE}"
15805
a80eb333bae9 Updates to the win32 installer. It isn't complete yet, but this a good saving point.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
80 !insertmacro PIDGIN_MACRO_LANGUAGEFILE_END
7571
cf6c03a3e508 [gaim-migrate @ 8187]
Herman Bloggs <herman@bluedigits.com>
parents:
diff changeset
81 !macroend

mercurial