+ Reply to Thread
Results 1 to 5 of 5

Thread: Change page source info?

  1. #1

    Change page source info?

    Hi Flynax,

    When I view page source I can see these 2 line

    lang['flynax_connect_fail'] = 'Unable to reach Flynax Server.';
    flynax.langSelector();
    Can I change these two lines to:

    lang['database_connect_fail'] = 'Unable to reach Database Server.';
    mydomain.langSelector();
    Thanks

  2. #2
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Hello Wei,

    Yes, you can use your own phrase key instead of 'flynax_connect_fail'

    but renaming the object name is a bit more complicated

    you need to search all the occurrences of flynax in js files and replace them with your name starting from system.lib.js in libs > javascript

  3. #3
    Quote Originally Posted by Rudi View Post
    Hello Wei,

    Yes, you can use your own phrase key instead of 'flynax_connect_fail'

    but renaming the object name is a bit more complicated

    you need to search all the occurrences of flynax in js files and replace them with your name starting from system.lib.js in libs > javascript
    Thanks, Rudi.

    Where can I find and change the phrase "flynax_connect_fail" that show in view page source? I looked everywhere and only found the phrase used in plugins/ipgeo/rlIPGeo.class.php, which is not the one.

  4. #4
    Hi Rudi,

    What does this line do in templates/general_wide/tpl/js_config.tpl ?

    flynax.langSelector();
    Does removing it have any bad effect? I guessed it is for changing language. I tried removing it and I still able to change language and everything works OK.

  5. #5
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Quote Originally Posted by Wei Hong View Post
    Thanks, Rudi.

    Where can I find and change the phrase "flynax_connect_fail" that show in view page source? I looked everywhere and only found the phrase used in plugins/ipgeo/rlIPGeo.class.php, which is not the one.
    Sorry, you need to remove it from the table lang_keys and replace it in all script files


    Quote Originally Posted by Wei Hong View Post
    What does this line do in templates/general_wide/tpl/js_config.tpl ?
    yes, you can remove it because it's used in lib.js

+ Reply to Thread