Default Language for Shopping Cart & Checkout Page

Permalink Browser Info Environment
I would like to change the default language of the shopping cart & check out page to another language (Japanese). How do we accomplish this?

Type: Ticket
Status: Archived
FL510
View Replies:
PineCreativeLabs replied on at Permalink Reply 1 Attachment
PineCreativeLabs
I am working on an update to include a locale code, which would make the checkout page be in Japanese. It does seem to translate, but it throws an error (see attached screenshot). Hopefully I can get this figured out soon.
FL510 replied on at Permalink Reply
FL510
When I saw the English version of that particular error, it was associated with the "," typed in the amount value. For example, 65000 yen typed as 65,000 yen with comma returned this error.
PineCreativeLabs replied on at Permalink Reply
PineCreativeLabs
I tried testing the currency format with both the correct and incorrect format, but the error persisted.

Did a little digging, and the error is likely due to the Locale setting. Looking at the Paypal developer API, there are several factors that determine the checkout page locale:

1. The shipping address country provided by the merchant in the request.
2. The country taken from the locale code parameter passed by the merchant.
3. The country of the current user.
4. The merchant's country.

I'm working on a way to customize this.
FL510 replied on at Permalink Reply
FL510
#2 is applicable to the website I have-- where a locale code parameter gets passed onto the checkout page rather than the checkout page determines the language based on other automated factors.

For example, #1, #3, and #4 won't work if a merchant is located in the US but wants to target audiences in Japan (US merchant wanting to sell products in Japan for Japanese audiences).
PineCreativeLabs replied on at Permalink Reply
PineCreativeLabs
The error seems to only happen when the product is added to cart. It works fine when using the "buy now" option. I've also found a couple other small bugs, which I'm fixing in the next version.
ConcreteCMS replied on at Permalink Reply
ConcreteCMS
Attention: Since there has been no activity on this issue for two weeks, this issue has been automatically archived.

To re-open this issue, reply to this message.

concrete5 Environment Information

# concrete5 Version
Core Version - 8.5.4
Version Installed - 8.5.4
Database Version - 20200609145307

# Database Information
Version: 5.7.30
SQL Mode: ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

# concrete5 Packages
Cloneamental (0.9.3), Disable page or site content copy (1.0.0), EZ Paypal (2.0.1), EZ Product (1.3)

# concrete5 Overrides
None

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
fpm-fcgi

# PHP Version
7.3.18

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imap, intl, json, ldap, libxml, mbstring, mysqli, mysqlnd, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, readline, Reflection, session, SimpleXML, soap, sockets, SPL, sqlite3, standard, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend OPcache, zip, zlib

# PHP Settings
max_execution_time - 120
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 300
max_input_vars - 1000
memory_limit - 512M
post_max_size - 40M
upload_max_filesize - 40M
ldap.max_links - Unlimited
mbstring.regex_stack_limit - 100000
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
opcache.max_accelerated_files - 10000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.