Translate message

Permalink Browser Info Environment
I need to translate some phrases:

To find out more about cookies on this website, see our privacy policy.

I accept cookies from this site

Can you provide a way useing a block or setting?

With" Disclosure text " I can customize only a partial

TIA
Alessandro

Type: Pre-Sale
Status: In Progress
lota
View Replies:
formigo replied on at Permalink Reply
formigo
All those strings are included as translatable. So they can be translated via the normal concrete5 translations mechanism.

I you need a hacky way to change them you will find them all at line 92 of models/cookiesDisclosure.php, but this is not the preferred approach as updates to the package would overwrite you changes.

private static function tJavascript(){
      ## Make the javascript script text translatable
      $t = array();
      $t[0] = t('To find out more about cookies on this website, see our');
      $t[1] = t('privacy policy');
      $t[2] = t("You must tick the, I accept cookies from this site box, to accept");
      $t[3] = t('I accept cookies from this site');
      $t[4] = t('Continue');
      return $t;
   }
}

concrete5 Environment Information

# concrete5 Version
5.6.3.3

# concrete5 Packages
Formigo Cookies Disclosure (1.0.3), Galleria image gallery (2.0), Internationalization (1.3), Jacket Theme (1.0.1), Lightboxed Image (0.9.2), Sortable Fancybox Gallery (1.17).

# concrete5 Overrides
jobs/clean_temp_sessions.php

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off

# Server Software
Apache

# Server API
apache2handler

# PHP Version
5.4.39-0+deb7u2

# PHP Extensions
apache2handler, bcmath, bz2, calendar, Core, ctype, curl, date, dba, dom, ereg, exif, fileinfo, filter, ftp, gd, geoip, gettext, hash, iconv, json, ldap, libxml, mbstring, mcrypt, mhash, mysql, mysqli, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlwriter, 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 - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 28M
sql.safe_mode - Off
upload_max_filesize - 20M
ldap.max_links - Unlimited
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 - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5

Browser User-Agent String

Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.7.0

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.