From 5c654daf6191353cab0233ddedabb87440ea6be2 Mon Sep 17 00:00:00 2001 From: "KC (ksc)" Date: Wed, 24 Mar 2021 12:09:53 -0700 Subject: [PATCH] [IMP] ecommerce: fixes grammatical errors --- .../on-premise_geo-ip-installation.rst | 32 +++++++++++-------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/website/publish/on-premise_geo-ip-installation.rst b/website/publish/on-premise_geo-ip-installation.rst index 87dcbb06d..ce4bd85c3 100644 --- a/website/publish/on-premise_geo-ip-installation.rst +++ b/website/publish/on-premise_geo-ip-installation.rst @@ -1,18 +1,20 @@ -=========================================== -Geo IP installation (on-premises database) -=========================================== +========================================== +Geo IP Installation (On-Premises Database) +========================================== Installation ============ -.. warning:: Please note that the installation depends on your computer operating system and distribution. We will assume here that a Linux operating system is used. +.. warning:: Please note that the installation depends on your computer's operating system and + distribution. We will assume that a Linux operating system is being used. #. Install `geoip2 `__ Python library .. code-block:: bash pip install geoip2 -#. Download the `GeoLite2 City database `_. You should end up with a file called ``GeoLite2-City.mmdb`` +#. Download the `GeoLite2 City database `_. You + should end up with a file called ``GeoLite2-City.mmdb`` #. Move the file to the folder ``/usr/share/GeoIP/`` .. code-block:: bash @@ -20,8 +22,10 @@ Installation #. Restart the server -.. note:: If you can't/don't want to locate the geoip database in ``/usr/share/GeoIP/``, you can use the ``--geoip-db`` option of the Odoo command line interface. - This option takes the absolute path to the GeoIP database file and will use it as the GeoIP database. +.. note:: If you can't/don't want to locate the geoip database in ``/usr/share/GeoIP/``, you can + use the ``--geoip-db`` option of the Odoo command line interface. + This option takes the absolute path to the GeoIP database file and uses it as the GeoIP + database. For example: .. code-block:: bash @@ -31,11 +35,13 @@ Installation .. seealso:: - `CLI documentation `_. -.. warning:: ``GeoIP`` Python library can also be used. However this version is discontinued since January 2019. See `GeoLite Legacy databases are now discontinued `_ +.. warning:: ``GeoIP`` Python library can also be used. However this version is discontinued since + January 2019. See `GeoLite Legacy databases are now discontinued `_ -How to test GeoIP geolocation in your Odoo website? -=================================================== -1. Go into your website. Open the web page on which you want to test ``GeoIP``. +How To Test GeoIP Geolocation In Your Odoo Website +================================================== +1. Go to your website. Open the web page that you want to test ``GeoIP``. 2. Choose :menuselection:`Customize --> HTML/CSS/JS Editor`. 3. Add the following piece of XML in the page : @@ -43,12 +49,12 @@ How to test GeoIP geolocation in your Odoo website?

-You should end up with a dictionary indicating the location of the ip address. +You should end up with a dictionary indicating the location of the IP address. .. image:: media/on-premise_geo-ip-installation01.png :align: center -.. note:: If the curly braces are empty ``{}``, it can be for any of the following reason : +.. note:: If the curly braces are empty ``{}``, it can be for any of the following reasons : - The browsing IP address is the localhost (``127.0.0.1``) or a local area network one (``192.168.*.*``) - If a reversed proxy is used, make sure to configure it correctly. See `--proxy-mode `__