Procházet zdrojové kódy

All labels use "t()" function.

Kamil Piechaczek před 6 roky
rodič
revize
3842067840

+ 250 - 0
packages/ckeditor5-special-characters/lang/contexts.json

@@ -0,0 +1,250 @@
+{
+  "Special characters": "Special characters",
+  "leftwards double arrow": "leftwards double arrow",
+  "rightwards double arrow": "rightwards double arrow",
+  "upwards double arrow": "upwards double arrow",
+  "downwards double arrow": "downwards double arrow",
+  "leftwards dashed arrow": "leftwards dashed arrow",
+  "rightwards dashed arrow": "rightwards dashed arrow",
+  "upwards dashed arrow": "upwards dashed arrow",
+  "downwards dashed arrow": "downwards dashed arrow",
+  "leftwards arrow to bar": "leftwards arrow to bar",
+  "rightwards arrow to bar": "rightwards arrow to bar",
+  "upwards arrow to bar": "upwards arrow to bar",
+  "downwards arrow to bar": "downwards arrow to bar",
+  "up down arrow with base": "up down arrow with base",
+  "back with leftwards arrow above": "back with leftwards arrow above",
+  "end with leftwards arrow above": "end with leftwards arrow above",
+  "on with exclamation mark with left right arrow above": "on with exclamation mark with left right arrow above",
+  "soon with rightwards arrow above": "soon with rightwards arrow above",
+  "top with upwards arrow above": "top with upwards arrow above",
+  "Dollar sign": "Dollar sign",
+  "Euro sign": "Euro sign",
+  "Yen sign": "Yen sign",
+  "Pound sign": "Pound sign",
+  "Cent sign": "Cent sign",
+  "Euro-currency sign": "Euro-currency sign",
+  "Colon sign": "Colon sign",
+  "Cruzeiro sign": "Cruzeiro sign",
+  "French franc sign": "French franc sign",
+  "Lira sign": "Lira sign",
+  "Currency sign": "Currency sign",
+  "Bitcoin sign": "Bitcoin sign",
+  "Mill sign": "Mill sign",
+  "Naira sign": "Naira sign",
+  "Peseta sign": "Peseta sign",
+  "Rupee sign": "Rupee sign",
+  "Won sign": "Won sign",
+  "New sheqel sign": "New sheqel sign",
+  "Dong sign": "Dong sign",
+  "Kip sign": "Kip sign",
+  "Tugrik sign": "Tugrik sign",
+  "Drachma sign": "Drachma sign",
+  "German penny sign": "German penny sign",
+  "Peso sign": "Peso sign",
+  "Guarani sign": "Guarani sign",
+  "Austral sign": "Austral sign",
+  "Hryvnia sign": "Hryvnia sign",
+  "Cedi sign": "Cedi sign",
+  "Livre tournois sign": "Livre tournois sign",
+  "Spesmilo sign": "Spesmilo sign",
+  "Tenge sign": "Tenge sign",
+  "Indian rupee sign": "Indian rupee sign",
+  "Turkish lira sign": "Turkish lira sign",
+  "Nordic mark sign": "Nordic mark sign",
+  "Manat sign": "Manat sign",
+  "Ruble sign": "Ruble sign",
+  "Latin capital letter a with macron": "Latin capital letter a with macron",
+  "Latin small letter a with macron": "Latin small letter a with macron",
+  "Latin capital letter a with breve": "Latin capital letter a with breve",
+  "Latin small letter a with breve": "Latin small letter a with breve",
+  "Latin capital letter a with ogonek": "Latin capital letter a with ogonek",
+  "Latin small letter a with ogonek": "Latin small letter a with ogonek",
+  "Latin capital letter c with acute": "Latin capital letter c with acute",
+  "Latin small letter c with acute": "Latin small letter c with acute",
+  "Latin capital letter c with circumflex": "Latin capital letter c with circumflex",
+  "Latin small letter c with circumflex": "Latin small letter c with circumflex",
+  "Latin capital letter c with dot above": "Latin capital letter c with dot above",
+  "Latin small letter c with dot above": "Latin small letter c with dot above",
+  "Latin capital letter c with caron": "Latin capital letter c with caron",
+  "Latin small letter c with caron": "Latin small letter c with caron",
+  "Latin capital letter d with caron": "Latin capital letter d with caron",
+  "Latin small letter d with caron": "Latin small letter d with caron",
+  "Latin capital letter d with stroke": "Latin capital letter d with stroke",
+  "Latin small letter d with stroke": "Latin small letter d with stroke",
+  "Latin capital letter e with macron": "Latin capital letter e with macron",
+  "Latin small letter e with macron": "Latin small letter e with macron",
+  "Latin capital letter e with breve": "Latin capital letter e with breve",
+  "Latin small letter e with breve": "Latin small letter e with breve",
+  "Latin capital letter e with dot above": "Latin capital letter e with dot above",
+  "Latin small letter e with dot above": "Latin small letter e with dot above",
+  "Latin capital letter e with ogonek": "Latin capital letter e with ogonek",
+  "Latin small letter e with ogonek": "Latin small letter e with ogonek",
+  "Latin capital letter e with caron": "Latin capital letter e with caron",
+  "Latin small letter e with caron": "Latin small letter e with caron",
+  "Latin capital letter g with circumflex": "Latin capital letter g with circumflex",
+  "Latin small letter g with circumflex": "Latin small letter g with circumflex",
+  "Latin capital letter g with breve": "Latin capital letter g with breve",
+  "Latin small letter g with breve": "Latin small letter g with breve",
+  "Latin capital letter g with dot above": "Latin capital letter g with dot above",
+  "Latin small letter g with dot above": "Latin small letter g with dot above",
+  "Latin capital letter g with cedilla": "Latin capital letter g with cedilla",
+  "Latin small letter g with cedilla": "Latin small letter g with cedilla",
+  "Latin capital letter h with circumflex": "Latin capital letter h with circumflex",
+  "Latin small letter h with circumflex": "Latin small letter h with circumflex",
+  "Latin capital letter h with stroke": "Latin capital letter h with stroke",
+  "Latin small letter h with stroke": "Latin small letter h with stroke",
+  "Latin capital letter i with tilde": "Latin capital letter i with tilde",
+  "Latin small letter i with tilde": "Latin small letter i with tilde",
+  "Latin capital letter i with macron": "Latin capital letter i with macron",
+  "Latin small letter i with macron": "Latin small letter i with macron",
+  "Latin capital letter i with breve": "Latin capital letter i with breve",
+  "Latin small letter i with breve": "Latin small letter i with breve",
+  "Latin capital letter i with ogonek": "Latin capital letter i with ogonek",
+  "Latin small letter i with ogonek": "Latin small letter i with ogonek",
+  "Latin capital letter i with dot above": "Latin capital letter i with dot above",
+  "Latin small letter dotless i": "Latin small letter dotless i",
+  "Latin capital ligature ij": "Latin capital ligature ij",
+  "Latin small ligature ij": "Latin small ligature ij",
+  "Latin capital letter j with circumflex": "Latin capital letter j with circumflex",
+  "Latin small letter j with circumflex": "Latin small letter j with circumflex",
+  "Latin capital letter k with cedilla": "Latin capital letter k with cedilla",
+  "Latin small letter k with cedilla": "Latin small letter k with cedilla",
+  "Latin small letter kra": "Latin small letter kra",
+  "Latin capital letter l with acute": "Latin capital letter l with acute",
+  "Latin small letter l with acute": "Latin small letter l with acute",
+  "Latin capital letter l with cedilla": "Latin capital letter l with cedilla",
+  "Latin small letter l with cedilla": "Latin small letter l with cedilla",
+  "Latin capital letter l with caron": "Latin capital letter l with caron",
+  "Latin small letter l with caron": "Latin small letter l with caron",
+  "Latin capital letter l with middle dot": "Latin capital letter l with middle dot",
+  "Latin small letter l with middle dot": "Latin small letter l with middle dot",
+  "Latin capital letter l with stroke": "Latin capital letter l with stroke",
+  "Latin small letter l with stroke": "Latin small letter l with stroke",
+  "Latin capital letter n with acute": "Latin capital letter n with acute",
+  "Latin small letter n with acute": "Latin small letter n with acute",
+  "Latin capital letter n with cedilla": "Latin capital letter n with cedilla",
+  "Latin small letter n with cedilla": "Latin small letter n with cedilla",
+  "Latin capital letter n with caron": "Latin capital letter n with caron",
+  "Latin small letter n with caron": "Latin small letter n with caron",
+  "Latin small letter n preceded by apostrophe": "Latin small letter n preceded by apostrophe",
+  "Latin capital letter eng": "Latin capital letter eng",
+  "Latin small letter eng": "Latin small letter eng",
+  "Latin capital letter o with macron": "Latin capital letter o with macron",
+  "Latin small letter o with macron": "Latin small letter o with macron",
+  "Latin capital letter o with breve": "Latin capital letter o with breve",
+  "Latin small letter o with breve": "Latin small letter o with breve",
+  "Latin capital letter o with double acute": "Latin capital letter o with double acute",
+  "Latin small letter o with double acute": "Latin small letter o with double acute",
+  "Latin capital ligature oe": "Latin capital ligature oe",
+  "Latin small ligature oe": "Latin small ligature oe",
+  "Latin capital letter r with acute": "Latin capital letter r with acute",
+  "Latin small letter r with acute": "Latin small letter r with acute",
+  "Latin capital letter r with cedilla": "Latin capital letter r with cedilla",
+  "Latin small letter r with cedilla": "Latin small letter r with cedilla",
+  "Latin capital letter r with caron": "Latin capital letter r with caron",
+  "Latin small letter r with caron": "Latin small letter r with caron",
+  "Latin capital letter s with acute": "Latin capital letter s with acute",
+  "Latin small letter s with acute": "Latin small letter s with acute",
+  "Latin capital letter s with circumflex": "Latin capital letter s with circumflex",
+  "Latin small letter s with circumflex": "Latin small letter s with circumflex",
+  "Latin capital letter s with cedilla": "Latin capital letter s with cedilla",
+  "Latin small letter s with cedilla": "Latin small letter s with cedilla",
+  "Latin capital letter s with caron": "Latin capital letter s with caron",
+  "Latin small letter s with caron": "Latin small letter s with caron",
+  "Latin capital letter t with cedilla": "Latin capital letter t with cedilla",
+  "Latin small letter t with cedilla": "Latin small letter t with cedilla",
+  "Latin capital letter t with caron": "Latin capital letter t with caron",
+  "Latin small letter t with caron": "Latin small letter t with caron",
+  "Latin capital letter t with stroke": "Latin capital letter t with stroke",
+  "Latin small letter t with stroke": "Latin small letter t with stroke",
+  "Latin capital letter u with tilde": "Latin capital letter u with tilde",
+  "Latin small letter u with tilde": "Latin small letter u with tilde",
+  "Latin capital letter u with macron": "Latin capital letter u with macron",
+  "Latin small letter u with macron": "Latin small letter u with macron",
+  "Latin capital letter u with breve": "Latin capital letter u with breve",
+  "Latin small letter u with breve": "Latin small letter u with breve",
+  "Latin capital letter u with ring above": "Latin capital letter u with ring above",
+  "Latin small letter u with ring above": "Latin small letter u with ring above",
+  "Latin capital letter u with double acute": "Latin capital letter u with double acute",
+  "Latin small letter u with double acute": "Latin small letter u with double acute",
+  "Latin capital letter u with ogonek": "Latin capital letter u with ogonek",
+  "Latin small letter u with ogonek": "Latin small letter u with ogonek",
+  "Latin capital letter w with circumflex": "Latin capital letter w with circumflex",
+  "Latin small letter w with circumflex": "Latin small letter w with circumflex",
+  "Latin capital letter y with circumflex": "Latin capital letter y with circumflex",
+  "Latin small letter y with circumflex": "Latin small letter y with circumflex",
+  "Latin capital letter y with diaeresis": "Latin capital letter y with diaeresis",
+  "Latin capital letter z with acute": "Latin capital letter z with acute",
+  "Latin small letter z with acute": "Latin small letter z with acute",
+  "Latin capital letter z with dot above": "Latin capital letter z with dot above",
+  "Latin small letter z with dot above": "Latin small letter z with dot above",
+  "Latin capital letter z with caron": "Latin capital letter z with caron",
+  "Latin small letter z with caron": "Latin small letter z with caron",
+  "Latin small letter long s": "Latin small letter long s",
+  "Less-than sign": "Less-than sign",
+  "Greater-than sign": "Greater-than sign",
+  "Less-than or equal to": "Less-than or equal to",
+  "Greater-than or equal to": "Greater-than or equal to",
+  "En dash": "En dash",
+  "Em dash": "Em dash",
+  "Macron": "Macron",
+  "Overline": "Overline",
+  "Degree sign": "Degree sign",
+  "Minus sign": "Minus sign",
+  "Plus-minus sign": "Plus-minus sign",
+  "Division sign": "Division sign",
+  "Fraction slash": "Fraction slash",
+  "Multiplication sign": "Multiplication sign",
+  "Latin small letter f with hook": "Latin small letter f with hook",
+  "Integral": "Integral",
+  "N-ary summation": "N-ary summation",
+  "Infinity": "Infinity",
+  "Square root": "Square root",
+  "Tilde operator": "Tilde operator",
+  "Approximately equal to": "Approximately equal to",
+  "Almost equal to": "Almost equal to",
+  "Not equal to": "Not equal to",
+  "Identical to": "Identical to",
+  "Element of": "Element of",
+  "Not an element of": "Not an element of",
+  "Contains as member": "Contains as member",
+  "N-ary product": "N-ary product",
+  "Logical and": "Logical and",
+  "Logical or": "Logical or",
+  "Not sign": "Not sign",
+  "Intersection": "Intersection",
+  "Union": "Union",
+  "Partial differential": "Partial differential",
+  "For all": "For all",
+  "There exists": "There exists",
+  "Empty set": "Empty set",
+  "Nabla": "Nabla",
+  "Asterisk operator": "Asterisk operator",
+  "Proportional to": "Proportional to",
+  "Angle": "Angle",
+  "Vulgar fraction one quarter": "Vulgar fraction one quarter",
+  "Vulgar fraction one half": "Vulgar fraction one half",
+  "Vulgar fraction three quarters": "Vulgar fraction three quarters",
+  "Single left-pointing angle quotation mark": "Single left-pointing angle quotation mark",
+  "Single right-pointing angle quotation mark": "Single right-pointing angle quotation mark",
+  "Left-pointing double angle quotation mark": "Left-pointing double angle quotation mark",
+  "Right-pointing double angle quotation mark": "Right-pointing double angle quotation mark",
+  "Left single quotation mark": "Left single quotation mark",
+  "Right single quotation mark": "Right single quotation mark",
+  "Left double quotation mark": "Left double quotation mark",
+  "Right double quotation mark": "Right double quotation mark",
+  "Single low-9 quotation mark": "Single low-9 quotation mark",
+  "Double low-9 quotation mark": "Double low-9 quotation mark",
+  "Inverted exclamation mark": "Inverted exclamation mark",
+  "Inverted question mark": "Inverted question mark",
+  "Two dot leader": "Two dot leader",
+  "Horizontal ellipsis": "Horizontal ellipsis",
+  "Double dagger": "Double dagger",
+  "Per mille sign": "Per mille sign",
+  "Per ten thousand sign": "Per ten thousand sign",
+  "Double exclamation mark": "Double exclamation mark",
+  "Question exclamation mark": "Question exclamation mark",
+  "Exclamation question mark": "Exclamation question mark",
+  "Double question mark": "Double question mark"
+}

