#BLOCK("WITH_FORM_ERROR", #FormError)
#IF(#FormError)

{Error}

#IF(#FormErrors.Reason.CanNotDeleteAllLanguages) {CanNotDeleteAllLanguages} #ENDIF #IF(#FormErrors.Reason.CanNotDeactivateAllLanguages) {CanNotDeactivateAllLanguages} #ENDIF #IF(#FormErrors.Reason.CanNotDeleteDefaultLanguage) {CanNotDeleteDefaultLanguage} #ENDIF #IF(#FormErrors.Reason.CanNotDeleteLanguage) {CanNotDeleteLanguage} #ENDIF
#ENDIF #IF(#DEFINED(#AddedLanguage))

{Notification}

#TRANSLATE(#AddedLanguage.Code3) {LanguageSuccessfullyAdded}
#IF(#DEFINED(#AddedLocaleCountry)) #IF(#Shop.FeatureMaxValue.Languages NGT 1 OR #Shop.FeatureMaxValue.Regions NGT 0) #AddedLocaleCountry.Native#IF(#AddedLocaleCountry.Native NE #AddedLocaleCountry.English) (#AddedLocaleCountry.English)#ENDIF {AddedToCountries} {EditCountries} #ENDIF #ENDIF
#ENDIF #IF(#DEFINED(#LanguageSetVisible)) #IF(#COUNT(#LanguageSetVisible) > 1)

{Notification}

{LanguageSetVisiblePlural}
    #LOOP(#LanguageSetVisible)
  • #TRANSLATE(#Code3)
  • #ENDLOOP
#ELSE

{Notification}

{LanguageSetVisibleSingular}
    #LOOP(#LanguageSetVisible)
  • #TRANSLATE(#Code3)
  • #ENDLOOP
#ENDIF #ENDIF #IF(#DEFINED(#LanguageSetVisibleFromSwitch)) #LOOP(#LanguageSetVisibleFromSwitch)

{Notification}

#TRANSLATE(#Code3) {LanguageSetVisibleFromSwitch}
#ENDLOOP #ENDIF #IF(#DELETE)

{AcceptActionInfo}

#REM #ENDREM
#ELSE #IF(#Shop.FeatureCurrentValue.Languages NGE #Shop.FeatureMaxValue.Languages)

{Notification}

{FeatureMaxValueReached}
#INCLUDE("FeaturePromotion")
#ENDIF
#IF(#Shop.FeatureMaxValue.Languages != 1) {LanguageInfo1}
#ENDIF {LanguageInfo2}
#ENDIF #IF(NOT #DELETE) #SNIPPET("INC-BatchActions", "BatchActions", "BatchActions") #REM #ENDREM #REM #ENDREM #IF(#FormError_NewLanguageID) #ENDIF #ENDIF #IF(#DELETE) #LOCAL("ShopLanguageID", "") #LOOP(#ShopLanguages) #SET("ShopLanguageID", #LanguageID) #LOOP(#DeleteObjects) #IF(#ShopLanguageID EQ #LanguageID) #ENDIF #ENDLOOP #ENDLOOP #ENDLOCAL #ELSE #LOOP(#SORT(#ShopLanguages,"English")) #ENDLOOP #ENDIF
{Language} {Visibility}
#TRANSLATE(#Code3) #SNIPPET("INC-Status", "IsNotVisible", #IsNotActive)
#TRANSLATE(#ShopDefaultLanguage.Code3) #SNIPPET("INC-Status", "IsNotVisible", #ShopDefaultLanguage.IsNotActive)
#TRANSLATE(#Code3) #SNIPPET("INC-Status", "IsNotVisible", #IsNotActive)
#IF(#DELETE)
#ENDIF
#ENDBLOCK