Coder Social home page Coder Social logo

Comments (4)

surepeps avatar surepeps commented on June 12, 2024

Yes you can there should be a class or library for languages

from ecommerce-codeigniter-bootstrap.

surepeps avatar surepeps commented on June 12, 2024

Check the following path you can change the language

application/config/config.php

Line 98 you can change it from English to what you want .....

from ecommerce-codeigniter-bootstrap.

MassaM-SDC avatar MassaM-SDC commented on June 12, 2024

@surepeps

Many thanks. I did the changes below and it loads the Farsi by default on site load instead of English.

/*
$config['language'] = 'english';
$config['language_abbr'] = 'en';
$config['currency'] = '€';
$config['currencyKey'] = 'EUR';
*/

$config['language'] = 'farsi';
$config['language_abbr'] = 'fa';
$config['currency'] = 'Rial';
$config['currencyKey'] = 'IRR';

But, the English option still remains as a select in the list.

What I am trying to achieve is single language by default and no selections be given.

Where in the code would I need to edit to achieve that?

from ecommerce-codeigniter-bootstrap.

MassaM-SDC avatar MassaM-SDC commented on June 12, 2024

OK. I got the languages select option disabled by changing the code as below.

On the loaded template header file, I did this simple hack.

//$num_langs = count($allLanguages);
$num_langs = 0;

And it removed the select box completely.

from ecommerce-codeigniter-bootstrap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.