+ 21 - 18
packages/ckeditor5-special-characters/src/specialcharactersarrows.js

@@ -24,25 +24,28 @@ export default class SpecialCharactersArrows extends Plugin {
 	 * @inheritDoc
 	 */
 	init() {
+		const editor = this.editor;
+		const t = editor.t;
+
 		this.editor.plugins.get( 'SpecialCharacters' ).addItems( 'Arrows', [
-			{ title: 'leftwards double arrow', character: '⇐' },
-			{ title: 'rightwards double arrow', character: '⇒' },
-			{ title: 'upwards double arrow', character: '⇑' },
-			{ title: 'downwards double arrow', character: '⇓' },
-			{ title: 'leftwards dashed arrow', character: '⇠' },
-			{ title: 'rightwards dashed arrow', character: '⇢' },
-			{ title: 'upwards dashed arrow', character: '⇡' },
-			{ title: 'downwards dashed arrow', character: '⇣' },
-			{ title: 'leftwards arrow to bar', character: '⇤' },
-			{ title: 'rightwards arrow to bar', character: '⇥' },
-			{ title: 'upwards arrow to bar', character: '⤒' },
-			{ title: 'downwards arrow to bar', character: '⤓' },
-			{ title: 'up down arrow with base', character: '↨' },
-			{ title: 'back with leftwards arrow above', character: '🔙' },
-			{ title: 'end with leftwards arrow above', character: '🔚' },
-			{ title: 'on with exclamation mark with left right arrow above', character: '🔛' },
-			{ title: 'soon with rightwards arrow above', character: '🔜' },
-			{ title: 'top with upwards arrow above', character: '🔝' }
+			{ title: t( 'leftwards double arrow' ), character: '⇐' },
+			{ title: t( 'rightwards double arrow' ), character: '⇒' },
+			{ title: t( 'upwards double arrow' ), character: '⇑' },
+			{ title: t( 'downwards double arrow' ), character: '⇓' },
+			{ title: t( 'leftwards dashed arrow' ), character: '⇠' },
+			{ title: t( 'rightwards dashed arrow' ), character: '⇢' },
+			{ title: t( 'upwards dashed arrow' ), character: '⇡' },
+			{ title: t( 'downwards dashed arrow' ), character: '⇣' },
+			{ title: t( 'leftwards arrow to bar' ), character: '⇤' },
+			{ title: t( 'rightwards arrow to bar' ), character: '⇥' },
+			{ title: t( 'upwards arrow to bar' ), character: '⤒' },
+			{ title: t( 'downwards arrow to bar' ), character: '⤓' },
+			{ title: t( 'up down arrow with base' ), character: '↨' },
+			{ title: t( 'back with leftwards arrow above' ), character: '🔙' },
+			{ title: t( 'end with leftwards arrow above' ), character: '🔚' },
+			{ title: t( 'on with exclamation mark with left right arrow above' ), character: '🔛' },
+			{ title: t( 'soon with rightwards arrow above' ), character: '🔜' },
+			{ title: t( 'top with upwards arrow above' ), character: '🔝' }
 		] );
 	}
 }

