ok, sorry for inconvenience, thanks
2013/11/4 Adrian Crum <[email protected]> > Your question was answered: > > > Just update the framework/common/config/general.properties > change > #locales.available=ar,de,en,es,fr,hi,it,nl,pt,ro,ru,th,zh > to > locales.available=en,fr > > > Adrian Crum > Sandglass Software > www.sandglass-software.com > > > On 11/3/2013 3:10 PM, Antony Adopo wrote: > >> I see what you want tell me. but is it not possible to say <#list >> availableLocales as availableLocale where availableLocale='en' or 'fr'>? >> >> >> 2013/11/3 Jacques Le Roux <[email protected]> >> >> >>> https://cwiki.apache.org/confluence/display/OFBTECH/ >>> Apache+OFBiz+Technical+Production+Setup+Guide# >>> ApacheOFBizTechnicalProductionSetupGuide-Currency%2CLocale% >>> 2CTimeZoneSettings >>> >>> Jacques >>> >>> Jacques Le Roux wrote: >>> >>>> xxshutong answered you, you might also consult the docmentation >>>> >>>> https://cwiki.apache.org/confluence/display/OFBENDUSER/ >>> Apache+OFBiz+Business+Setup+Guide?focusedCommentId= >>> 8192400#comment-8192400 >>> >>>> >>>> Jacques >>>> >>>> Antony Adopo wrote: >>>> >>>>> ok. this the code for dropdown box for language in ecommerce app: >>>>> >>>>> <form method="post" name="chooseLanguage" >>>>> action="<@ofbizUrl>setSessionLocale</@ofbizUrl>"> >>>>> <select name="newLocale" class="selectBox" style="width:95%" >>>>> onchange="submit()"> >>>>> <#assign availableLocales = >>>>> Static["org.ofbiz.base.util.UtilMisc"].availableLocales()/> >>>>> <#list availableLocales as availableLocale> >>>>> <#assign langAttr = availableLocale.toString()?replace("_", >>>>> >>>> "-")> >>> >>>> <#assign langDir = "ltr"> >>>>> <#if "ar.iw"?contains(langAttr?substring(0, 2))> >>>>> <#assign langDir = "rtl"> >>>>> </#if> >>>>> <option lang="${langAttr}" dir="${langDir}" >>>>> value="${availableLocale.toString()}"<#if locale.toString() = >>>>> availableLocale.toString()> >>>>> >>>>> selected="selected"</#if>>${availableLocale.getDisplayName( >>> availableLocale)}</option> >>> >>>> </#list> >>>>> </select> >>>>> >>>>> But I want only english and french language. not all >>>>> >>>>> How do this? >>>>> >>>>> >>>>> 2013/11/3 xxshutong <[email protected]> >>>>> >>>>> Just update the framework/common/config/general.properties >>>>>> change >>>>>> #locales.available=ar,de,en,es,fr,hi,it,nl,pt,ro,ru,th,zh >>>>>> to >>>>>> locales.available=your language >>>>>> >>>>>> On Nov 3, 2013, at 10:46 AM, Antony Adopo <[email protected]> wrote: >>>>>> >>>>>> Helle Ofbizers. >>>>>>> Please how to select only two language to stay in my "select balise" >>>>>>> instead of putting all languages? >>>>>>> >>>>>>> thanks >>>>>>> >>>>>> >>> >>
