several translation questions

Archived from the Xataface Users forum.

Jean — Tue Jan 31, 2012 3:28 am

Hi Steve,
I have a problem to put a label to an action in a table, what is the code : I used

Code: Select all
tables.dashboard.actions.chiffrer.label  ="Chiffrer"

But I haven’t any result.

How to translate “Forgot password”, “Connected as”, “Login prompt” ?

I use the translation tool for this application, congratulations. I discover it. Congratulations it is a smart tool.

May be we need some more precisions about it in the doc.

Thank you

Jean


shannah — Wed Feb 01, 2012 7:14 pm

It’s just

Code: Select all
actions.chiffrer.label = "Chiffrer"

Forgot password:

Code: Select all
actions.forgot_password.label = "..."

Where are the “Connected As” and “Login prompt” strings you are referring to?

-Steve


silma — Thu Feb 02, 2012 6:25 am

Hi Jean,

I listed the translation trouble i had here, hope it can help : http://xataface.com/forum/viewtopic.php?f=4&t=4847

“connected as” :

Code: Select all
Logged in as user  = "Connecté en tant que"

Jean — Thu Feb 02, 2012 8:19 am

Thankto you both, this forum is exceptionnal and this framework too.
Have a nice day
Jean


Jean — Fri Feb 03, 2012 1:02 am

Sorry Steve,
When the actions.ini file is in a table directory, specific to the table, it is not effective.
Jean


shannah — Mon Feb 06, 2012 10:42 am

Arghh.. you’re right…. The code for the table actions is separate from the other actions… Right now you can’t translate these action labels.
I have posted this bug in the issue tracker.
http://bugs.weblite.ca/view.php?id=931


jerryevo — Sat Jan 12, 2013 10:17 am

forgot_password.php has some messages, for example: An email has been sent to the provided email address with instructions for resetting your password.

How to translate them?


shannah — Thu Jan 17, 2013 8:56 am

It looks like this action hasn’t been internationalized yet. I have added an issue to the issue tracker.
http://bugs.weblite.ca/view.php?id=1204

Basically all of the strings in this action need to be wrapped in df_translate(), and the string itself extracted to the en.ini file. We need this for another project also so I’ll probably get this bug fixed within the next few days.

-Steve