Adding Languages

Permalink Browser Info Environment
I have read the instructions for adding languages...

Copy translated 'messages.mo' into '\packages\theme_pixel\languages\{language}_{country}\LC_MESSAGES\messages.mo'

I have uploaded the .om language files I require into languages folder, but not clear on what to do next. I can see its probably editing messages.mo file but its lost me... sorry.

Please can you help.

Type: Pre-Sale
Status: Resolved
deanhawthornthwaite
View Replies:
shahroq replied on at Permalink Reply
shahroq
After adding the language file, the admin section will use the new language in admin sections, provided that you have changed the language at:
Dashboard > System & Settings > Basic > Languages > Default Language
deanhawthornthwaite replied on at Permalink Reply
deanhawthornthwaite
I have selected the tick box 'Offer choice of language on login' and logged out and back in but no other languages are appearing either in the back end or on the site.

Then I realized you need to click the 'update/install languages' button to the top right.
So this is confusing as it looks like I didn't need to copy the .mo files over as its installing them from this interface.
Sadly even though I have now added languages using the second method and logged out and back in again I still only have English as the choice on the site.
Very confused?
shahroq replied on at Permalink Reply
shahroq
Actually, I'm not sure what do you want to achieve, but you should know this is only for dashboard section of your site. When you log in with the different language than English (I suppose you have chosen the different lang from login page combo box), you should see all strings in the dashboard in your chosen language.
The language file you have put in the /packages/theme_pixel/languages/ folder is responsible only for strings in "Dashboard > Pages & Theme > Pixel Option" page. It translates them into your chosen language. For example, if you logged in Italian, and you have put "messages.mo" in "\packages\theme_pixel\languages\it_IT\LC_MESSAGES\messages.mo", you should be able to see "Pixel Option" page in Italian.
deanhawthornthwaite replied on at Permalink Reply
deanhawthornthwaite
Ok, I understand thanks for explaining. I was thinking it was for site viewers to change language on the fly not for registered users.
Do you know if there is an add-on that can make different languages available please?
shahroq replied on at Permalink Reply
shahroq
You don't need an add-on. There are plenty of documents available for how to set up a multilingual website in C5. Just do a search on either google or concrete5 and you will find some useful information.

concrete5 Environment Information

# concrete5 Version
Core Version - 8.3.2
Version Installed - 8.3.2
Database Version - 20180122213656

# concrete5 Packages
Pixel Theme (2.1.0)

# 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
litespeed

# PHP Version
5.6.34

# PHP Extensions
bcmath, bz2, calendar, Core, ctype, curl, date, dom, enchant, ereg, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imap, ionCube Loader, json, ldap, libxml, litespeed, mbstring, mcrypt, memcache, mhash, mysql, mysqli, mysqlnd, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, pspell, readline, Reflection, session, shmop, SimpleXML, snmp, soap, sockets, SourceGuardian, SPL, sqlite3, standard, suhosin, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend Guard Loader, Zend OPcache, zip, zlib

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - -1
max_input_vars - 1000
memory_limit - 128M
post_max_size - 64M
sql.safe_mode - Off
upload_max_filesize - 64M
ldap.max_links - Unlimited
memcache.max_failover_attempts - 20
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
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
suhosin.cookie.max_array_depth - 50
suhosin.cookie.max_array_index_length - 64
suhosin.cookie.max_name_length - 64
suhosin.cookie.max_totalname_length - 256
suhosin.cookie.max_value_length - 10000
suhosin.cookie.max_vars - 100
suhosin.executor.include.max_traversal - 0
suhosin.executor.max_depth - 750
suhosin.get.max_array_depth - 50
suhosin.get.max_array_index_length - 64
suhosin.get.max_name_length - 64
suhosin.get.max_totalname_length - 256
suhosin.get.max_value_length - 512
suhosin.get.max_vars - 100
suhosin.log.phpscript.is_safe - Off
suhosin.memory_limit - 0
suhosin.post.max_array_depth - 50
suhosin.post.max_array_index_length - 64
suhosin.post.max_name_length - 64
suhosin.post.max_totalname_length - 256
suhosin.post.max_value_length - 1000000
suhosin.post.max_vars - 1000
suhosin.request.max_array_depth - 50
suhosin.request.max_array_index_length - 64
suhosin.request.max_totalname_length - 256
suhosin.request.max_value_length - 1000000
suhosin.request.max_varname_length - 64
suhosin.request.max_vars - 1000
suhosin.session.max_id_length - 128
suhosin.upload.max_newlines - 100
suhosin.upload.max_uploads - 25
opcache.max_accelerated_files - 2000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5
zend_optimizerplus.max_accelerated_files - 2000
zend_optimizerplus.max_file_size - 0
zend_optimizerplus.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 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.