fork/copy from previous version with source and translation

http://bugzilla.redhat.com/show_bug.cgi?id=1104015
How about `getSupportedLocaleCount`?