thyseus / yii-user-management

a user management module collection for the yii framework
185 stars 122 forks source link

Fix translation encoding #51

Closed waitekk closed 11 years ago

waitekk commented 12 years ago

Russian translation encoding is irreversibly ruined since SVN revisions.

I believe I can create a pull request with correct messages if you give correct instructions on how to use translation workflow with your module.

thyseus commented 11 years ago

All translations are made in the user/docs/yum_translation.sql dump file. It gets automatically installed by the YumInstallController. You could fix this file, save it in UTF-8 and i can merge your translations into master.

Thanks for your efforts in advance - enjoy yum :)

waitekk commented 11 years ago

OK.

How about other translations? As far as I can see, some messages in other languages are corrupt as well and there are duplicates... I know it's hard to drop anything that was already achieved, but maybe there should be a cleanup or something?

thyseus commented 11 years ago

Thats true! There is a yiic console command that checks for missing translations. I am not sure if it can be used for Yum, but i think it can easily be adjusted.

The translation strings can also be configured inside the yii user management admin panel. We could also tweak this admin panel to allow easier modification of strings.

The strings are stored in database for two reasons so far - because they are many, and because it is easier to adjust the strings to project specific terms (for example contact for friendship/...)

waitekk commented 11 years ago

Seems like there are many files with improper Yii:t() usage (expressions instead of {alias}). Gotta fix them first...

waitekk commented 11 years ago

PR merged, issue should be resolved now.