Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 37

Thread: Automatic language translation

  1. #21
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    5,966
    Have you read the thread. I have already mentioned to you. If you donít like it donít use it. Write your own.I have also (in this thread) shown how to provide your own corrections.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  2. #22
    Senior Member
    Join Date
    Apr 2012
    Location
    United Kingdom
    Posts
    516
    Hi Barry,

    Yes I read through it. My concern was that since it is stored locally on the client it would not give the opportunity for us as developers to set it all up before we send out the application to users, which is what I do at the moment with my VFP app.

    Very impressive feature and I'm sure it will be awesome for most users.

    David

  3. #23
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,010
    >> [QUOTE}Thats what the app text translator does.[/QUOTE]

    Oh -- so that's the custom text translator you mentioned. How's that work?

    Hank

  4. #24
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    5,966
    Quote Originally Posted by avianmanagement View Post
    Hi Barry,

    Yes I read through it. My concern was that since it is stored locally on the client it would not give the opportunity for us as developers to set it all up before we send out the application to users, which is what I do at the moment with my VFP app.

    Very impressive feature and I'm sure it will be awesome for most users.

    David
    Not the case. I will document how to override translations prior to general release. You are off on the wrong track with this.

    You don’t send out web/mobile apps to users as they are delivered from the cloud. This is completely different to distributing desktop apps which this functionality has nothing to do with.

    This is under development and you have not yet even seen it in operation so be patient and wait.
    Last edited by barrymavin; 2020-10-29 at 19:06.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  5. #25
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    5,966
    It will be explained in the doc prior to general release.

    The text translation delegate has been in the product for a while but is better integrated in 5.5 (next general release).

    https://www.lianja.com/doc/index.php/Text_Translator
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  6. #26
    Senior Member
    Join Date
    Apr 2012
    Location
    United Kingdom
    Posts
    516
    Sorry I meant the preloaded data in the database they web or mobile cline tis hitting rather than the app itself.

    Look forward to see it when released

  7. #27
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    5,966
    This is now included in Lianja 5.5Beta7.

    Open and run example_webapp1 to see how it operates.

    Quick setup:

    In the App attributes

    1. Check "Enable user translate"
    2. Check "Enable google translate"

    Now run your app in the browser and switch languages by clicking on the flag in the HeaderBar

    If you don't like some of the translations you can override them with your own custom ones.

    In your app create a file loadcustomtranslations.rsp and output as JSON the custom translations (see wwwroot:/loadcustomtranslations.rsp for an example of how to do this).

    Example:

    Code:
    <%@ Language=VFP %>
    <%
        private data, item
        private lang = _args["LANG"]
        data = array()
    
    
        // foreach word or phrase, each translation item is lang,origtext,newtext
        item = object()
        item.lang = lang
        item.origtext = "lianjadev"
        item.newtext  = "Barry Mavin"
        data[] = item
        print_json( data )
    %>
    Both the system-wide loadcustomtranslations.rsp and the app specific loadcustomtranslations.rsp are loaded if they exist.

    In the final release the system-wide loadcustomtranslations.rsp will send custom translations from system!systranslations (a new system table).

    This table has a simple structure.

    lang char(8)
    origtext char(255)
    new text char(255)

    You can of course update this table yourself if you see fit but it is more of a system-wide table shared by all apps.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  8. #28
    Member
    Join Date
    Feb 2012
    Location
    Earth.Europe.Germany.Bavaria.Obing
    Posts
    35
    Perfect, Thanks!
    wOOdy

  9. #29
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,010
    Hi Barry,

    That _is_ perfect, thanks.

    Hank

  10. #30
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,010
    Hi Barry,

    So how would this work where one customer wants "Facility" labeled "Store" and the other customer would like Facility labeled "Kiosk", assuming these were tenanted apps on the same server. On their own servers no issue, of course.

    thanks,

    Hank

Page 3 of 4 FirstFirst 1234 LastLast

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us