xoops forums

alain01

Quite a regular
Posted on: 5/25 9:49
alain01
alain01 (Show more)
Quite a regular
Posts: 388
Since: 2003/6/20
#1

Module profile and translation update

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 ?

geekwright

Quite a regular
Posted on: 5/26 3:38
geekwright
geekwright (Show more)
Quite a regular
Posts: 302
Since: 2010/10/15
#2

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.

alain01

Quite a regular
Posted on: 5/26 7:07
alain01
alain01 (Show more)
Quite a regular
Posts: 388
Since: 2003/6/20
#3

Re: Module profile and translation update

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

geekwright

Quite a regular
Posted on: 5/27 19:45
geekwright
geekwright (Show more)
Quite a regular
Posts: 302
Since: 2010/10/15
#4

Re: Module profile and translation update

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

geekwright

Quite a regular
Posted on: 5/28 20:12
geekwright
geekwright (Show more)
Quite a regular
Posts: 302
Since: 2010/10/15
#5

Re: Module profile and translation update

Please see https://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.

alain01

Quite a regular
Posted on: 5/29 0:57
alain01
alain01 (Show more)
Quite a regular
Posts: 388
Since: 2003/6/20
#6

Re: Module profile and translation update

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