PEAK XOOPS - Re: Language constants overriding system for D3 modules in englishin japanese

Top  >  Comments  >  News comment ()

Re: Language constants overriding system for D3 modules

  • As this forum is only for commentation, you cannot open a new topic
  • Guests cannot post into this forum
Target News
Subject Language constants overriding system for D3 modules
Summary I had written language constants of D3 modules can be override by putting files under XOOPS_ROOT_PATH/modules/(dirname)/langauge/ from XOOPS_TRUST_PATH/modules/(trustdirname)/language/But I found it is hard to use. (eg. Newly appended constants can be ...
Previous post - Next post | Parent - Children.1 | Posted on 2007/5/15 20:16
OneOfTen  Corporal   Posts: 75
Why didn't you make those functions (also myblocksadmin and mytplsadmin) so that the user could also save the new Values in a copy of the original file? That would make the translation work for modules and the core much easier.
Votes:1 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2007/5/16 2:57 | Last modified
GIJOE  Gunnery Sergeant   Posts: 4110
I cannot understand what you mean.

Quote:

the user could also save the new Values in a copy of the original file?
user can find the overridden file in XOOPS_TRUST_PATH/cache/ easily.

And I believe this way using "DB and Cache" is the best way for users.
When some language constants are added, just make cache again.
This means "Easy to merge".
Votes:5 Average:8.00
Previous post - Next post | Parent - No child | Posted on 2007/5/16 4:44
OneOfTen  Corporal   Posts: 75
Ah thanks, I didn't try yet and didn't know that the format of the cached files is the same like the normal lang-files. That's good news. Thanks for all the nice tools and your hard work!
Votes:1 Average:10.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!