Hi the experts,
small problem here:
I want to have the English language items in my plugins as default, in case I don't have them in other languages.
Say I have 100 items in the language file, but only 4 translated into Italian. Now my Italian friend should get the 4 Italian descriptions and the rest in English.
Sorry, tried hard, but couldn't find how to do this. ... include? ...merge_array?
svasti
Plugin programming: How to "include" english language file?
Moderator: Tata
Re: Plugin programming: How to "include" english language file?
Hi Frank,
it should suffice to include both language files in the right order:
So only the entries that are defined in it.php will overwrite the according entries from en.php.
This feature will probably be implemented in CMSimple_XH 1.5.
Christoph
it should suffice to include both language files in the right order:
Code: Select all
include 'en.php';
include 'it.php';
This feature will probably be implemented in CMSimple_XH 1.5.
Christoph
Christoph M. Becker – Plugins for CMSimple_XH
Re: Plugin programming: How to "include" english language file?
Oh, so easy, ... I just tried it and it works great!
Thanx a lot, Christoph
svasti
Thanx a lot, Christoph
svasti
Re: Plugin programming: How to "include" english language file?
Hallo,
KR
Martin
Yes. Core and plugins will handle languages this way: load English as default and overwrite it as far as possible with the available texts of the selected language.Christoph wrote:This feature will probably be implemented in CMSimple_XH 1.5.
KR
Martin