Jump to content

kixe

Members
  • Posts

    802
  • Joined

  • Last visited

  • Days Won

    10

Everything posted by kixe

  1. Hi taqtaq, you could use Ryans sitemap-template. it works pretty good in different languages. No need to install LanguageLocalizedURL. For your different languages you should just add something like: <url> <loc>http://yoursite.fi/</loc> <xhtml:link rel="alternate" hreflang="en" href="http://yoursite.fi/en" /> <xhtml:link rel="alternate" hreflang="it" href="http://yoursite.fi/it" /> </url> http://processwire.com/talk/topic/3846-how-do-i-create-a-sitemapxml/ I will check if I could write a small function to implement this for every language in the system. EDIT: Here comes Ryans template with added language alternate-links like recommended by google for multilanguage support. more information here: https://support.google.com/webmasters/answer/2620865?hl=en important: name of language should be same like international language-code (name your pages en for english, de for german, es for spain etc. Just Follow Ryans instructions to use the template, everything else is done by the template. Update 29.02.16 This update is made for PW 3.0. To prevent endless redirects in 2.7 and lower please read instructions (comments). You need to comment out the line with the redirect. multilang-sitemap-xml.php.zip
  2. Yes, I have read something similar in stackoverflow. I will do some tests. Maybe input type=text combined with the pattern you suggested is the safest way.
  3. Cannot reproduce this. Example works in Language Translator/ Language Translator Plus You can use both (Single and Double quotes) look here: wire/modules/LanguageSupport/LanguageParser.php function parseFile($file) It doesn't work, if you have more than one translatable string in one line ,like <h2><?php echo __('Safe \nplastic surgery') ?></h2><p><?php echo __('2nd string') ?></p> The second string will not appear in the language translator. Its a bug. Maybe Ryan could help.
  4. Adrian, sorry but cannot help. Picked the Information I posted from somewhere in the net. The german Version is the usual/common one. Another thing: A customer (Safari on Mac) said in the phone field appears a comma, like a thousands separator, without putting it in before. I couldn't reproduce it on my computer. Did somebody else recognize this? Problems with number_format or local settings? Any other ideas? Thanks
  5. Good to find this thread. Was kicked out every few seconds, loading slow ... while working via Hotel WLAN Cookie settings? Changing the browser didn't help ... $config->sessionFingerprint = false was the goal. thanks a lot Adrian
  6. I am not the best friend of tags which are translated later in html, that is one reason I stay with processwire. Do you remember? {{contao::*}} <TYPO3></TYPO3> <jdoc:include joomla! /> Thats why I don't like hannacode or something similar. Except with images I would like to have option to give customers simple tags to put images in a textfield. Diogos Module seemed to be a good and simple way to put an image in a textarea in PW-Surrounding. Thanks I customized it for my use and want to share it. It works in PW 2.4. Didn't tested it with other Versions. Syntax includes an image-tag in the Textfield by using [[fieldname(optional),number(optional),class(optional)]] if using this module Names of Imagefields shouldn't start with a number If a class (CSS) is added Fieldname and/or Number and/or leading Comma is mandatory Comma is mandatory from two Parameters and up Look at the Examples for easy understanding. Examples [[]] matches the first or only one picture in the first or only one image-field if exists [[images]] matches the first or only one picture in the named image-field [[4]] matches the fourth picture in the first or only one image-field [[3,left]] matches the third picture in the first or only one image-field and adds the class left [[,right]] matches the first or only one picture in the first or only one image-field and adds the class left [[images,3,top]] matches the third picture in the image-field named 'images' and adds the class top I replaced the single curled brackets with double square brackets to keep brackets usable. In contrast to Diogos Module here it's not possible to set more than one image within one tag. (never needed a list of images in a textarea) Adding an optional class was important for me. I am thinking about integration of resizing. FEEL FREE TO USE IT! EDIT: 06/09/15 updated configurable version go here
  7. @ryan since I am quite happy with PW 2.4 I kindly ask if there is any progress for the multi-language-image-description-field? I tried to make it by myself but it goes too deep in the sourcecode so that I decided to keep my hands off.
  8. follow the topic here: http://processwire.com/talk/topic/5286-switching-fields-to-language-fields-produces-fatal-errors/ discussion closed
  9. redirect from topic: http://processwire.com/talk/topic/5788-bug-fieldtypepagetitlelanguage/
  10. Hi, I am using PHP 5.4.24, 5.6.10 MySQL and Master PW 2.4. The Error happens if I want to switch any existing field to the Multilanguage Version AFTER I had installed the new language. It works if I do it the other way round. In the case of the title field, which is not deletable I added the specific language column like 'data1019' manually to the database table.
  11. I have tried to change the title fieldtype from Title to TitleLanguage in PW 2.4 got Error: Exception: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'field_title.data1019' in 'field list' (in /wire/core/DatabaseQuery.php line 86)
  12. Thanks for a useful module. I am using it for a german/ european website. I added two output format options: {+[phoneCountry] }{[phoneAreaCode] }{[phoneNumber]}{-[phoneExtension]} /* Germany DIN5008, 'phone Extension' ≙ 'Durchwahl'*/ {+[phoneCountry] }{[phoneAreaCode] }{[phoneNumber]}{[phoneExtension]} /* International Telecommunication Union, ITU E.123 */
  13. kixe

    processwire webfont

    I put back the download link with 3 more glyphs ... have fun
  14. kixe

    processwire webfont

    [...] You may not use conversion or editing tools on the Licensed Web Fonts. [...] http://www.myfonts.com/fonts/insigne/mahalia/regular/buy.html http://www.myfonts.com/viewlicense.php?fid=391&type=web wasted it !
  15. As Ryan mentioned above check this and the following posts: http://processwire.com/talk/topic/3846-how-do-i-create-a-sitemapxml/#entry39061
  16. Tested first way Ryan recommended. Loading http://mysite/processwire/module/ is impossible after placing the requirement outside the class like: require(wire("config")->paths->modules . "LanguageSupport/ProcessLanguageTranslator.module"); Got this error: Compile Error: Cannot redeclare class ProcessLanguageTranslator (line 350 of xxx/wire/modules/LanguageSupport/ProcessLanguageTranslator.module)
  17. @Soma thanks for updating Modules Manager to 1.0.9. @ryan Would be nice to disable Installation Button in Admin > Modules > New, as it is already set in Admin > Modules > Site. On the other hand, isn't it anyway better to put the requirements outside the class?
  18. Welcome motionmindz, you have two install options: 1) Go to setup/Modules Manager (if module: 'Modules Manager' is installed) and click 'refresh', then choose from the list 'Flash MP3 Player' and click 'install'.Done. 2) conventional install (choosed by you?) Check if all the following files exists under the path: site/modules/Audio_MP3/ Audio_MP3.module player_mp3_maxi.swf player_mp3_multi.swf Check if you have file-access to these files? Go to: admin/modules , click 'Check for New Modules', select from the list (under the headline 'Audio') 'Audio MP3', click install. Done. Tell me if the problem still exists.
  19. It's good to have an option to switch easily. (debugging, teaching etc.)
  20. If you are still looking for a nice solution. Let PHP do the work for you. Try this: PHP Tidy (its included in PHP5) Example: <?php $html = '<ul><li><h2>Chaos</h2><p>here comes the stuff</p><li><h2>Philosohie</h2><p>I love nice source code</p></li><li><h2>next Listpoint</h2><p>Help, got lost in indentation</p></ul>'; $tidy_options = array('indent' => 3,'output-xhtml' => true); $tidy = new tidy(); $tidy->parseString($html, $tidy_options); $tidy->cleanRepair(); $body = $tidy->body(); // Output echo $tidy; /* Output <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <body> <ul> <li> <h2> Chaos </h2> <p> here comes the stuff </p> </li> <li> <h2> Philosohie </h2> <p> I love nice source code </p> </li> <li> <h2> next Listpoint </h2> <p> Help, got lost in indentation </p> </li> </ul> </body> </html> */ more Information: http://id1.php.net/manual/en/book.tidy.php http://tidy.sourceforge.net/docs/quickref.html#indent-attributes
  21. @ryan Module requires ProcessLanguageTranslator which is part of ProcessLanguageSupport. No effect on the error. Do you recommend to change that? Why? @Soma tried out all options. Still get the Error without changing the following. class ProcessLanguageTranslatorPlus extends ProcessLanguageTranslator { ... Error occurs because the class to be extended couldn't be found. How to prevent from an Error if a downloaded module extends a non existing or not installed class? Any experiences?
  22. @soma thanks for your help in debugging. bug fixed. Got the following Error while trying to install the module via modules manager without required installation: Error: Class 'ProcessLanguageTranslator' not found (line 21 of /Users/c/Sites/processwire/sitet/modules/ProcessLanguageTranslatorPlus/ProcessLanguageTranslatorPlus.module) Installation via admin > modules is impossible(disabled) without required Installations. How can I fix this?
  23. I have different languages in the backend, a template with a field of type float. I cannot save a float in other languages (polish and german) than default (english). The floats are rounded to full integer value and stored like this. added 30 October 2013 09:37 AM To prevent language troubles I am using a workaround now: input type text instead of float with a regex (settings > pattern): \d{1,4}([\.]\d{1,3})? For validation of a weight of max. 10,000 kg (9999.999 kg) with max. 3 decimal places, only the dot is allowed as seperator.
  24. Thanks for the note. Correction is done.
  25. I got it: I made the summary in my modules translatable like: 'summary' => __('Here comes the text'), This function does a second entity encoding. Is it useful to edit the following line in ProcessModule.module to prevent from double encoding? Line 128: $summary = empty($info['summary']) ? '' : htmlspecialchars(htmlspecialchars_decode($info['summary']));
×
×
  • Create New...