+ 39 - 160
packages/ckeditor5-special-characters/src/specialcharacterscurrency.js

@@ -24,167 +24,46 @@ export default class SpecialCharactersCurrency extends Plugin {
 	 * @inheritDoc
 	 */
 	init() {
+		const editor = this.editor;
+		const t = editor.t;
+
 		this.editor.plugins.get( 'SpecialCharacters' ).addItems( 'Currency', [
-			{
-				character: '$',
-				title: 'Dollar sign'
-			},
-			{
-				character: '€',
-				title: 'Euro sign'
-			},
-			{
-				character: '¥',
-				title: 'Yen sign'
-			},
-			{
-				character: '£',
-				title: 'Pound sign'
-			},
-			{
-				character: '¢',
-				title: 'Cent sign'
-			},
-			{
-				character: '₠',
-				title: 'Euro-currency sign'
-			},
-			{
-				character: '₡',
-				title: 'Colon sign'
-			},
-			{
-				character: '₢',
-				title: 'Cruzeiro sign'
-			},
-			{
-				character: '₣',
-				title: 'French franc sign'
-			},
-			{
-				character: '₤',
-				title: 'Lira sign'
-			},
-			{
-				character: '¤',
-				title: 'Currency sign'
-			},
-			{
-				character: '₿',
-				title: 'Bitcoin sign'
-			},
-			{
-				character: '₥',
-				title: 'Mill sign'
-			},
-			{
-				character: '₦',
-				title: 'Naira sign'
-			},
-			{
-				character: '₧',
-				title: 'Peseta sign'
-			},
-			{
-				character: '₨',
-				title: 'Rupee sign'
-			},
-			{
-				character: '₩',
-				title: 'Won sign'
-			},
-			{
-				character: '₪',
-				title: 'New sheqel sign'
-			},
-			{
-				character: '₫',
-				title: 'Dong sign'
-			},
-			{
-				character: '₭',
-				title: 'Kip sign'
-			},
-			{
-				character: '₮',
-				title: 'Tugrik sign'
-			},
-			{
-				character: '₯',
-				title: 'Drachma sign'
-			},
-			{
-				character: '₰',
-				title: 'German penny sign'
-			},
-			{
-				character: '₱',
-				title: 'Peso sign'
-			},
-			{
-				character: '₲',
-				title: 'Guarani sign'
-			},
-			{
-				character: '₳',
-				title: 'Austral sign'
-			},
-			{
-				character: '₴',
-				title: 'Hryvnia sign'
-			},
-			{
-				character: '₵',
-				title: 'Cedi sign'
-			},
-			{
-				character: '₶',
-				title: 'Livre tournois sign'
-			},
-			{
-				character: '₷',
-				title: 'Spesmilo sign'
-			},
-			{
-				character: '₸',
-				title: 'Tenge sign'
-			},
-			{
-				character: '₹',
-				title: 'Indian rupee sign'
-			},
-			{
-				character: '₺',
-				title: 'Turkish lira sign'
-			},
-			{
-				character: '₻',
-				title: 'Nordic mark sign'
-			},
-			{
-				character: '₼',
-				title: 'Manat sign'
-			},
-			{
-				character: '₽',
-				title: 'Ruble sign'
-			}/* ,
-			{
-				character: '円',
-				title: ''
-			},
-			{
-				character: '元',
-				title: ''
-			},
-			{
-				character: '圓',
-				title: ''
-			},
-			{
-				character: '圆',
-				title: ''
-			} */
+			{ character: '$', title: t( 'Dollar sign' ) },
+			{ character: '€', title: t( 'Euro sign' ) },
+			{ character: '¥', title: t( 'Yen sign' ) },
+			{ character: '£', title: t( 'Pound sign' ) },
+			{ character: '¢', title: t( 'Cent sign' ) },
+			{ character: '₠', title: t( 'Euro-currency sign' ) },
+			{ character: '₡', title: t( 'Colon sign' ) },
+			{ character: '₢', title: t( 'Cruzeiro sign' ) },
+			{ character: '₣', title: t( 'French franc sign' ) },
+			{ character: '₤', title: t( 'Lira sign' ) },
+			{ character: '¤', title: t( 'Currency sign' ) },
+			{ character: '₿', title: t( 'Bitcoin sign' ) },
+			{ character: '₥', title: t( 'Mill sign' ) },
+			{ character: '₦', title: t( 'Naira sign' ) },
+			{ character: '₧', title: t( 'Peseta sign' ) },
+			{ character: '₨', title: t( 'Rupee sign' ) },
+			{ character: '₩', title: t( 'Won sign' ) },
+			{ character: '₪', title: t( 'New sheqel sign' ) },
+			{ character: '₫', title: t( 'Dong sign' ) },
+			{ character: '₭', title: t( 'Kip sign' ) },
+			{ character: '₮', title: t( 'Tugrik sign' ) },
+			{ character: '₯', title: t( 'Drachma sign' ) },
+			{ character: '₰', title: t( 'German penny sign' ) },
+			{ character: '₱', title: t( 'Peso sign' ) },
+			{ character: '₲', title: t( 'Guarani sign' ) },
+			{ character: '₳', title: t( 'Austral sign' ) },
+			{ character: '₴', title: t( 'Hryvnia sign' ) },
+			{ character: '₵', title: t( 'Cedi sign' ) },
+			{ character: '₶', title: t( 'Livre tournois sign' ) },
+			{ character: '₷', title: t( 'Spesmilo sign' ) },
+			{ character: '₸', title: t( 'Tenge sign' ) },
+			{ character: '₹', title: t( 'Indian rupee sign' ) },
+			{ character: '₺', title: t( 'Turkish lira sign' ) },
+			{ character: '₻', title: t( 'Nordic mark sign' ) },
+			{ character: '₼', title: t( 'Manat sign' ) },
+			{ character: '₽', title: t( 'Ruble sign' ) }
 		] );
 	}
 }

