Modifications 4104

This commit is contained in:
Deltacms 2022-04-20 09:25:59 +02:00
parent 1036348eb8
commit 5550accd83
22 changed files with 680 additions and 33 deletions

View File

@ -1,5 +1,9 @@
# Changelog
## Version 4.1.04 de Deltacms
- Modifications :
- Langues : ajout de 4 langues régionales, corse, breton, catalan, basque.
## Version 4.1.03 de Deltacms
- Modifications :
- Statislite : amèioration de l'affichage de la date initiale,

View File

@ -1,5 +1,5 @@
# DeltaCMS 4.1.03
# DeltaCMS 4.1.04
DeltaCMS est un CMS sans base de données (flat-file) qui permet de créer et gérer facilement un site web sans aucune connaissance en programmation.
L'administration du site est bilingue anglais ou français, le site peut être rédigé dans une des principales langues européennes.

View File

@ -322,7 +322,14 @@ core.start = function() {
});
// Confirmation de mise à jour
$("#barUpdate").on("click", function() {
return core.confirm("Effectuer la mise à jour ?", function() {
var text = "";
<?php if( $this->getData(['config', 'i18n', 'langAdmin' ]) === 'fr'){
echo 'text = "Effectuer la mise à jour ?";' ;
}
else{
echo 'text = "Updating ?";' ;
} ?>
return core.confirm( text, function() {
$(location).attr("href", $("#barUpdate").attr("href"));
});
});

View File

@ -43,10 +43,14 @@ if ($this->getData(['core', 'dataVersion']) < 4101) {
$this->setData(['core', 'dataVersion', 4101]);
}
if ($this->getData(['core', 'dataVersion']) < 4103) {
if ($this->getData(['core', 'dataVersion']) < 4104) {
$this->setData(['config', 'i18n', 'br', 'none']);
$this->setData(['config', 'i18n', 'ca', 'none']);
$this->setData(['config', 'i18n', 'co', 'none']);
$this->setData(['config', 'i18n', 'eu', 'none']);
// Mise à jour
$this->setData(['core', 'dataVersion', 4103]);
$this->setData(['core', 'dataVersion', 4104]);
}

View File

@ -616,7 +616,16 @@ class config extends common {
'es' => $this->getData(['config', 'i18n', 'es']),
'it' => $this->getData(['config', 'i18n', 'it']),
'nl' => $this->getData(['config', 'i18n', 'nl']),
'pt' => $this->getData(['config', 'i18n', 'pt'])
'pt' => $this->getData(['config', 'i18n', 'pt']),
'el' => $this->getData(['config', 'i18n', 'el']),
'da' => $this->getData(['config', 'i18n', 'da']),
'fi' => $this->getData(['config', 'i18n', 'fi']),
'ga' => $this->getData(['config', 'i18n', 'ga']),
'sv' => $this->getData(['config', 'i18n', 'sv']),
'br' => $this->getData(['config', 'i18n', 'br']),
'ca' => $this->getData(['config', 'i18n', 'ca']),
'co' => $this->getData(['config', 'i18n', 'co']),
'eu' => $this->getData(['config', 'i18n', 'eu'])
]
]
]);

View File

@ -0,0 +1,6 @@
<p><a href="https://deltacms.fr" target="_blank" rel="noopener"><img src="site/file/source/icones/logo_menu_couleur_600_200.png" alt="Deltacms" title="Deltacms" style="display: block; margin-left: auto; margin-right: auto;" width="300" height="75" /></a></p>
<div class="row"><div style="text-align: center;"><div class="block" style="display: inline-block;">
<h2 style="text-align: left;">Bienvenue sur votre nouveau site DeltaCMS !</h2>
<p style="text-align: left;"><strong>Un email contenant le récapitulatif de votre installation vient de vous être envoyé.</strong></p><p>&nbsp;</p>
<p style="text-align: left;">Connectez-vous dès maintenant à votre espace membre afin de créer un site à votre image ! Vous pourrez personnaliser le thème, créer des pages, ajouter des utilisateurs et bien plus encore !</p>
</div></div></div>

View File

@ -0,0 +1,6 @@
<p><a href="https://deltacms.fr" target="_blank" rel="noopener"><img src="site/file/source/icones/logo_menu_couleur_600_200.png" alt="Deltacms" title="Deltacms" style="display: block; margin-left: auto; margin-right: auto;" width="300" height="75" /></a></p>
<div class="row"><div style="text-align: center;"><div class="block" style="display: inline-block;">
<h2 style="text-align: left;">Benvinguts a la teva nova web DeltaCMS !</h2>
<p style="text-align: left;"><strong>Se t'acaba d'enviar un correu electrònic que conté el resum de la teva instal·lació.</strong></p><p>&nbsp;</p>
<p style="text-align: left;">Connecta't ara a la teva àrea de membres per crear un lloc a la teva imatge! Podreu personalitzar el tema, crear pàgines, afegir usuaris i molt més.</p>
</div></div></div>

View File

