catalog_items translator

Results 1 to 9 of 9
  1. #1
    Member Tafelglotzer is offline
    MemberRank
    Jan 2017 Join Date
    SwitzerlandLocation
    26Posts

    catalog_items translator


    RaGEZONE Recommends

    RaGEZONE Recommends

    A script that translates the catalog_items based on the content in the furnidata. Works with arcturus + plus emulator. Its meant to be used with my other script: furnidata translator

    How it works
    It updates the catalog_name with the value from <name></name> inside the furnidata.
    You should first translate the furnidata with the other script and then translate the catalog_items.

    Setup
    Extract the zip in your htdocs/wwwroot and replace the furnidata.xml with your own.
    Then in translator.php edit the database settings and also the $table variable. If you use arcturus, put "items_base" otherwise put "furniture" for plus emulator. Finally open translator.php in your browser. Let the page load, its translating.

    FAQ
    Incorrect string value

    In translator.php uncomment the line 17.

    Data too long for column 'catalog_name'
    Run this sql query:
    Code:
    ALTER TABLE catalog_items MODIFY COLUMN catalog_name varchar(255) NOT NULL;
    Maximum execution time of 30 seconds exceeded
    Add this code to translator.php:
    Code:
    ini_set('max_execution_time', 0);
    Attached Files Attached Files
    Last edited by Tafelglotzer; 09-07-17 at 02:26 PM.



  2. #2
    Account Upgraded | Title Enabled! HotelMaker is offline
    True MemberRank
    Dec 2012 Join Date
    309Posts

    Re: catalog_items translator

    Thanks for this, this can be very handy in the future

  3. #3
    Hardcore Member BeginOfEnd is offline
    MemberRank
    Dec 2015 Join Date
    The NetherlandsLocation
    107Posts

    Re: catalog_items translator

    Thanks man, this is very useful like your other releases. Keep up the good work.

  4. #4
    Registered vReaper is offline
    MemberRank
    Aug 2016 Join Date
    15Posts

    Re: catalog_items translator

    Thank you for posting this.

  5. #5
    Death from above! The General is offline
    The OmegaRank
    Aug 2011 Join Date
    8,814Posts

    Re: catalog_items translator

    You should not be using this as you will lose the descriptions. Use the productdata.txt to translate the itemname / description values for the shop.

    If you are bored, write a script that updates the offerid catalogitems column correctly with the values in the furnidata so searching works for those with different furnidata files.
    Last edited by The General; 10-07-17 at 12:55 AM.
    If you are using Arcturus, contact me
    Skype: wesley.jabbo
    Discord: TheGeneral#0063

  6. #6
    Member Tafelglotzer is offline
    MemberRank
    Jan 2017 Join Date
    SwitzerlandLocation
    26Posts

    Re: catalog_items translator

    What do you mean by loosing descriptions?

    And thanks for the idea gonna try that but what do you mean by "searching works for those with different furnidata files."


  7. #7
    Member Tafelglotzer is offline
    MemberRank
    Jan 2017 Join Date
    SwitzerlandLocation
    26Posts

    Re: catalog_items translator

    Quote Originally Posted by The General View Post
    You should not be using this as you will lose the descriptions. Use the productdata.txt to translate the itemname / description values for the shop.

    If you are bored, write a script that updates the offerid catalogitems column correctly with the values in the furnidata so searching works for those with different furnidata files.
    You dont loose the descriptions


  8. #8
    Newbie Junior Bano is offline
    MemberRank
    Jul 2017 Join Date
    GermanyLocation
    2Posts

    Re: catalog_items translator

    Thanks for sharing <3

  9. #9
    Registered Lex is offline
    MemberRank
    Dec 2016 Join Date
    20Posts

    Re: catalog_items translator

    This would be even better if it uses the classname instead of the name between the <name> tags, because in most cases habbo uses classnames as productdata if I'm correct.




Advertisement