Localization

Permalink Browser Info Environment
Hi!
Have been able to do all the style changes with CSS as you said on your website - fantastic!

One small issue left - i need to change "Show All" on the Filter Tag / Single Gallery from English to German.
Ideally it would be using the "t" for translate in the view.php. I know this is no guarantee it will be in the .mo or .po file (or whatever it's called) so I thought I could do a template or override.
Unfortunately, I can't seem to get the override path correct, and I am wondering about the naming of the file.

Can you make a path and file name recommendation?

Thanks for all your help so far...

Type: Ticket
Status: Resolved
arlenesey
View Replies:
emirii replied on at Permalink Reply
emirii
Hello!

I never messed with the translation things, but I did notice that the text wasn't surrounded in "t" tag, looks like I missed it, but i think it would still be easier to just override the file.

If you want the single gallery block if you put it like this, it should override:
application/blocks/gallery_e_s_view/view.php

Then copy the whole contents from the original package's block folder "view.php" into your new view.php, then edit the button text.

The Show All button is on line 28 of view.php

That's all you should need to do, but if it doesnt show up at first try clearing your cache.

Thanks!
arlenesey replied on at Permalink Reply
arlenesey
That worked perfectly! Thanks!
I think I got mixed up with the nested directories in the original package. Was actually straightforward!


Arlene Seydoux
arlene@seydoux.net



> On 04 Mar 2015, at 17:01, concrete5 Community <discussions@concretecms.com> wrote:
arlenesey replied on at Permalink Reply
arlenesey
OOPS
I spoke to soon!
Is "Show All" used in another file in this block? I will look for it and let you know-
Now when I click on "Alle" - German for "Show Al" all pictures disappear.
arlenesey replied on at Permalink Reply
arlenesey
Okay, I found a second instance of "Show All" in controller.php on line 334

When I add this "corrected" file to the override folder, I get an error message on the page with
Class '\Application\Block\GalleryESView\Controller' not found

I could edit the original files and see where that gets me, but maybe you know exactly where the problem is?
emirii replied on at Permalink Reply
emirii
Arlensey, I am so sorry I didnt get a notification of reply and I am on vacation at the moment!

Is this still a problem for you? I can look at it in 3 days when I am back home. Sorry again for totally missing it!
emirii replied on at Permalink Reply
emirii
Arlensey, I am so sorry I didnt get a notification of reply and I am on vacation at the moment!

Is this still a problem for you? I can look at it in 3 days when I am back home. Sorry again for totally missing it!
arlenesey replied on at Permalink Reply
arlenesey
Dear emerii

Yes I would really appreciate you looking at this. My attempts to correct were unsuccessful, and would have been overwritten by updates anyway.
We go live in the next two weeks, but I can always update...
Enjoy your vacation!

sincerely
Arlene
emirii replied on at Permalink Reply 1 Attachment
emirii
Hello,

I attach a zip file with the correct files for your override. I've put "Alle" as the button text, I completely forgot about the controller.php modification, that was indeed important, ha!

All you need to do is unzip file, upload the folder to your application/blocks, clear cache and you should be set.
emirii replied on at Permalink Reply 1 Attachment
emirii
Hello,

I attach a zip file with the correct files for your override. I've put "Alle" as the button text, I completely forgot about the controller.php modification, that was indeed important, ha!

All you need to do is unzip file, upload the folder to your application/blocks, clear cache and you should be set.
arlenesey replied on at Permalink Reply
arlenesey
Hi emerii
Thanks so much, but every time I try to unpack the .zip, it changes to this:

gallery_e_s_mod.zip.cpgz

I have no idea what "cpgz" means.
Could you send the files unzipped?
Thanks!
Arlene
emirii replied on at Permalink Reply
emirii
I'm not sure what happened to that zip (i cant open either!!), but I will send you the files as soon as I get home, sorry about that!
emirii replied on at Permalink Reply
emirii
Here's the single files, just put it in your override block in application folder!

https://www.dropbox.com/s/ehg18uuaikxykfy/controller.php?dl=0...
https://www.dropbox.com/s/dw1sr8oymfhyztv/view.php?dl=0...

I cant upload them to C5 as php file not allowed :( Hopefully you can get them thru drop box.

concrete5 Environment Information

# concrete5 Version
Core Version - 5.7.3.1
Version Installed - 5.7.3.1
Database Version - 20150109000000

# concrete5 Packages
GalleryES (2.0.10), Page Redirect (2.0), Page Selector Attribute (2.0), Simple Slider (1.0), Spacer (0.9.0), Whale Bootstrap Carousel (0.9.1).

# concrete5 Overrides
blocks/gallery_e_s, blocks/page_title, languages/el_GR, languages/sv_SE, languages/it_IT, languages/fr_FR, languages/ru_RU, languages/de_DE, languages/ja_JP, languages/nl_NL, languages/tr_TR, languages/fi_FI, languages/sl_SI, languages/da_DK, themes/maeder

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

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
5.4.32

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imap, intl, ionCube Loader, json, libxml, mbstring, mcrypt, mhash, mysql, mysqli, odbc, openssl, pcntl, pcre, PDO, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, readline, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend Guard Loader, zip, zlib.

# PHP Settings
max_execution_time - 60
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 256M
post_max_size - 512M
sql.safe_mode - Off
upload_max_filesize - 512M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
odbc.max_links - Unlimited
odbc.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 1440
soap.wsdl_cache_limit - 5

Browser User-Agent String

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