Skip to Content
author's profile photo Former Member
Former Member

Change label language

Hi,

i have a bsp application. In it, i use OTR to make it multi language. But i use the htmlb object Upload. My question is : how can i change label of the browse button ? Because, i am French and it's write "Parcourir ..." but i have choose English as language of my application (OTR are well translated)

Thanks

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 06, 2004 at 09:16 AM

    About 5 messages ago they talked about this topic.

    MVC stateful switch Language?

    Reading through the message I notice that the solution they give should work for you as well. You'll have to try it though.

    <%  
       SET LOCALE LANGUAGE 'S'.          
    %>
    <OTR>Test</OTR><br>
    

    You can also check out this great weblog: <a href="/people/thomas.jung3/blog/2004/07/13/bsp-150-a-developer146s-journal-part-vii--dealing-with-multiple-languages-english-german-spanish-thai-and-polish – a Developer’s Journal: Part VII - Dealing with multiple languages (English, German, Spanish, Thai, and Polish)</a>

    Message was edited by: Craig Cmehil

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      You mena your browser language itself or just the language of the "file" button?

      Have you looked at this topic? File browser, opps of course you have you participated in the discussion.

      The browser language itself comes from the PC so if your Operating system is English typically your browser buttons such <input type="file"> shows the button in English but if your OS is German then typically it shows it in German.

      OK if I am off base here you'll need to be a bit more specific please.

  • Posted on Aug 06, 2004 at 09:58 AM

    Hi Cedric,

    have you tried it with the following:

    set the attribute of htmlb:fileUpload

    upload-text = "<%= otr(alias) %>" where alias is the alias of the name in the OTR.

    You can make entries or look at entries via

    se80 -> Goto -> OTR Browser

    There you can set an alias for your object and translate it in every language. Maybe there is already an entry for 'Upload'.

    Hoping this helps.

    Regards,

    Rainer

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Brian McKellar

      Just to completely beat the horse dead...

      File" target="_blank">http://www.cs.tut.fi/~jkorpela/forms/file.html">File Input Field

      Particulary interesting in this site is the linkhttp://groups.google.com/groups?oi=djq&as_umsgid=%3C38119FEE.DFF60EBA%40sector27.de%3E">link> that points to this message

      With <a href="http://developer.netscape.com/docs/manuals/communicator/jsguide/scripts.htm">signed script</a> in NN
       
      netscape.security.PrivilegeManager.enablePrivilege('UniversalBrowserWrite');
        document.formName.inputName.value = 'whatever'
      

      And with that it begs the question, where is the hole in IE that allows that as well?

      Some have chosen the ActiveX approach which causes not only problems but also concerns.

      Others have chosen something like this:

      <form>
       <input type="file" name="myfile" style="display:none" onchange="fileName=this.value"> 
       <input type="button" value="open file" onclick="myfile.click()"></p>
       <input type="button" value="show value" onclick="alert(fileName)"> </p>
      </form>
      

      As you can see the button activates the file upload since the file upload is actually hidden on the page.

      With that (considering most is just re-stating previous messages) I would say that perhaps one of the moderators might lock this message?