From 1f123424b30d1a629fd1576a49523e529bebc0b3 Mon Sep 17 00:00:00 2001 From: Ron Pedde Date: Thu, 30 Nov 2006 07:28:25 +0000 Subject: [PATCH] Finish localizations for dutch, german, and french --- win32/FireflyShell/AboutPage.cpp | 2 +- win32/FireflyShell/FireflyShell.DEU.rc | Bin 21464 -> 21160 bytes win32/FireflyShell/FireflyShell.cpp | 20 +++++++++ win32/FireflyShell/FireflyShell.h | 1 + win32/FireflyShell/FireflyShell.rc | 40 ++++++++--------- win32/FireflyShell/FireflyShellDEU.vcproj | 4 +- win32/FireflyShell/FireflyShellFRA.rc | Bin 22004 -> 21696 bytes win32/FireflyShell/FireflyShellFRA.vcproj | 4 +- win32/FireflyShell/FireflyShellNLD.rc | Bin 21244 -> 21004 bytes win32/FireflyShell/FireflyShellNLD.vcproj | 4 +- .../localizations/dutch/dutch.ini | Bin 7188 -> 7038 bytes .../localizations/french/french.ini | Bin 7948 -> 7730 bytes .../localizations/german/german.ini | Bin 7408 -> 7194 bytes .../localizations/german/german.lws | Bin 250 -> 250 bytes win32/nsi/localizations/French.nsh | Bin 4098 -> 2043 bytes win32/nsi/mt-daapd.nsi.templ | 42 +++++++++--------- 16 files changed, 68 insertions(+), 49 deletions(-) diff --git a/win32/FireflyShell/AboutPage.cpp b/win32/FireflyShell/AboutPage.cpp index 0af0820e..db4c5fe1 100644 --- a/win32/FireflyShell/AboutPage.cpp +++ b/win32/FireflyShell/AboutPage.cpp @@ -23,7 +23,7 @@ LRESULT CAboutPage::OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) { m_firefly_link.SubclassWindow(GetDlgItem(IDC_FIREFLYLINK)); - m_firefly_link.SetHyperLink(_T("http://www.fireflymediaserver.org")); + m_firefly_link.SetHyperLink(_T("http://forums.fireflymediaserver.org")); m_roku_link.SetHyperLink(_T("http://www.rokulabs.com")); m_roku_link.SubclassWindow(GetDlgItem(IDC_ROKULINK)); diff --git a/win32/FireflyShell/FireflyShell.DEU.rc b/win32/FireflyShell/FireflyShell.DEU.rc index 207d93c6c556e5b5f7686638384d1802375cef44..bbbd2ef5b1cd31f2b1c9c4d05937d94611757c05 100644 GIT binary patch delta 424 zcmcbyoN>ic#tjd68J#CTyIY z53+j600u{f5C#vBey|Qx26MQMexP40fIM@s4A9BSqMOf2Twvq|dJHTCbj{@dg8JM6 z42cZIKv>R@Kl!7o{NxF09K5Dr706DzCndxUvBZ$Ul)+^4U#UnAR#4DbPL5Wt^^KJSmvbg_~JSOIX7S8+cKjqE1Z%7Tw8Be;!5B z!^>R631PZ*_)0h7hM03-VtE&OQDy2XaeI5RB?S0!$h)aCl$A|tM?zwj#ojIl!~Try z4GlQ&EKpLt>ah%$Xfo@%ZzJ0q+Uj6W(o9qWp1ni0NRP$nez9$TC+mJcXC*;T+qe3R F_6K4{Y{mcp diff --git a/win32/FireflyShell/FireflyShell.cpp b/win32/FireflyShell/FireflyShell.cpp index b7303293..4bccd6b3 100644 --- a/win32/FireflyShell/FireflyShell.cpp +++ b/win32/FireflyShell/FireflyShell.cpp @@ -15,6 +15,9 @@ */ #include "stdafx.h" + +#include + #include "resource.h" #include "FireflyShell.h" #include "DosPath.h" @@ -38,10 +41,27 @@ Application::Application() m_config_path = filename.GetPath(); ATLTRACE("Config path: %s\n", (const TCHAR *)m_config_path); + // Dump an ini file with drive mappings CDosPath mapfile(_T("mapping.ini")); mapfile |= path; + m_ini_path = mapfile.GetPath(); + /* Load the proper language dll, if possible */ + LANGID lidDefault = GetUserDefaultLangID(); + int iBaseLanguage = lidDefault & 0xFF; + iBaseLanguage = GetPrivateProfileInt(_T("shell"),_T("lang_id"),iBaseLanguage,m_ini_path); + + TCHAR tempPath[24]; + wsprintf(tempPath,_T("FireflyShell-%02x.dll"),iBaseLanguage); + CDosPath langlib(tempPath); + langlib |= path; + + HMODULE hLangDLL; + if((hLangDLL=LoadLibrary(langlib.GetPath())) != NULL) { + _AtlBaseModule.SetResourceInstance(hLangDLL); + } + TCHAR inbuffer[4]; TCHAR outbuffer[2048]; /* as max_path is unreliable */ DWORD size; diff --git a/win32/FireflyShell/FireflyShell.h b/win32/FireflyShell/FireflyShell.h index f5e5d186..f714abb5 100644 --- a/win32/FireflyShell/FireflyShell.h +++ b/win32/FireflyShell/FireflyShell.h @@ -32,6 +32,7 @@ class Application : public Singleton CNotifyIcon m_icon; CMainDlg *m_dlg; CString m_config_path; + CString m_ini_path; Service m_service; ServiceStatusMonitor m_service_monitor; ServerEvents m_server_events; diff --git a/win32/FireflyShell/FireflyShell.rc b/win32/FireflyShell/FireflyShell.rc index 5a1176c2..a93d8356 100644 --- a/win32/FireflyShell/FireflyShell.rc +++ b/win32/FireflyShell/FireflyShell.rc @@ -68,19 +68,16 @@ STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "About" FONT 8, "MS Sans Serif", 0, 0, 0x0 BEGIN - LTEXT "For help, tips and troubleshooting advice visit the ", - IDC_STATIC,12,92,156,9,NOT WS_GROUP + CTEXT "For help, tips and troubleshooting advice...", + IDC_FIREFLYLINK,12,92,276,9,NOT WS_GROUP GROUPBOX "Version information",IDC_STATIC,6,121,288,100 CONTROL "",IDC_VERSIONLIST,"SysListView32",LVS_REPORT | LVS_ALIGNLEFT | WS_BORDER | WS_TABSTOP,12,132,276,68 - PUSHBUTTON "&Copy to Clipboard",IDC_COPY,218,203,70,14 + PUSHBUTTON "&Copy to Clipboard",IDC_COPY,192,203,96,14 CONTROL 208,IDC_LOGO,"Static",SS_BITMAP | SS_CENTERIMAGE | SS_SUNKEN | WS_BORDER,6,7,288,73 - LTEXT "Firefly Media Server website",IDC_FIREFLYLINK,167,92,90, - 9,NOT WS_GROUP - LTEXT "For information on Firefly compatible music players, visit", - IDC_STATIC,12,106,172,9,NOT WS_GROUP - LTEXT "Roku's website",IDC_ROKULINK,186,106,52,9,NOT WS_GROUP + CTEXT "For information on Firefly compatible music players...", + IDC_ROKULINK,12,106,276,9,NOT WS_GROUP END IDD_PAGE_BASIC DIALOGEX 0, 0, 300, 230 @@ -89,16 +86,17 @@ STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | CAPTION "Library" FONT 8, "MS Shell Dlg", 400, 0, 0x1 BEGIN - LTEXT "Library &Name",IDC_STATIC,12,24,54,8 - EDITTEXT IDC_SERVERNAME,67,21,227,14,ES_AUTOHSCROLL - LTEXT "Media &Location",IDC_STATIC,12,61,48,8 - EDITTEXT IDC_PATH,66,57,222,14,ES_AUTOHSCROLL - PUSHBUTTON "&Browse...",IDC_BROWSE,238,76,50,14 + LTEXT "Library &Name",IDC_STATIC,12,24,74,8 + EDITTEXT IDC_SERVERNAME,86,21,202,14,ES_AUTOHSCROLL + LTEXT "Media &Location",IDC_STATIC,12,61,74,8 + EDITTEXT IDC_PATH,86,57,202,14,ES_AUTOHSCROLL + PUSHBUTTON "&Browse...",IDC_BROWSE,228,76,60,14 GROUPBOX "Security",IDC_STATIC,7,113,287,103 CONTROL "&Protect Firefly media library with a password", IDC_PROTECT,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,135, - 154,10 - EDITTEXT IDC_PASSWORD,174,132,114,14,ES_PASSWORD | ES_AUTOHSCROLL + 276,10 + LTEXT "Pass&word",IDC_STATIC,12,156,74,8 + EDITTEXT IDC_PASSWORD,86,154,114,14,ES_PASSWORD | ES_AUTOHSCROLL LTEXT "You can limit access to your music library by assigning a password. If a password is assigned, only clients that provide the correct password will be able to play music from your library.", IDC_STATIC,12,180,276,26,SS_NOPREFIX END @@ -122,9 +120,9 @@ FONT 8, "MS Shell Dlg", 400, 0, 0x1 BEGIN GROUPBOX "Server Status",IDC_STATIC,6,7,288,82 LTEXT "Current state of the server goes here",IDC_SERVERSTATE, - 12,28,206,25 - PUSHBUTTON "&Stop Server",IDC_STOPSERVICE,238,28,50,14 - PUSHBUTTON "&Start Server",IDC_STARTSERVICE,238,28,50,14 + 12,28,199,25 + PUSHBUTTON "&Stop Server",IDC_STOPSERVICE,218,28,70,14 + PUSHBUTTON "&Start Server",IDC_STARTSERVICE,218,28,70,14 CONTROL "&Start Firefly when Windows starts",IDC_AUTOSTART, "Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,63,276,10 GROUPBOX "Advanced",IDC_STATIC,6,93,288,61 @@ -137,8 +135,8 @@ BEGIN IDC_STATIC,12,129,276,23 GROUPBOX "Web administration",IDC_STATIC,6,159,288,54 LTEXT "Firefly Media Server also provides a web administration interface.", - IDC_STATIC,12,177,206,20 - PUSHBUTTON "&Open",IDC_WEBADMIN,238,177,50,14 + IDC_STATIC,12,177,198,20 + PUSHBUTTON "&Open",IDC_WEBADMIN,218,177,70,14 END @@ -167,7 +165,7 @@ BEGIN LEFTMARGIN, 6 RIGHTMARGIN, 294 VERTGUIDE, 12 - VERTGUIDE, 66 + VERTGUIDE, 86 VERTGUIDE, 131 VERTGUIDE, 218 VERTGUIDE, 288 diff --git a/win32/FireflyShell/FireflyShellDEU.vcproj b/win32/FireflyShell/FireflyShellDEU.vcproj index 4755f5c1..fab88eac 100644 --- a/win32/FireflyShell/FireflyShellDEU.vcproj +++ b/win32/FireflyShell/FireflyShellDEU.vcproj @@ -31,7 +31,7 @@ Name="VCCustomBuildTool"/> p+}v~WopZll$oQFzK3B*dc2Y&WOeZm)+>O>iJiJW?_?j|w z7idM;Wj;@nA^YM?jaSnYrf(tl?F7(7?15;!M zRFeNC6#06_h>#X`a%Y-96`8V7e9G5xd9#Gyxq))D3#ZV50UQWD^m?MI#7XZ%#uZyT zEH6k@%nTY>tUCO<@J>PsJf8*f&fpSytRr!Lmdf@61#pgfsA$mvMR(FB;s5?2l UVObnHZ@Aqw@Sa+HFA|L>gVd+y_bdwS!sXOuB5EGsH>;Q)^5 zI)QyS0~LI_tJo1dd@oF;JRo2~9h_h&tdH@89$WN+fCV-VwF3IOifwVkfZ4SeqrwJ- z?4Vdy@OGh+D1(W8LCZG5rL_^#0}Ho>8QhXo>>38Pb2p+%Uy;9K4cO#7K*^#u_8w;+K4vXg~|E zWe-RBG!4f@JAm!zYD1`Y}mKFZTLU(E4!TGj~dZ6HCX z_&S+k<6}eu4wjTU`r1;=A|cViz9Q2E9WV483i|B-*TB~+6Uh*Sm(|^Dq{6b;jGZ85 PE{=0e9FSUYZq4aGmkn&e diff --git a/win32/FireflyShell/FireflyShellFRA.vcproj b/win32/FireflyShell/FireflyShellFRA.vcproj index 6d648cca..623c6b56 100644 --- a/win32/FireflyShell/FireflyShellFRA.vcproj +++ b/win32/FireflyShell/FireflyShellFRA.vcproj @@ -31,7 +31,7 @@ Name="VCCustomBuildTool"/> cPYcTn(n)+l1@gjsWDNE511`m)Huu4;)6G5iJ zRPsy~P*9m1Ct<{E1XQ5|@c@I_WJWQnYP;L5TMQ8QRcbpSg7*i%UI*L!0@Kl*x<>4@SpO@C;dmdY$8Z;;Sd2viW O;F-plyjk7rDhB{AZiZU` delta 600 zcmZutzfTik7=Di`7D|hEq}LQ8z1*dt!AkG0y8YPNJvZ!qi*g>;(On9(8T3?zwiCt=g0dzeyRL^rSy){m>f4@ zYr`1H%w-K)r8U~2yL^UZP=~95XQkFqKrWTZArHT_qBzWG18J9^4Q{$*Qxz>MfUSO$ zbgwUz#tgd8;8ohB+tlToNo73DSfh3F857e5WMf~e?2Q@F$EVrFozXI@{^fzSucd6N zOKqQA9BWoITUcR_A#KqV3;a*&qjpAZ^l>rXBUc=2l>x=Wz5IE+DUM8BrCDmxJd?++ zqK%?`T=MZW`#e#j1}fPgzsz&jX;IEaRy?@_&*5`%3g0Jfe9_%>Ri@!fQBSD3A4-bz zq8bAnUi6$EpqJ029R|m}Dm(g+-&d4v5l(y^JQ)R9$7OS~PvuHN4{9!pBeU~wSF|nb zR7ygmXHHUg(3>u$Vjq!=k9MJeE47|@cXl_S)P+-dtK#RyJ-lDg@nW_s>&)Dvp$=_u zm?6!eeJKZ{so_CW$F7;g6KhZmHybAsUAiSdZ!B~ecG#yljhjnJd|F&rLg6nRB>w<} CuZ$4@ diff --git a/win32/FireflyShell/FireflyShellNLD.vcproj b/win32/FireflyShell/FireflyShellNLD.vcproj index d80d0bcc..340613fe 100644 --- a/win32/FireflyShell/FireflyShellNLD.vcproj +++ b/win32/FireflyShell/FireflyShellNLD.vcproj @@ -31,7 +31,7 @@ Name="VCCustomBuildTool"/> %WH6L~#lbS06*>J`7)v%6@~W~iXEGE|ek-Cs*+N)q@*UwKDBpN; zok-E-K1q(rpG4+?=*^QvxfmIfC(jkrW=z?9T1=jaGl?OUp^71sA${{liCo6X*Ca$X J$4PBt1OSd*H7o!C delta 279 zcmexoHpODY7S_p2STqF78B!UN7>XG(8A^aGB?jBc^I3FxQA8)NWQ`V8U?>Bsfv8ge zs?7kZR+!Am77Ub00b)e}A3@A2(+ylgTRBVpt@MmGH+`OJgm2I+vh|Xj-;T|AuF!_XV5s+R0#8Q() qKQU%c{w%7^40QHpc`y&yx^i+10I#^T|@; zT$8of0z?%U%7AJhx)gvqGl1$8CfBotizCaVGE^}rFyw&cZnNd{>Hv9geUts!mkOeY r0M%7Z_U90vEWq)>F^D0bA)BF;K^3Jhq7EbzN!Z>Br+5Op&COuLq0 delta 224 zcmbPb@xgM#9oESd44Dii45^b7MfHJV;V5DkS))Z27|MVuAgUCA zDl>p86eb(8#Y-vxb*BPlN*R*DqInDo48cIPsgtL&<@4$Qd2pSRIoZplK_a+xw6cG- e4PwY=$Of9G4m1fgc5WQFGf0$O0S|rFF^?;n%X^j#)@<%HqM6}qOWRbmVcGpHN;t%pGIAZ<+ z7iQOv71}}rmne}lZ{ECl^L&!iHRBZKPH+jQv&ajkSEt8E$44iOD=KwKGAZoSRh&dV z{%IM7ZaPg?fwS>R(M<5&*pTB|GA-mSD#U5=^kl9V zC$n(wdMLarlwvp&GI6QWj9csj+$HV9KGe;r`=nz12t4lQO$>9%H~zxmUzzi zYcQ<6f}MMkEme5LXuaJ*V{&2eQjXWZ6;fxlel$EMVRF@Havx7O-X!)DbWY4LNN(u+ zN4@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O~d>XL}QzU^f-Mx9)%v)(rKuBsxTh|xLUZ5w!2nN{_E zea)(~wlZuHrCp^GTgNwQOJ&#bZ&7LN;pKxFTfIW1(?QKu?XO_}YN+>Pe9#QdEhapvFX8uWF?Hgyy@DI63v@PgrhX2YIkLwfRn;SOBl`}TGD@9uRW<1CxRtJ2 o(lI}kE7Mg=l`DuzuX#16vp~M0>T%!2RfVWd^<8{q&q_S_1^c4B&j0`b diff --git a/win32/nsi/mt-daapd.nsi.templ b/win32/nsi/mt-daapd.nsi.templ index 2bd26ad8..ceb40d49 100644 --- a/win32/nsi/mt-daapd.nsi.templ +++ b/win32/nsi/mt-daapd.nsi.templ @@ -152,9 +152,9 @@ Section "MainSection" SEC01 SetOverwrite on File /oname=firefly.exe "${MTD_SOURCE}\mt-daapd.exe" File "${CONFIG_SOURCE}\FireflyShell.exe" - File "${CONFIG_SOURCE}\FireflyShellDEU.dll" - File "${CONFIG_SOURCE}\FireflyShellFRA.dll" - File "${CONFIG_SOURCE}\FireflyShellNLD.dll" + File "${CONFIG_SOURCE}\FireflyShell-0c.dll" + File "${CONFIG_SOURCE}\FireflyShell-07.dll" + File "${CONFIG_SOURCE}\FireflyShell-13.dll" File "${CONFIG_SOURCE}\..\FireflyShell.exe.manifest" File "${DLL_SOURCE}\gnu_regex.dll" File "${DLL_SOURCE}\pthreadVC2.dll" @@ -328,21 +328,21 @@ Function .onInit StrCpy $2 "$PROGRAMFILES\${PRODUCT_NAME}" StrCpy $3 "$DOCUMENTS\My Music" - Push "" - Push ${LANG_ENGLISH} - Push English - Push ${LANG_FRENCH} - Push French - Push ${LANG_DUTCH} - Push Dutch - Push ${LANG_GERMAN} - Push German - ; more - Push A - LangDLL::LangDialog "Installer Language" "Please select the language of the installer" - Pop $LANGUAGE - StrCmp $LANGUAGE "cancel" 0 +2 - Abort +; Push "" +; Push ${LANG_ENGLISH} +; Push English +; Push ${LANG_FRENCH} +; Push French +; Push ${LANG_DUTCH} +; Push Dutch +; Push ${LANG_GERMAN} +; Push German +; ; more +; Push A +; LangDLL::LangDialog "Installer Language" "Please select the language of the installer" +; Pop $LANGUAGE +; StrCmp $LANGUAGE "cancel" 0 +2 +; Abort FunctionEnd Function LicensePost @@ -580,9 +580,9 @@ Section Uninstall Delete "$INSTDIR\firefly.exe" Delete "$INSTDIR\FireflyShell.exe" Delete "$INSTDIR\FireflyShell.exe.manifest" - Delete "$INSTDIR\FireflyShellDEU.dll" - Delete "$INSTDIR\FireflyShellFRA.dll" - Delete "$INSTDIR\FireflyShellNLD.dll" + Delete "$INSTDIR\FireflyShell-0c.dll" + Delete "$INSTDIR\FireflyShell-07.dll" + Delete "$INSTDIR\FireflyShell-13.dll" Delete "$SMPROGRAMS\${PRODUCT_NAME}\Uninstall.lnk" Delete "$SMPROGRAMS\${PRODUCT_NAME}\Website.lnk"