emmett-framework / emmett

The web framework for inventors
BSD 3-Clause "New" or "Revised" License
1.06k stars 71 forks source link

Improve internationalization: add Auth strings (user, pw, email, ...) to Translation by default #69

Closed GiantCrocodile closed 8 years ago

GiantCrocodile commented 8 years ago

It would be nice for internationalization if Weppy's strings are translateable by default.

This would cover the following functions:

gi0baro commented 8 years ago

Would be nice, but I have 2 issues with that:

GiantCrocodile commented 8 years ago

I'm not sure if I did understand your first point correctly but what I thought about is that the developer adds the language files himself - they won't be provided by default by Weppy. You just add T(...) to the strings so if someone uses this module he/she can simply define them in the language file and it is done, without self-modifying weppy auth module files.

So you don't need to add all these translations nor it would change the sourcecode for someone if they do not use the module at all.

gi0baro commented 8 years ago

@GiantCrocodile LoL, you're probably right. Will dig a bit into the code and trying to add this.