wiki:Translations

Version 4 (modified by xhmikosr, 6 years ago) (diff)

--

Translation guide for MPC

GUI translation is stored in .rc files. Those files are used by developer tool “Visual Studio” to create different DLL for each language. This file can be opened with a text editor, and contains information that shouldn’t be modified.

This document describes what should be translated. Please take care of the rules detailed here.

What should be translated is only the part in bold in following samples :

a) dialog boxes such as

IDD_SELECTMEDIATYPE DIALOGEX 0, 0, 225, 47
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION [b]"Select Media Type"[/b]
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
    COMBOBOX        IDC_COMBO1,7,7,211,120,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
    DEFPUSHBUTTON   "OK",IDOK,114,26,50,14
    PUSHBUTTON     "Cancel",IDCANCEL,168,26,50,14
END

b) Menus such as :

IDR_MAINFRAME MENU
BEGIN

    POPUP [b]"&File"[/b]
    BEGIN
        MENUITEM "&Quick Open File...\tCtrl+Q", ID_FILE_OPENQUICK
        MENUITEM SEPARATOR
        MENUITEM "&Open File...\tCtrl+O",       ID_FILE_OPENMEDIA
        MENUITEM "Open &DVD...\tCtrl+D",        ID_FILE_OPENDVD
        MENUITEM "Open De&vice...\tCtrl+V",     ID_FILE_OPENDEVICE
....

c) String table

STRINGTABLE
BEGIN
    IDS_INFOBAR_LOCATION    "Location"
    IDS_INFOBAR_VIDEO       "Video"
    IDS_INFOBAR_AUDIO       "Audio"
    IDS_INFOBAR_SUBTITLES   "Subtitles"
...

IMPORTANT: Be careful to additional rules.

  • Some menu items lines end with "65535", and should have the same name exactly as

IDS_xxxx_POPUP

Ex :

    MENUITEM "Su&btitles",    65535
    IDS_SUBTITLES_POPUP     "Subtitles"
  • Change only strings between “ “
  • Do not remove blank or change numeric values present in the file

SourceForge account

Mpc-hc project is hosted on SourceForge. All translators should open an account on it (don’t worry it’s 100% free) : http://sourceforge.net

After initial translation, you will be able to do update by yourself. To do this you have to :

  • Install "Tortoise SVN" : http://tortoisesvn.tigris.org/
  • Create a folder "mplayerc" somewhere on your machine, then left click / SVN Checkout. On prompt, enter this URL :

https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk/src/apps/mplayerc

Wait a little until all files are downloaded, then modify the file mplayerc.rc corresponding to your language (mplayerc.fr.rc for French, mplayerc.de.rc for German, etc) directly from there (don't delete the .svn folder it's important). To upload you modifications, just left click and select "SVN Commit" (you will need to wait i add you in project member list for this). Be careful not to modify other files. If you do it inadvertently, don't commit those files but select "Tortoise SVN / Revert" it will undo changes.

This has to be cleaned up, this is a list of exceptions:

Do not translate anything between these sections:

// Microsoft Visual C++ generated resource script.
//
#include "resource.h"
..
...
/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//
/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//

#ifdef APSTUDIO_INVOKED
..
...
/////////////////////////////////////////////////////////////////////////////
//
// Menu
//
/////////////////////////////////////////////////////////////////////////////
//
// AVI
//

IDR_AVI_FILECOPY        AVI                     "res\\ani.avi"
..
,,,
/////////////////////////////////////////////////////////////////////////////
//
// String Table
//

Do not translate anything beyond

/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//

Exception, you do have to translate this line (it is included twice):

// English (U.S.) resources

Exception, you do have to modify this line:

LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US

Do not translate any of the following strings:

MS Shell Dlg

FONT 8, "MS Shell Dlg", 400, 0, 0x1

MS Sans Serif

FONT 8, "MS Sans Serif", 0, 0, 0x0

Button

    CONTROL         "Preview",IDC_CHECK2,"Button",BS_AUTO3STATE | WS_TABSTOP,72,114,41,10

msctls_updown32

    CONTROL         "",IDC_SPIN1,"msctls_updown32",UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS | UDS_NOTHOUSANDS | WS_DISABLED,35,46,11,14

(spaces)

    CONTROL         "",IDC_SPIN1,"msctls_updown32",UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS | UDS_NOTHOUSANDS | WS_DISABLED,35,46,11,14

