How to remove "in"

ClassiBase classifieds script Forums General help How to remove "in"

This topic contains 3 replies, has 3 voices, and was last updated by  Tom Chung 2 years, 5 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1617 Reply

    Peter G.
    Participant

    Dear Support, how to remove “in” from categories names:

    e.g. http://classibase.com/demo/united-kingdom/flats-and-hauses-for-sale/

    “Flats and hauses for sale in United Kingdom”

    I want to be:

    “Flats and hauses for sale United Kingdom”

    #1620 Reply

    ClassiBase
    Keymaster

    There are 2 ways of doing it.

    1. First method:
      Change hard coded files for the script. Edit /sys/app/models/Config.php file line 504 __('{name} in {name2}' part change to __('{name} {name2}'

      Downside for this method you will have to make same change everytime after you update script to latest version. Because your changes will be overwritten.

    2. Second method (best): Add new language give id something like en-US (because you cannot use “en” as it is used for default language) then make that language your default language and disable old English language. Then go to “Settings” -> “Language” page from your admin panel. Click on “Translate” button for newly added language. Search for “{name} in” using search form. Then write in translation field “{name} {name2}” and save. This will use your definition instead of “{name} in {name2}”.

      This method has no downside but a bit complicated to perform. You also can tailor other terms to your need. If you choose this method script updates will not modify your sites translation and you can forget about it once doing it as described.

    #1623 Reply

    Peter

    Very simple, thanks! 🙂

    #1989 Reply

    Tom Chung
    Participant

    It was very helpful. Thanks.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: How to remove "in"
Your information: