Alpha Video Training
Results 1 to 7 of 7

Thread: Translation of a5w pages to other language

  1. #1
    Member
    Real Name
    Rune Back
    Join Date
    Jul 2011
    Location
    Jakobstad, Finland
    Posts
    58

    Default Translation of a5w pages to other language

    Does anyone know if there's an easy way of translating a5w pages into other languages?

  2. #2
    Member
    Real Name
    Vadim
    Join Date
    Jul 2011
    Location
    Moscow
    Posts
    44

    Default Re: Translation of a5w pages to other language

    What do you mean by translating?

    Other languages is realy a problem as far as windows forms and web menus are concerned.
    But technically you just make a template with your html text and paste it into a5w page.
    your encoding should be utf8, but ansi encoding somtimes is better.
    Keep in mind that a5 every time rewrites encoding tag of the head section to 'utf-8'.
    that's why I have a script that rewrite this tag back for the whole directory of a5w files.

    That's all.

  3. #3
    Member
    Real Name
    Rune Back
    Join Date
    Jul 2011
    Location
    Jakobstad, Finland
    Posts
    58

    Default Re: Translation of a5w pages to other language

    I have a whole bunch of a5w pages ready and in use. The problem is that I now need to have them translated to a couple of other languages. The technical part is easy; you just use HTML Entity for a few "special" letters. At least with the languages I'm dealing with. With ex. Russian and Greek I'm sure you may want to do it differently. - Interesting the way you've found!

    When I make a web page in PHP I put everything that comes out on the screen in a MySQL file. In order to translate the page to another language I copy the file and have the new file translated to the other language. That way, the only thing I need to do in the PHP code itself is change the value of one variable (maybe just a cookie or a session variable) in order to get the whole page working in the new language.

    That may or may not be possible in A5. However, I'm looking for a way to at least get out a list of ALL text, including AJAX callbacks that certain a5w pages may show on the screen, so that I can have the list translated. Then it would also be nice to have an easy way to update the translated list in the a5w files. - If I can't get out this list, I have to go through all a5w pages (and there are many of them), especially trying to find all AJAX call backs, make a list of them and have it translated. After that I will go through all the a5w pages again, trying not to miss anything, and update all comments to the new language. - A lot of work, when it's possible to do it in an easier way.
    Last edited by Runback; 09-20-2011 at 11:41 PM.

  4. #4
    Member
    Real Name
    Vadim
    Join Date
    Jul 2011
    Location
    Moscow
    Posts
    44

    Default Re: Translation of a5w pages to other language

    You can't translate web-components inside a5w pages because they are compiled into binary code.
    If you need to translate the components - you should read the tutorial for building multilanguage ones.

    The problem you can get into is encoding of greek and russian caracters.
    Have a look at this threads, they are steel actual.

    http://msgboard.alphasoftware.com/al...light=encoding
    http://msgboard.alphasoftware.com/al...light=encoding


    Keep in mind that the problem steel exist and will exist for a long time. Just because the developers made a mistake when they projected A5 and now it is a hard task to solve it. Mostly because of being busy with v.11 development.


    upd: have a look at the video on the page below
    http://wiki.alphasoftware.com/A5V10+...t+for+Web+apps
    Last edited by webzee; 09-21-2011 at 04:33 AM. Reason: update

  5. #5
    "Certified" Alphaholic
    Real Name
    eric
    Join Date
    Mar 2009
    Location
    Amsterdam
    Posts
    1,284

    Default Re: Translation of a5w pages to other language

    Quote Originally Posted by Runback View Post
    I have a whole bunch of a5w pages ready and in use. The problem is that I now need to have them translated to a couple of other languages. The technical part is easy; you just use HTML Entity for a few "special" letters. At least with the languages I'm dealing with. With ex. Russian and Greek I'm sure you may want to do it differently. - Interesting the way you've found!

    When I make a web page in PHP I put everything that comes out on the screen in a MySQL file. In order to translate the page to another language I copy the file and have the new file translated to the other language. That way, the only thing I need to do in the PHP code itself is change the value of one variable (maybe just a cookie or a session variable) in order to get the whole page working in the new language.

    That may or may not be possible in A5. However, I'm looking for a way to at least get out a list of ALL text, including AJAX callbacks that certain a5w pages may show on the screen, so that I can have the list translated. Then it would also be nice to have an easy way to update the translated list in the a5w files. - If I can't get out this list, I have to go through all a5w pages (and there are many of them), especially trying to find all AJAX call backs, make a list of them and have it translated. After that I will go through all the a5w pages again, trying not to miss anything, and update all comments to the new language. - A lot of work, when it's possible to do it in an easier way.
    A workaround if you don't want to use or can't use alpha translations tags is a google translation script directly inside you main index page.
    Maybe not the best solution but a an acceptable alternative for the moment.

  6. #6
    Member
    Real Name
    Rune Back
    Join Date
    Jul 2011
    Location
    Jakobstad, Finland
    Posts
    58

    Default Re: Translation of a5w pages to other language

    Google translation ... well, yeah ... better than nothing ... but it's not good enough for professional use.

    But "multilanguage" pages and "alpha translations tags" sounds interesting. I'll have a look into those themes. - If it would be possible to set a pointer instead of a word/sentence (instead of ex. "Name:" or "You forgot to fill in your address!"), we would be far along the way towards finding a smart solution.

  7. #7
    Member
    Real Name
    Rune Back
    Join Date
    Jul 2011
    Location
    Jakobstad, Finland
    Posts
    58

    Default Re: Translation of a5w pages to other language

    Thanks to you guys I found the answer here:

    http://www.ajaxvideotutorials.com/V1...efinitions.swf
    http://www.ajaxvideotutorials.com/V1...efinitions.swf
    http://www.ajaxvideotutorials.com/V1...zeLanguage.swf

    I commend the architcts of A5 for finding a practical way to solve this problem!

Similar Threads

  1. A5V10 language translation
    By John Cunradi in forum Alpha Five Version 10 - Desktop Applications
    Replies: 5
    Last Post: 04-28-2011, 02:19 PM
  2. Translation of web pages
    By Keith Hubert in forum Application Server Version 10 - Web/Browser Applications
    Replies: 1
    Last Post: 09-26-2009, 02:24 PM
  3. code in a5w pages
    By richard2007 in forum Application Server Version 9 - Web/Browser Applications
    Replies: 11
    Last Post: 01-12-2009, 06:30 AM
  4. Licensing & Language/Translation questions
    By Azaze1 in forum Alpha Five Version 9 - Desktop Applications
    Replies: 4
    Last Post: 05-10-2008, 06:47 PM
  5. Very slow a5w pages still?
    By Hansolo in forum Web Application Server v6
    Replies: 10
    Last Post: 03-11-2005, 06:09 PM

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
  •