From a3819b92fecddcbaf3b2f81ee803f63f3b2bb0f9 Mon Sep 17 00:00:00 2001 From: "Tianyi,HE" <163421589+BegoniaHe@users.noreply.github.com> Date: Sun, 10 Nov 2024 19:16:39 +0100 Subject: [PATCH 1/3] feat. add Deu i18n language support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Die deuchte Sprachehilfspackung für iamai. --- .DS_Store | Bin 0 -> 8196 bytes iamai/.DS_Store | Bin 0 -> 6148 bytes iamai/locale/.DS_Store | Bin 0 -> 6148 bytes iamai/locale/de/LC_MESSAGES/i18n.po | 229 ++++++++++++++++++++++++++++ 4 files changed, 229 insertions(+) create mode 100644 .DS_Store create mode 100644 iamai/.DS_Store create mode 100644 iamai/locale/.DS_Store create mode 100644 iamai/locale/de/LC_MESSAGES/i18n.po diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..cd87a0120361213a752283cd7210e1842a890cda GIT binary patch literal 8196 zcmeHMYitx%6u#fIz>FPWS_>3pvRlh5SnRe`o`TD^K#^9EZRxfY>pq5dWI9uKX16?2 zQ)7IaXnZC9B0hgMYBXXDzJ8hbil!lvL}JuL{NpeFU;=vX+*!gFn)t&Qf^(C5&zy7b zId{*Q@7&unWsD(F$Tc%o#~72TbE;L*aE-?2dB3VjfuxcsNS`q?GvTredtc0kV;F%j0{_bh@be)`ozr+gCj|A64jTLtfG95k z{6^1I2lzVCfW`wlA*ioPHbwP-KovoW0ijOwQNEmLJfIVT3Uvmd&JgU3phAJaJLyIJ zCO+xxQ{vOvs9? z3~F`9kGD3rHbz_4Zy0Zk9^cp!YmBz8T{k|i$O{^pHt!oeY>n8?Q^E-Z2LYQq&8er$ zJ+j)1*2m@%l$cgd|?#O}=-MRKP%>sW;m z+a1)ZvuP_^u+pBf&9eAnlFfIsdB?K$IU)s$YcFwei`YE=yXC5+*yi$!urQ1%A7*jQMitm)$g(M-E&65#1w2;9pJ@ec7y8se*i2SFI~W31Gc*nslO zO=m0E2D;3;*&*hzhuJgi1bdI2Vjr`w*=cr`{mTAe7ucWdBD;hNsHnkGEW;W!A%u*&f+AK;M!LC?I>}*OH!QR#w ziD(k#sbFKx5ml?8EL42mI~s{az--*4s#+!GqnO*O6Uzc7(MD!?cFF%X&c9=4*iY;n zJI^j)HmaZ@f>pR3t%U0x=pbx&qKmMdLO%{*00xF&;sHXsha!&PD30L~Jc`Hh1fC?E zzlfLcGEU%C!ulJ8_DQ^rcknJg!YO=$Pw|S5Z<-5-BN@e6nb3nTClCfAH0NGU%-eSRBB>_24l9gsX3HF&iX<=iO=KA z?gk77youNu*!^bbXE*af_J=XXhl@#%u@+-YKttrHln9zjT^lwSk?T1k7WnCW>PN~i zndmQ?@Y`!FVv5}}5Af^vzx&fDoG0Dx2j8evH*0lK7fo^NKC0AByks#Sdb4XBT__d# zx$gOwVUUhn+ovi{yf6-CIw70{5OQ-B#uJqe)gqqEb*^h1q9GdNR(rV|^adT-KRjA> zNKs48{bgGybAO?P50QUz84bicf8Pr<`ba;J6e-#l0bbL!7N{f!g%piC` zxJd;xsoXv>xJd`Qv~iBb%%DkUT(1oC*p>6g3)icIUFvYg9fQ;p1H?d)fr=Tn@cci6 zU#9etUreD9F+dFbGX{8d-VQKtL~C0$_mqNLxFNU!o3i Yj>XI%&VqKG4oDXPO$c?wz%MZH32#YD{Qv*} literal 0 HcmV?d00001 diff --git a/iamai/locale/.DS_Store b/iamai/locale/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..7b16239290414b63a305b96f52d1c66880da6bbf GIT binary patch literal 6148 zcmeHKUrWO<5Kp%0GKSCxg*^s*9k|WmAABiwegP}`pfX!pv{)NiJNqyOebz7JC-L)m zm!#ly&mwXM$?q)1MmkQg8ahyh}N7_hZL zbcqULfEXYKzA=F3gM^0YTC5D}qXRm;KBK>dhypskB@m@W*J5Q5JRsbp0-98ApBUVv z!??6@uEolrNoQQI4D;BP>&FY%tHZd|;f%WmsV4@AfmH^Y#&od$pTRG)_L0AuLKZPV z4E!?&cx&QMJlK@2tv|MhwN^sAgNA}}6)GU0uUrDaz;mRhoyIRwhd9?_We{h Date: Mon, 11 Nov 2024 11:18:40 +0100 Subject: [PATCH 2/3] fix. add .DS_Store in the .gitignore file 1.add .DS_Store in the .gitignore file --- .DS_Store | Bin 8196 -> 10244 bytes .gitignore | 3 +++ 2 files changed, 3 insertions(+) diff --git a/.DS_Store b/.DS_Store index cd87a0120361213a752283cd7210e1842a890cda..e395a8e8272b78309c127f21dedf55bc4b08457b 100644 GIT binary patch literal 10244 zcmeHMYit}>6+UO|#IyD`89Pp!n5?|%rfHNoek7)88k(%vc48AdcD?I(?KoX#cgFU_ zvomI9){YYexkBYxsXSUFepFR?2_zIA0#Q_z*RM)Y5Gbldr4|H8ls~|a{0UN9&b@cm zomp@GfmFdBp!Nr>ah2&)IKFk^GSaQ6zZ) z4GK^K2XtyhB|;!VAVMHQAVMHQ;QfdIy|Y=7TLg{j2!RNJ2!Txm*!_^CAERlXZV1Y+ z4yt$xK(vvDd7(Dt0bC~O)3i@F1m&WnQ)Cb5i=v-mpb)3$Nybhz?b8iGg*c!P2lQt~ zKSM!2JIN(EJ78MSsE!bb5ZHL?=f@n9bPpg^hP93>X$dP0YMoH=dNtIv$7Q%AUVvSrI z%{KuS*lt80*y>lD_3uBj_|hw2sd$=NtmUXY2D!&fgu^>ZrS_-BTn!NxP+z^ zmf~0jrJ89)9CLnl3)~v?8X1OVP-bU68QReboxWWc(V%oASsRyM~{kg@*%ZZKJg_ZWWBMW`@+=IE!oUif`jD7FSHe^?G|>L#d&0+x8~8Np6uZ zXP4}?tfzVvH={b2STASWX0h5a=t^Ecd91f9*?;_@8#iL|?o`jIslu{Zw(QRk`c%+= z0m40^zge@>3GCe{t@=B{SF1bvgQ8UT6l-pY-?L+<(%QDGwY_!s?tAasvwLqx$G(EH ztEiTi7ag|NLEE&Qj9JkyEjoslT~SMhwV3zxt6tW)rWcg98rCUYd;Gnj-1-Xfw7)mN z)tz&6-QxNt78YFH%Lm%C1!bpOa%|I_v|Yn9Y-@JjC8S3^y*z3y*firRp**p|9=R8F z$0fQ&CO@k>j%qFHnf1%2TGY)6D`R_}U1pq2TgkR29i3^)8`NfdNuBwp05X+6Uu_%` z4Fyu70gy`5CsS7Bc0o65%vrXj$6~4Uq(3IZ5i-qjxCqN|4L%Rg!METgcm>{of507V z!o7Gu9>IQm6wlxYK890R!X-5DijbG8$ILFhKtY!}fnzq^)j?sn4cY23zmC4)@od|C&enIoEbPI%QH;P?Uy0~A9iJCszLV}d6Kx^@_HFy*L0)K})@Gp29-oXZpV;kkOuj1G78+a3cgfHTc@fY|@{1yHhe}ix0 zU-2#c8{WpZ@g00uYLz;q1JVQ1L8(XTm5xcrrL)pGX;PY%iqfLABsR9`Y?rGW^~cwV zhMmp7Q>B~rovriS$moaTWAA%s`@OjO+v(mW`>TV~85#1wQot=tAek!`X zeVuWofxIxrWk1+OUGzIAABo46M)F7T>~w;<;CC{Eq=tEy{GYb--@@zgM|cZv)Aha` zTTsDHJcQkJ#h=Erbj6>?F&rn`&f^?j!g=^n1)Rb0nw_;Gv^KZ&2hPm`TL zgU{lZ@OgZJZ2fCw?Kkne_&xkSzJxF1Pw{8?b8hvw@D2PE{<+4E$HR7vx5IY4nsqGG zwpgsnUNbVirc`=O>EydC3#g6z=oJ)-n_7sUMbM)Z&kjSDN3q712$SNGkW@3}1vW); z{v13`tjR5qqVAB4OfjFzG6AYtW>FLSu~=~nzecg&T`~w-HQ+Y`vEmMv-}v$B71Ceg zIZxe8f=7=**=Crc-49R3b>oT&Jk|6l(zAj Date: Mon, 11 Nov 2024 21:58:17 +0100 Subject: [PATCH 3/3] feat. add zhCN i18n language support 1. Add zhCN i18n language support --- .DS_Store | Bin 10244 -> 10244 bytes iamai/.DS_Store | Bin 6148 -> 6148 bytes iamai/locale/.DS_Store | Bin 6148 -> 6148 bytes iamai/locale/zh/LC_MESSAGES/i18n.po | 85 +++++++++++++++------------- 4 files changed, 45 insertions(+),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YF z%*R4Sf#&JZ^ zdrT2Lfs^B)qu~2NHo+2a5#DLw41(+BaStj!^PT(*!G1pNrHaDKUgfW_zjUksI zpCN@Il_7_rc(M#*1G2OuH delta 81 zcmZoMXfc=|#>B`mu~2NHo+2aD#DLwC4MbQb^E35wm>8PqC>WVrOkTniz4<+}1j{Ct k4~(1HIruq%8a97q{?0s^U&NAw0SFiw7??H(h-_g70D<-tlmGw# diff --git a/iamai/locale/.DS_Store b/iamai/locale/.DS_Store index 7b16239290414b63a305b96f52d1c66880da6bbf..1755def2bb9374b72e063bcc1805496eea9b5bec 100644 GIT binary patch delta 92 zcmZoMXfc=|#>B)qu~2NHo+2a5#DLw4m>3yZCi5^pW@TciV#t^*!q~uJXkxCTU~FzY uc@Co^Gf;5z14eh2&Fmcf96-IBKQex2p3E;|$-&6L07MK7n*&6)FarQJgBAe* delta 69 zcmZoMXfc=|#>B`mu~2NHo+2aD#DLwC4MbQb^D{lze4g2YW%C2(2aKE9Iruq%iZ)+l Y{?0s^U&NAw0SFiw7??H(h-_g70Kb3|bpQYW diff --git a/iamai/locale/zh/LC_MESSAGES/i18n.po b/iamai/locale/zh/LC_MESSAGES/i18n.po index 5705503a..1ce8820a 100644 --- a/iamai/locale/zh/LC_MESSAGES/i18n.po +++ b/iamai/locale/zh/LC_MESSAGES/i18n.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2024-11-10 13:25+0800\n" -"PO-Revision-Date: 2024-11-10 13:10+0800\n" +"PO-Revision-Date: 2024-11-11 21:45+0200\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" "Language: zh\n" @@ -19,29 +19,30 @@ msgstr "" #: iamai/i18n.py:65 iamai/bot.py:235 #, python-brace-format msgid "Version: {version}" -msgstr "" +msgstr "版本:{version}" #: iamai/bot.py:203 msgid "Restarting iamai..." -msgstr "" +msgstr "正在重启 iamai..." #: iamai/bot.py:234 msgid "Running iamai..." -msgstr "" +msgstr "正在运行 iamai..." #: iamai/bot.py:252 msgid "Startup adapter {_adapter!r} failed: {error}" -msgstr "" +msgstr "启动适配器 {_adapter!r} 失败:{error}" #: iamai/bot.py:303 #, python-brace-format msgid "Succeeded to remove plugin \"{plugin_.__name__}\" from file \"{file}\"" -msgstr "" +msgstr "成功从文件 \"{file}\" 中移除插件 \"{plugin_.__name__}\"" #: iamai/bot.py:317 msgid "" "Hot reload needs to install \"watchfiles\", try \"pip install watchfiles\"" msgstr "" +"热重载需要安装 \"watchfiles\",请尝试 \"pip install watchfiles\"" #: iamai/bot.py:322 msgid "Hot reload is working!" @@ -50,152 +51,154 @@ msgstr "热重载正在工作!" #: iamai/bot.py:347 #, python-brace-format msgid "Reload config file \"{self._config_file}\"" -msgstr "" +msgstr "重新加载配置文件 \"{self._config_file}\"" #: iamai/bot.py:374 #, python-brace-format msgid "Hot reload: Added file: {file}" -msgstr "" +msgstr "热重载:添加文件:{file}" #: iamai/bot.py:381 #, python-brace-format msgid "Hot reload: Deleted file: {file}" -msgstr "" +msgstr "热重载:删除文件:{file}" #: iamai/bot.py:385 #, python-brace-format msgid "Hot reload: Modified file: {file}" -msgstr "" +msgstr "热重载:修改文件:{file}" #: iamai/bot.py:441 msgid "Read config file failed:" -msgstr "" +msgstr "读取配置文件失败:" #: iamai/bot.py:442 msgid "Unable to determine config file type" -msgstr "" +msgstr "无法确定配置文件类型" #: iamai/bot.py:445 #, python-brace-format msgid "Can not open config file: {e}" -msgstr "" +msgstr "无法打开配置文件:{e}" #: iamai/bot.py:447 #, python-brace-format msgid "Read config file failed: {e}" -msgstr "" +msgstr "读取配置文件失败:{e}" #: iamai/bot.py:453 #, python-brace-format msgid "Config dict parse error: {e}" -msgstr "" +msgstr "配置字典解析错误:{e}" #: iamai/bot.py:467 msgid "Stopping iamai..." -msgstr "" +msgstr "正在停止 iamai..." #: iamai/bot.py:469 msgid "Force Exit iamai..." -msgstr "" +msgstr "强制退出 iamai..." #: iamai/bot.py:492 msgid "Adapter {current_event.adapter.name} received: {current_event!r}" -msgstr "" +msgstr "适配器 {current_event.adapter.name} 收到:{current_event!r}" #: iamai/bot.py:522 msgid "Checking for matching plugins with priority {plugin_priority!r}" -msgstr "" +msgstr "正在检查优先级为 {plugin_priority!r} 的匹配插件" #: iamai/bot.py:542 msgid "Event will be handled by {_plugin!r}" -msgstr "" +msgstr "事件将由插件 {_plugin!r} 处理" #: iamai/bot.py:555 msgid "Exception in plugin {plugin!r}" -msgstr "" +msgstr "插件 {plugin!r} 中发生异常" #: iamai/bot.py:562 msgid "Event Finished" -msgstr "" +msgstr "事件响应完成" #: iamai/bot.py:677 #, python-brace-format msgid "Already have a same name plugin \"{_plugin.__name__}\"" -msgstr "" +msgstr "已存在同名插件 \"{_plugin.__name__}\"" #: iamai/bot.py:683 msgid "" "Succeeded to load plugin \"{plugin_class.__name__}\" from class " "\"{plugin_class!r}\"" msgstr "" +"成功从类 \"{plugin_class!r}\" 加载插件 " +"\"{plugin_class.__name__}\"" #: iamai/bot.py:687 msgid "Load plugin from class \"{plugin_class!r}\" failed:" -msgstr "" +msgstr "从类 \"{plugin_class!r}\" 加载插件失败:" #: iamai/bot.py:689 msgid "Plugin priority incorrect in the class \"{plugin_class!r}\"" -msgstr "" +msgstr "类 \"{plugin_class!r}\" 中插件优先级错误" #: iamai/bot.py:706 #, python-brace-format msgid "Import module \"{module_name}\" failed:" -msgstr "" +msgstr "导入模块 \"{module_name}\" 失败:" #: iamai/bot.py:740 #, python-brace-format msgid "Loading plugins from module \"{plugin_}\"" -msgstr "" +msgstr "正在从模块 \"{plugin_}\" 加载插件" #: iamai/bot.py:747 #, python-brace-format msgid "Loading plugins from path \"{plugin_}\"" -msgstr "" +msgstr "正在从路径 \"{plugin_}\" 加载插件" #: iamai/bot.py:750 #, python-brace-format msgid "The plugin path \"{plugin_}\" must be a file" -msgstr "" +msgstr "插件 \"{plugin_}\" 必须是一个文件" #: iamai/bot.py:755 #, python-brace-format msgid "The path \"{plugin_}\" must endswith \".py\"" -msgstr "" +msgstr "插件路径 \"{plugin_}\" 必须以 \".py\" 结尾" #: iamai/bot.py:786 #, python-brace-format msgid "{plugin_} can not be loaded as plugin" -msgstr "" +msgstr "{plugin_} 无法作为插件加载" #: iamai/bot.py:789 #, python-brace-format msgid "Load plugin \"{plugin_}\" failed:" -msgstr "" +msgstr "加载插件 \"{plugin_}\" 失败:" #: iamai/bot.py:817 #, python-brace-format msgid "Loading plugins from dirs {dir_list}" -msgstr "" +msgstr "正在从目录 {dir_list} 加载插件" #: iamai/bot.py:853 #, python-brace-format msgid "Can not find Adapter class in the {adapter_} module" -msgstr "" +msgstr "在模块 {adapter_} 中找不到适配器类" #: iamai/bot.py:857 #, python-brace-format msgid "More then one Adapter class in the {adapter_} module" -msgstr "" +msgstr "在模块 {adapter_} 中存在多个适配器类" #: iamai/bot.py:862 #, python-brace-format msgid "{adapter_} can not be loaded as adapter" -msgstr "" +msgstr "{adapter_} 无法作为适配器加载" #: iamai/bot.py:865 #, python-brace-format msgid "Load adapter \"{adapter_}\" failed:" -msgstr "" +msgstr "加载适配器 \"{adapter_}\" 失败:" #: iamai/bot.py:870 #, python-brace-format @@ -203,21 +206,23 @@ msgid "" "Succeeded to load adapter \"{adapter_object.__class__.__name__}\" from " "\"{adapter_}\"" msgstr "" +"成功从 \"{adapter_}\" 加载适配器 " +"\"{adapter_object.__class__.__name__}\"" #: iamai/bot.py:912 #, python-brace-format msgid "Can not find adapter named \"{adapter}\"" -msgstr "" +msgstr "找不到名为 \"{adapter}\" 的适配器" #: iamai/bot.py:929 #, python-brace-format msgid "Can not find plugin named \"{name}\"" -msgstr "" +msgstr "找不到名为 \"{name}\" 的插件" #: iamai/cli.py:22 #, python-brace-format msgid "Installing plugin: {plugin_name}" -msgstr "" +msgstr "正在安装插件:{plugin_name}" #: iamai/cli.py:27 #, python-brace-format