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 D3モジュール言語定数のオーバーライド
Summary D3モジュールの言語定数は、XOOPS_ROOT_PATH側に言語定義ファイルを置くことで、各モジュール毎にオーバーライドできる、なんて話を書きましたが、実際に試してみたらかなり使いづらい、というのが実情です。例えば、モジュールがバージョンアップして、言語定義が増えた...
Previous post - Next post | Parent - Children.1 | Posted on 2007/5/15 20:16
OneOfTen  伍長   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  先任軍曹   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  伍長   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!