klox7 VIP
Total posts: 914
16 Oct 2014 17:27

Hi,

does anybody know what happens for existing records if I change values in "Values list" parameter of field to language constants.

Regards

Last Modified: 17 Oct 2014


Konstantin
Total posts: 1,113
17 Oct 2014 06:50

It will display old saved values in view, and on form when you will edit exist record it resets on new values. I think so.


klox7 VIP
Total posts: 914
17 Oct 2014 06:58

How will I have to deal in import with language constants? Do I write language constant or value in import file? Can I use some language override file or do I have to put defaut values in language manager in Joomla?


Konstantin
Total posts: 1,113
17 Oct 2014 09:47

klox7 Do I write language constant or value in import file?

Yes, language constant - it will be a values.

Than translate it where you want.


klox7 VIP
Total posts: 914
17 Oct 2014 11:51

Does anybody maybe know how to add custom .ini file for new constants (or overrides) in my Joomla template?


pepperstreet VIP
Total posts: 3,837
17 Oct 2014 15:23

klox7 add custom .ini file for new constants (or overrides) in my Joomla template?

Do you mean the J! core feature and language manager? Or a spcial solution "outside the box"?

Apart from J! manager, you may edit the following files directly. Overrides are created and stored here... example for en-GB

FRONTEND

  • language\overrides\en-GB.override.ini

BACKEND

  • administrator\language\overrides\en-GB.override.ini

pepperstreet VIP
Total posts: 3,837
17 Oct 2014 15:46

FYI - I remember FlexiContent was able to load extra custom language files. They had to be placed inside the respective flexicontent template folder. Is this your goal?


klox7 VIP
Total posts: 914
17 Oct 2014 18:18

pepperstreet FRONTEND

  • language\overrides\en-GB.override.ini

BACKEND

  • administrator\language\overrides\en-GB.override.ini

This is exactly what I'm avoiding. I don't like how Joomla manages overrides because I can't group constants together.

If I edit administrator\language\overrides\en-GB.override.ini directly and add some comments inside then everytime someone adds another constant through admin it rewrites the whole file and deletes any custom code inside.

So I was thinking another file in overrides folder or custom file in my template folder.

I thought something like this would do it but no. :)

$language = JFactory::getLanguage();
$language->load('custom' , dirname(__FILE__), $language->getTag(), true);

pepperstreet VIP
Total posts: 3,837
17 Oct 2014 20:42

klox7 everytime someone adds another constant through admin it rewrites the whole file and deletes any custom code inside.

Ah, good to know. Never checked or noticed that behavior. ;)

So I was thinking another file in overrides folder or custom file in my template folder.

Have a look at "FlexiContent" documentation... there is a hint about this feature. For technical background I would suggest to ask directly in their forum. (Or check their files manually.)

Powered by Cobalt