Merge pull request #2502 from Jennydmz/master
BUG_13887 Permite eliminacion del lenguaje actual.
This commit is contained in:
@@ -152,6 +152,8 @@ try {
|
|||||||
$oContent = new Content();
|
$oContent = new Content();
|
||||||
$aRow = $oDataset->getRow();
|
$aRow = $oDataset->getRow();
|
||||||
|
|
||||||
|
if($locale != "en"){ //Default Lengage 'en'
|
||||||
|
if($locale != SYS_LANG){ //Current lenguage
|
||||||
//THERE IS NO ANY CASE STARTED FROM THES LANGUAGE
|
//THERE IS NO ANY CASE STARTED FROM THES LANGUAGE
|
||||||
if ($aRow[0] == 0) { //so we can delete this language
|
if ($aRow[0] == 0) { //so we can delete this language
|
||||||
try {
|
try {
|
||||||
@@ -164,6 +166,12 @@ try {
|
|||||||
} else {
|
} else {
|
||||||
echo str_replace( '{0}', $aRow[0], G::LoadTranslation( 'ID_LANGUAGE_CANT_DELETE' ) );
|
echo str_replace( '{0}', $aRow[0], G::LoadTranslation( 'ID_LANGUAGE_CANT_DELETE' ) );
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
echo str_replace( '{0}', $aRow[0], G::LoadTranslation( 'ID_LANGUAGE_CANT_DELETE_CURRENTLY' ) );
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
echo str_replace( '{0}', $aRow[0], G::LoadTranslation( 'ID_LANGUAGE_CANT_DELETE_DEFAULT' ) );
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} catch (Exception $oException) {
|
} catch (Exception $oException) {
|
||||||
|
|||||||
Reference in New Issue
Block a user