+ 131 - 512
packages/ckeditor5-special-characters/src/specialcharacterslatin.js

@@ -24,519 +24,138 @@ export default class SpecialCharactersLatin extends Plugin {
 	 * @inheritDoc
 	 */
 	init() {
+		const editor = this.editor;
+		const t = editor.t;
+
 		this.editor.plugins.get( 'SpecialCharacters' ).addItems( 'Latin', [
-			{
-				character: 'Ā',
-				title: 'Latin capital letter a with macron'
-			},
-			{
-				character: 'ā',
-				title: 'Latin small letter a with macron'
-			},
-			{
-				character: 'Ă',
-				title: 'Latin capital letter a with breve'
-			},
-			{
-				character: 'ă',
-				title: 'Latin small letter a with breve'
-			},
-			{
-				character: 'Ą',
-				title: 'Latin capital letter a with ogonek'
-			},
-			{
-				character: 'ą',
-				title: 'Latin small letter a with ogonek'
-			},
-			{
-				character: 'Ć',
-				title: 'Latin capital letter c with acute'
-			},
-			{
-				character: 'ć',
-				title: 'Latin small letter c with acute'
-			},
-			{
-				character: 'Ĉ',
-				title: 'Latin capital letter c with circumflex'
-			},
-			{
-				character: 'ĉ',
-				title: 'Latin small letter c with circumflex'
-			},
-			{
-				character: 'Ċ',
-				title: 'Latin capital letter c with dot above'
-			},
-			{
-				character: 'ċ',
-				title: 'Latin small letter c with dot above'
-			},
-			{
-				character: 'Č',
-				title: 'Latin capital letter c with caron'
-			},
-			{
-				character: 'č',
-				title: 'Latin small letter c with caron'
-			},
-			{
-				character: 'Ď',
-				title: 'Latin capital letter d with caron'
-			},
-			{
-				character: 'ď',
-				title: 'Latin small letter d with caron'
-			},
-			{
-				character: 'Đ',
-				title: 'Latin capital letter d with stroke'
-			},
-			{
-				character: 'đ',
-				title: 'Latin small letter d with stroke'
-			},
-			{
-				character: 'Ē',
-				title: 'Latin capital letter e with macron'
-			},
-			{
-				character: 'ē',
-				title: 'Latin small letter e with macron'
-			},
-			{
-				character: 'Ĕ',
-				title: 'Latin capital letter e with breve'
-			},
-			{
-				character: 'ĕ',
-				title: 'Latin small letter e with breve'
-			},
-			{
-				character: 'Ė',
-				title: 'Latin capital letter e with dot above'
-			},
-			{
-				character: 'ė',
-				title: 'Latin small letter e with dot above'
-			},
-			{
-				character: 'Ę',
-				title: 'Latin capital letter e with ogonek'
-			},
-			{
-				character: 'ę',
-				title: 'Latin small letter e with ogonek'
-			},
-			{
-				character: 'Ě',
-				title: 'Latin capital letter e with caron'
-			},
-			{
-				character: 'ě',
-				title: 'Latin small letter e with caron'
-			},
-			{
-				character: 'Ĝ',
-				title: 'Latin capital letter g with circumflex'
-			},
-			{
-				character: 'ĝ',
-				title: 'Latin small letter g with circumflex'
-			},
-			{
-				character: 'Ğ',
-				title: 'Latin capital letter g with breve'
-			},
-			{
-				character: 'ğ',
-				title: 'Latin small letter g with breve'
-			},
-			{
-				character: 'Ġ',
-				title: 'Latin capital letter g with dot above'
-			},
-			{
-				character: 'ġ',
-				title: 'Latin small letter g with dot above'
-			},
-			{
-				character: 'Ģ',
-				title: 'Latin capital letter g with cedilla'
-			},
-			{
-				character: 'ģ',
-				title: 'Latin small letter g with cedilla'
-			},
-			{
-				character: 'Ĥ',
-				title: 'Latin capital letter h with circumflex'
-			},
-			{
-				character: 'ĥ',
-				title: 'Latin small letter h with circumflex'
-			},
-			{
-				character: 'Ħ',
-				title: 'Latin capital letter h with stroke'
-			},
-			{
-				character: 'ħ',
-				title: 'Latin small letter h with stroke'
-			},
-			{
-				character: 'Ĩ',
-				title: 'Latin capital letter i with tilde'
-			},
-			{
-				character: 'ĩ',
-				title: 'Latin small letter i with tilde'
-			},
-			{
-				character: 'Ī',
-				title: 'Latin capital letter i with macron'
-			},
-			{
-				character: 'ī',
-				title: 'Latin small letter i with macron'
-			},
-			{
-				character: 'Ĭ',
-				title: 'Latin capital letter i with breve'
-			},
-			{
-				character: 'ĭ',
-				title: 'Latin small letter i with breve'
-			},
-			{
-				character: 'Į',
-				title: 'Latin capital letter i with ogonek'
-			},
-			{
-				character: 'į',
-				title: 'Latin small letter i with ogonek'
-			},
-			{
-				character: 'İ',
-				title: 'Latin capital letter i with dot above'
-			},
-			{
-				character: 'ı',
-				title: 'Latin small letter dotless i'
-			},
-			{
-				character: 'IJ',
-				title: 'Latin capital ligature ij'
-			},
-			{
-				character: 'ij',
-				title: 'Latin small ligature ij'
-			},
-			{
-				character: 'Ĵ',
-				title: 'Latin capital letter j with circumflex'
-			},
-			{
-				character: 'ĵ',
-				title: 'Latin small letter j with circumflex'
-			},
-			{
-				character: 'Ķ',
-				title: 'Latin capital letter k with cedilla'
-			},
-			{
-				character: 'ķ',
-				title: 'Latin small letter k with cedilla'
-			},
-			{
-				character: 'ĸ',
-				title: 'Latin small letter kra'
-			},
-			{
-				character: 'Ĺ',
-				title: 'Latin capital letter l with acute'
-			},
-			{
-				character: 'ĺ',
-				title: 'Latin small letter l with acute'
-			},
-			{
-				character: 'Ļ',
-				title: 'Latin capital letter l with cedilla'
-			},
-			{
-				character: 'ļ',
-				title: 'Latin small letter l with cedilla'
-			},
-			{
-				character: 'Ľ',
-				title: 'Latin capital letter l with caron'
-			},
-			{
-				character: 'ľ',
-				title: 'Latin small letter l with caron'
-			},
-			{
-				character: 'Ŀ',
-				title: 'Latin capital letter l with middle dot'
-			},
-			{
-				character: 'ŀ',
-				title: 'Latin small letter l with middle dot'
-			},
-			{
-				character: 'Ł',
-				title: 'Latin capital letter l with stroke'
-			},
-			{
-				character: 'ł',
-				title: 'Latin small letter l with stroke'
-			},
-			{
-				character: 'Ń',
-				title: 'Latin capital letter n with acute'
-			},
-			{
-				character: 'ń',
-				title: 'Latin small letter n with acute'
-			},
-			{
-				character: 'Ņ',
-				title: 'Latin capital letter n with cedilla'
-			},
-			{
-				character: 'ņ',
-				title: 'Latin small letter n with cedilla'
-			},
-			{
-				character: 'Ň',
-				title: 'Latin capital letter n with caron'
-			},
-			{
-				character: 'ň',
-				title: 'Latin small letter n with caron'
-			},
-			{
-				character: 'ʼn',
-				title: 'Latin small letter n preceded by apostrophe'
-			},
-			{
-				character: 'Ŋ',
-				title: 'Latin capital letter eng'
-			},
-			{
-				character: 'ŋ',
-				title: 'Latin small letter eng'
-			},
-			{
-				character: 'Ō',
-				title: 'Latin capital letter o with macron'
-			},
-			{
-				character: 'ō',
-				title: 'Latin small letter o with macron'
-			},
-			{
-				character: 'Ŏ',
-				title: 'Latin capital letter o with breve'
-			},
-			{
-				character: 'ŏ',
-				title: 'Latin small letter o with breve'
-			},
-			{
-				character: 'Ő',
-				title: 'Latin capital letter o with double acute'
-			},
-			{
-				character: 'ő',
-				title: 'Latin small letter o with double acute'
-			},
-			{
-				character: 'Œ',
-				title: 'Latin capital ligature oe'
-			},
-			{
-				character: 'œ',
-				title: 'Latin small ligature oe'
-			},
-			{
-				character: 'Ŕ',
-				title: 'Latin capital letter r with acute'
-			},
-			{
-				character: 'ŕ',
-				title: 'Latin small letter r with acute'
-			},
-			{
-				character: 'Ŗ',
-				title: 'Latin capital letter r with cedilla'
-			},
-			{
-				character: 'ŗ',
-				title: 'Latin small letter r with cedilla'
-			},
-			{
-				character: 'Ř',
-				title: 'Latin capital letter r with caron'
-			},
-			{
-				character: 'ř',
-				title: 'Latin small letter r with caron'
-			},
-			{
-				character: 'Ś',
-				title: 'Latin capital letter s with acute'
-			},
-			{
-				character: 'ś',
-				title: 'Latin small letter s with acute'
-			},
-			{
-				character: 'Ŝ',
-				title: 'Latin capital letter s with circumflex'
-			},
-			{
-				character: 'ŝ',
-				title: 'Latin small letter s with circumflex'
-			},
-			{
-				character: 'Ş',
-				title: 'Latin capital letter s with cedilla'
-			},
-			{
-				character: 'ş',
-				title: 'Latin small letter s with cedilla'
-			},
-			{
-				character: 'Š',
-				title: 'Latin capital letter s with caron'
-			},
-			{
-				character: 'š',
-				title: 'Latin small letter s with caron'
-			},
-			{
-				character: 'Ţ',
-				title: 'Latin capital letter t with cedilla'
-			},
-			{
-				character: 'ţ',
-				title: 'Latin small letter t with cedilla'
-			},
-			{
-				character: 'Ť',
-				title: 'Latin capital letter t with caron'
-			},
-			{
-				character: 'ť',
-				title: 'Latin small letter t with caron'
-			},
-			{
-				character: 'Ŧ',
-				title: 'Latin capital letter t with stroke'
-			},
-			{
-				character: 'ŧ',
-				title: 'Latin small letter t with stroke'
-			},
-			{
-				character: 'Ũ',
-				title: 'Latin capital letter u with tilde'
-			},
-			{
-				character: 'ũ',
-				title: 'Latin small letter u with tilde'
-			},
-			{
-				character: 'Ū',
-				title: 'Latin capital letter u with macron'
-			},
-			{
-				character: 'ū',
-				title: 'Latin small letter u with macron'
-			},
-			{
-				character: 'Ŭ',
-				title: 'Latin capital letter u with breve'
-			},
-			{
-				character: 'ŭ',
-				title: 'Latin small letter u with breve'
-			},
-			{
-				character: 'Ů',
-				title: 'Latin capital letter u with ring above'
-			},
-			{
-				character: 'ů',
-				title: 'Latin small letter u with ring above'
-			},
-			{
-				character: 'Ű',
-				title: 'Latin capital letter u with double acute'
-			},
-			{
-				character: 'ű',
-				title: 'Latin small letter u with double acute'
-			},
-			{
-				character: 'Ų',
-				title: 'Latin capital letter u with ogonek'
-			},
-			{
-				character: 'ų',
-				title: 'Latin small letter u with ogonek'
-			},
-			{
-				character: 'Ŵ',
-				title: 'Latin capital letter w with circumflex'
-			},
-			{
-				character: 'ŵ',
-				title: 'Latin small letter w with circumflex'
-			},
-			{
-				character: 'Ŷ',
-				title: 'Latin capital letter y with circumflex'
-			},
-			{
-				character: 'ŷ',
-				title: 'Latin small letter y with circumflex'
-			},
-			{
-				character: 'Ÿ',
-				title: 'Latin capital letter y with diaeresis'
-			},
-			{
-				character: 'Ź',
-				title: 'Latin capital letter z with acute'
-			},
-			{
-				character: 'ź',
-				title: 'Latin small letter z with acute'
-			},
-			{
-				character: 'Ż',
-				title: 'Latin capital letter z with dot above'
-			},
-			{
-				character: 'ż',
-				title: 'Latin small letter z with dot above'
-			},
-			{
-				character: 'Ž',
-				title: 'Latin capital letter z with caron'
-			},
-			{
-				character: 'ž',
-				title: 'Latin small letter z with caron'
-			},
-			{
-				character: 'ſ',
-				title: 'Latin small letter long s'
-			}
+			{ character: 'Ā', title: t( 'Latin capital letter a with macron' ) },
+			{ character: 'ā', title: t( 'Latin small letter a with macron' ) },
+			{ character: 'Ă', title: t( 'Latin capital letter a with breve' ) },
+			{ character: 'ă', title: t( 'Latin small letter a with breve' ) },
+			{ character: 'Ą', title: t( 'Latin capital letter a with ogonek' ) },
+			{ character: 'ą', title: t( 'Latin small letter a with ogonek' ) },
+			{ character: 'Ć', title: t( 'Latin capital letter c with acute' ) },
+			{ character: 'ć', title: t( 'Latin small letter c with acute' ) },
+			{ character: 'Ĉ', title: t( 'Latin capital letter c with circumflex' ) },
+			{ character: 'ĉ', title: t( 'Latin small letter c with circumflex' ) },
+			{ character: 'Ċ', title: t( 'Latin capital letter c with dot above' ) },
+			{ character: 'ċ', title: t( 'Latin small letter c with dot above' ) },
+			{ character: 'Č', title: t( 'Latin capital letter c with caron' ) },
+			{ character: 'č', title: t( 'Latin small letter c with caron' ) },
+			{ character: 'Ď', title: t( 'Latin capital letter d with caron' ) },
+			{ character: 'ď', title: t( 'Latin small letter d with caron' ) },
+			{ character: 'Đ', title: t( 'Latin capital letter d with stroke' ) },
+			{ character: 'đ', title: t( 'Latin small letter d with stroke' ) },
+			{ character: 'Ē', title: t( 'Latin capital letter e with macron' ) },
+			{ character: 'ē', title: t( 'Latin small letter e with macron' ) },
+			{ character: 'Ĕ', title: t( 'Latin capital letter e with breve' ) },
+			{ character: 'ĕ', title: t( 'Latin small letter e with breve' ) },
+			{ character: 'Ė', title: t( 'Latin capital letter e with dot above' ) },
+			{ character: 'ė', title: t( 'Latin small letter e with dot above' ) },
+			{ character: 'Ę', title: t( 'Latin capital letter e with ogonek' ) },
+			{ character: 'ę', title: t( 'Latin small letter e with ogonek' ) },
+			{ character: 'Ě', title: t( 'Latin capital letter e with caron' ) },
+			{ character: 'ě', title: t( 'Latin small letter e with caron' ) },
+			{ character: 'Ĝ', title: t( 'Latin capital letter g with circumflex' ) },
+			{ character: 'ĝ', title: t( 'Latin small letter g with circumflex' ) },
+			{ character: 'Ğ', title: t( 'Latin capital letter g with breve' ) },
+			{ character: 'ğ', title: t( 'Latin small letter g with breve' ) },
+			{ character: 'Ġ', title: t( 'Latin capital letter g with dot above' ) },
+			{ character: 'ġ', title: t( 'Latin small letter g with dot above' ) },
+			{ character: 'Ģ', title: t( 'Latin capital letter g with cedilla' ) },
+			{ character: 'ģ', title: t( 'Latin small letter g with cedilla' ) },
+			{ character: 'Ĥ', title: t( 'Latin capital letter h with circumflex' ) },
+			{ character: 'ĥ', title: t( 'Latin small letter h with circumflex' ) },
+			{ character: 'Ħ', title: t( 'Latin capital letter h with stroke' ) },
+			{ character: 'ħ', title: t( 'Latin small letter h with stroke' ) },
+			{ character: 'Ĩ', title: t( 'Latin capital letter i with tilde' ) },
+			{ character: 'ĩ', title: t( 'Latin small letter i with tilde' ) },
+			{ character: 'Ī', title: t( 'Latin capital letter i with macron' ) },
+			{ character: 'ī', title: t( 'Latin small letter i with macron' ) },
+			{ character: 'Ĭ', title: t( 'Latin capital letter i with breve' ) },
+			{ character: 'ĭ', title: t( 'Latin small letter i with breve' ) },
+			{ character: 'Į', title: t( 'Latin capital letter i with ogonek' ) },
+			{ character: 'į', title: t( 'Latin small letter i with ogonek' ) },
+			{ character: 'İ', title: t( 'Latin capital letter i with dot above' ) },
+			{ character: 'ı', title: t( 'Latin small letter dotless i' ) },
+			{ character: 'IJ', title: t( 'Latin capital ligature ij' ) },
+			{ character: 'ij', title: t( 'Latin small ligature ij' ) },
+			{ character: 'Ĵ', title: t( 'Latin capital letter j with circumflex' ) },
+			{ character: 'ĵ', title: t( 'Latin small letter j with circumflex' ) },
+			{ character: 'Ķ', title: t( 'Latin capital letter k with cedilla' ) },
+			{ character: 'ķ', title: t( 'Latin small letter k with cedilla' ) },
+			{ character: 'ĸ', title: t( 'Latin small letter kra' ) },
+			{ character: 'Ĺ', title: t( 'Latin capital letter l with acute' ) },
+			{ character: 'ĺ', title: t( 'Latin small letter l with acute' ) },
+			{ character: 'Ļ', title: t( 'Latin capital letter l with cedilla' ) },
+			{ character: 'ļ', title: t( 'Latin small letter l with cedilla' ) },
+			{ character: 'Ľ', title: t( 'Latin capital letter l with caron' ) },
+			{ character: 'ľ', title: t( 'Latin small letter l with caron' ) },
+			{ character: 'Ŀ', title: t( 'Latin capital letter l with middle dot' ) },
+			{ character: 'ŀ', title: t( 'Latin small letter l with middle dot' ) },
+			{ character: 'Ł', title: t( 'Latin capital letter l with stroke' ) },
+			{ character: 'ł', title: t( 'Latin small letter l with stroke' ) },
+			{ character: 'Ń', title: t( 'Latin capital letter n with acute' ) },
+			{ character: 'ń', title: t( 'Latin small letter n with acute' ) },
+			{ character: 'Ņ', title: t( 'Latin capital letter n with cedilla' ) },
+			{ character: 'ņ', title: t( 'Latin small letter n with cedilla' ) },
+			{ character: 'Ň', title: t( 'Latin capital letter n with caron' ) },
+			{ character: 'ň', title: t( 'Latin small letter n with caron' ) },
+			{ character: 'ʼn', title: t( 'Latin small letter n preceded by apostrophe' ) },
+			{ character: 'Ŋ', title: t( 'Latin capital letter eng' ) },
+			{ character: 'ŋ', title: t( 'Latin small letter eng' ) },
+			{ character: 'Ō', title: t( 'Latin capital letter o with macron' ) },
+			{ character: 'ō', title: t( 'Latin small letter o with macron' ) },
+			{ character: 'Ŏ', title: t( 'Latin capital letter o with breve' ) },
+			{ character: 'ŏ', title: t( 'Latin small letter o with breve' ) },
+			{ character: 'Ő', title: t( 'Latin capital letter o with double acute' ) },
+			{ character: 'ő', title: t( 'Latin small letter o with double acute' ) },
+			{ character: 'Œ', title: t( 'Latin capital ligature oe' ) },
+			{ character: 'œ', title: t( 'Latin small ligature oe' ) },
+			{ character: 'Ŕ', title: t( 'Latin capital letter r with acute' ) },
+			{ character: 'ŕ', title: t( 'Latin small letter r with acute' ) },
+			{ character: 'Ŗ', title: t( 'Latin capital letter r with cedilla' ) },
+			{ character: 'ŗ', title: t( 'Latin small letter r with cedilla' ) },
+			{ character: 'Ř', title: t( 'Latin capital letter r with caron' ) },
+			{ character: 'ř', title: t( 'Latin small letter r with caron' ) },
+			{ character: 'Ś', title: t( 'Latin capital letter s with acute' ) },
+			{ character: 'ś', title: t( 'Latin small letter s with acute' ) },
+			{ character: 'Ŝ', title: t( 'Latin capital letter s with circumflex' ) },
+			{ character: 'ŝ', title: t( 'Latin small letter s with circumflex' ) },
+			{ character: 'Ş', title: t( 'Latin capital letter s with cedilla' ) },
+			{ character: 'ş', title: t( 'Latin small letter s with cedilla' ) },
+			{ character: 'Š', title: t( 'Latin capital letter s with caron' ) },
+			{ character: 'š', title: t( 'Latin small letter s with caron' ) },
+			{ character: 'Ţ', title: t( 'Latin capital letter t with cedilla' ) },
+			{ character: 'ţ', title: t( 'Latin small letter t with cedilla' ) },
+			{ character: 'Ť', title: t( 'Latin capital letter t with caron' ) },
+			{ character: 'ť', title: t( 'Latin small letter t with caron' ) },
+			{ character: 'Ŧ', title: t( 'Latin capital letter t with stroke' ) },
+			{ character: 'ŧ', title: t( 'Latin small letter t with stroke' ) },
+			{ character: 'Ũ', title: t( 'Latin capital letter u with tilde' ) },
+			{ character: 'ũ', title: t( 'Latin small letter u with tilde' ) },
+			{ character: 'Ū', title: t( 'Latin capital letter u with macron' ) },
+			{ character: 'ū', title: t( 'Latin small letter u with macron' ) },
+			{ character: 'Ŭ', title: t( 'Latin capital letter u with breve' ) },
+			{ character: 'ŭ', title: t( 'Latin small letter u with breve' ) },
+			{ character: 'Ů', title: t( 'Latin capital letter u with ring above' ) },
+			{ character: 'ů', title: t( 'Latin small letter u with ring above' ) },
+			{ character: 'Ű', title: t( 'Latin capital letter u with double acute' ) },
+			{ character: 'ű', title: t( 'Latin small letter u with double acute' ) },
+			{ character: 'Ų', title: t( 'Latin capital letter u with ogonek' ) },
+			{ character: 'ų', title: t( 'Latin small letter u with ogonek' ) },
+			{ character: 'Ŵ', title: t( 'Latin capital letter w with circumflex' ) },
+			{ character: 'ŵ', title: t( 'Latin small letter w with circumflex' ) },
+			{ character: 'Ŷ', title: t( 'Latin capital letter y with circumflex' ) },
+			{ character: 'ŷ', title: t( 'Latin small letter y with circumflex' ) },
+			{ character: 'Ÿ', title: t( 'Latin capital letter y with diaeresis' ) },
+			{ character: 'Ź', title: t( 'Latin capital letter z with acute' ) },
+			{ character: 'ź', title: t( 'Latin small letter z with acute' ) },
+			{ character: 'Ż', title: t( 'Latin capital letter z with dot above' ) },
+			{ character: 'ż', title: t( 'Latin small letter z with dot above' ) },
+			{ character: 'Ž', title: t( 'Latin capital letter z with caron' ) },
+			{ character: 'ž', title: t( 'Latin small letter z with caron' ) },
+			{ character: 'ſ', title: t( 'Latin small letter long s' ) }
 		] );
 	}
 }

