[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Limited translation options


Le 16/10/2026 à 20:33, gbWilly a écrit :
If I look at the code for MyLanguage.module and Language.Class they seem to serve a different goal.
I didn't go serach how they are integrated into the rest, just purely comparing both.

So, with the Language.class 'cleaned up and sorted out', do you want to sync it with the MyLanguage.module?
Or are you first going to investigate why the MyLanguage.module was created in the first place.

Just let me know and I'll make it all sync with each other if needed.


gbWilly

...there is always a Catch if things go wrong!

P.S. My excuses if my logs weren't correct..

Yes. It's just a matter of avoiding duplicated code between 'Language.class' and 'MyLanguage.class'. But 'MyLanguage' has IDE-specific methods that must be kept.

So, concretely:

1) Remove the 'Name' and 'EnglishName' private variables of 'MyLanguage', and replace them by calls to 'Language'.

2) Replace the 'Find()' method by 'Language.Find()', or call 'Language.Find()' from 'Find()' if you don't want to touche other parts of the source code. The second argument of 'Find()' will be removed as it is used by 'MyLanguage' only.

Regards,

--
Benoît Minisini.


Follow-Ups:
Re: Limited translation optionsgbWilly <gbWilly@xxxxxxxxxxxxxx>
Re: Limited translation optionsgbWilly <gbWilly@xxxxxxxxxxxxxx>
References:
Limited translation optionsgbWilly <gbWilly@xxxxxxxxxxxxxx>
Re: Limited translation optionsBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: Limited translation optionsgbWilly <gbWilly@xxxxxxxxxxxxxx>
Re: Limited translation optionsBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: Limited translation optionsgbWilly <gbWilly@xxxxxxxxxxxxxx>
Re: Limited translation optionsgbWilly <gbWilly@xxxxxxxxxxxxxx>
Re: Limited translation optionsgbWilly <gbWilly@xxxxxxxxxxxxxx>
Re: Limited translation optionsBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: Limited translation optionsgbWilly <gbWilly@xxxxxxxxxxxxxx>