发表文章

[PHP] [功能要求]翻译验证器插件 [Feature Request] Translate authenticator plugin[sysPass]

matthgyver 2017-10-9 25

你好

没有法语翻译的身份验证器插件和默认的语言是西班牙语。
请, 是否有可能:

  • 如果插件没有翻译, 则将英语设置为默认语言
  • 法语翻译
    我可以用法语翻译, 但我只是一个管理员, 我不太明白它是如何工作的。
    我看到一个文件夹的语言在这个文件夹 "公司/插件/身份验证/区域设置/" 和2文件:
  • 身份验证器. mo
  • 身份验证器. po
    如果我理解, 我需要为法语 (fr_FR) 创建相同的文件夹, 并修改 "验证者. po" 文件, 但是 "验证者。
    请给我一份文件好吗?

谢谢

原文:

Hi,

There is no french translation of authenticator plugin and the default langage is spanish.
Please, is it possible to :

  • Make english as default langage if there is no translation for a plugin
  • Translate it in french
    I can translate it in french but I'm just sysadmin and I don't well understand how it work.
    I see a folder by language in this folder "inc/Plugins/Authenticator/locales/" and 2 files :
  • authenticator.mo
  • authenticator.po
    If I understand, I need to create the same folder for french (fr_FR) and modify the "authenticator.po" file but what about "authenticator.mo"
    Have you a documentation please ?

Thank you

相关推荐
最新评论 (15)
nuxsmin 2017-10-9
1

您好@matthgyver

我很高兴知道你想翻译它。

希望您不需要处理. po 文件 (gettext), 因为此项目正在使用 POEditor 平台。以下链接将允许您加入项目: https://poeditor.com/join/project/DECOdOhqLf

关于

原文:

Hello @matthgyver

I'm glad to know you want to translate it.

Hopefully you don't need to deal with .po files (gettext) since this project is using the POEditor platform. The following link will let you join to the project: https://poeditor.com/join/project/DECOdOhqLf

Regards

matthgyver 2017-10-9
2

嗨 Nuxsmin

我刚做了翻译。
有些元素依赖于上下文, 我用 "模糊" 标志标记了它。
我会调整, 当我能看到的结果在情况。

原文:

Hi Nuxsmin,

I've just made the translation.
Some elements depend on the context, I've tagged it with "Fuzzy" flag.
I will adjust when I can see the result in situation.

nuxsmin 2017-10-9
3

当然, 我刚刚更新并推动了法语翻译。您可以在演示站点上查看它或从https://github.com/nuxsmin/sysPass-Plugins下载代码

谢谢!

原文:

Sure, I've just updated and pushed the french translation. You can review it on demo site or download the code from https://github.com/nuxsmin/sysPass-Plugins

Thanks!

matthgyver 2017-10-9
4

欢迎您。感谢您为您的伟大的工作;

我刚刚测试的演示网站和法语的插件工作 nt。
在我的本地安装, 这是可以的, 但我有2小错误:

  • 如果键入了错误的代码, 则错误消息在第一次是法语, 但在新错误之后是西班牙语。
  • 在激活和重新加载页面后, 语言插件会返回到西班牙语。如果我退出首选页, 如果我回来, 它是确定的。

在翻译界面中, 我看到一些字段, 使我认为有一个恢复系统的情况下, U2F 的问题。在哪里?

原文:

Your welcom. Thanks at you for your great work ;-)

I just tested the demo site and french language does'nt work for the plugin.
On my local installation, it's OK but I've 2 little bug :

  • If I type a wrong code, the error message is in french the first time but in spanish after a new error.
  • After the activation and the reloading page, the language plugin come back to spanish. If I exit the preference page and if I come back It's OK.

In the translation interface, I see some field that making me think that there is a system of recovery in case of problem with U2F. Where is it ?

nuxsmin 2017-10-9
5

嗯, 我刚刚在演示网站上测试过, 工作得很好。请注意, 演示用户可能被许多人使用, 因此建议您创建一个新用户并设置语言首选项。

关于您的环境行为, 这可能是因为 gettext 翻译由 Apache 缓存, 所以会有一些恼人的行为, 将解决后重新启动它。

最后, 右有一个恢复功能, 将在激活2fa 身份验证后可用。这将允许在登录时显示10恢复代码以使用它们。恢复代码将通过电子邮件发送, 如果您从2fa 登录屏幕请求

关于

原文:

Hmmm, I've just tested it on demo site and worked fine. Be aware that the demo user could be being used by many people, so it's recommended to create a new user and set language preferences.

