Support for multilanguage sites, Internationalization (I18N) - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: Plugins (http://get-simple.info/forums/forumdisplay.php?fid=13) +--- Thread: Support for multilanguage sites, Internationalization (I18N) (/showthread.php?tid=1221) |
Support for multilanguage sites, Internationalization (I18N) - Dominic - 2012-02-05 Pardon my repost, had this in the wrong thread before.... Is there a way to call a custom field instead of page slug in the i18n navigation? For instance instead of... get_i18n_navigation(return_page_slug()1,1); have get_i18n_navigation(return_custom_field('thumbnail')1,1); If not, is there a way to grab the custom field data in the xml page via a data path in css to make the background image of the menu style change for each page? Something like: {background-image: url($page, $thumbnail);} I'm at the end of my rope on trying to automatically get rows of custom field thumbnails from child pages to show up on the parent page. It seems like it should be easy, but I am obviously over my head with the php and how the functions work. This is my last ditch effort, or I have to either do it manually (lame!) or go back to concrete5 (slow!) Edit by Connie: I deleted your post in the other thread because this is not a general question ;=) Support for multilanguage sites, Internationalization (I18N) - mvlcek - 2012-02-05 Dominic Wrote:If not, is there a way to grab the custom field data in the xml page via a data path in css to make the background image of the menu style change for each page? What do you want to achieve?
Support for multilanguage sites, Internationalization (I18N) - Zorato - 2012-02-05 Hello everyone! mvlcek, I have a question about i18n function return_i18n_languages() and it's front-end class implementation getLanguages(). The fact is, that this function returns only 2 languages (best on first place), but for my plugin implementation I need all user created languages. My suggestion is to make another function return_i18n_language_list() or to modify existing return_i18n_languages() so that it would return all languages. The code could be taken from pages.php file lines ~ 24 - 35. Support for multilanguage sites, Internationalization (I18N) - mvlcek - 2012-02-05 I18N version 2.5.4:
Support for multilanguage sites, Internationalization (I18N) - Dominic - 2012-02-06 mvlcek Wrote:Dominic Wrote:If not, is there a way to grab the custom field data in the xml page via a data path in css to make the background image of the menu style change for each page? An image instead of text for each menu item. The image pulled from the custom field of each individual subpage. I want the effect to be rows of thumbnails that link to that one page's children. Support for multilanguage sites, Internationalization (I18N) - yurifanboy - 2012-02-06 Hey mvlcek, For some reason when using FANCY URLS with the language variable, these rewrite rules seems to work. I would recommend adding them to the documentation on your site. Code: RewriteRule ^/?$ en/ [R,L] # redirect to language of your choice Code: RewriteCond %{REQUEST_FILENAME} -f [OR] Support for multilanguage sites, Internationalization (I18N) - Zorato - 2012-02-06 mvlcek Wrote:I18N version 2.5.4:Thanks for quick response and applying changes! Support for multilanguage sites, Internationalization (I18N) - mvlcek - 2012-02-06 yurifanboy Wrote:Hey mvlcek, Do the rules on my site not work? Can you tell me, when to use the first set of rules and when the second set? Support for multilanguage sites, Internationalization (I18N) - yurifanboy - 2012-02-06 mvlcek Wrote:I'll test it later and get back to you on what happens.yurifanboy Wrote:Hey mvlcek, Support for multilanguage sites, Internationalization (I18N) - Carlos - 2012-02-06 Spanish language for I18N available in Extend (base and navigation) Support for multilanguage sites, Internationalization (I18N) - yurifanboy - 2012-02-06 Carlos Wrote:Spanish language for I18N available in Extend (base and navigation)Si no estuviera perezoso, traducirÃÂa get-simple también. No hay mucho tiempo para mi. :p Support for multilanguage sites, Internationalization (I18N) - yurifanboy - 2012-02-07 mvlcek Wrote:yurifanboy Wrote:Hey mvlcek, I believe these two sets of .htaccess rules are something you provided earlier in this thread. mvlcek Wrote:The default rules provided on your website when using %language%/%parent%/%slug%/ as a permalink structure switch the language code in the URL and the content switches languages on most pages. However, it doesn't work on the index page. Which returns a 404 when you use the language changer function: <a href="<?php echo htmlspecialchars(return_i18n_lang_url('de')); ?>">In deutsch</a>dizarter Wrote:Thanks for the fix, but, switching languages on the index page still doesn't work. I am using the rules from your site here. http://yuritopia.info/t/en/hello-world/ Code: RewriteCond %{REQUEST_FILENAME} !-f Code: RewriteRule ^/?$ en/ [R,L] # redirect to language of your choice Support for multilanguage sites, Internationalization (I18N) - yurifanboy - 2012-02-12 Would it be possible to allow the url structure of the GS site to reflect the navigation structure of the I18N plugin? page1 -page1-1 --page1-1-1 (http:www.site.com/page1/page1-1/page1-1-1) Support for multilanguage sites, Internationalization (I18N) - mvlcek - 2012-02-12 yurifanboy Wrote:Would it be possible to allow the url structure of the GS site to reflect the navigation structure of the I18N plugin? No. The find_url function of GetSimple can't be overwritten and the alternative would be to patch GetSimple and all plugins that use URLs to pages. I don't think there is a practicable way to do it. Support for multilanguage sites, Internationalization (I18N) - jeckyl - 2012-02-17 Hi, i'm very sorry to come back here, but i can't change to another language on one of my site. http://www.spce-peche-mauritanie.fr/ i create translation for index page and for http://www.spce-peche-mauritanie.fr/cgv/ you can click on en in the footer but nothing happen. can you help me ? Support for multilanguage sites, Internationalization (I18N) - mvlcek - 2012-02-17 jeckyl Wrote:i'm very sorry to come back here, but i can't change to another language on one of my site. You seem to redirect each URL to the URL without parameter (click on the language link and the page displayed will have no ?lang=en), so probably the language parameter never reaches GetSimple. Support for multilanguage sites, Internationalization (I18N) - jeckyl - 2012-02-17 mvlcek Wrote:jeckyl Wrote:i'm very sorry to come back here, but i can't change to another language on one of my site. It's correctied : just don't activate Code: # Enable Canonical Redirects? Support for multilanguage sites, Internationalization (I18N) - olegnaumov - 2012-02-17 Hi, I'm trying to re-write output for i18n navigation to match it with bootstrap structure: Code: <ul class="nav"> I'm no php-programmer and can't figure how to alter output of the parent link without messing with sub-menu links. For example, if I change line 358 in i18n_navigation.php from this: Code: $html .= '<li class="' . $classes . '"><a href="' . $href . '" title="' . htmlspecialchars(html_entity_decode($title, ENT_QUOTES, 'UTF-8')) . '">' . $text . '</a>'; To this: Code: $html .= '<li class="' . $classes . '"><a class="dropdown-toggle" All links, parent and children, get altered. Any advice how to re-write default output for navigation? Again, I don't know php, so any help would be greatly appreciated. Thanks. Support for multilanguage sites, Internationalization (I18N) - mvlcek - 2012-02-18 I18N version 2.6:
Support for multilanguage sites, Internationalization (I18N) - chefbyte - 2012-02-20 Hi, just installed this new version and spotted the below error? Is the menu options moving the other options down and making it look like that, as at the moment its restricting the width of the edit area a fair bit? Support for multilanguage sites, Internationalization (I18N) - mvlcek - 2012-02-20 chefbyte Wrote:Hi, just installed this new version and spotted the below error? This seems to be a problem of the Frontend users plugin (?) Probably it has to be adjusted for 3.1 Support for multilanguage sites, Internationalization (I18N) - jeckyl - 2012-02-20 Hi, donation made because it's a great plugin and a great support. thanks for your job. Support for multilanguage sites, Internationalization (I18N) - mvlcek - 2012-02-20 jeckyl Wrote:donation made because it's a great plugin and a great support. Thank you very much! Support for multilanguage sites, Internationalization (I18N) - Superbobo - 2012-02-23 Hi, I discover the beauty getsimple and one of the things is a simple implementation language version of the article as well as components, etc. Non English very well so I do not know if that's somewhere in this thread overlooked, but not how to resolve the translation page as well as a reference. The SEO and search I find it better if I have contacts, such as pages for the English and Czech version of the url will look like this www.site.com/cs/kontakt - for Czech or better yet just www.site.com/kontakt www.site.com/en/contact - for English or better yet just www.site.com/contact Support for multilanguage sites, Internationalization (I18N) - intelx86 - 2012-02-24 Hello everybody. I spotted that sitemap.xml contains malformed addresses like: Code: http://www.example.com/gs/%language%/subcat/simplepage/ instead of Code: http://www.example.com/gs/en/subcat/simplepage/ |