Hi!
I have a session variable for the currently used language. I want it to influence
this string in couch settings file.
I think, Couch doesn't read this definition in the run-time. It reads it only when login to admin panel is accessed. So, is there a way to inject a variable there? Something like
Please, help. Answer will be a great candidate to Tips&Tricks
I have a session variable for the currently used language. I want it to influence
this string in couch settings file.
- Code: Select all
define( 'K_ADMIN_LANG', 'EN' );
I think, Couch doesn't read this definition in the run-time. It reads it only when login to admin panel is accessed. So, is there a way to inject a variable there? Something like
- Code: Select all
<?php
a. get & read my 'lang' session
b. if this lang is available in couch/lang: create a variable to store value, if not - create variable and store default 'EN'
c. ???
d. PROFIT
Please, help. Answer will be a great candidate to Tips&Tricks
