Welcome Guest, Not a member yet? Register   Sign In
Loading languagefile for each controller
#1

Hi,

normaly, so i know and understand it, CI has all translations in a single languagefile for each language or you have multiple files, but all files will load together.

I have a lot of translations and most of them are not necessary to load and hold.

I want to create a global file with global translations this is for general use and additional for each controller a own file. Now i want, that only this two files should load and hold and not all.

Is it possible or may there is a better idear to handle large translation-files?
Reply
#2

You would most likely need to extend system\Language\Language.php and add what you need.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

(This post was last modified: 01-27-2025, 01:31 PM by 4usol.)

Ok, i will try to do it, have i overrite the languages.php in the vendor folder or should i create a system folder on basepath and ci will use it instead the one from the vendor-path?
Reply
#4

CodeIgniter Users Guide - Creating Core System Classes
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB