Changes for German website

Permalink Browser Info Environment
Hello!

I'm using the "Location Map" app in a German website. How can I make the Info Window display the zip code in front of the city as it is usual in German addresses?
Where can you change headings and predefined texts into German, e.g. in the Info Window I would like to change "Smartphone:" in "Telefonnr.:"?
In addition, when entering a German address in "Map Locations", the position of the marker is not set automatically, you always have to do this manually. Is there any way to change that?

best regards
Gert

Type: Pre-Sale
Status: Resolved
View Replies:
mesuva replied on at Permalink Reply 1 Attachment
mesuva
Hi Gert, thanks for buying our add-on.

To customise the way the map markers display, this would be a case of overriding the block template. You would:
- create a folder under /application/blocks/msv_location map
- copy into that the view.php file from /packages/msv_location_map/blocks/msv_location/view.php
- Make changes to the code in the new view.php file

However, as the address formatting requires some extra coding I've made this change for you already and have attached the file (as a zip). If I have misunderstood how German addresses should display, you can adjust this on line 61 and 127.

The other changes you may need to make to the template should be easy to find.

With the Google lookup of the address, this might not be finding addresses because it also tries to look them up with the zip code last. Could you give me an example address for me to try? Does it work with other addresses, such as major landmarks?

If it doesn't work at all, you may need to check your API key settings. It needs BOTH the Google Maps JavaScript API, and the Google Maps Geocoding API enabled. (I often forget the second one!)

Cheers
-Ryan
conker39 replied on at Permalink Reply
Hello,

If I install the new "view.php" as you suggest, I get the following error message when I call the map: "Call to undefined method Concrete \ Core \ Block \ View \ BlockView :: getAddress2 ()" (no map is visible)

I now use a key with Geocoding API, but there's still no automatic Geo detection for the usual locations' adresses. I registered the "Brandenburg Gate" in Berlin as a landmark, that worked, the position was entered automatically.
A typical address used in the site would be:

Niederlassung Bayreuth ("Location Name")
Transfer GmbH & Co. KG ("Adress 1")
Nibelungenstraße 32 ("Adress 2")
95444 Bayreuth ("Postcode" and "City")

In the first line is the branch office, then the name of the company. The two lower lines are the streetname with house number and the postal code with the corresponding city.
It is possible that some branch offices of the company are not already registered in Google Maps. Could this prevent detection, or is street and city sufficient for it?


bye

Gert
mesuva replied on at Permalink Reply 1 Attachment
mesuva
Hi Gert,

my apologies, I had missed two lines where I needed to make a change. I've attached an updated view.php that should fix the error you are seeing.

With the address lookup, I would suggestion not using the name of the company as Address 1, instead put the street number and name as the Address 1 value. I've found myself that address lookups don't tend to work well with the actual business/company names involved.

Let me know if you have success with doing it that way - I'm happy to look into things further.

-Ryan
conker39 replied on at Permalink Reply
Hello!

Thanks for the tip with the address. Without the company name the position detection has worked.
Can the location map content in the dashboard area also be translated into German somewhere (e.g. the 'Edit Location' form)?
I would also like to add: You offer an excellent service.

Greetings
Gert
mesuva replied on at Permalink Reply
mesuva
Hi Gert, glad to hear you've got the position detection working.

With the translation of the dashboard, it's actually a lot of work to create a translation and package it into the package itself - it's possible, but someone would need to supply translations for every piece of text.

However, if you are just wanting to translate a few dashboard pages you can override them and edit them however you like:
- create /application/single_pages/dashboard/map_locations/locations/view.php
- Copy into view.php the code from: /packages/msv_location_map/single_pages/dashboard/map_locations/locations/view.php
- Change the content in the view.php file in the application folder (and clear your cache)

The same goes for any of the other dashboard pages.

-Ryan

concrete5 Environment Information

# concrete5 Version
Core Version - 5.7.5.6
Version Installed - 5.7.5.6
Database Version - 20151221000000

# concrete5 Packages
Advanced Maps (1.1.4), Location Map (1.0.2), Styled Maps (1.2.3).

