Re: [1/1][user32.dll]Adding Arabic Translation resources
Hi Nowres, just looked at your patch, there are some things missing, when you translate a dialog you should add EXSTYLE WS_EX_LAYOUTRTL. For example, instead of this header: +MDI_MOREWINDOWS DIALOG 20, 20, 232, 122 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "إخ&تيار النافذة" +FONT 8, "MS Shell Dlg" It should be like this: +MDI_MOREWINDOWS DIALOG 20, 20, 232, 122 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +EXSTYLE WS_EX_LAYOUTRTL +CAPTION "إخ&تيار النافذة" +FONT 8, "MS Shell Dlg" Kind regards, Yaron Shahrabani <Hebrew translator> 2011/1/9 Nowres <nss.zpeedzter(a)gmail.com>
From a5d9d1e4599ce5a6c2f45df7948182401526f997 Mon Sep 17 00:00:00 2001 From: Nowres Rafid <nss.zpeedzter(a)gmail.com> Date: Sun, 9 Jan 2011 00:54:00 +0000 Subject: [user32]Adding Arabic translation resources
--- dlls/user32/Makefile.in | 1 + dlls/user32/resources/user32_Ar.rc | 89 ++++++++++++++++++++++++++++++++++++ 2 files changed, 90 insertions(+), 0 deletions(-) create mode 100644 dlls/user32/resources/user32_Ar.rc
diff --git a/dlls/user32/Makefile.in b/dlls/user32/Makefile.in index 3dbde26..e33d83e 100644 --- a/dlls/user32/Makefile.in +++ b/dlls/user32/Makefile.in @@ -51,6 +51,7 @@ C_SRCS = \ wsprintf.c
RC_SRCS = \ + resources/user32_Ar.rc \ resources/user32_Bg.rc \ resources/user32_Ca.rc \ resources/user32_Cs.rc \ diff --git a/dlls/user32/resources/user32_Ar.rc b/dlls/user32/resources/user32_Ar.rc new file mode 100644 index 0000000..5dd397c --- /dev/null +++ b/dlls/user32/resources/user32_Ar.rc @@ -0,0 +1,89 @@ +/* + * User32 + * Arabic language support + * + * Copyright 2010 Nowres Rafid + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#include "resources.h" + +/* UTF-8 */ +#pragma code_page(65001) + +LANGUAGE LANG_ARABIC, SUBLANG_DEFAULT + +SYSMENU MENU +{ + MENUITEM "إسترجا&ع", 61728 + MENUITEM "تحري&ك", 61456 + MENUITEM "حج&م", 61440 + MENUITEM "تصغي&ر", 61472 + MENUITEM "تكبي&ر", 61488 + MENUITEM SEPARATOR + MENUITEM "إغلا&ق\tAlt-F4", 61536 + MENUITEM SEPARATOR + MENUITEM "Wine معلومات حو&ل", 61761 +} + +EDITMENU MENU +{ + POPUP "" + BEGIN + MENUITEM "إلغاء التغيير&ات", EM_UNDO + MENUITEM SEPARATOR + MENUITEM "ق&ص", WM_CUT + MENUITEM "نس&خ", WM_COPY + MENUITEM "لصق&", WM_PASTE + MENUITEM "مس&ح", WM_CLEAR + MENUITEM SEPARATOR + MENUITEM "تحد&يد الكل", EM_SETSEL + END +} + +MSGBOX DIALOG 100, 80, 216, 168 +STYLE DS_MODALFRAME | DS_NOIDLEMSG | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU +BEGIN + ICON "", 1088, 8, 20, 16, 16, WS_CHILD | WS_VISIBLE + LTEXT "", 100, 32, 4, 176, 48, WS_CHILD | WS_VISIBLE | WS_GROUP | SS_NOPREFIX + PUSHBUTTON "موافق&", 1, 16, 56, 40, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP + PUSHBUTTON "إلغ&اء", 2, 64, 56, 40, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP + PUSHBUTTON "إنه&اء", 3, 112, 56, 40, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP + PUSHBUTTON "إعادة المحاول&ة", 4, 160, 56, 40, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP + PUSHBUTTON "تجاه&ل", 5, 208, 56, 40, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP + PUSHBUTTON "نع&م", 6, 256, 56, 40, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP + PUSHBUTTON "ك&لا", 7, 304, 56, 40, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP + PUSHBUTTON "أعد& المحاولة", 10, 352, 56, 40, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP + PUSHBUTTON "إستمرا&ر", 11, 400, 56, 40, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP + PUSHBUTTON "مس&اعدة", 9, 448, 56, 40, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP +END + +MDI_MOREWINDOWS DIALOG 20, 20, 232, 122 +STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU +CAPTION "إخ&تيار النافذة" +FONT 8, "MS Shell Dlg" +BEGIN + LISTBOX MDI_IDC_LISTBOX, 5, 7, 222, 90, WS_VSCROLL | WS_HSCROLL /* defined in mdi.h */ + DEFPUSHBUTTON "مو&افق", IDOK, 75, 100, 35, 14 + PUSHBUTTON "إلغ&اء", IDCANCEL, 120, 100, 35, 14 +END + + +STRINGTABLE +{ + IDS_ERROR "خطأ" + IDS_MDI_MOREWINDOWS "نوا&فذ أخرى" +} -- 1.7.1
participants (1)
-
Yaron Shahrabani