+ 47 - 176
packages/ckeditor5-special-characters/src/specialcharactersmathematical.js

@@ -24,183 +24,54 @@ export default class SpecialCharactersMathematical extends Plugin {
 	 * @inheritDoc
 	 */
 	init() {
+		const editor = this.editor;
+		const t = editor.t;
+
 		this.editor.plugins.get( 'SpecialCharacters' ).addItems( 'Mathematical', [
-			{
-				character: '<',
-				title: 'Less-than sign'
-			},
-			{
-				character: '>',
-				title: 'Greater-than sign'
-			},
-			{
-				character: '≤',
-				title: 'Less-than or equal to'
-			},
-			{
-				character: '≥',
-				title: 'Greater-than or equal to'
-			},
-			{
-				character: '–',
-				title: 'En dash'
-			},
-			{
-				character: '—',
-				title: 'Em dash'
-			},
-			{
-				character: '¯',
-				title: 'Macron'
-			},
-			{
-				character: '‾',
-				title: 'Overline'
-			},
-			{
-				character: '°',
-				title: 'Degree sign'
-			},
-			{
-				character: '−',
-				title: 'Minus sign'
-			},
-			{
-				character: '±',
-				title: 'Plus-minus sign'
-			},
-			{
-				character: '÷',
-				title: 'Division sign'
-			},
-			{
-				character: '⁄',
-				title: 'Fraction slash'
-			},
-			{
-				character: '×',
-				title: 'Multiplication sign'
-			},
-			{
-				character: 'ƒ',
-				title: 'Latin small letter f with hook'
-			},
-			{
-				character: '∫',
-				title: 'Integral'
-			},
-			{
-				character: '∑',
-				title: 'N-ary summation'
-			},
-			{
-				character: '∞',
-				title: 'Infinity'
-			},
-			{
-				character: '√',
-				title: 'Square root'
-			},
-			{
-				character: '∼',
-				title: 'Tilde operator'
-			},
-			{
-				character: '≅',
-				title: 'Approximately equal to'
-			},
-			{
-				character: '≈',
-				title: 'Almost equal to'
-			},
-			{
-				character: '≠',
-				title: 'Not equal to'
-			},
-			{
-				character: '≡',
-				title: 'Identical to'
-			},
-			{
-				character: '∈',
-				title: 'Element of'
-			},
-			{
-				character: '∉',
-				title: 'Not an element of'
-			},
-			{
-				character: '∋',
-				title: 'Contains as member'
-			},
-			{
-				character: '∏',
-				title: 'N-ary product'
-			},
-			{
-				character: '∧',
-				title: 'Logical and'
-			},
-			{
-				character: '∨',
-				title: 'Logical or'
-			},
-			{
-				character: '¬',
-				title: 'Not sign'
-			},
-			{
-				character: '∩',
-				title: 'Intersection'
-			},
-			{
-				character: '∪',
-				title: 'Union'
-			},
-			{
-				character: '∂',
-				title: 'Partial differential'
-			},
-			{
-				character: '∀',
-				title: 'For all'
-			},
-			{
-				character: '∃',
-				title: 'There exists'
-			},
-			{
-				character: '∅',
-				title: 'Empty set'
-			},
-			{
-				character: '∇',
-				title: 'Nabla'
-			},
-			{
-				character: '∗',
-				title: 'Asterisk operator'
-			},
-			{
-				character: '∝',
-				title: 'Proportional to'
-			},
-			{
-				character: '∠',
-				title: 'Angle'
-			},
-			{
-				character: '¼',
-				title: 'Vulgar fraction one quarter'
-			},
-			{
-				character: '½',
-				title: 'Vulgar fraction one half'
-			},
-			{
-				character: '¾',
-				title: 'Vulgar fraction three quarters'
-			}
+			{ character: '<', title: t( 'Less-than sign' ) },
+			{ character: '>', title: t( 'Greater-than sign' ) },
+			{ character: '≤', title: t( 'Less-than or equal to' ) },
+			{ character: '≥', title: t( 'Greater-than or equal to' ) },
+			{ character: '–', title: t( 'En dash' ) },
+			{ character: '—', title: t( 'Em dash' ) },
+			{ character: '¯', title: t( 'Macron' ) },
+			{ character: '‾', title: t( 'Overline' ) },
+			{ character: '°', title: t( 'Degree sign' ) },
+			{ character: '−', title: t( 'Minus sign' ) },
+			{ character: '±', title: t( 'Plus-minus sign' ) },
+			{ character: '÷', title: t( 'Division sign' ) },
+			{ character: '⁄', title: t( 'Fraction slash' ) },
+			{ character: '×', title: t( 'Multiplication sign' ) },
+			{ character: 'ƒ', title: t( 'Latin small letter f with hook' ) },
+			{ character: '∫', title: t( 'Integral' ) },
+			{ character: '∑', title: t( 'N-ary summation' ) },
+			{ character: '∞', title: t( 'Infinity' ) },
+			{ character: '√', title: t( 'Square root' ) },
+			{ character: '∼', title: t( 'Tilde operator' ) },
+			{ character: '≅', title: t( 'Approximately equal to' ) },
+			{ character: '≈', title: t( 'Almost equal to' ) },
+			{ character: '≠', title: t( 'Not equal to' ) },
+			{ character: '≡', title: t( 'Identical to' ) },
+			{ character: '∈', title: t( 'Element of' ) },
+			{ character: '∉', title: t( 'Not an element of' ) },
+			{ character: '∋', title: t( 'Contains as member' ) },
+			{ character: '∏', title: t( 'N-ary product' ) },
+			{ character: '∧', title: t( 'Logical and' ) },
+			{ character: '∨', title: t( 'Logical or' ) },
+			{ character: '¬', title: t( 'Not sign' ) },
+			{ character: '∩', title: t( 'Intersection' ) },
+			{ character: '∪', title: t( 'Union' ) },
+			{ character: '∂', title: t( 'Partial differential' ) },
+			{ character: '∀', title: t( 'For all' ) },
+			{ character: '∃', title: t( 'There exists' ) },
+			{ character: '∅', title: t( 'Empty set' ) },
+			{ character: '∇', title: t( 'Nabla' ) },
+			{ character: '∗', title: t( 'Asterisk operator' ) },
+			{ character: '∝', title: t( 'Proportional to' ) },
+			{ character: '∠', title: t( 'Angle' ) },
+			{ character: '¼', title: t( 'Vulgar fraction one quarter' ) },
+			{ character: '½', title: t( 'Vulgar fraction one half' ) },
+			{ character: '¾', title: t( 'Vulgar fraction three quarters' ) }
 		] );
 	}
 }

