mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-13 17:23:58 +02:00
Use plural grammar/spelling where intended
This commit is contained in:
@@ -41,7 +41,7 @@ install or sport additional features or i18n file formats. In this document, we
|
||||
PHP core, but here we list others for completion:
|
||||
|
||||
- [aura/intl][aura-intl]: Provides internationalization (I18N) tools, specifically package-oriented per-locale message
|
||||
translation. It uses array formats for message. Does not provide a message extractor, but does provide advanced
|
||||
translation. It uses array formats for messages. Does not provide a message extractor, but does provide advanced
|
||||
message formatting via the `intl` extension (including pluralized messages).
|
||||
- [oscarotero/Gettext][oscarotero]: Gettext support with an OO interface; includes improved helper functions, powerful
|
||||
extractors for several file formats (some of them not supported natively by the `gettext` command), and can also export
|
||||
@@ -248,7 +248,7 @@ the actual interface. Given that, let's tie together what we have discussed so f
|
||||
- [`gettext()`][func] simply translates a `msgid` into its corresponding `msgstr` for a given language. There's also
|
||||
the shorthand function `_()` that works the same way;
|
||||
- [`ngettext()`][n_func] does the same but with plural rules;
|
||||
- there's also [`dgettext()`][d_func] and [`dngettext()`][dn_func], that allows you to override the domain for a single
|
||||
- There are also [`dgettext()`][d_func] and [`dngettext()`][dn_func], that allow you to override the domain for a single
|
||||
call. More on domain configuration in the next example.
|
||||
|
||||
#### 2. A sample setup file (`i18n_setup.php` as used above), selecting the correct locale and configuring Gettext
|
||||
|
@@ -49,7 +49,7 @@ Managing and configuring servers can be a daunting task when faced with many ser
|
||||
|
||||
[Ansible] is a tool that manages your infrastructure through YAML files. It's simple to get started with and can manage complex and large scale applications. There is an API for managing cloud instances and it can manage them through a dynamic inventory using certain tools.
|
||||
|
||||
[Puppet] is a tool that has its own language and file types for managing servers and configurations. It can be used in a master/client setup or it can be used in a "master-less" mode. In the master/client mode the clients will poll the central master(s) for new configuration on set intervals and update itself if necessary. In the master-less mode you can push changes to your nodes.
|
||||
[Puppet] is a tool that has its own language and file types for managing servers and configurations. It can be used in a master/client setup or it can be used in a "master-less" mode. In the master/client mode the clients will poll the central master(s) for new configuration on set intervals and update themselves if necessary. In the master-less mode you can push changes to your nodes.
|
||||
|
||||
[Chef] is a powerful Ruby based system integration framework that you can build your whole server environment or virtual boxes with. It integrates well with Amazon Web Services through their service called OpsWorks.
|
||||
|
||||
|
@@ -22,7 +22,7 @@ The following will download a fully functional Apache installation with the late
|
||||
docker run -d --name my-php-webserver -p 8080:80 -v /path/to/your/php/files:/var/www/html/ php:apache
|
||||
{% endhighlight %}
|
||||
|
||||
This will initialize and launch your container. `-d` makes it runs in the background. To stop and start it, simply run `docker stop my-php-webserver` and `docker start my-php-webserver` (the other parameters are not needed again).
|
||||
This will initialize and launch your container. `-d` makes it run in the background. To stop and start it, simply run `docker stop my-php-webserver` and `docker start my-php-webserver` (the other parameters are not needed again).
|
||||
|
||||
### Learn more about Docker
|
||||
|
||||
|
@@ -197,7 +197,7 @@ and gives you a central place to hook in code that should be run for every reque
|
||||
|
||||
## Model-View-Controller
|
||||
|
||||
The model-view-controller (MVC) pattern and its relatives HMVC and MVVM lets you break up code into logical objects
|
||||
The model-view-controller (MVC) pattern and its relatives HMVC and MVVM let you break up code into logical objects
|
||||
that serve very specific purposes. Models serve as a data access layer where data is fetched and returned in formats
|
||||
usable throughout your application. Controllers handle the request, process the data returned from models and load
|
||||
views to send in the response. And views are display templates (markup, xml, etc) that are sent in the response to the
|
||||
|
Reference in New Issue
Block a user