@ -0,0 +1,6 @@
<p><a href="https://deltacms.fr" target="_blank" rel="noopener"><img src="site/file/source/icones/logo_menu_couleur_600_200.png" alt="Deltacms" title="Deltacms" style="display: block; margin-left: auto; margin-right: auto;" width="300" height="75" /></a></p>
<div class="row"><div style="text-align: center;"><div class="block" style="display: inline-block;">
<h2 style="text-align: left;">Benvenuti à u vostru novu situ DeltaCMS !</h2>
<p style="text-align: left;"><strong>Un email chì cuntene u riassuntu di a vostra installazione hè statu mandatu à voi.</strong></p><p>&nbsp;</p>
<p style="text-align: left;">Cunnettete avà à a vostra zona di membri per creà un situ in a vostra imagina! Puderete persunalizà u tema, creà pagine, aghjunghje utilizatori è assai di più!</p>
</div></div></div>

View File

@ -1 +1 @@
<p>This page contains an instance of the blog module. Click on an article to read it and post comments.</p>
<p>This page contains a blog module. Click on an article to read it and post comments.</p>

View File

@ -1 +1 @@
<p>This page contains an instance of the photo gallery module. Click on the gallery below to see the photos it contains.</p>
<p>This page contains a photo gallery module. Click on the gallery below to see the photos it contains.</p>

View File