...

   PUSHBUTTON      "...",IDC_BUTTON3,98,231,14,13

Static

    CONTROL         "",IDC_STATIC,"Static",SS_ETCHEDHORZ,10,205,104,1

SysListView32

    CONTROL         "",IDC_LIST1,"SysListView32",LVS_REPORT | LVS_ALIGNLEFT | WS_BORDER | WS_TABSTOP,7,7,363,124

msctls_trackbar32

    CONTROL         "",IDC_SLI_SATURATION,"msctls_trackbar32",TBS_AUTOTICKS | TBS_TOOLTIPS | WS_DISABLED | WS_TABSTOP,55,107,232,14

http://mpc-hc.sourceforge.net/

    CONTROL         "<a>http://mpc-hc.sourceforge.net/</a>",IDC_SOURCEFORGE_LINK,

SysLink

                    "SysLink",WS_TABSTOP,40,100,142,11

SysTabControl32

    CONTROL         "",IDC_TAB1,"SysTabControl32",0x0,7,7,204,160

SysAnimate32

    CONTROL         "",IDC_ANIMATE1,"SysAnimate32",ACS_CENTER | ACS_TRANSPARENT | WS_TABSTOP,7,3,187,30

msctls_progress32

    CONTROL         "",IDC_PROGRESS1,"msctls_progress32",WS_BORDER,7,63,190,8

Do not translate the languages

        MENUITEM SEPARATOR
        POPUP "&Language"
        BEGIN
            MENUITEM "Belarusian",                  ID_LANGUAGE_BELARUSIAN
            MENUITEM "Catalan",                     ID_LANGUAGE_CATALAN
            MENUITEM "Chinese (simplified)",        ID_LANGUAGE_CHINESE_SIMPLIFIED
            MENUITEM "Chinese (traditional)",       ID_LANGUAGE_CHINESE_TRADITIONAL
            MENUITEM "Czech",                       ID_LANGUAGE_CZECH
            MENUITEM "Dutch",                       ID_LANGUAGE_DUTCH
            MENUITEM "English",                     ID_LANGUAGE_ENGLISH
            MENUITEM "French",                      ID_LANGUAGE_FRENCH
            MENUITEM "German",                      ID_LANGUAGE_GERMAN
            MENUITEM "Hungarian",                   ID_LANGUAGE_HUNGARIAN
            MENUITEM "Italian",                     ID_LANGUAGE_ITALIAN
            MENUITEM "Japanese",                    ID_LANGUAGE_JAPANESE
            MENUITEM "Korean",                      ID_LANGUAGE_KOREAN
            MENUITEM "Polish",                      ID_LANGUAGE_POLISH
            MENUITEM "Portuguese (brasil)",         ID_LANGUAGE_PORTUGUESE_BR
            MENUITEM "Russian",                     ID_LANGUAGE_RUSSIAN
            MENUITEM "Slovak",                      ID_LANGUAGE_SLOVAK
            MENUITEM "Spanish",                     ID_LANGUAGE_SPANISH
            MENUITEM "Swedish",                     ID_LANGUAGE_SWEDISH
            MENUITEM "Turkish",                     ID_LANGUAGE_TURKISH
            MENUITEM "Ukrainian",                   ID_LANGUAGE_UKRAINIAN
        END

Translations Status

Status from #2010-06-26:

LanguageTotalTranslatedFuzzyUntranslatedLast Update
mplayerc.it116481303512010-06-26
mplayerc.sv116483103332010-06-26
mplayerc.de116486602982010-06-26
mplayerc.nl116490902552010-06-26
mplayerc.fr116496202022010-06-26
mplayerc.tr116496501992010-06-26
mplayerc.es116498001842010-06-26
mplayerc.sk116498501792010-06-26
mplayerc.pl116499901652010-06-26
mplayerc.ca1164100601582010-06-26
mplayerc.br1164102301412010-06-26
mplayerc.cz1164102501392010-06-26
mplayerc.ja1164102701372010-06-26
mplayerc.hu1164102801362010-06-26
mplayerc.by1164102901352010-06-26
mplayerc.kr1164104301212010-06-26
mplayerc.ru1164105301112010-06-26
mplayerc.tc1164105601082010-06-26
mplayerc.ua1164106201022010-06-26
mplayerc.sc116410840802010-06-26
English11641164002010-06-26

Attachments (1)

Download all attachments as: .zip