# concrete5 Overrides
blocks/autonav/templates/bootstrap.php, blocks/autonav/templates, blocks/autonav, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/pl_PL/LC_MESSAGES/messages.mo, languages/pl_PL/LC_MESSAGES, languages/pl_PL, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/nl_NL/LC_MESSAGES/messages.mo, languages/nl_NL/LC_MESSAGES, languages/nl_NL, languages/nb_NO/LC_MESSAGES/messages.mo, languages/nb_NO/LC_MESSAGES, languages/nb_NO, languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/tr_TR/LC_MESSAGES/messages.mo, languages/tr_TR/LC_MESSAGES, languages/tr_TR, languages/es_PY/LC_MESSAGES/messages.mo, languages/es_PY/LC_MESSAGES, languages/es_PY, languages/fr_FR/LC_MESSAGES/messages.mo, languages/fr_FR/LC_MESSAGES, languages/fr_FR, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, themes/transfer/images/transfer-logo.gif, themes/transfer/images/transfer-logo-start.gif, themes/transfer/images/dreieck_dd_rot.png, themes/transfer/images/logo-interim.jpg, themes/transfer/images/gutcert-logo.gif, themes/transfer/images/suchlupe.png, themes/transfer/images/button-menu-lupe.gif, themes/transfer/images/bild.jpg, themes/transfer/images/dreieck_dropdown.png, themes/transfer/images, themes/transfer/thumbnail.png, themes/transfer/js/jquery-1.11.3.min.js, themes/transfer/js/bootstrap.js, themes/transfer/js, themes/transfer/description.txt, themes/transfer/niederlassung.php, themes/transfer/grundseite.html, themes/transfer/startseite.php, themes/transfer/fonts/glyphicons-halflings-regular.ttf, themes/transfer/fonts/glyphicons-halflings-regular.eot, themes/transfer/fonts/glyphicons-halflings-regular.woff2, themes/transfer/fonts/glyphicons-halflings-regular.woff, themes/transfer/fonts/glyphicons-halflings-regular.svg, themes/transfer/fonts, themes/transfer/full.php, themes/transfer/css/bootstrap.css, themes/transfer/css/transfercss.css, themes/transfer/css, themes/transfer/page_theme.php, themes/transfer, blocks/autonav/templates/bootstrap.php, blocks/autonav/templates, blocks/autonav, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/pl_PL/LC_MESSAGES/messages.mo, languages/pl_PL/LC_MESSAGES, languages/pl_PL, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/nl_NL/LC_MESSAGES/messages.mo, languages/nl_NL/LC_MESSAGES, languages/nl_NL, languages/nb_NO/LC_MESSAGES/messages.mo, languages/nb_NO/LC_MESSAGES, languages/nb_NO, languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/tr_TR/LC_MESSAGES/messages.mo, languages/tr_TR/LC_MESSAGES, languages/tr_TR, languages/es_PY/LC_MESSAGES/messages.mo, languages/es_PY/LC_MESSAGES, languages/es_PY, languages/fr_FR/LC_MESSAGES/messages.mo, languages/fr_FR/LC_MESSAGES, languages/fr_FR, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, themes/transfer/images/transfer-logo.gif, themes/transfer/images/transfer-logo-start.gif, themes/transfer/images/dreieck_dd_rot.png, themes/transfer/images/logo-interim.jpg, themes/transfer/images/gutcert-logo.gif, themes/transfer/images/suchlupe.png, themes/transfer/images/button-menu-lupe.gif, themes/transfer/images/bild.jpg, themes/transfer/images/dreieck_dropdown.png, themes/transfer/images, themes/transfer/thumbnail.png, themes/transfer/js/jquery-1.11.3.min.js, themes/transfer/js/bootstrap.js, themes/transfer/js, themes/transfer/description.txt, themes/transfer/niederlassung.php, themes/transfer/grundseite.html, themes/transfer/startseite.php, themes/transfer/fonts/glyphicons-halflings-regular.ttf, themes/transfer/fonts/glyphicons-halflings-regular.eot, themes/transfer/fonts/glyphicons-halflings-regular.woff2, themes/transfer/fonts/glyphicons-halflings-regular.woff, themes/transfer/fonts/glyphicons-halflings-regular.svg, themes/transfer/fonts, themes/transfer/full.php, themes/transfer/css/bootstrap.css, themes/transfer/css/transfercss.css, themes/transfer/css, themes/transfer/page_theme.php, themes/transfer

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Only when manually removed or the cache is cleared.

# Server Software
Apache/2.2.22 (Ubuntu)

# Server API
cgi-fcgi

# PHP Version
5.3.10-1ubuntu3.25

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imap, ionCube Loader, json, ldap, libxml, mbstring, mcrypt, memcache, mhash, mssql, mysql, mysqli, odbc, openssl, pam_auth, pcntl, pcre, PDO, pdo_dblib, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, recode, Reflection, session, shmop, SimpleXML, snmp, soap, sockets, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend Guard Loader, 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 - 60
max_input_vars - 1000
memory_limit - 256M
post_max_size - 8M
safe_mode - Off
safe_mode_exec_dir - <i>no value</i>
safe_mode_gid - Off
safe_mode_include_dir - <i>no value</i>
sql.safe_mode - Off
upload_max_filesize - 10M
ldap.max_links - Unlimited
memcache.max_failover_attempts - 20
mssql.max_links - Unlimited
mssql.max_persistent - Unlimited
mssql.max_procs - Unlimited
mssql.textlimit - Server default
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
safe_mode_allowed_env_vars - PHP_
safe_mode_protected_env_vars - LD_LIBRARY_PATH

Browser User-Agent String

Mozilla/5.0 (Windows NT 6.3; WOW64; rv:50.0) Gecko/20100101 Firefox/50.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.