Ticket #4740: 4740.patch

File 4740.patch, 16.8 KB (added by Wiktor Walc, 15 years ago)
  • _source/includes/cklangtool.js

     
    133133                missing :Pattern.compile( "\\/\\/\\s*MISSING", Pattern.CASE_INSENSITIVE ),
    134134                blockCommentStart :Pattern.compile( "\\/\\*" ),
    135135                blockCommentEnd :Pattern.compile( "\\*\\/" ),
    136                 entry :Pattern.compile( "^(\\s*)([a-z0-9][_a-z0-9]*)(\\s*:\\s*\\').*?(\\'.*)$", Pattern.CASE_INSENSITIVE ),
    137                 arrayEntry :Pattern.compile( "^(\\s*)([a-z0-9][_a-z0-9]*)(\\s*:\\s*\\[)(.*?)(\\].*)$", Pattern.CASE_INSENSITIVE ),
     136                entry :Pattern.compile( "^(\\s*)((?:'|\")?)([a-z0-9][_a-z0-9]*)\\2(\\s*:\\s*\\').*?(\\'.*)$", Pattern.CASE_INSENSITIVE ),
     137                arrayEntry :Pattern.compile( "^(\\s*)((?:'|\")?)([a-z0-9][_a-z0-9]*)\\2(\\s*:\\s*\\[)(.*?)(\\].*)$", Pattern.CASE_INSENSITIVE ),
    138138                arrayItemEntry :Pattern.compile( "\\s*(?:'(.*?)'(?:\\s*,\\s*)?)" ),
    139139                arrayTranslationKey :Pattern.compile( "^(.*)\\[(\\d+)\\]$" ),
    140                 objectName :Pattern.compile( "^\\s*([a-z][_a-z0-9]*)\\s*:\\s*$", Pattern.CASE_INSENSITIVE ),
     140                objectName :Pattern.compile( "^\\s*((?:'|\")?)([a-z][_a-z0-9]*)\\1\\s*:\\s*(?://.*)?$", Pattern.CASE_INSENSITIVE ),
    141141                objectStart :Pattern.compile( "\\{" ),
    142142                objectEnd :Pattern.compile( "\\}" ),
    143143                fileOverview :Pattern.compile( " @fileOverview" ),
     
    182182                                matcher = regexLib.objectName.matcher( line );
    183183                                if ( matcher.find() )
    184184                                {
    185                                         objectName = matcher.group( 1 );
     185                                        objectName = matcher.group( 2 );
    186186                                        continue;
    187187                                }
    188188
     
    216216                                matcher = regexLib.entry.matcher( line.replaceAll( "\\\\'", "" ) );
    217217                                if ( matcher.find() && regexLib.missing.matcher( line ).find() )
    218218                                {
    219                                         translationKey = key + "." + matcher.group( 2 );
     219                                        translationKey = key + "." + matcher.group( 3 );
    220220                                        translationKey = translationKey.replace( /^ckeditor_translation\./, "" );
    221221                                        out[ translationKey ] = true;
    222222                                }
     
    227227                                matcher = regexLib.arrayEntry.matcher( line.replaceAll( "\\\\'", "" ) );
    228228                                if ( matcher.find() && regexLib.missing.matcher( line ).find() )
    229229                                {
    230                                         translationKey = key + "." + matcher.group( 2 );
     230                                        translationKey = key + "." + matcher.group( 3 );
    231231                                        translationKey = translationKey.replace( /^ckeditor_translation\./, "" );
    232232                                        out[ translationKey ] = true;
    233233                                }
     
    300300                                matcher = regexLib.objectName.matcher( line );
    301301                                if ( matcher.find() )
    302302                                {
    303                                         objectName = matcher.group( 1 );
     303                                        objectName = matcher.group( 2 );
    304304                                        out.push( line );
    305305                                        continue;
    306306                                }
     
    348348                                matcher = regexLib.entry.matcher( line.replaceAll( "\\\\'", "" ) );
    349349                                if ( matcher.find() )
    350350                                {
    351                                         out.push( matcher.group( 1 ) + matcher.group( 2 ) + matcher.group( 3 ) + "#" + key + "." + matcher.group( 2 ) + "#"
    352                                                         + matcher.group( 4 ) );
     351                                        out.push( matcher.group( 1 ) + matcher.group( 2 ) + matcher.group( 3 ) + matcher.group( 2 ) + matcher.group( 4 ) + "#" + key + "." + matcher.group( 3 ) + "#"
     352                                                        + matcher.group( 5 ) );
    353353                                        continue;
    354354                                }
    355355
     
    365365                                {
    366366                                        i = 0;
    367367
    368                                         arrayEntryLine = matcher.group( 1 ) + matcher.group( 2 ) + matcher.group( 3 );
    369                                         arrayEntryKey = matcher.group( 2 );
    370                                         arrayEntryLineEnd = matcher.group( 5 );
    371                                         arrayEntryItems = matcher.group( 4 );
     368                                        arrayEntryLine = matcher.group( 1 ) + matcher.group( 2 ) + matcher.group( 3 ) + matcher.group( 2 ) + matcher.group( 4 );
     369                                        arrayEntryKey = matcher.group( 3 );
     370                                        arrayEntryLineEnd = matcher.group( 6 );
     371                                        arrayEntryItems = matcher.group( 5 );
    372372
    373373                                        arrayEntryItemsMatcher = regexLib.arrayItemEntry.matcher( arrayEntryItems );
    374374                                        while ( arrayEntryItemsMatcher.find() )
  • test/_assets/translator/_translationstatus.txt.correct.txt

     
    11Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
    22For licensing, see LICENSE.html or http://ckeditor.com/license
    33
    4 de.js      Found: 17 Missing: 4
    5 pl.js      Found: 18 Missing: 3
     4ar.js      Found: 24 Missing: 3
     5de.js      Found: 22 Missing: 5
     6pl.js      Found: 24 Missing: 3
  • test/_assets/translator/ar.js

     
     1/*
     2Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
     3For licensing, see LICENSE.html or http://ckeditor.com/license
     4*/
     5
     6/**
     7 * @fileOverview Defines the {@link CKEDITOR.lang} object, for the
     8 * Arabic language.
     9 */
     10
     11/**#@+
     12   @type String
     13   @example
     14*/
     15
     16/**
     17 * Constains the dictionary of language entries.
     18 * @namespace
     19 */
     20CKEDITOR.lang['ar'] =
     21{
     22        /**
     23         * The language reading direction. Possible values are "rtl" for
     24         * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right
     25         * languages (like English).
     26         * @default 'ltr'
     27         */
     28        dir : 'rtl',
     29
     30        // Toolbar buttons without dialogs.
     31        source                  : 'المصدر',
     32        newPage                 : 'صفحة جديدة',
     33        save                    : 'حفظ',
     34        preview                 : 'معاينة الصفحة',
     35
     36        // Common messages and labels.
     37        common :
     38        {
     39                browseServer            : 'تصفح',
     40                url                     : 'الرابط',
     41                protocol                : 'البروتوكول',
     42                confirmCancel   : 'بعض الخيارات قد تغيرت. هل أنت متأكد من إغلاق مربع النص؟',
     43        },
     44
     45        // Special char dialog.
     46        specialChar             :
     47        {
     48                toolbar         : 'إدراج  خاص.ِ',
     49                title           : 'اختر الخواص'
     50        },
     51
     52        // Link dialog.
     53        link :
     54        {
     55                toolbar         : 'رابط',
     56                noAnchors               : '(لا توجد علامات مرجعية في هذا المستند)',
     57                noUrl                   : 'من فضلك أدخل عنوان الموقع الذي يشير إليه الرابط',
     58                noEmail                 : 'من فضلك أدخل عنوان البريد الإلكتروني'
     59        },
     60
     61        // Table Dialog
     62        table :
     63        {
     64                toolbar         : 'جدول',
     65
     66                cell :
     67                {
     68                        menu                    : 'خلية',
     69                        insertBefore    : 'إدراج خلية قبل'
     70                },
     71
     72                row :
     73                {
     74                        menu                    : 'صف'
     75                }
     76        },
     77
     78        // Button Dialog.
     79        button :
     80        {
     81                typeRst         : 'إعادة تعيين'
     82        },
     83
     84        colors :
     85        {
     86                '000' : 'أسود',
     87                '800000' : 'كستنائي',
     88                'E6E6FA' : 'أرجواني',
     89                'FFF' : 'أبيض'
     90        }
     91};
  • test/_assets/translator/ar.js.correct.txt

     
     1/*
     2Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
     3For licensing, see LICENSE.html or http://ckeditor.com/license
     4*/
     5
     6/**
     7 * @fileOverview Defines the {@link CKEDITOR.lang} object, for the
     8 * Arabic language.
     9 */
     10
     11/**#@+
     12   @type String
     13   @example
     14*/
     15
     16/**
     17 * Constains the dictionary of language entries.
     18 * @namespace
     19 */
     20CKEDITOR.lang['ar'] =
     21{
     22        /**
     23         * The language reading direction. Possible values are "rtl" for
     24         * Right-To-Left languages (like Arabic) and "ltr" for Left-To-Right
     25         * languages (like English).
     26         * @default 'ltr'
     27         */
     28        dir : 'rtl',
     29
     30        /*
     31         * Screenreader titles. Please note that screenreaders are not always capable
     32         * of reading non-English words. So be careful while translating it.
     33         */
     34        editorTitle             : 'Rich text editor, %1', // MISSING
     35
     36        DateAmPm : ['AM', 'PM'], // MISSING
     37
     38        // Toolbar buttons without dialogs.
     39        source                  : 'المصدر',
     40        newPage                 : 'صفحة جديدة',
     41        save                    : 'حفظ',
     42        preview                 : 'معاينة الصفحة',
     43
     44        // Common messages and labels.
     45        // Inline comment
     46        // having more than one line.
     47        common :
     48        {
     49                browseServer    : 'تصفح',
     50                url                             : 'الرابط',
     51                protocol                : 'البروتوكول',
     52                confirmCancel   : 'بعض الخيارات قد تغيرت. هل أنت متأكد من إغلاق مربع النص؟'
     53        },
     54
     55        // Special char dialog.
     56        specialChar             :       // Inline comment for special char dialog.
     57        {
     58                toolbar         : 'إدراج  خاص.ِ',
     59                title           : 'اختر الخواص'
     60        },
     61
     62        // Link dialog.
     63        'link' :
     64        {
     65                'toolbar'               : 'رابط',               // IE6 BUG: A title called "Link" in an <A> tag would invalidate its padding!!
     66                noAnchors               : '(لا توجد علامات مرجعية في هذا المستند)',
     67                noUrl                   : 'من فضلك أدخل عنوان الموقع الذي يشير إليه الرابط',
     68                noEmail                 : 'من فضلك أدخل عنوان البريد الإلكتروني'
     69        },
     70
     71        // Table Dialog
     72        table :
     73        {
     74                toolbar         : 'جدول',
     75
     76                cell :
     77                {
     78                        menu                    : 'خلية',
     79                        insertBefore    : 'إدراج خلية قبل'
     80                },
     81
     82                row :
     83                {
     84                        menu                    : 'صف'
     85                }
     86        },
     87
     88        colors :
     89        {
     90                '000' : 'أسود',
     91                '800000' : 'كستنائي',
     92                'E6E6FA' : 'أرجواني',
     93                'FFF' : 'أبيض'
     94        },
     95
     96        // Button Dialog.
     97        button :
     98        {
     99                typeRst         : 'إعادة تعيين'
     100        }
     101};
  • test/_assets/translator/de.js

     
    3333         */
    3434        editorTitle             : 'Rich text editor, %1', // MISSING
    3535
     36        DateAmPm : ['dAM','dPM'],
     37
    3638        // Toolbar buttons without dialogs.
    3739        source                  : 'Quellcode',
    3840        newPage                 : 'Neue Seite',
     
    5153        // Link dialog.
    5254        link :
    5355        {
    54                 toolbar         : 'Link einfügen/editieren',            // IE6 BUG: A title called "Link" in an <A> tag would invalidate its padding!!
     56                toolbar         : 'Link\u200b',         // MISSING // IE6 BUG: A title called "Link" in an <A> tag would invalidate its padding!!
    5557                noAnchors               : '(keine Anker im Dokument vorhanden)',
    5658                noUrl                   : 'Bitte geben Sie die Link-URL an',
    5759                noEmail                 : 'Bitte geben Sie e-Mail Adresse an'
     
    7476                },
    7577        },
    7678
     79        colors :
     80        {
     81                '000' : 'Schwarz',
     82                '800000' : 'Kastanienbraun',
     83                'E6E6FA' : 'Lavendel',
     84                'FFF' : 'Weiß'
     85        },
     86
    7787        // Button Dialog.
    7888        button :
    7989        {
    8090                typeRst         : 'Zurücksetzen'
    81         },
     91        }
    8292};
    8393
    8494
  • test/_assets/translator/de.js.correct.txt

     
    3333         */
    3434        editorTitle             : 'Rich text editor, %1', // MISSING
    3535
     36        DateAmPm : ['dAM', 'dPM'],
     37
    3638        // Toolbar buttons without dialogs.
    3739        source                  : 'Quellcode',
    3840        newPage                 : 'Neue Seite',
     
    4042        preview                 : 'Vorschau',
    4143
    4244        // Common messages and labels.
     45        // Inline comment
     46        // having more than one line.
    4347        common :
    4448        {
    4549                browseServer    : 'Server durchsuchen',
     
    4953        },
    5054
    5155        // Special char dialog.
    52         specialChar             :
     56        specialChar             :       // Inline comment for special char dialog.
    5357        {
    5458                toolbar         : 'Insert Special Character', // MISSING
    5559                title           : 'Select Special Character' // MISSING
    5660        },
    5761
    5862        // Link dialog.
    59         link :
     63        'link' :
    6064        {
    61                 toolbar         : 'Link einfügen/editieren',            // IE6 BUG: A title called "Link" in an <A> tag would invalidate its padding!!
     65                'toolbar'               : 'Link\u200b',         // MISSING // IE6 BUG: A title called "Link" in an <A> tag would invalidate its padding!!
    6266                noAnchors               : '(keine Anker im Dokument vorhanden)',
    6367                noUrl                   : 'Bitte geben Sie die Link-URL an',
    6468                noEmail                 : 'Bitte geben Sie e-Mail Adresse an'
     
    7276                cell :
    7377                {
    7478                        menu                    : 'Zelle',
    75                         insertBefore    : 'Zelle davor einfügen',
     79                        insertBefore    : 'Zelle davor einfügen'
    7680                },
    7781
    7882                row :
    7983                {
    80                         menu                    : 'Zeile',
    81                 },
     84                        menu                    : 'Zeile'
     85                }
    8286        },
    8387
     88        colors :
     89        {
     90                '000' : 'Schwarz',
     91                '800000' : 'Kastanienbraun',
     92                'E6E6FA' : 'Lavendel',
     93                'FFF' : 'Weiß'
     94        },
     95
    8496        // Button Dialog.
    8597        button :
    8698        {
    8799                typeRst         : 'Zurücksetzen'
    88         },
     100        }
    89101};
  • test/_assets/translator/en.js

     
    3333         */
    3434        editorTitle             : 'Rich text editor, %1',
    3535
     36        DateAmPm : ['AM','PM'],
     37
    3638        // Toolbar buttons without dialogs.
    3739        source                  : 'Source',
    3840        newPage                 : 'New Page',
     
    4042        preview                 : 'Preview',
    4143
    4244        // Common messages and labels.
     45        // Inline comment
     46        // having more than one line.
    4347        common :
    4448        {
    4549                browseServer    : 'Browser Server',
     
    4953        },
    5054
    5155        // Special char dialog.
    52         specialChar             :
     56        specialChar             :       // Inline comment for special char dialog.
    5357        {
    5458                toolbar         : 'Insert Special Character',
    5559                title           : 'Select Special Character'
    5660        },
    5761
    5862        // Link dialog.
    59         link :
     63        'link' :
    6064        {
    61                 toolbar         : 'Link\u200b',         // IE6 BUG: A title called "Link" in an <A> tag would invalidate its padding!!
     65                'toolbar'               : 'Link\u200b',         // IE6 BUG: A title called "Link" in an <A> tag would invalidate its padding!!
    6266                noAnchors               : '(No anchors available in the document)',
    6367                noUrl                   : 'Please type the link URL',
    6468                noEmail                 : 'Please type the e-mail address'
     
    7276                cell :
    7377                {
    7478                        menu                    : 'Cell',
    75                         insertBefore    : 'Insert Cell Before',
     79                        insertBefore    : 'Insert Cell Before'
    7680                },
    7781
    7882                row :
    7983                {
    80                         menu                    : 'Row',
    81                 },
     84                        menu                    : 'Row'
     85                }
    8286        },
    8387
     88        colors :
     89        {
     90                '000' : 'Black',
     91                '800000' : 'Maroon',
     92                'E6E6FA' : 'Lavender',
     93                'FFF' : 'White'
     94        },
     95
    8496        // Button Dialog.
    8597        button :
    8698        {
    8799                typeRst         : 'Reset'
    88         },
     100        }
    89101};
  • test/_assets/translator/pl.js

     
    2727         */
    2828        dir : 'ltr',
    2929
     30        'DateAmPm' : ['pAM','pPM'],
     31
    3032        // Toolbar buttons without dialogs.
    3133        source                  : 'Źródło dokumentu',
    3234        newPage                 : 'Nowa strona',
    33         save                    : 'Zapisz',
     35        save                    : "Zapisz",
    3436        preview                 : 'Podgląd',
    3537
    3638        // Common messages and labels.
     
    4345        },
    4446
    4547        // Special char dialog.
    46         specialChar             :
     48        'specialChar'           :
    4749        {
    4850                toolbar         : 'Wstaw znak specjalny',
    49                 title           : 'Wybierz znak specjalny'
     51                'title'         : 'Wybierz znak specjalny'
    5052        },
    5153
    5254        // Link dialog.
    5355        link :
    5456        {
    55                 toolbar         : 'Wstaw/edytuj hiperłącze',            // IE6 BUG: A title called "Link" in an <A> tag would invalidate its padding!!
     57                'toolbar'               : 'Wstaw/edytuj hiperłącze',            // IE6 BUG: A title called "Link" in an <A> tag would invalidate its padding!!
    5658                noAnchors               : '(W dokumencie nie zdefiniowano żadnych etykiet)',
    5759                noUrl                   : 'Podaj adres URL',
    5860                noEmail                 : 'Podaj adres e-mail'
     
    7577                },
    7678        },
    7779
     80        colors :
     81        {
     82                '000' : 'Czarny',
     83                '800000' : 'Rdzawy',
     84                'E6E6FA' : 'Lawendowy',
     85                'FFF' : 'Biały'
     86        },
     87
    7888        // Button Dialog.
    7989        button :
    8090        {
  • test/_assets/translator/pl.js.correct.txt

     
    3333         */
    3434        editorTitle             : 'Rich text editor, %1', // MISSING
    3535
     36        DateAmPm : ['pAM', 'pPM'],
     37
    3638        // Toolbar buttons without dialogs.
    3739        source                  : 'Źródło dokumentu',
    3840        newPage                 : 'Nowa strona',
     
    4042        preview                 : 'Podgląd',
    4143
    4244        // Common messages and labels.
     45        // Inline comment
     46        // having more than one line.
    4347        common :
    4448        {
    4549                browseServer    : 'Przeglądaj',
     
    4953        },
    5054
    5155        // Special char dialog.
    52         specialChar             :
     56        specialChar             :       // Inline comment for special char dialog.
    5357        {
    5458                toolbar         : 'Wstaw znak specjalny',
    5559                title           : 'Wybierz znak specjalny'
    5660        },
    5761
    5862        // Link dialog.
    59         link :
     63        'link' :
    6064        {
    61                 toolbar         : 'Wstaw/edytuj hiperłącze',            // IE6 BUG: A title called "Link" in an <A> tag would invalidate its padding!!
     65                'toolbar'               : 'Wstaw/edytuj hiperłącze',            // IE6 BUG: A title called "Link" in an <A> tag would invalidate its padding!!
    6266                noAnchors               : '(W dokumencie nie zdefiniowano żadnych etykiet)',
    6367                noUrl                   : 'Podaj adres URL',
    6468                noEmail                 : 'Podaj adres e-mail'
     
    7276                cell :
    7377                {
    7478                        menu                    : 'Komórka',
    75                         insertBefore    : 'Wstaw komórkę z lewej',
     79                        insertBefore    : 'Wstaw komórkę z lewej'
    7680                },
    7781
    7882                row :
    7983                {
    80                         menu                    : 'Row', // MISSING
    81                 },
     84                        menu                    : 'Row' // MISSING
     85                }
    8286        },
    8387
     88        colors :
     89        {
     90                '000' : 'Czarny',
     91                '800000' : 'Rdzawy',
     92                'E6E6FA' : 'Lawendowy',
     93                'FFF' : 'Biały'
     94        },
     95
    8496        // Button Dialog.
    8597        button :
    8698        {
    8799                typeRst         : 'Wyzeruj'
    88         },
     100        }
    89101};
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy