mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-02 13:07:27 +02:00
docs: improve Chinese translation for Singleton
This commit is contained in:
@@ -4,12 +4,12 @@ msgstr ""
|
|||||||
"Project-Id-Version: DesignPatternsPHP 1.0\n"
|
"Project-Id-Version: DesignPatternsPHP 1.0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2015-05-29 12:18+0200\n"
|
"POT-Creation-Date: 2015-05-29 12:18+0200\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: 2022-01-06 13:00+0800\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: Aspirant Zhang <admin@aspirantzhang.com>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"Language: zh_CN\n"
|
||||||
|
|
||||||
#: ../../Creational/Singleton/README.rst:2
|
#: ../../Creational/Singleton/README.rst:2
|
||||||
msgid "`Singleton`__"
|
msgid "`Singleton`__"
|
||||||
@@ -19,7 +19,7 @@ msgstr "`单例模式`__"
|
|||||||
msgid ""
|
msgid ""
|
||||||
"**THIS IS CONSIDERED TO BE AN ANTI-PATTERN! FOR BETTER TESTABILITY AND "
|
"**THIS IS CONSIDERED TO BE AN ANTI-PATTERN! FOR BETTER TESTABILITY AND "
|
||||||
"MAINTAINABILITY USE DEPENDENCY INJECTION!**"
|
"MAINTAINABILITY USE DEPENDENCY INJECTION!**"
|
||||||
msgstr "**单例模式已经被考虑列入到反模式中!请使用依赖注入获得更好的代码可测试性和可控性!**"
|
msgstr "**注:单例模式可能被认为是一种“反模式”。为了获得更好的可测试性和可维护性,建议使用依赖注入。**"
|
||||||
|
|
||||||
#: ../../Creational/Singleton/README.rst:8
|
#: ../../Creational/Singleton/README.rst:8
|
||||||
msgid "Purpose"
|
msgid "Purpose"
|
||||||
@@ -29,7 +29,7 @@ msgstr "目标"
|
|||||||
msgid ""
|
msgid ""
|
||||||
"To have only one instance of this object in the application that will handle"
|
"To have only one instance of this object in the application that will handle"
|
||||||
" all calls."
|
" all calls."
|
||||||
msgstr "使应用中只存在一个对象的实例,并且使这个单实例负责所有对该对象的调用。"
|
msgstr "让应用只存在一个对象的实例,处理所有的调用。"
|
||||||
|
|
||||||
#: ../../Creational/Singleton/README.rst:14
|
#: ../../Creational/Singleton/README.rst:14
|
||||||
msgid "Examples"
|
msgid "Examples"
|
||||||
@@ -48,7 +48,7 @@ msgstr "日志记录器"
|
|||||||
msgid ""
|
msgid ""
|
||||||
"Lock file for the application (there is only one in the filesystem ...)"
|
"Lock file for the application (there is only one in the filesystem ...)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"应用锁文件 (理论上整个应用只有一个锁文件 ...)"
|
"应用程序的锁定文件(Lock file,理论上整个应用应该只有一个锁文件)"
|
||||||
|
|
||||||
#: ../../Creational/Singleton/README.rst:23
|
#: ../../Creational/Singleton/README.rst:23
|
||||||
msgid "UML Diagram"
|
msgid "UML Diagram"
|
||||||
|
Reference in New Issue
Block a user