[freeipa PR#1326][opened] [WIP] Fixing translation problems
by slaykovsky
URL: https://github.com/freeipa/freeipa/pull/1326
Author: slaykovsky
Title: #1326: [WIP] Fixing translation problems
Action: opened
PR body:
"""
Hello guys!
So I'm having some progress with this weird translation related bug and I already achieved the following behaviour:
```
# LANG=de_DE.UTF-8 ipa user-find admin
--------------
1 user matched
--------------
Anmeldename: admin
Nachname: Administrator
Home-Verzeichnis: /home/admin
Anmeldeshell: /bin/bash
Principal alias: admin(a)DOM-023.ABC.IDM.LAB.ENG.BRQ.REDHAT.COM
UID: 1026200000
Gruppen-ID: 1026200000
Konto ist deaktiviert: False
-------------------------------------
Anzahl der zurückgegebenen Einträge 1
-------------------------------------
# LANG=zh_CN.UTF-8 ipa user-find admin
--------------
1 user matched
--------------
用户登录名: admin
姓: Administrator
主目录: /home/admin
登录shell: /bin/bash
主体别名: admin(a)DOM-023.ABC.IDM.LAB.ENG.BRQ.REDHAT.COM
UID: 1026200000
GID: 1026200000
禁用账户: False
--------
返回的条目数 1
--------
# LANG=en_US.UTF-8 ipa user-find admin
--------------
1 user matched
--------------
User login: admin
Last name: Administrator
Home directory: /home/admin
Login shell: /bin/bash
Principal alias: admin(a)DOM-023.ABC.IDM.LAB.ENG.BRQ.REDHAT.COM
UID: 1026200000
GID: 1026200000
Account disabled: False
----------------------------
Number of entries returned 1
----------------------------
```
As you can see now I don't need as a user to clean `~/.cache/ipa` to get the information in my native locale. But, there is this summary (in this case it's `1 user matched`) which is getting generated on the server and I'm kind of struggling with it now as I removed this `LANG` changing piece of code from rpcserver.
Any help, review and comment are needed and very appreciated. :)
pagure: https://pagure.io/freeipa/issue/7238
"""
To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/1326/head:pr1326
git checkout pr1326
5 years, 2 months