#IF(#DELETE)
{Warning}
{AcceptAction}
#LOOP(#DeleteObjects)
#ENDLOOP
#ELSIF(#FeatureMaxValueReached)
{Notification}
{CouldNotCreateObject}
{FeatureMaxValue} #Shop.FeatureMaxValue.Languages
#INCLUDE("FeaturePromotion")
#ELSIF(#Shop.FeatureCurrentValue.Languages NGE #Shop.FeatureMaxValue.Languages)
{Notification}
{FeatureMaxValueReached}
{FeatureMaxValue} #Shop.FeatureMaxValue.Languages
#INCLUDE("FeaturePromotion")
#ENDIF
#IF((NOT(#DELETE))AND(NOT(#DELETE_LAST))AND(NOT(#FormError)))
#IF ((#COUNT(#Shop.SiteLocales) NGE 2)AND(NOT(#Shop.DefaultStyle.Child.NavBarElements.Child.LocaleFlags))AND(NOT(#Shop.DefaultStyle.Child.NavBarElements.Child.LocaleBox)))
#ENDIF
#IF ((#COUNT(#Shop.SiteLocales) NEQ 1)AND(#Shop.DefaultStyle.Child.NavBarElements.Child.LocaleFlags OR #Shop.DefaultStyle.Child.NavBarElements.Child.LocaleBox))
#ENDIF
#ENDIF
#IF(#DELETE_LAST)
{Attention}
{DeleteLast}
#ENDIF
#IF(#DELETE_LAST_BO)
{Attention}
{DeleteLastBO}
#ENDIF
#LOCAL("ErrorLocaleID", 0)
#IF(#FormError)
{InputError}
#IF(#FormErrors.Reason.LOCALE_NOT_ACTIVE)
#LOOP(#FormErrors.Errors)
#SET("ErrorLocaleID", #Value)
#ENDLOOP
{CannotDeleteDefault}
#ELSIF(#FormErrors.Reason.CANNOT_DELETE_DEFAULT)
#LOOP(#FormErrors.Errors)
#IF(#DEFINED(#Value))#SET("ErrorLocaleID", #Value)#ENDIF
#ENDLOOP
{CannotDeleteDefault}
#ELSE
{PleaseCorrectErrors}
#ENDIF
#ENDIF
|
{Language} / {Country} |
{Visible} |
{IsDefault} |
{Position} {Language} |
{Position} {Country} |
|
#IF(#DELETE)
#LOOP(#DeleteObjects)
|
#Native#IF(#Native NE #English) (#English)#ENDIF
#Native (#English, #French)
{Code3} |
#Code2 (#Code3) |
|
|
|
|
|
#ENDLOOP
#ELSE
#LOCAL("Alternate",0)
#LOCAL("ShopLocaleID", #LocaleID)
#LOOP(#Shop.Child.Languages.ChildObjects)
#SET("Alternate",1-#Alternate)
#LOCAL("LanguageDisabled",0)
#LOOP(#Shop.SiteLocales)#IF(#LanguageID EQ #Language.LanguageID)#SET("LanguageDisabled",1)#ENDIF#ENDLOOP
#ENDLOCAL
|
#Native#IF(#Native NE #English) (#English)#ENDIF
#Native (#English, #French)
{Code3} |
#Code2 (#Code3) |
|
|
|
|
|
#LOOP(#Locales)
#LOCAL("ISACTIVE",0)
#LOCAL("LangLocaleID",#LocaleID)
#LOOP(#SiteLocales)
#IF(#LocaleID EQ #LangLocaleID)
#SET("ISACTIVE",1)
#ENDIF
#ENDLOOP
|
#IF(#FlagGif) #ActiveFlagGif#ELSE#InactiveFlagGif#ENDIF) #ENDIF #Country.Native #IF(#Country.English NE #Country.Native)(#Country.English)#ENDIF
#LOCAL("Locale", #LocaleID)
#Country.Native #IF(#Country.English NE #Country.Native)(#Country.English)#ENDIF
{Alias} |
#LocaleID |
{ThousandSep} |
#ThousandSep |
{DecimalSep} |
#DecimalSep |
{DateFormat} |
#Now[datetime] |
{MoneyFormat} |
#LOCAL("MoneyExample",12345.67)#MoneyExample[money] #MoneyExample[neg,money]#ENDLOCAL |
#ENDLOCAL
|
|
|
|
#IF(#ISACTIVE) #ENDIF
|
#ENDLOCAL
#ENDLOCAL
#SET("Alternate",1-#Alternate)
#ENDLOOP
#ENDLOOP
#ENDLOCAL
#ENDLOCAL
#LOCAL("NoNewEntry", (#Shop.FeatureCurrentValue.Languages NGE #Shop.FeatureMaxValue.Languages AND #Shop.FeatureMaxValue.Languages NE 1))
|
|
#ENDLOCAL
#ENDIF
#IF(#DELETE)
#ELSE
#IF(#COUNT(#Shop.Languages) NNE 1)
#ENDIF
#ENDIF
#ENDLOCAL
#IF(NOT #DELETE)