mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-06 02:59:29 +00:00
Fixed english translation for placeholder plugin and use more modern translation system
This commit is contained in:
parent
746aa53bc3
commit
b035014867
3 changed files with 88 additions and 10 deletions
|
|
@ -20,6 +20,7 @@
|
||||||
import {Plugin} from 'ckeditor5';
|
import {Plugin} from 'ckeditor5';
|
||||||
|
|
||||||
require('./lang/de.js');
|
require('./lang/de.js');
|
||||||
|
require('./lang/en.js');
|
||||||
|
|
||||||
import { addListToDropdown, createDropdown } from 'ckeditor5';
|
import { addListToDropdown, createDropdown } from 'ckeditor5';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,15 +17,9 @@
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Make sure that the global object is defined. If not, define it.
|
import {add} from "ckeditor5";
|
||||||
window.CKEDITOR_TRANSLATIONS = window.CKEDITOR_TRANSLATIONS || {};
|
|
||||||
|
|
||||||
// Make sure that the dictionary for Polish translations exist.
|
add( "de", {
|
||||||
window.CKEDITOR_TRANSLATIONS[ 'de' ] = window.CKEDITOR_TRANSLATIONS[ 'de' ] || {};
|
|
||||||
window.CKEDITOR_TRANSLATIONS[ 'de' ].dictionary = window.CKEDITOR_TRANSLATIONS[ 'de' ].dictionary || {};
|
|
||||||
|
|
||||||
// Extend the dictionary for Polish translations with your translations:
|
|
||||||
Object.assign( window.CKEDITOR_TRANSLATIONS[ 'de' ].dictionary, {
|
|
||||||
'Label Placeholder': 'Label Platzhalter',
|
'Label Placeholder': 'Label Platzhalter',
|
||||||
'Part': 'Bauteil',
|
'Part': 'Bauteil',
|
||||||
|
|
||||||
|
|
@ -88,5 +82,4 @@ Object.assign( window.CKEDITOR_TRANSLATIONS[ 'de' ].dictionary, {
|
||||||
'Instance name': 'Instanzname',
|
'Instance name': 'Instanzname',
|
||||||
'Target type': 'Zieltyp',
|
'Target type': 'Zieltyp',
|
||||||
'URL of this Part-DB instance': 'URL dieser Part-DB Instanz',
|
'URL of this Part-DB instance': 'URL dieser Part-DB Instanz',
|
||||||
|
});
|
||||||
} );
|
|
||||||
|
|
|
||||||
84
assets/ckeditor/plugins/PartDBLabel/lang/en.js
Normal file
84
assets/ckeditor/plugins/PartDBLabel/lang/en.js
Normal file
|
|
@ -0,0 +1,84 @@
|
||||||
|
/*
|
||||||
|
* This file is part of Part-DB (https://github.com/Part-DB/Part-DB-symfony).
|
||||||
|
*
|
||||||
|
* Copyright (C) 2019 - 2025 Jan Böhmer (https://github.com/jbtronics)
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Affero General Public License as published
|
||||||
|
* by the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program 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 Affero General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
import {add} from "ckeditor5";
|
||||||
|
|
||||||
|
add( "en", {
|
||||||
|
'Label Placeholder': 'Label placeholder',
|
||||||
|
'Part': 'Part',
|
||||||
|
|
||||||
|
'Database ID': 'Database ID',
|
||||||
|
'Part name': 'Part name',
|
||||||
|
'Category': 'Category',
|
||||||
|
'Category (Full path)': 'Category (full path)',
|
||||||
|
'Manufacturer': 'Manufacturer',
|
||||||
|
'Manufacturer (Full path)': 'Manufacturer (full path)',
|
||||||
|
'Footprint': 'Footprint',
|
||||||
|
'Footprint (Full path)': 'Footprint (full path)',
|
||||||
|
'Mass': 'Mass',
|
||||||
|
'Manufacturer Product Number (MPN)': 'Manufacturer Product Number (MPN)',
|
||||||
|
'Internal Part Number (IPN)': 'Internal Part Number (IPN)',
|
||||||
|
'Tags': 'Tags',
|
||||||
|
'Manufacturing status': 'Manufacturing status',
|
||||||
|
'Description': 'Description',
|
||||||
|
'Description (plain text)': 'Description (plain text)',
|
||||||
|
'Comment': 'Comment',
|
||||||
|
'Comment (plain text)': 'Comment (plain text)',
|
||||||
|
'Last modified datetime': 'Last modified datetime',
|
||||||
|
'Creation datetime': 'Creation datetime',
|
||||||
|
'IPN as QR code': 'IPN as QR code',
|
||||||
|
'IPN as Code 128 barcode': 'IPN as Code 128 barcode',
|
||||||
|
'IPN as Code 39 barcode': 'IPN as Code 39 barcode',
|
||||||
|
|
||||||
|
'Lot ID': 'Lot ID',
|
||||||
|
'Lot name': 'Lot name',
|
||||||
|
'Lot comment': 'Lot comment',
|
||||||
|
'Lot expiration date': 'Lot expiration date',
|
||||||
|
'Lot amount': 'Lot amount',
|
||||||
|
'Storage location': 'Storage location',
|
||||||
|
'Storage location (Full path)': 'Storage location (full path)',
|
||||||
|
'Full name of the lot owner': 'Full name of the lot owner',
|
||||||
|
'Username of the lot owner': 'Username of the lot owner',
|
||||||
|
|
||||||
|
'Barcodes': 'Barcodes',
|
||||||
|
'Content of the 1D barcodes (like Code 39)': 'Content of the 1D barcodes (like Code 39)',
|
||||||
|
'Content of the 2D barcodes (QR codes)': 'Content of the 2D barcodes (QR codes)',
|
||||||
|
'QR code linking to this element': 'QR code linking to this element',
|
||||||
|
'Code 128 barcode linking to this element': 'Code 128 barcode linking to this element',
|
||||||
|
'Code 39 barcode linking to this element': 'Code 39 barcode linking to this element',
|
||||||
|
'Code 93 barcode linking to this element': 'Code 93 barcode linking to this element',
|
||||||
|
'Datamatrix code linking to this element': 'Datamatrix code linking to this element',
|
||||||
|
|
||||||
|
'Location ID': 'Location ID',
|
||||||
|
'Name': 'Name',
|
||||||
|
'Full path': 'Full path',
|
||||||
|
'Parent name': 'Parent name',
|
||||||
|
'Parent full path': 'Parent full path',
|
||||||
|
'Full name of the location owner': 'Full name of the location owner',
|
||||||
|
'Username of the location owner': 'Username of the location owner',
|
||||||
|
|
||||||
|
'Username': 'Username',
|
||||||
|
'Username (including name)': 'Username (including name)',
|
||||||
|
'Current datetime': 'Current datetime',
|
||||||
|
'Current date': 'Current date',
|
||||||
|
'Current time': 'Current time',
|
||||||
|
'Instance name': 'Instance name',
|
||||||
|
'Target type': 'Target type',
|
||||||
|
'URL of this Part-DB instance': 'URL of this Part-DB instance',
|
||||||
|
} );
|
||||||
Loading…
Add table
Add a link
Reference in a new issue