Regarding your environment behaviour, that could be caused because the gettext translations are cached by Apache so there would be some annoying behaviour that would be solved after restarting it.

And lastly, right there's a recovery feature that will be available after activating the 2fa auth. This will allow to display 10 recovery codes to use them when logging in. The recovery code will be sent by email if you request it from the 2fa login screen

Regards

matthgyver 2017-10-9
6

好, 刚刚重新启动 Apache 和问题解决。
在2fa 登录屏幕中找不到用于请求恢复代码的按钮:
selection_005

感谢的

原文:

Ok, just restart Apache and problems are solved.
I can't find button for requesting recovery code in the 2fa login screen :
selection_005

Thank's

nuxsmin 2017-10-9
7

嗯, 你从自己的存储库下载了这个插件吗?

原文:

Hmmm, have you downloaded the plugin from its own repository?

matthgyver 2017-10-9
8

你好
我已经做了我的测试与最后 syspass 发布, 我刚刚复制的语言插件文件夹..。
我已经完全重新安装 syspass 与最后的版本和完整的最后提交的插件。
看起来不错:
selection_006

但它是如何工作的呢?如果我检查丢失的代码选项, 并点击联接按钮, 它告诉我, 代码是无效的。
有 "配置" 选项卡:
selection_007

另一个错误 (也许我应该打开一个插件回购的问题): 我不能 unactive 2FA。当我切换它, 键入一个代码, 并点击保存按钮, 一个消息告诉我, 这是未, 但如果我退出, 并转到选项卡, 2FA 是打开。事实上, 如果我关闭了会话并再次尝试进行身份验证, 则需要2FA 的代码。

谢谢

原文:

Hi,
I've made my test with the last syspass release and I've just copy the language plugin folder ...
I've fully reinstalled syspass with the last release and full last commit of the plugin.
It seem ok :
selection_006

But how does it work ? If I check the lost code option and click on connexion button it tell me that the code is invalid.
There is the configuration tab :
selection_007

An other bug (maybe I should open an issue on the plugin repo) : I can't unactive the 2FA. When I switch it of, type a code and click to save button, a message tell me that is unactivated but if I quit and go to the tab, the 2FA is switched on. In fact, if I close my session and try to authenticate again, I've a 2FA code demand.

Thank you

nuxsmin 2017-10-9
9

嗨, 我来看看这个问题。

感谢您的反馈!

原文:

Hi, I'll check out this issue.

Thanks for the feedback!

nuxsmin 2017-10-9
10

您好, 我刚刚推出了一个新的插件版本, 解决了这个问题。

关于.

原文:

Hello, I've just pushed a new plugin version that solves this issue.

Regards.

matthgyver 2017-10-9
11

谢谢, 现在我可以禁用这个插件了。
我了解如何恢复工作: 完整填写代码字段, 检查丢失的代码, 然后单击以继续发送带有故障回复代码的邮件。也许在这个页面上会有帮助。
所以我成功地测试了它。
我是否应该在 "插件" 选项卡的 "代码 de récupération" 字段中看到任何内容?(见我的上一个截图)
我只是看到一个弹出的 "codigos" 的消息, 就像在屏幕截图。

原文:

Thank you, now I can disable the plugin.
I understand how recuperation work : full fill the code field, check the lost code and click to continue for sending a mail with recovery code. Maybe an help about this will welcome on the page.
So I've tested it with success.
Should I see anything in the "code de récupération" field in the plugin tab ? (see my last screenshot)
I just see a popup with "Ver codigos" message, like in the screenshot.

nuxsmin 2017-10-9
12

似乎没有显示模糊翻译..。

captura_026

原文:

It seems that fuzzy translations aren't shown...

captura_026

nuxsmin 2017-10-9
13

只要点击图标和代码将显示

原文:

Just click on that icon and codes will be shown

matthgyver 2017-10-9
14

是的, 我试过, 但我不显示代码。
(我没有说在我的最后一篇文章, 但是的, 我已经点击了眼睛的图片, 我什么都没有。

原文:

Yes I've try it but I don't show the code.
(I've not say in my last post but yes I've clicked on the eye picture and I've nothing.)

nuxsmin 2017-10-9
15

你好,

它是否显示代码?, 你以前用过吗?

关于.

原文:

Hello,

Does it display the codes?, did you use them before?

Regards.

返回
发表文章
matthgyver
文章数
1
评论数
6
注册排名
60845