@ -62,11 +62,15 @@ class init extends common {
'da'=> 'none',
'ga'=> 'none',
'fi'=> 'none',
'sv'=> 'none'
'sv'=> 'none',
'eu'=> 'none',
'br'=> 'none',
'ca'=> 'none',
'co'=> 'none'
]
],
'core' => [
'dataVersion' => 4103,
'dataVersion' => 4104,
'lastBackup' => 0,
'lastClearTmp' => 0,
'lastAutoUpdate' => 0,
@ -1006,10 +1010,10 @@ class init extends common {
<p>Pour ajouter un menu à une page, choisissez une barre latérale avec menu dans la page de configuration. Les bulles d\'aide de la rubrique "Menu" expliquent comment masquer une page.</p>'
],
'blog' => [
'content' => '<p>Cette page contient une instance du module de blog. Cliquez sur un article afin de le lire et de poster des commentaires.</p>'
'content' => '<p>Cette page contient un module de blog. Cliquez sur un article afin de le lire et de poster des commentaires.</p>'
],
'galeries' => [
'content' => '<p>Cette page contient une instance du module de galeries photos. Cliquez sur la galerie ci-dessous afin de voir les photos qu\'elle contient.</p>'
'content' => '<p>Cette page contient un module de galeries photos. Cliquez sur la galerie ci-dessous afin de voir les photos qu\'elle contient.</p>'
],
'deltacms' => [
'content' => ''

View File

@ -0,0 +1,6 @@
<p><a href="https://deltacms.fr" target="_blank" rel="noopener"><img src="site/file/source/icones/logo_menu_couleur_600_200.png" alt="Deltacms" title="Deltacms" style="display: block; margin-left: auto; margin-right: auto;" width="300" height="75" /></a></p>
<div class="row"><div style="text-align: center;"><div class="block" style="display: inline-block;">
<h2 style="text-align: left;">Ongi etorri zure DeltaCMS gune berrira !</h2>
<p style="text-align: left;"><strong>Zure instalazioaren laburpena jasotzen duen mezu elektroniko bat bidali berri dizugu.</strong></p><p>&nbsp;</p>
<p style="text-align: left;">Konektatu orain zure kideen eremura zure irudiko gune bat sortzeko! Gaia pertsonalizatu, orriak sortu, erabiltzaileak gehitu eta askoz gehiago egin ahal izango dituzu!</p>
</div></div></div>

View File

@ -147,8 +147,11 @@ class translate extends common {
// Soumission du formulaire
if($this->isPost()) {
// Désactivation du script Google
// Si la langue originale du site choisie est seulement en traduction rédigée invalider la traduction automatique
$script = $this->getInput('translateScriptGoogle', helper::FILTER_BOOLEAN);
$langBase = $this->getInput('translateLangBase');
if( array_key_exists( $langBase, self::$i18nListSiteOnly)) $script = false;
// Désactivation du script Google
if ($script === false) {
setrawcookie('googtrans', '/base/base', time() + 3600, helper::baseUrl(false,false));
$_SESSION['googtrans'] = '/base/base';
@ -166,16 +169,13 @@ class translate extends common {
helper::deleteCookie('DELTA_I18N_SITE');
helper::deleteCookie('DELTA_I18N_SCRIPT');
}
// Active le script si une langue est en trad auto
if ($script === false
AND $this->getInput('translate'. strtoupper($keyi18n)) === 'script') {
$script = true;
}
}
// 'langBase' mémorise le code ISO de la langue sélectionnée ou de la valeur saisie si la langue sélectionnée est Autre langue
$langBase = $this->getInput('translateLangBase');
if( $langBase === 'none') $langBase = $this->getInput('translateOtherBase');
$requiredOtherLang = false;
if( $langBase === 'none'){
$langBase = $this->getInput('translateOtherBase');
$requiredOtherLang = true;
}
// Enregistrement des données
$this->setData(['config','i18n', [
@ -185,7 +185,7 @@ class translate extends common {
'autoDetect' => $this->getInput('translateScriptGoogle', helper::FILTER_BOOLEAN) ? $this->getInput('translateAutoDetect', helper::FILTER_BOOLEAN) : false,
'langAdmin' => $this->getInput('translateLangAdmin'),
'langBase' => $langBase,
'otherLangBase' => $this->getInput('translateOtherBase'),
'otherLangBase' => $this->getInput('translateOtherBase', helper::FILTER_STRING_SHORT,$requiredOtherLang),
'fr' => $this->getInput('translateFR'),
'de' => $this->getInput('translateDE'),
'en' => $this->getInput('translateEN'),
@ -197,7 +197,11 @@ class translate extends common {
'da' => $this->getInput('translateDA'),
'fi' => $this->getInput('translateFI'),
'ga' => $this->getInput('translateGA'),
'sv' => $this->getInput('translateSV')
'sv' => $this->getInput('translateSV'),
'br' => $this->getInput('translateBR'),
'ca' => $this->getInput('translateCA'),
'co' => $this->getInput('translateCO'),
'eu' => $this->getInput('translateEU')
]]);
@ -218,17 +222,30 @@ class translate extends common {
if ($this->getData(['config','i18n',$key]) === 'site') {
self::$translateOptions [$key] = [
'none' => $text[1],
'script' => $text[2],
'site' => $text[3],
'delete' => $text[4]
];
];
if( ! array_key_exists( $key, self::$i18nListSiteOnly) && $this->getData(['config','i18n','scriptGoogle'])){
self::$translateOptions [$key] = [
'none' => $text[1],
'script' => $text[2],
'site' => $text[3],
'delete' => $text[4]
];
}
self::$siteTranslate = $key !== $this->getData(['config', 'i18n', 'langBase']) ? false : true;
} else {
self::$translateOptions [$key] = [
'none' => $text[1],
'script' => $text[2],
'site' => $text[3]
];
];
if( ! array_key_exists( $key, self::$i18nListSiteOnly) && $this->getData(['config','i18n','scriptGoogle'])){
self::$translateOptions [$key] = [
'none' => $text[1],
'script' => $text[2],
'site' => $text[3]
];
}
}
// Limitation du choix pour la langue d'origine
if ( $key === $this->getData(['config', 'i18n', 'langBase'])){
@ -236,7 +253,7 @@ class translate extends common {
'none' => $text[1],
'site' => $text[5]
];
}
}
}
// Valeurs en sortie
$this->addOutput([

View File

@ -23,3 +23,13 @@ $("#translateLangBase").on("change", function() {
$("#translateOtherLangBase").slideUp();
}
});
$(function () {
// Menu fixe à afficher
if($("#translateLangBase").val() === 'none') {
$("#translateOtherLangBase").slideDown();
}
else {
$("#translateOtherLangBase").slideUp();
}
});

View File

@ -13,7 +13,7 @@ switch ($val) {
$text[6] = 'Langages d\'origine et d\'administration';
$text[7] = 'Traduction automatique du site';
$text[8] = 'Active le script de traduction automatique';
$text[9] = 'Le script Google Translate assure la traduction automatique du site.';
$text[9] = 'Le script Google Translate assure la traduction automatique du site. Enregistrez la page pour pouvoir bénéficier des options de traduction.';
$text[10] = 'Détection automatique de la langue du navigateur';
$text[11] = 'Détecte la langue du navigateur, dans ce mode il n\'est pas nécessaire d\'afficher les drapeaux.';
$text[12] = 'Afficher les crédits du script Google';
@ -21,6 +21,7 @@ switch ($val) {
$text[14] = 'Mode de traduction du site et affichage des drapeaux';
$text[15] = 'Code ISO de l\'option Autre langue';
$text[16] = 'Saisir le code ISO de la langue constitué de 2 lettres minuscules';
$text[17] = 'La langue originale de rédaction du site n\'est pas prise en charge par le script de traduction automatique.';
$i18nList = core::$i18nList;
break;
case 'en' :
@ -33,7 +34,7 @@ switch ($val) {
$text[6] = 'Languages of origin and administration';
$text[7] = 'Automatic website translation';
$text[8] = 'Activate the automatic translation script';
$text[9] = 'The Google Translate script automatically translates the site.';
$text[9] = 'The Google Translate script automatically translates the site. Save the page to take advantage of translation options.';
$text[10] = 'Automatic detection of the browser language';
$text[11] = 'Detects the language of the browser, in this mode it is not necessary to display the flags.';
$text[12] = 'Show Google script credits';
@ -41,6 +42,7 @@ switch ($val) {
$text[14] = 'Site translation mode and flag display';
$text[15] = 'ISO code for Other language option';
$text[16] = 'Enter the ISO language code consisting of 2 lower case letters';
$text[17] = 'The original language of the site is not supported by the machine translation script.';
$i18nList = core::$i18nList_en;
break;
}
@ -122,6 +124,7 @@ switch ($val) {
<div class="col12">
<div class="block">
<h4><?php echo $text[7]; ?></h4>
<?php if( ! array_key_exists( $this->getData(['config', 'i18n' , 'langBase']), self::$i18nListSiteOnly)) { ?>
<div class="row">
<div class="col6">
<?php echo template::checkbox('translateScriptGoogle', true, $text[8], [
@ -146,7 +149,12 @@ switch ($val) {
]); ?>
</div>
</div>
</div>
<?php }else { ?>
<div class="row"><div class="col6">
<?php echo $text[17]; ?>
</div></div>
<?php } ?>
</div>
</div>
</div>
<div class="row">
@ -243,6 +251,36 @@ switch ($val) {
]); ?>
</div>
</div>
<div class="row">
<div class="col3">
<?php echo template::select('translateBR', $module::$translateOptions['br'], [
'label' => template::flag('br', '30px'),
'class' => 'translateFlagSelect',
'selected' => $this->getData(['config', 'i18n' , 'br'])
]); ?>
</div>
<div class="col3">
<?php echo template::select('translateCA', $module::$translateOptions['ca'], [
'label' => template::flag('ca', '30px'),
'class' => 'translateFlagSelect',
'selected' => $this->getData(['config', 'i18n' , 'ca'])
]); ?>
</div>
<div class="col3">
<?php echo template::select('translateCO', $module::$translateOptions['co'], [
'label' => template::flag('co', '30px'),
'class' => 'translateFlagSelect',
'selected' => $this->getData(['config', 'i18n' , 'co'])
]); ?>
</div>
<div class="col3">
<?php echo template::select('translateEU', $module::$translateOptions['eu'], [
'label' => template::flag('eu', '30px'),
'class' => 'translateFlagSelect',
'selected' => $this->getData(['config', 'i18n' , 'eu'])
]); ?>
</div>
</div>
</div>
</div>
</div>

BIN
core/vendor/i18n/png/br.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 470 B

BIN
core/vendor/i18n/png/ca.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 B

BIN
core/vendor/i18n/png/co.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 749 B

BIN
core/vendor/i18n/png/eu.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

261
core/vendor/tinymce/langs/ca.js vendored Normal file
View File

@ -0,0 +1,261 @@
tinymce.addI18n('ca',{
"Redo": "Refer",
"Undo": "Desfer",
"Cut": "Retalla",
"Copy": "Copia",
"Paste": "Enganxa",
"Select all": "Seleccionar-ho tot",
"New document": "Nou document",
"Ok": "Acceptar",
"Cancel": "Cancel\u00b7la",
"Visual aids": "Assist\u00e8ncia visual",
"Bold": "Negreta",
"Italic": "Cursiva",
"Underline": "Subratllat",
"Strikethrough": "Ratllat",
"Superscript": "Super\u00edndex",
"Subscript": "Sub\u00edndex",
"Clear formatting": "Eliminar format",
"Align left": "Aliniat a l'esquerra",
"Align center": "Centrat",
"Align right": "Aliniat a la dreta",
"Justify": "Justificat",
"Bullet list": "Llista no ordenada",
"Numbered list": "Llista enumerada",
"Decrease indent": "Disminuir sagnat",
"Increase indent": "Augmentar sagnat",
"Close": "Tanca",
"Formats": "Formats",
"Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X\/C\/V keyboard shortcuts instead.": "El vostre navegador no suporta l'acc\u00e9s directe al portaobjectes. Si us plau, feu servir les dreceres de teclat Ctrl+X\/C\/V.",
"Headers": "Cap\u00e7aleres",
"Header 1": "Cap\u00e7alera 1",
"Header 2": "Cap\u00e7alera 2",
"Header 3": "Cap\u00e7alera 3",
"Header 4": "Cap\u00e7alera 4",
"Header 5": "Cap\u00e7alera 5",
"Header 6": "Cap\u00e7alera 6",
"Headings": "Encap\u00e7alaments",
"Heading 1": "Encap\u00e7alament 1",
"Heading 2": "Encap\u00e7alament 2",
"Heading 3": "Encap\u00e7alament 3",
"Heading 4": "Encap\u00e7alament 4",
"Heading 5": "Encap\u00e7alament 5",
"Heading 6": "Encap\u00e7alament 6",
"Preformatted": "Preformatted",
"Div": "Div",
"Pre": "Pre",
"Code": "Codi",
"Paragraph": "Par\u00e0graf",
"Blockquote": "Cita",
"Inline": "En l\u00ednia",
"Blocks": "Blocs",
"Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.": "Enganxar ara est\u00e0 en mode text pla. Els continguts s'enganxaran com a text pla fins que desactivis aquesta opci\u00f3. ",
"Font Family": "Fam\u00edlia de la font",
"Font Sizes": "Mides de la font",
"Class": "Classe",
"Browse for an image": "Explorar una imatge",
"OR": "O",
"Drop an image here": "Deixar anar una imatge aqu\u00ed",
"Upload": "Pujar",
"Block": "Bloc",
"Align": "Alinear",
"Default": "Per defecte",
"Circle": "Cercle",
"Disc": "Disc",
"Square": "Quadrat",
"Lower Alpha": "Alfa menor",
"Lower Greek": "Grec menor",
"Lower Roman": "Roman menor",
"Upper Alpha": "Alfa major",
"Upper Roman": "Roman major",
"Anchor": "\u00c0ncora",
"Name": "Nom",
"Id": "Id",
"Id should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores.": "La Id ha de comen\u00e7ar amb una lletra, seguida d'altres lletres, n\u00fameros, punts, ratlles, comes, o guions baixos",
"You have unsaved changes are you sure you want to navigate away?": "Teniu canvis sense desar, esteu segur que voleu deixar-ho ara?",
"Restore last draft": "Restaurar l'\u00faltim esborrany",
"Special character": "Car\u00e0cter especial",
"Source code": "Codi font",
"Insert\/Edit code sample": "Inserir\/Editar tros de codi",
"Language": "Idioma",
"Code sample": "Mostra de codi",
"Color": "Color",
"R": "R",
"G": "G",
"B": "B",
"Left to right": "D'esquerra a dreta",
"Right to left": "De dreta a esquerra",
"Emoticons": "Emoticones",
"Document properties": "Propietats del document",
"Title": "T\u00edtol",
"Keywords": "Paraules clau",
"Description": "Descripci\u00f3",
"Robots": "Robots",
"Author": "Autor",
"Encoding": "Codificaci\u00f3",
"Fullscreen": "Pantalla completa",
"Action": "Acci\u00f3",
"Shortcut": "Drecera",
"Help": "Ajuda",
"Address": "Adre\u00e7a",
"Focus to menubar": "Enfocar la barra de men\u00fa",
"Focus to toolbar": "Enfocar la barra d'eines",
"Focus to element path": "Enfocar la ruta d'elements",
"Focus to contextual toolbar": "Enfocar la barra d'eines contextual",
"Insert link (if link plugin activated)": "Inserir enlla\u00e7 (si el complement d'enlla\u00e7 est\u00e0 activat)",
"Save (if save plugin activated)": "Desar (si el complement desar est\u00e0 activat)",
"Find (if searchreplace plugin activated)": "Cercar (si el complement cercar-reempla\u00e7ar est\u00e0 activat)",
"Plugins installed ({0}):": "Complements instal\u00b7lats ({0}):",
"Premium plugins:": "Complements premium",
"Learn more...": "Apr\u00e8n m\u00e9s...",
"You are using {0}": "Est\u00e0s utilitzant {0}",
"Plugins": "Complements",
"Handy Shortcuts": "Dreceres a m\u00e0",
"Horizontal line": "L\u00ednia horitzontal",
"Insert\/edit image": "Inserir\/editar imatge",
"Image description": "Descripci\u00f3 de la imatge",
"Source": "Font",
"Dimensions": "Dimensions",
"Constrain proportions": "Mantenir proporcions",
"General": "General",
"Advanced": "Avan\u00e7at",
"Style": "Estil",
"Vertical space": "Espai vertical",
"Horizontal space": "Espai horitzontal",
"Border": "Vora",
"Insert image": "Inserir imatge",
"Image": "Imatge",
"Image list": "Llista d'imatges",
"Rotate counterclockwise": "Girar a l'esquerra",
"Rotate clockwise": "Girar a la dreta",
"Flip vertically": "Capgirar verticalment",
"Flip horizontally": "Capgirar horitzontalment",
"Edit image": "Editar imatge",
"Image options": "Opcions d'imatge",
"Zoom in": "Ampliar",
"Zoom out": "Empetitir",
"Crop": "Escap\u00e7ar",
"Resize": "Canviar mida",
"Orientation": "Orientaci\u00f3",
"Brightness": "Brillantor",
"Sharpen": "Remarcar vores",
"Contrast": "Contrast",
"Color levels": "Nivells de color",
"Gamma": "Gamma",
"Invert": "Invertir",
"Apply": "Aplicar",
"Back": "Tornar",
"Insert date\/time": "Inserir data\/hora",
"Date\/time": "Data\/hora",
"Insert link": "Inserir enlla\u00e7",
"Insert\/edit link": "Inserir\/editar enlla\u00e7",
"Text to display": "Text per mostrar",
"Url": "URL",
"Target": "Dest\u00ed",
"None": "Cap",
"New window": "Finestra nova",
"Remove link": "Treure enlla\u00e7",
"Anchors": "\u00c0ncores",
"Link": "Enlla\u00e7",
"Paste or type a link": "Enganxa o escriu un enlla\u00e7",
"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?": "L'URL que has escrit sembla una adre\u00e7a de correu electr\u00f2nic. Vols afegir-li el prefix obligatori mailto: ?",
"The URL you entered seems to be an external link. Do you want to add the required http:\/\/ prefix?": "L'URL que has escrit sembla un enlla\u00e7 extern. Vols afegir-li el prefix obligatori http:\/\/ ?",
"Link list": "Llista d'enlla\u00e7os",
"Insert video": "Inserir v\u00eddeo",
"Insert\/edit video": "Inserir\/editar v\u00eddeo",
"Insert\/edit media": "Inserir\/editar mitj\u00e0",
"Alternative source": "Font alternativa",
"Poster": "P\u00f3ster",
"Paste your embed code below:": "Enganxau el codi a sota:",
"Embed": "Incloure",
"Media": "Mitjans",
"Nonbreaking space": "Espai fixe",
"Page break": "Salt de p\u00e0gina",
"Paste as text": "Enganxar com a text",
"Preview": "Previsualitzaci\u00f3",
"Print": "Imprimir",
"Save": "Desa",
"Find": "Buscar",
"Replace with": "Rempla\u00e7ar amb",
"Replace": "Rempla\u00e7ar",
"Replace all": "Rempla\u00e7ar-ho tot",
"Prev": "Anterior",
"Next": "Seg\u00fcent",
"Find and replace": "Buscar i rempla\u00e7ar",
"Could not find the specified string.": "No es pot trobar el text especificat.",
"Match case": "Coincidir maj\u00fascules",
"Whole words": "Paraules senceres",
"Spellcheck": "Comprovar ortrografia",
"Ignore": "Ignorar",
"Ignore all": "Ignorar tots",
"Finish": "Finalitzar",
"Add to Dictionary": "Afegir al diccionari",
"Insert table": "Inserir taula",
"Table properties": "Propietats de taula",
"Delete table": "Esborrar taula",
"Cell": "Cel\u00b7la",
"Row": "Fila",
"Column": "Columna",
"Cell properties": "Propietats de cel\u00b7la",
"Merge cells": "Fusionar cel\u00b7les",
"Split cell": "Dividir cel\u00b7les",
"Insert row before": "Inserir fila a sobre",
"Insert row after": "Inserir fila a sota",
"Delete row": "Esborrar fila",
"Row properties": "Propietats de fila",
"Cut row": "Retallar fila",
"Copy row": "Copiar fila",
"Paste row before": "Enganxar fila a sobre",
"Paste row after": "Enganxar fila a sota",
"Insert column before": "Inserir columna abans",
"Insert column after": "Inserir columna despr\u00e9s",
"Delete column": "Esborrar columna",
"Cols": "Cols",
"Rows": "Files",
"Width": "Amplada",
"Height": "Al\u00e7ada",
"Cell spacing": "Espai entre cel\u00b7les",
"Cell padding": "Marge intern",
"Caption": "Encap\u00e7alament",
"Left": "A l'esquerra",
"Center": "Centrat",
"Right": "A la dreta",
"Cell type": "Tipus de cel\u00b7la",
"Scope": "\u00c0mbit",
"Alignment": "Aliniament",
"H Align": "Al\u00edniament H",
"V Align": "Al\u00edniament V",
"Top": "Superior",
"Middle": "Mitj\u00e0",
"Bottom": "Inferior",
"Header cell": "Cel\u00b7la de cap\u00e7alera",
"Row group": "Grup de fila",
"Column group": "Grup de columna",
"Row type": "Tipus de fila",
"Header": "Cap\u00e7alera",
"Body": "Cos",
"Footer": "Peu",
"Border color": "Color de vora",
"Insert template": "Inserir plantilla",
"Templates": "Plantilles",
"Template": "Plantilla",
"Text color": "Color del text",
"Background color": "Color del fons",
"Custom...": "Personalitzar...",
"Custom color": "Personalitzar el color",
"No color": "Sense color",
"Table of Contents": "Taula de continguts",
"Show blocks": "Mostrar blocs",
"Show invisible characters": "Mostrar car\u00e0cters invisibles",
"Words: {0}": "Paraules: {0}",
"{0} words": "{0} paraules",
"File": "Arxiu",
"Edit": "Edici\u00f3",
"Insert": "Inserir",
"View": "Veure",
"Format": "Format",
"Table": "Taula",
"Tools": "Eines",
"Powered by {0}": "Impulsat per {0}",
"Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help": "\u00c0rea de text amb format. Premeu ALT-F9 per mostrar el men\u00fa, ALT F10 per la barra d'eines i ALT-0 per ajuda."
});

261
core/vendor/tinymce/langs/eu.js vendored Normal file
View File

@ -0,0 +1,261 @@
tinymce.addI18n('eu',{
"Redo": "Berregin",
"Undo": "Desegin",
"Cut": "Ebaki",
"Copy": "Kopiatu",
"Paste": "Itsatsi",
"Select all": "Hautatu dena",
"New document": "Dokumentu berria",
"Ok": "Ondo",
"Cancel": "Ezeztatu",
"Visual aids": "Laguntza bisualak",
"Bold": "Lodia",
"Italic": "Etzana",
"Underline": "Azpimarratua",
"Strikethrough": "Marratua",
"Superscript": "Goi-indize",
"Subscript": "Azpiindize",
"Clear formatting": "Garbitu formatua",
"Align left": "Lerrokatu ezkerrean",
"Align center": "Lerrokatu erdian",
"Align right": "Lerrokatu eskuinean",
"Justify": "Justifikatuta",
"Bullet list": "Bulet zerrenda",
"Numbered list": "Zerrenda zenbatua",
"Decrease indent": "Txikitu koska",
"Increase indent": "Handitu koska",
"Close": "Itxi",
"Formats": "Formatuak",
"Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X\/C\/V keyboard shortcuts instead.": "Zure nabigatzaileak ez du arbela zuzenean erabiltzeko euskarririk. Mesedez erabili CTRL+X\/C\/V teklatuko lasterbideak.",
"Headers": "Goiburuak",
"Header 1": "1 Goiburua",
"Header 2": "2 Goiburua",
"Header 3": "3 Goiburua",
"Header 4": "4 Goiburua",
"Header 5": "5 Goiburua",
"Header 6": "6 Goiburua",
"Headings": "Izenburuak",
"Heading 1": "1. izenburua",
"Heading 2": "2. izenburua",
"Heading 3": "3. izenburua",
"Heading 4": "4. izenburua",
"Heading 5": "5. izenburua",
"Heading 6": "6. izenburua",
"Preformatted": "Aurreformateatuta",
"Div": "Div",
"Pre": "Pre",
"Code": "Kodea",
"Paragraph": "Paragrafoa",
"Blockquote": "Blockquote",
"Inline": "Lerroan",
"Blocks": "Blokeak",
"Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.": "Itsatsi testu arrunt moduan dago orain. Edukiak testu arruntak bezala itsatsiko dira aukera hau itzaltzen duzunera arte.",
"Font Family": "Letra-tipo familia",
"Font Sizes": "Letra-tamainak",
"Class": "Klasea",
"Browse for an image": "Irudia arakatu",
"OR": "EDO",
"Drop an image here": "Irudia hona ekarri",
"Upload": "Kargatu",
"Block": "Blokea",
"Align": "Alineatu",
"Default": "Lehenetstia",
"Circle": "Zirkulua",
"Disc": "Diskoa",
"Square": "Karratua",
"Lower Alpha": "Behe alfa",
"Lower Greek": "Behe grekoa",
"Lower Roman": "Behe erromatarra",
"Upper Alpha": "Goi alfa",
"Upper Roman": "Goi erromatarra",
"Anchor": "Esteka",
"Name": "Izena",
"Id": "Id",
"Id should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores.": "Ida hizki batekin hasi behar da, jarraian hizkiak, zenbakiak, gidoiak, puntuak, bi-puntu edo azpiko marrak bakarrik izan ditzake.",
"You have unsaved changes are you sure you want to navigate away?": "Gorde gabeko aldaketak dituzu, zihur zaude hemendik irten nahi duzula?",
"Restore last draft": "Leheneratu azken zirriborroa",
"Special character": "Karaktere bereziak",
"Source code": "Iturburu-kodea",
"Insert\/Edit code sample": "Txertatu\/editatu kode adibidea",
"Language": "Hizkuntza",
"Code sample": "Kode adibidea",
"Color": "Kolorea",
"R": "R",
"G": "G",
"B": "B",
"Left to right": "Ezkerretik eskuinera",
"Right to left": "Eskuinetik ezkerrera",
"Emoticons": "Irrifartxoak",
"Document properties": "Dokumentuaren propietateak",
"Title": "Titulua",
"Keywords": "Hitz gakoak",
"Description": "Deskribapena",
"Robots": "Robotak",
"Author": "Egilea",
"Encoding": "Encoding",
"Fullscreen": "Pantaila osoa",
"Action": "Akzioa",
"Shortcut": "Laster tekla",
"Help": "Laguntza",
"Address": "Helbidea",
"Focus to menubar": "Fokoa menu-barrara eraman",
"Focus to toolbar": "Fokoa tresna-barrara eraman",
"Focus to element path": "Fokoa elementuaren bidera eraman",
"Focus to contextual toolbar": "Fokoa kontestuko tresna-barrara eraman",
"Insert link (if link plugin activated)": "Lotura txertatu (lotura plugina aktibatuta badago)",
"Save (if save plugin activated)": "Gorde (gordetzeko plugina aktibatuta badago)",
"Find (if searchreplace plugin activated)": "Bilatu (bilatuordezkatu plugina instalatuta badago)",
"Plugins installed ({0}):": "Instalatutako pluginak ({0}):",
"Premium plugins:": "Premium pluginak:",
"Learn more...": "Gehiago ikasi...",
"You are using {0}": "{0} erabiltzen ari zara",
"Plugins": "Pluginak",
"Handy Shortcuts": "Laster-tekla erabilgarriak",
"Horizontal line": "Marra horizontala",
"Insert\/edit image": "Irudia txertatu\/editatu",
"Image description": "Irudiaren deskribapena",
"Source": "Iturburua",
"Dimensions": "Neurriak",
"Constrain proportions": "Zerraditu proportzioak",
"General": "Orokorra",
"Advanced": "Aurreratua",
"Style": "Estiloa",
"Vertical space": "Hutsune bertikala",
"Horizontal space": "Hutsune horizontala",
"Border": "Ertza",
"Insert image": "Irudia txertatu",
"Image": "Irudia",
"Image list": "Irudi zerrenda",
"Rotate counterclockwise": "Erlojuaren aurkako eran biratu",
"Rotate clockwise": "Erlojuaren eran biratu",
"Flip vertically": "Bertikalki irauli",
"Flip horizontally": "Horizontalki irauli",
"Edit image": "Irudia editatu",
"Image options": "Irudiaren aukerak",
"Zoom in": "Zooma handiagotu",
"Zoom out": "Zooma txikiagotu",
"Crop": "Moztu",
"Resize": "Tamaina aldatu",
"Orientation": "Orientazioa",
"Brightness": "Distira",
"Sharpen": "Zorroztu",
"Contrast": "Kontrastatu",
"Color levels": "Kolore mailak",
"Gamma": "Gamma",
"Invert": "Biratu",
"Apply": "Gorde",
"Back": "Atzera",
"Insert date\/time": "Data\/ordua txertatu",
"Date\/time": "Data\/ordua",
"Insert link": "Esteka txertatu",
"Insert\/edit link": "Esteka txertatu\/editatu",
"Text to display": "Bistaratzeko testua",
"Url": "Url",
"Target": "Target",
"None": "Bat ere ez",
"New window": "Lehio berria",
"Remove link": "Kendu esteka",
"Anchors": "Estekak",
"Link": "Lotura",
"Paste or type a link": "Itsatsu edo idatzi lotura",
"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?": "Sartu duzun URL-ak e-posta helbidea dela dirudi. Nahi duzu dagokion mailto: aurrizkia gehitzea?",
"The URL you entered seems to be an external link. Do you want to add the required http:\/\/ prefix?": "Sartu duzun URL-ak kanpoko esteka dela dirudi. Nahi duzu dagokion http:\/\/ aurrizkia gehitzea?",
"Link list": "Loturen zerrenda",
"Insert video": "Bideoa txertatu",
"Insert\/edit video": "Bideoa txertatu\/editatu",
"Insert\/edit media": "Media txertatu\/editatu",
"Alternative source": "Iturburu alternatiboa",
"Poster": "Poster-a",
"Paste your embed code below:": "Itsatsi hemen zure enkapsulatzeko kodea:",
"Embed": "Kapsulatu",
"Media": "Media",
"Nonbreaking space": "Zuriune zatiezina",
"Page break": "Orrialde-jauzia",
"Paste as text": "Itsatsi testu bezala",
"Preview": "Aurrebista",
"Print": "Inprimatu",
"Save": "Gorde",
"Find": "Bilatu",
"Replace with": "Honekin ordeztu",
"Replace": "Ordeztu",
"Replace all": "Ordeztu dena",
"Prev": "Aurrekoa",
"Next": "Hurrengoa",
"Find and replace": "Bilatu eta ordeztu",
"Could not find the specified string.": "Ezin izan da zehaztutako katea aurkitu.",
"Match case": "Maiuskula\/minuskula",
"Whole words": "hitz osoak",
"Spellcheck": "Egiaztapenak",
"Ignore": "Ez ikusi",
"Ignore all": "Ez ikusi guztia",
"Finish": "Amaitu",
"Add to Dictionary": "Hiztegira gehitu",
"Insert table": "Txertatu taula",
"Table properties": "Taularen propietateak",
"Delete table": "Taula ezabatu",
"Cell": "Gelaxka",
"Row": "Errenkada",
"Column": "Zutabea",
"Cell properties": "Gelaxkaren propietateak",
"Merge cells": "Batu gelaxkak",
"Split cell": "Banatu gelaxkak",
"Insert row before": "Txertatu errenkada aurretik",
"Insert row after": "Txertatu errenkada ostean",
"Delete row": "Ezabatu errenkada",
"Row properties": "Errenkadaren propietateak",
"Cut row": "Ebaki errenkada",
"Copy row": "Kopiatu errenkada",
"Paste row before": "Itsatsi errenkada aurretik",
"Paste row after": "Itsatsi errenkada ostean",
"Insert column before": "Txertatu zutabe aurretik",
"Insert column after": "Txertatu zutabea ostean",
"Delete column": "Ezabatu zutabea",
"Cols": "Zutabeak",
"Rows": "Errenkadak",
"Width": "Zabalera",
"Height": "Altuera",
"Cell spacing": "Gelaxka arteko tartea",
"Cell padding": "Gelaxken betegarria",
"Caption": "Epigrafea",
"Left": "Ezkerra",
"Center": "Erdia",
"Right": "Eskuina",
"Cell type": "Gelaxka mota",
"Scope": "Esparrua",
"Alignment": "Lerrokatzea",
"H Align": "Lerrokatze horizontala",
"V Align": "Lerrokatze bertikala",
"Top": "Goian",
"Middle": "Erdian",
"Bottom": "Behean",
"Header cell": "Goiburuko gelaxka",
"Row group": "Lerro taldea",
"Column group": "Zutabe taldea",
"Row type": "Lerro mota",
"Header": "Goiburua",
"Body": "Gorputza",
"Footer": "Oina",
"Border color": "Inguruko marraren kolorea",
"Insert template": "Txertatu txantiloia",
"Templates": "Txantiloiak",
"Template": "Txantiloia",
"Text color": "Testuaren kolorea",
"Background color": "Atzeko kolorea",
"Custom...": "Pertsonalizatu",
"Custom color": "Pertsonalizatutako kolorea",
"No color": "Kolorerik ez",
"Table of Contents": "Edukien taula",
"Show blocks": "Erakutsi blokeak",
"Show invisible characters": "Erakutsi karaktere izkutuak",
"Words: {0}": "Hitzak: {0}",
"{0} words": "{0} hitz",
"File": "Fitxategia",
"Edit": "Editatu",
"Insert": "Sartu",
"View": "Ikusi",
"Format": "Formatua",
"Table": "Taula",
"Tools": "Tresnak",
"Powered by {0}": "{0}rekin egina",
"Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help": "Testu aberastuko area. Sakatu ALT-F9 menurako. Sakatu ALT-F10 tresna-barrarako. Sakatu ALT-0 laguntzarako"
});

View File

@ -4,8 +4,6 @@ $lang = $this->getData(['config', 'i18n', 'langBase']);
if ( !empty($_COOKIE["DELTA_I18N_SITE"])) {
if( $this->getInput('DELTA_I18N_SITE') !== 'base' ) $lang = $this->getInput('DELTA_I18N_SITE');
}
// Si une autre langue est détectée, tinymce suivra la langue d'administration
if( !isset(core::$i18nList[$lang] )) $lang = $this->getData(['config', 'i18n', 'langAdmin']);
$lang_page = $lang;
switch ($lang) {
case 'en' :
@ -21,7 +19,17 @@ switch ($lang) {
$lang_page = 'fr_FR';
break;
}
// Si la langue n'est pas supportée par Tinymce la langue d'administration est utilisée
if( ! file_exists( 'core/vendor/tinymce/langs/'.$lang_page.'.js' )){
switch ($this->getData(['config', 'i18n', 'langAdmin'])) {
case 'en' :
$lang_page = 'en_GB';
break;
case 'fr' :
$lang_page = 'fr_FR';
break;
}
}
echo '<script> var lang_admin = "'.$lang_page.'"; </script>';
echo '<script src="'. helper::baseUrl(false).'core/vendor/tinymce/tinymce.min.js"></script>';
echo '<script src="'. helper::baseUrl(false).'core/vendor/tinymce/init.js"></script>';