+ 24 - 84
packages/ckeditor5-special-characters/src/specialcharacterstext.js

@@ -24,91 +24,31 @@ export default class SpecialCharactersText extends Plugin {
 	 * @inheritDoc
 	 */
 	init() {
+		const editor = this.editor;
+		const t = editor.t;
+
 		this.editor.plugins.get( 'SpecialCharacters' ).addItems( 'Text', [
-			{
-				character: '‹',
-				title: 'Single left-pointing angle quotation mark'
-			},
-			{
-				character: '›',
-				title: 'Single right-pointing angle quotation mark'
-			},
-			{
-				character: '«',
-				title: 'Left-pointing double angle quotation mark'
-			},
-			{
-				character: '»',
-				title: 'Right-pointing double angle quotation mark'
-			},
-			{
-				character: '‘',
-				title: 'Left single quotation mark'
-			},
-			{
-				character: '’',
-				title: 'Right single quotation mark'
-			},
-			{
-				character: '“',
-				title: 'Left double quotation mark'
-			},
-			{
-				character: '”',
-				title: 'Right double quotation mark'
-			},
-			{
-				character: '‚',
-				title: 'Single low-9 quotation mark'
-			},
-			{
-				character: '„',
-				title: 'Double low-9 quotation mark'
-			},
-			{
-				character: '¡',
-				title: 'Inverted exclamation mark'
-			},
-			{
-				character: '¿',
-				title: 'Inverted question mark'
-			},
-			{
-				character: '‥',
-				title: 'Two dot leader'
-			},
-			{
-				character: '…',
-				title: 'Horizontal ellipsis'
-			},
-			{
-				character: '‡',
-				title: 'Double dagger'
-			},
-			{
-				character: '‰',
-				title: 'Per mille sign'
-			},
-			{
-				character: '‱',
-				title: 'Per ten thousand sign'
-			},
-			{
-				character: '‼',
-				title: 'Double exclamation mark'
-			},
-			{
-				character: '⁈',
-				title: 'Question exclamation mark'
-			},
-			{
-				character: '⁉',
-				title: 'Exclamation question mark'
-			},
-			{
-				character: '⁇',
-				title: 'Double question mark'
-			}
+			{ character: '‹', title: t( 'Single left-pointing angle quotation mark' ) },
+			{ character: '›', title: t( 'Single right-pointing angle quotation mark' ) },
+			{ character: '«', title: t( 'Left-pointing double angle quotation mark' ) },
+			{ character: '»', title: t( 'Right-pointing double angle quotation mark' ) },
+			{ character: '‘', title: t( 'Left single quotation mark' ) },
+			{ character: '’', title: t( 'Right single quotation mark' ) },
+			{ character: '“', title: t( 'Left double quotation mark' ) },
+			{ character: '”', title: t( 'Right double quotation mark' ) },
+			{ character: '‚', title: t( 'Single low-9 quotation mark' ) },
+			{ character: '„', title: t( 'Double low-9 quotation mark' ) },
+			{ character: '¡', title: t( 'Inverted exclamation mark' ) },
+			{ character: '¿', title: t( 'Inverted question mark' ) },
+			{ character: '‥', title: t( 'Two dot leader' ) },
+			{ character: '…', title: t( 'Horizontal ellipsis' ) },
+			{ character: '‡', title: t( 'Double dagger' ) },
+			{ character: '‰', title: t( 'Per mille sign' ) },
+			{ character: '‱', title: t( 'Per ten thousand sign' ) },
+			{ character: '‼', title: t( 'Double exclamation mark' ) },
+			{ character: '⁈', title: t( 'Question exclamation mark' ) },
+			{ character: '⁉', title: t( 'Exclamation question mark' ) },
+			{ character: '⁇', title: t( 'Double question mark' ) }
 		] );
 	}
 }