/* * OpenVPN-GUI -- A Windows GUI for OpenVPN. * * Copyright (C) 2009 Heiko Hund * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program (see the file COPYING included with this * distribution); if not, write to the Free Software Foundation, Inc., * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef LOCALIZATION_H #define LOCALIZATION_H int LocalizedTime(const time_t, LPTSTR, size_t); wchar_t *LocalizedFileTime(const FILETIME *ft); PTSTR LoadLocalizedString(const UINT, ...); int LoadLocalizedStringBuf(PTSTR, const int, const UINT, ...); void ShowLocalizedMsg(const UINT, ...); int ShowLocalizedMsgEx(const UINT, HANDLE, LPCTSTR, const UINT, ...); HICON LoadLocalizedIconEx(const UINT, int cx, int cy); HICON LoadLocalizedIcon(const UINT); HICON LoadLocalizedSmallIcon(const UINT); LPCDLGTEMPLATE LocalizedDialogResource(const UINT); INT_PTR LocalizedDialogBoxParam(const UINT, DLGPROC, const LPARAM); INT_PTR LocalizedDialogBoxParamEx(const UINT, HWND parent, DLGPROC, const LPARAM); HWND CreateLocalizedDialogParam(const UINT, DLGPROC, const LPARAM); HWND CreateLocalizedDialog(const UINT, DLGPROC); INT_PTR CALLBACK GeneralSettingsDlgProc(HWND, UINT, WPARAM, LPARAM); LANGID GetGUILanguage(void); /* * Detect whether the selected UI language is LTR or RTL. * Returns 0 for LTR, 1 for RTL, 2 or 3 for vertical */ int LangFlowDirection(void); #define MBOX_RTL_FLAGS ((LangFlowDirection() == 1) ? MB_RIGHT|MB_RTLREADING : 0) #endif /* ifndef LOCALIZATION_H */