How to translate the text in the 'send' button?

Permalink Browser Info Environment
First of all: thank you very much for this useful block! I've installed it on a new website 'in-the-making'. I could easily translate the texts of the form in dutch that I found in view.php. But I can't find how to translate the text in the 'send' button. I've been digging in different files but was not able to find this text string. Can you give me a clue?

Thank you very much in advance!
Hans Hockx

1 Attachment

Type: Discussion
Status: Resolved
hhockx
View Replies:
Gondwana replied on at Permalink Reply
Gondwana
The add-on should be compatible with c5's built-in multilingual capability, which does not involve editing source code files.

It sounds like you're translating by directly changing source code files. If so, the 'Send' I think you want is in view.php at about line 53:
print $form->submit('submit_id', t('Send'), array('class' => 'btn-primary'));

concrete5 Environment Information

# concrete5 Version
Core Version - 8.4.2
Version Installed - 8.4.2
Database Version - 20180716000000

# concrete5 Packages
Automatic Email Obfuscator (2.0.1), Casual (1.1.7), Contact Form (No Links) (1.0), Icons for Redactor (0.9), Infotown Table (0.9.9), Login/Logout Link (1.0), Spacer (0.9.4), Styled Maps (1.2.3), Tallacmans Copyright (0.9.8), Tallacmans Tasty Templates (1.0)

# concrete5 Overrides
None

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - On - If blocks on the particular page allow it.
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache/2

# Server API
litespeed

# PHP Version
5.5.38

# PHP Extensions
bcmath, bz2, calendar, Core, ctype, curl, date, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, intl, ionCube Loader, json, libxml, litespeed, mbstring, mcrypt, mhash, mysql, mysqli, mysqlnd, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, readline, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, sqlite3, standard, tokenizer, xml, xmlreader, 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 - 8M
sql.safe_mode - Off
upload_max_filesize - 2M
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
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_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Safari/605.1.15

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.