5 Replies Latest reply on Jan 17, 2013 11:36 AM by Akash_Chaturvedi

    ADF Internationalization

    fakhri.kharrat
      hi,
      i'm using jdev 11.1.2.3

      I'm trying to set multi language in my project
      I want to select the language from the beginning and independently of the browser lang

      for that i created two files that contain all translate text in two languages

      myerp.properties for english and myerp_fr.properties for frensh :


      all.save=Save
      all.cancel=Cancel
      all.back=Back
      all.first=First
      all.next=Next
      all.previous=Previous
      all.last=Last

      login.username=User Name
      login.password=Password
      login.button=Login
      login.title=Login Form
      index.dashboard=Dashboard

      and for example i made reference in my text label : #{viewcontrollerBundle['login.username']}, when I refer to the ressouce bundle myerp for english there's a line created automatically in my page, and same thing when i refer to the resource bundle myerp_fr :

      <c:set var="viewcontrollerBundle" value="#{adfBundle['myerp']}"/>
      <c:set var="viewcontrollerBundle1" value="#{adfBundle['myerp_fr']}"/>

      my question is how can i programmatically set a value of viewcontrollerBundle to adfBundle['myerp'] when i choose english language, when I login to my application, and adfBundle['myerp_fr'] if not


      same thing for business layer, automatically created ModelBundle.properties, i did the same thing ModelBundle_fr.properties

      so how can I do to make a language selection for model layer

      Thanks

      Edited by: fakhri_tn on Jan 16, 2013 1:37 AM