[easytag] Use a macro to install translations with NSIS
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag] Use a macro to install translations with NSIS
- Date: Mon, 18 Nov 2013 21:54:47 +0000 (UTC)
commit 54c97e652c77c9f2ae4913ae55e7232e40fc7f37
Author: David King <amigadave amigadave com>
Date: Mon Nov 18 18:52:00 2013 +0000
Use a macro to install translations with NSIS
Additionally, install the ATK, GDK-Pixbuf, GLib and GTK+ translations.
easytag-win32-installer.nsi.in | 98 ++++++++++++++++-----------------------
1 files changed, 40 insertions(+), 58 deletions(-)
---
diff --git a/easytag-win32-installer.nsi.in b/easytag-win32-installer.nsi.in
index 3802ca5..22078ab 100644
--- a/easytag-win32-installer.nsi.in
+++ b/easytag-win32-installer.nsi.in
@@ -284,65 +284,47 @@ SectionGroupEnd
;------------------------------------
; Translation install Section
;------------------------------------
-Section "Translations" SecTranslations
- SetOutPath "$INSTDIR\lib\locale\bg"
- File "${DESTDIR}${PREFIX}/lib/locale/bg/LC_MESSAGES/easytag.*"
- SetOutPath "$INSTDIR\lib\locale\ca"
- File "${DESTDIR}${PREFIX}/lib/locale/ca/LC_MESSAGES/easytag.*"
- SetOutPath "$INSTDIR\lib\locale\cs"
- File "${DESTDIR}${PREFIX}/lib/locale/cs/LC_MESSAGES/easytag.*"
- SetOutPath "$INSTDIR\lib\locale\da"
- File "${DESTDIR}${PREFIX}/lib/locale/da/LC_MESSAGES/easytag.*"
- SetOutPath "$INSTDIR\lib\locale\de"
- File "${DESTDIR}${PREFIX}/lib/locale/de/LC_MESSAGES/easytag.*"
- SetOutPath "$INSTDIR\lib\locale\el"
- File "${DESTDIR}${PREFIX}/lib/locale/el/LC_MESSAGES/easytag.*"
- SetOutPath "$INSTDIR\lib\locale\es"
- File "${DESTDIR}${PREFIX}/lib/locale/es/LC_MESSAGES/easytag.*"
- SetOutPath "$INSTDIR\lib\locale\fr"
- File "${DESTDIR}${PREFIX}/lib/locale/fr/LC_MESSAGES/easytag.*"
- SetOutPath "$INSTDIR\lib\locale\he"
- File "${DESTDIR}${PREFIX}/lib/locale/he/LC_MESSAGES/easytag.*"
- SetOutPath "$INSTDIR\lib\locale\hu"
- File "${DESTDIR}${PREFIX}/lib/locale/hu/LC_MESSAGES/easytag.*"
- SetOutPath "$INSTDIR\lib\locale\it"
- File "${DESTDIR}${PREFIX}/lib/locale/it/LC_MESSAGES/easytag.*"
- SetOutPath "$INSTDIR\lib\locale\ja"
- File "${DESTDIR}${PREFIX}/lib/locale/ja/LC_MESSAGES/easytag.*"
- SetOutPath "$INSTDIR\lib\locale\lt"
- File "${DESTDIR}${PREFIX}/lib/locale/lt/LC_MESSAGES/easytag.*"
- SetOutPath "$INSTDIR\lib\locale\nl"
- File "${DESTDIR}${PREFIX}/lib/locale/nl/LC_MESSAGES/easytag.*"
- SetOutPath "$INSTDIR\lib\locale\pl"
- File "${DESTDIR}${PREFIX}/lib/locale/pl/LC_MESSAGES/easytag.*"
- SetOutPath "$INSTDIR\lib\locale\pt_BR"
- File "${DESTDIR}${PREFIX}/lib/locale/pt_BR/LC_MESSAGES/easytag.*"
- SetOutPath "$INSTDIR\lib\locale\ro"
- File "${DESTDIR}${PREFIX}/lib/locale/ro/LC_MESSAGES/easytag.*"
- SetOutPath "$INSTDIR\lib\locale\ru"
- File "${DESTDIR}${PREFIX}/lib/locale/ru/LC_MESSAGES/easytag.*"
- SetOutPath "$INSTDIR\lib\locale\sl"
- File "${DESTDIR}${PREFIX}/lib/locale/sl/LC_MESSAGES/easytag.*"
- SetOutPath "$INSTDIR\lib\locale\sr"
- File "${DESTDIR}${PREFIX}/lib/locale/sr/LC_MESSAGES/easytag.*"
- SetOutPath "$INSTDIR\lib\locale\sr latin"
- File "${DESTDIR}${PREFIX}/lib/locale/sr latin/LC_MESSAGES/easytag.*"
- SetOutPath "$INSTDIR\lib\locale\sv"
- File "${DESTDIR}${PREFIX}/lib/locale/sv/LC_MESSAGES/easytag.*"
- SetOutPath "$INSTDIR\lib\locale\tr"
- File "${DESTDIR}${PREFIX}/lib/locale/tr/LC_MESSAGES/easytag.*"
- SetOutPath "$INSTDIR\lib\locale\uk"
- File "${DESTDIR}${PREFIX}/lib/locale/uk/LC_MESSAGES/easytag.*"
- SetOutPath "$INSTDIR\lib\locale\zh_CN"
- File "${DESTDIR}${PREFIX}/lib/locale/zh_CN/LC_MESSAGES/easytag.*"
- SetOutPath "$INSTDIR\lib\locale\zh_TW"
- File "${DESTDIR}${PREFIX}/lib/locale/zh_TW/LC_MESSAGES/easytag.*"
-
- ; Shortcuts
- !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
- CreateDirectory "$SMPROGRAMS\$ICONS_GROUP"
- !insertmacro MUI_STARTMENU_WRITE_END
+!macro Locale LOCALE
+Section "${LOCALE} Translation"
+ SetOutPath "$INSTDIR\lib\locale\${LOCALE}\LC_MESSAGES"
+ File "${DESTDIR}${PREFIX}/lib/locale/${LOCALE}/LC_MESSAGES/easytag.mo"
+ SetOutPath "$INSTDIR\share\locale\${LOCALE}\LC_MESSAGES"
+ File "${PREFIX}/share/locale/${LOCALE}/LC_MESSAGES/atk10.mo"
+ File "${PREFIX}/share/locale/${LOCALE}/LC_MESSAGES/gdk-pixbuf.mo"
+ File "${PREFIX}/share/locale/${LOCALE}/LC_MESSAGES/glib20.mo"
+ File "${PREFIX}/share/locale/${LOCALE}/LC_MESSAGES/gtk20.mo"
+ File "${PREFIX}/share/locale/${LOCALE}/LC_MESSAGES/gtk20-properties.mo"
SectionEnd
+!macroend
+
+SectionGroup "Translations" SecTranslations
+ !insertmacro Locale "bg"
+ !insertmacro Locale "ca"
+ !insertmacro Locale "cs"
+ !insertmacro Locale "da"
+ !insertmacro Locale "de"
+ !insertmacro Locale "el"
+ !insertmacro Locale "es"
+ !insertmacro Locale "fr"
+ !insertmacro Locale "he"
+ !insertmacro Locale "hu"
+ !insertmacro Locale "it"
+ !insertmacro Locale "ja"
+ !insertmacro Locale "lt"
+ !insertmacro Locale "nl"
+ !insertmacro Locale "pl"
+ !insertmacro Locale "pt_BR"
+ !insertmacro Locale "ro"
+ !insertmacro Locale "ru"
+ !insertmacro Locale "sl"
+ !insertmacro Locale "sr"
+ !insertmacro Locale "sr latin"
+ !insertmacro Locale "sv"
+ !insertmacro Locale "tr"
+ !insertmacro Locale "uk"
+ !insertmacro Locale "zh_CN"
+ !insertmacro Locale "zh_TW"
+SectionGroupEnd
Section -AdditionalIcons
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]