Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by maba

  1. Hi Ryan, in your opinion.. Is there a fast work around for this problem? Example: http://novasiria.it/en Error page: http://novasiria.it/en/http404 Wrong link: http://novasiria.it/en/test Follow the last link and menu breaks the page rendering Unable to complete this request due to an error. Error has been logged. Administrator has been notified. due to the same error listed above. Thanks, Marco
  2. Thanks Ryan. At the moment I use if (($user->language) == $languages->get("en")) setlocale(LC_ALL, 'en_GB'); I have only IT and EN enabled for now.
  3. Hi Ryan.. thanks. I found the problem. I receive the error when in the page there is a 404 error. One image missing? One error. Three images missing? Three errors. But.. why? If you have a bit of time .. Can you help me here?
  4. @Wanze Error: Call to a member function getLanguageValue() on a non-object @Soma Required by customer.
  5. In frontend, I want this menu for each language.. always the same: Languages: - Italiano - English - Deutsch But i don't want edit language page in this way (probably I needed the translation in other section of the site) so I want maintain this but in the menu I want se the language title localized. Last wanze's code do the job but why use the array when we just have all data?
  6. @wanze Not needed in my opinion.. I need something like: foreach($languages as $language) { if(!$page->viewable($language)) continue; // check if page not published for this language $url = wire('page')->localUrl($language); $title = wire('page')->localTitle($language); echo "<li$class><a href='$url'>$title</a></li>"; }
  7. Yes, this is my previous configuration. But when you see any EN page you see "German" in switch menu..
  8. Ok, try this solution. But better if we can add something like this echo "<li$class><a href='$url'>$language->titleInThisLanguage</a></li>"; or not?
  9. Do you suggest to translate: IT Title Italiano->Italiano Title English->Italiano Title French->Italiano and not IT Title Italiano->Italiano Title English->Italian Title French->Italien ? Ok for menu but in this way language are "never" translated.. Maybe.. Thanks Soma
  10. Hi, with this foreach($languages as $language) { if(!$page->viewable($language)) continue; // check if page not published for this language $url = wire('page')->localUrl($language); echo "<li$class><a href='$url'>$language->title</a></li>"; } can we have switch menu not "fully" translated? Not Italian English French but Italiano English Français for all languages.. Thanks, Marco Sorry for the formatting, but seems forum has some problems with Safari and preview..
  11. In your opinion.. How can I test this?
  12. URL: site.com/eventi (default language is ITA) The month (JUN) in correct: GIU then I change the page from switch language menu: URL: site.com/en/events The month (JUN) is wrong: it remains GIU but text is translated.
  13. I not edited core file. I set locale as you suggest, for each language. Only one locale is setted (of the default language) so I have text in english but date in italian, text in french but date in italian and so on. If I change C for IT, eg. fr_FR, I have italian text and french date, english text and french date and so on. Seems that PW cannot set locale dynamically, like it does for the translated strings, urls, ...
  14. Hi, in a site with 3 languages (IT - default -, EN and FR) I have date written in english. So I translate C in /wire/modules/LanguageSupport/LanguageSupport.module for each language but now date are written in IT for EN and FR pages also, logged or guest user. To change language I use this snippet (with a little problem): foreach($languages as $language) { if(!$page->viewable($language)) continue; // language marked not available $url = $page->localUrl($language); echo "<a href='$url'>$language->title</a>"; } Not possible? Processwire 2.3 dev Thanks, Marco
  15. Yes, version 0.0.6. Localized URL works well, but I got the error. User: guest Error: Exception: Method Page::localUrl does not exist or is not callable in this context (in /home/customer/www/wire/core/Wire.php line 320) #0 /home/customer/www/site/templates/includes/mainHeader.php(31): Wire->__call('localUrl', Array) #1 /home/customer/www/site/templates/includes/mainHeader.php(31): Page->localUrl(Object(Language)) #2 /home/customer/www/site/templates/_out.php(81): include('/home/nsgroup/s...') #3 /home/customer/www/wire/core/TemplateFile.php(140): require('/home/nsgroup/s...') #4 [internal function]: TemplateFile->___render() #5 /home/customer/www/wire/core/Wire.php(359): call_user_func_array(Array, Array) #6 /home/customer/www/wire/core/Wire.php(317): Wire->runHooks('render', Array) #7 /home/customer/www/wire/modules/PageRender.module(328): Wire->__call('render', Array)
  16. Hi.. Ryan.. I used this snippet (founded in many post), it works (url are localized) but I got many Exception: Method Page::localUrl does not exist or is not callable in this context Why? 2.3 dev obviously. Thanks, Marco
  17. Thanks. Yes, I tried to set icon in admin template (decorations tab) also.. but decorator not add the img tag (only for these pages). This happens for home template also if setted from module configuration, but for this template set icon from decorations tab works.
  18. Soma, in your TemplateDecorator version, have you fixed the problem with Admin, 404 and Trash pages? With PW2.3, TemplateDecorator 1.0.3 and 1.0.4 I cannot see icons for these pages. But.. with standard admin theme also. Thanks
  19. Hi All, some little problem on OSX (Safari, Chrome and Firefox) with dev version: - top "action" button is out of container - top "action" button does not scroll with page - box-shadow in widget-header only (I saw this in your screenshot also, is this wanted?)
  20. Yes.. but the problem is bigger here. No translations, no content for any page. Try to investigate..
  21. Mmmm.. it's all ok for the double render problem, but same issue with the "pre" declared variables.
  • Create New...