tuanthng / pam-face-authentication

Automatically exported from code.google.com/p/pam-face-authentication
0 stars 0 forks source link

Translation #22

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Suggestion: 
Use GNU gettext to make pam-face-authentication translatable.

http://www.gnu.org/software/gettext/

Original issue reported on code.google.com by smarte...@gmail.com on 25 Jan 2010 at 2:05

GoogleCodeExporter commented 9 years ago
Yes, But i had a problem using that , Qt4 has its own mechanism for translation.
1)Do i keep the interface translation using qt4 mechanism and rest (pam module )
using gettext

or
2) Everything using gettext ,  But i did not have much success (qt4 ui ) with 
this
when i was trying it out last time.

Any suggestions ?

Original comment by rohan.a...@gmail.com on 25 Jan 2010 at 2:20

GoogleCodeExporter commented 9 years ago
Solution 2 is better and easier for the translator (all strings in one file, one
translation app can be used for the entire project).
I suggest: use solution 1 until you find a way to use gettext for both UI and 
PAM module.

Original comment by smarte...@gmail.com on 25 Jan 2010 at 2:45

GoogleCodeExporter commented 9 years ago
You can archive soution two by implementing a QTranslator for gettext. Also see 
the attached file.

Of course it would make all and entirely sense to implement this at large so 
that any Qt app could use it, but that would be a bit of an effort since plain 
gettext is rather limited...

Original comment by sitter.h...@gmail.com on 18 Oct 2010 at 9:17

Attachments: