Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hifEY-0004mC-Ly for pgsql-translators@arkaria.postgresql.org; Wed, 03 Jul 2019 13:23:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hifEX-0001r4-Ii for pgsql-translators@arkaria.postgresql.org; Wed, 03 Jul 2019 13:23:37 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hifEX-0001iw-3N for pgsql-translators@lists.postgresql.org; Wed, 03 Jul 2019 13:23:37 +0000 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hifET-0004LR-Vl for pgsql-translators@postgresql.org; Wed, 03 Jul 2019 13:23:35 +0000 Received: by mail-qk1-x741.google.com with SMTP id s22so2569623qkj.12 for ; Wed, 03 Jul 2019 06:23:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=7ZsfHWVNkYKG+jqunk+0QmJTRh501sVRH5MXpFLW2OU=; b=mUEMBusM8To2REPX7TtCXXT5Moynl3VIr+NEYLTAzoBoVncScrgA7ICwJDzL1biffE GDEgb6AjhD90rVB4On1ldlb6iNYolhPTupVStiVVJ7cDk2lq3dI6tW3e0d1asH6MAImA cRHlhr3LsSqubMywU9sbmJItbIeisDm2cCwFmKM7v3CiGztu48zaJPrf3nzBsgGs/5si neGWkwTk2Ej4m04rd/+1UAfKRLzCr36ovyRIqWcqtuhYGH0Oc60YNi35EO+4zfvVD7xk sHIw/DaiB0QasQXVQOtl52uYX/yzND1uXSD+863/tt2xLWYVQSYJ1TdsktLNoH71yC3o t+5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=7ZsfHWVNkYKG+jqunk+0QmJTRh501sVRH5MXpFLW2OU=; b=bPfraqoJSXKJ1GOtEEa50jJvDJrz4RSDyuRPrE1+GfOPSD0jSxd8Ej223jhXAovR0i Vqg6PsuWdMrRHwMbgvXoGFtymjsc1V74BegCrgBDrl9NF+KAuY44YiZUHNIRleOk/hvf PguCf+HVjhGqfRvy9Sw/n9Ic1mzW7MG6TJ6PjO6YFCs9LuKOEEJV3X213ZnfvjKraSqo jy7PYDpu1TZ22+RN1kqn0ssVfU02Xx/eVCWWNeWGqcQIue1XIM9UTH9ahjpU+wvcwJo2 2SzGdlBuXJCVNKNHhQ43hWpIBKgfxU2pyOsUKKb0nuYvhCfYKygB0Yp3riHK/2X0IahA 6nug== X-Gm-Message-State: APjAAAXt7BNYSJT0XgFYskZNH2AQuOWK7FV1uXFwE1FJxlwImqlEZDKO iDvVr69cKsqJxE2Ij1BHiGZhGTHN8IQ= X-Google-Smtp-Source: APXvYqzy/i8rKGfU1a9lQUoiTmKxIrT4UGmSZQFiOk0LvB/kjQpqY+9qiFt/jEvjb+LJn4RQ5/VxNA== X-Received: by 2002:a37:8fc4:: with SMTP id r187mr30911873qkd.113.1562160213385; Wed, 03 Jul 2019 06:23:33 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([201.186.16.101]) by smtp.gmail.com with ESMTPSA id p21sm907409qtq.17.2019.07.03.06.23.32 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 03 Jul 2019 06:23:32 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 10B9D1207D8; Wed, 3 Jul 2019 09:23:30 -0400 (-04) Date: Wed, 3 Jul 2019 09:23:30 -0400 From: Alvaro Herrera To: Yonatan Misgan Cc: "pgsql-translators@postgresql.org" Subject: Re: Localization Message-ID: <20190703132330.GA7578@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Jul-03, Yonatan Misgan wrote: > Translation is only one aspect of locales. Other localization aspects are system services. There are many attributes that are needed to define a country’s cultural conventions. These attributes include besides the country’s native language, the formatting of the date and time, the representation of numbers, the symbols for currency, etc. The locale represents the knowledge needed to support the country’s native attributes. So my question is how can I handled these locale aspects (date and time, collation order, currency symbol, numeric symbol, and format ) in PostgreSQL. Thank you. There are locale options that change behavior in various places, such as to_char and other places. Other than that, I don't think we have a good answer (but we do have very detailed documentation). If you want to make a stab at writing an answer, we're listening. This means you'll have to do a lot of research by yourself. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services