Hello
It's been a long time I have a problem with the current system of translation: it's about translating long texts. Putting the text as a key for the array is a non-sens for me, and unfortunately if the translation key doesn't exist for a language, the value of the key is displayed. So for texts, it displays "explanation_1" for instance.
That's the problem
I would like to solve it by saying every languages are children of en_UK, as an ultimate fall-back, in order to display something correct
Offline
IMHO, I disagree including a lot of very long php (it takes time parsing) when it is not required ...
Offline
so would it be technically possible using an other way less resource consuming?
Offline
Ok, I have an other idea -which I had some days ago-:
using the existing function set_languagefilename-trucmuche to add other languages files -with a standardize name for the translation tool?- and a parameter to say 'include the En file also for this one' in order to avoid the inclusion of big files.
So to summarize, fragmentation of files using big paragraphes/long text
Offline
an example please ?
is this something like that you want ?
load_language('short_sentences.lang', PLUGIN_PATH);
load_language('long_sentences.lang', PLUGIN_PATH, array('always_load_en'=>true));Offline
mistic100 wrote:
an example please ?
is this something like that you want ?Code:
load_language('short_sentences.lang', PLUGIN_PATH); load_language('long_sentences.lang', PLUGIN_PATH, array('always_load_en'=>true));
yes exactly!
sry for the non precision
As an example, the long sentences would be for help texts: in plugins -my futur plugin Take A Tour for instance, but also I have included How To in some of my other plugins- and maybe in the core to avoid those .html horrible pop-ups
Offline
I think it's the better solution we could get
[Bugtracker] ticket 3046
Offline
Done, the option is named "force_fallback"
if "true" it falls the the default gallery language (homogeneous with "no_fallback")
typically you will want to set it to "en_UK"
Offline
<3
Thx
Offline