8
0
Prechádzať zdrojové kódy

Aligned changes to the Translation Service v2.

Maciej Bukowski 8 rokov pred
rodič
commit
f76e8a8461

+ 4 - 4
packages/ckeditor5-build-classic/build-config.js

@@ -33,9 +33,6 @@ module.exports = {
 		'@ckeditor/ckeditor5-upload/src/imageupload',
 	],
 
-	// UI language. Language codes follow the https://en.wikipedia.org/wiki/ISO_639-1 format.
-	language: 'en',
-
 	// Editor config.
 	config: {
 		toolbar: {
@@ -54,6 +51,9 @@ module.exports = {
 
 		image: {
 			toolbar: [ 'imageStyleFull', 'imageStyleSide', '|', 'imageTextAlternative' ]
-		}
+		},
+
+		// UI language. Language codes follow the https://en.wikipedia.org/wiki/ISO_639-1 format.
+		lang: 'pl'
 	}
 };

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 0 - 0
packages/ckeditor5-build-classic/build/ckeditor.js


Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 0 - 0
packages/ckeditor5-build-classic/build/ckeditor.js.map


+ 1 - 0
packages/ckeditor5-build-classic/build/lang/de.js

@@ -0,0 +1 @@
+CKEDITOR_TRANSLATIONS.add('de',{a:"Datei kann nicht hochgeladen werden:",b:"Fett",c:"Blockzitat",d:"Kursiv",e:"Überschrift auswählen",f:"Überschrift",g:"Absatz",h:"Überschrift 1",i:"Überschrift 2",j:"Überschrift 3",k:"Link",l:"Nummerierte Liste",m:"Aufzählungsliste",n:"Bild in voller Größe",o:"Seitenbild",p:"Left aligned image",q:"Centered image",r:"Right aligned image",s:"Bild-Steuerelement",t:"Alternativ Text ändern",u:"Bildunterschrift eingeben",v:"Speichern",w:"Abbrechen",x:"Link entfernen",y:"Link-URL",z:"Bild einfügen",aa:"Textalternative",ab:"Rückgängig",ac:"Wiederherstellen",ad:"Rich Text Editor",ae:"Rich-Text-Editor, %0",af:"Upload failed"})

+ 1 - 0
packages/ckeditor5-build-classic/build/lang/en.js

@@ -0,0 +1 @@
+CKEDITOR_TRANSLATIONS.add('en',{a:"Cannot upload file:",b:"Bold",c:"Block quote",d:"Italic",e:"Choose heading",f:"Heading",g:"Paragraph",h:"Heading 1",i:"Heading 2",j:"Heading 3",k:"Link",l:"Numbered List",m:"Bulleted List",n:"Full size image",o:"Side image",p:"Left aligned image",q:"Centered image",r:"Right aligned image",s:"image widget",t:"Change image text alternative",u:"Enter image caption",v:"Save",w:"Cancel",x:"Unlink",y:"Link URL",z:"Insert image",aa:"Text alternative",ab:"Undo",ac:"Redo",ad:"Rich Text Editor",ae:"Rich Text Editor, %0",af:"Upload failed"})

+ 1 - 0
packages/ckeditor5-build-classic/build/lang/pl.js

@@ -0,0 +1 @@
+CKEDITOR_TRANSLATIONS.add('pl',{a:"Nie można przesłać pliku:",b:"Pogrubienie",c:"Cytat blokowy",d:"Kursywa",e:"Wybierz nagłówek",f:"Nagłówek",g:"Akapit",h:"Nagłówek 1",i:"Nagłówek 2",j:"Nagłówek 3",k:"Wstaw odnośnik",l:"Lista numerowana",m:"Lista wypunktowana",n:"Full size image",o:"Side image",p:"Left aligned image",q:"Centered image",r:"Right aligned image",s:"image widget",t:"Change image text alternative",u:"Enter image caption",v:"Zapisz",w:"Anuluj",x:"Usuń odnośnik",y:"Link URL",z:"Wstaw obraz",aa:"Text alternative",ab:"Cofnij",ac:"Ponów",ad:"Rich Text Editor",ae:"Rich Text Editor, %0",af:"Upload failed"})

+ 2 - 1
packages/ckeditor5-build-classic/src/ckeditor.js

@@ -63,6 +63,7 @@ ClassicEditor.build = {
 				'|',
 				'imageTextAlternative'
 			]
-		}
+		},
+		lang: 'pl'
 	}
 };

+ 4 - 1
packages/ckeditor5-build-classic/webpack.config.js

@@ -29,7 +29,10 @@ module.exports = {
 
 	plugins: [
 		new CKEditorWebpackPlugin( {
-			languages: [ buildConfig.language ]
+			languages: [ 'de', 'pl', 'en' ],
+			throwErrorOnMissingTranslation: true,
+			// optimizeBuildForOneLanguage: true,
+			outputDirectory: 'lang'
 		} ),
 		new BabiliPlugin( null, {
 			comments: false

Niektoré súbory nie sú zobrazené, pretože je v týchto rozdielových dátach zmenené mnoho súborov