1
alain01
Module profile and translation update
  • 2020/5/25 9:49

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


Hi,
Regarding the translation of the profile module, its operation is strange, it differs from the other modules.

Indeed, the translation is encoded in the database in 64-bit basis.

So if I want to propose a new translation file for this module, the module does not read the translation file BUT the encoding in the database, table profile_field.

So several possibilities for an update:

- If it is at the installation of XOOPS, if the module has the correct translation, everything is easy, the profile module reads the new translation file and converts it into the DB. It is all good.

- If the profile module is ALREADY installed and used, it is more complicated.
You would have to save the profile_field table,
then uninstall and reinstall the profile module AND import the data from the profile_field table EXCEPT the umode, uorder, notify_mode, notify_method lines.

So not very practical, what do you think ?

2
geekwright
Re: Module profile and translation update

After "profile" is installed, the definitive title and description source is no longer the language files, it is the database. You can edit all of that in the admin area -- much easier than saving tables and reinstalling since there are only 24 fields that could be affected.

I agree that the profile module's language support is limiting, but that is largely due to the ability to fully customize and extend the user definition. Needs improvement, but that it isn't likely to happen in the 2.5 series.

3
alain01
Re: Module profile and translation update
  • 2020/5/26 7:07

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


Quote:
geekwright wrote:
After "profile" is installed, the definitive title and description source is no longer the language files, it is the database. You can edit all of that in the admin area -- much easier than saving tables and reinstalling since there are only 24 fields that could be affected.

Thank you for your answer.

Yes, i mean some sentences that we couldnt modify in the admin area.

Ex : /language/english/notification.php

Quote:
// For user profile
// FIXME: These should be reworded a little...
define('_NOT_NOTIFYMETHOD', 'Notification Method When you monitor e.g. a forum, how would you like to receive notifications of updates?');
define('_NOT_METHOD_EMAIL', 'Email (use address in my profile)');
define('_NOT_METHOD_PM', 'Private Message');
define('_NOT_METHOD_DISABLE', 'Temporarily Disable');
define('_NOT_NOTIFYMODE', 'Default Notification Mode');
define('_NOT_MODE_SENDALWAYS', 'Notify me of all selected updates');
define('_NOT_MODE_SENDONCE', 'Notify me only once');
define('_NOT_MODE_SENDONCEPERLOGIN', 'Notify me once then disable until I log in again');
define('_NOT_NOTHINGTODELETE', 'There is nothing to delete.');


Ok, that was mostly a remark, something i noticed and that just doesn't work by modifying the translation files

4
geekwright
Re: Module profile and translation update

Thank you for the more complete problem description. Wow, that sucks. I'll look deeper.

5
geekwright
Re: Module profile and translation update

Please seehttps://github.com/XOOPS/XoopsCore25/pull/841

It enables manual editing of the option text from a link at the bottom of the admin field edit form.

6
alain01
Re: Module profile and translation update
  • 2020/5/29 0:57

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


Amazing Richard !
All is ok with your solution !
Great work !

Login

Who's Online

121 user(s) are online (71 user(s) are browsing Support Forums)


Members: 0


Guests: 121


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits