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) |
RE: Support for multilanguage sites, Internationalization (I18N) - mvlcek - 2013-03-19 (2013-03-19, 02:03:28)tomkop Wrote: but please .. how i display all navigation ? this is for one item, but ? (2013-03-19, 01:57:09)mvlcek Wrote: [quote='tomkop' pid='34457' dateline='1363557589'] Create a component, e.g. named 'entrywithicons' as described above and add the name of the component as 5th parameter to the get_i18n_navigation function as desribed on the custom rendering page. RE: Support for multilanguage sites, Internationalization (I18N) - tomkop - 2013-03-19 (2013-03-19, 02:14:27)mvlcek Wrote:(2013-03-19, 02:03:28)tomkop Wrote: but please .. how i display all navigation ? this is for one item, but ? Thank you very much !!! RE: Support for multilanguage sites, Internationalization (I18N) - Connie - 2013-03-19 (2013-03-19, 02:03:28)tomkop Wrote: Thank you very much .. did you read the information and suggestions at the plugins homepage? http://mvlcek.bplaced.net/get-simple/multi-level-navigation/ please read that and find if it helps you with some ideas! (2013-03-17, 17:33:45)Connie Wrote: Warning: Invalid argument supplied for foreach() in /var/www/web10/html/getsimple/plugins/i18n_base/frontend.class.php(127) : eval()'d code on line 4 mvlek, I have this problem with a component at get-simple.de the complete error + the component are in the first post... do you have an idea what is wrong? Please help me out ;=) Cheers, Connie RE: Support for multilanguage sites, Internationalization (I18N) - Connie - 2013-03-21 Martin, please help me I have the error on the german get-simple.de-website and I need help. RE: Support for multilanguage sites, Internationalization (I18N) - mvlcek - 2013-03-21 (2013-03-19, 17:16:02)Connie Wrote:(2013-03-17, 17:33:45)Connie Wrote: Warning: Invalid argument supplied for foreach() in /var/www/web10/html/getsimple/plugins/i18n_base/frontend.class.php(127) : eval()'d code on line 4 This has nothing to do with I18N, but it's simply an error in your component: you use foreach on something, which is not a list. RE: Support for multilanguage sites, Internationalization (I18N) - tomkop - 2013-03-22 (2013-03-19, 02:14:27)mvlcek Wrote:(2013-03-19, 02:03:28)tomkop Wrote: but please .. how i display all navigation ? this is for one item, but ? Hello, its good solution but .. see http://caspro.esenti.eu/subdom/caspro/technologie/sk/sortiment/ this show same menuicon for current page but not for each navigation item. any solutions ? :/ <?php get_i18n_navigation('sortiment',1,9,$show=I18N_SHOW_NORMAL,$component=entrywithicons); ?> RE: Support for multilanguage sites, Internationalization (I18N) - Connie - 2013-03-22 (2013-03-21, 23:04:52)mvlcek Wrote:how is it possible? It worked since we started the website and now it doesn't work anymore(2013-03-19, 17:16:02)Connie Wrote:(2013-03-17, 17:33:45)Connie Wrote: Warning: Invalid argument supplied for foreach() in /var/www/web10/html/getsimple/plugins/i18n_base/frontend.class.php(127) : eval()'d code on line 4 I have no brain in the moment to find that error, will deactivate it... unfortunately RE: Support for multilanguage sites, Internationalization (I18N) - Carlos - 2013-03-22 (2013-03-17, 17:33:45)Connie Wrote:Quote: Warning: Invalid argument supplied for foreach() in /var/www/web10/html/getsimple/plugins/i18n_base/frontend.class.php(127) : eval()'d code on line 4 Looks like $subpages is assigned NULL for some reason. To prevent this script breaking your page when this happens, change the foreach line by: Code: if ($subpages) foreach ($subpages as $slugexcerpt) { RE: Support for multilanguage sites, Internationalization (I18N) - Connie - 2013-03-22 (2013-03-22, 05:17:28)Carlos Wrote: Looks like $subpages is assigned NULL for some reason. Thanks! now the error is gone and as I also modified min- and max-level to tease the system, I get now excerpts of the subpages, which didn't show up before... (I wonder how this could have worked before..., but ok ...) RE: Support for multilanguage sites, Internationalization (I18N) - artmaxi - 2013-03-23 Guys, how to do multilevel url relative to navigation? site.com/lvl1/lvl2/lvl3/lvl4, not site.com/lvl3/lvl4 Please, it is urgent for me. RE: Support for multilanguage sites, Internationalization (I18N) - tomkop - 2013-03-24 (2013-03-22, 00:14:59)tomkop Wrote:(2013-03-19, 02:14:27)mvlcek Wrote:(2013-03-19, 02:03:28)tomkop Wrote: but please .. how i display all navigation ? this is for one item, but ? mlvcek please .. any ideas ? thank you very much .. RE: Support for multilanguage sites, Internationalization (I18N) - mvlcek - 2013-03-24 (2013-03-24, 20:38:11)tomkop Wrote: its good solution but .. see http://caspro.esenti.eu/subdom/caspro/technologie/sk/sortiment/ [/quote] My error: return_custom_field only returns the field for the current page. You should rather use the GetSimple caching functions, e.g.: Code: <li class="<?php echo $item->classes; ?>"> RE: Support for multilanguage sites, Internationalization (I18N) - tomkop - 2013-03-24 (2013-03-24, 22:56:34)mvlcek Wrote:(2013-03-24, 20:38:11)tomkop Wrote: its good solution but .. see http://caspro.esenti.eu/subdom/caspro/technologie/sk/sortiment/ My error: return_custom_field only returns the field for the current page. You should rather use the GetSimple caching functions, e.g.: Code: <li class="<?php echo $item->classes; ?>"> thank you very much .. you are the best. i donate your over your webpage .. thanx RE: Support for multilanguage sites, Internationalization (I18N) - artmaxi - 2013-03-25 (2013-03-23, 02:23:11)artmaxi Wrote: Guys, how to do multilevel url relative to navigation? site.com/lvl1/lvl2/lvl3/lvl4, not site.com/lvl3/lvl4 Please, it is urgent for me. Why do you ignore me, gentlemen? RE: Support for multilanguage sites, Internationalization (I18N) - Oleg06 - 2013-03-25 I told you that the problem is not in the plugin, but in CMS RE: Support for multilanguage sites, Internationalization (I18N) - artmaxi - 2013-03-25 (2013-03-25, 21:00:27)Oleg06 Wrote: I told you that the problem is not in the plugin, but CMS Ok, but I'm asking about how to fix it? Is it possible to fix or to do something for creating correct URLs? RE: ßþôôõрöúð üýþóþÑÂ÷ычýых ÑÂðùтþò, Ø - Oleg06 - 2013-03-25 Ask your question here http://get-simple.info/forums/forumdisplay.php?fid=7 RE: Support for multilanguage sites, Internationalization (I18N) - artmaxi - 2013-03-25 (2013-03-25, 21:43:01)Oleg06 Wrote: Ask your question here http://get-simple.info/forums/forumdisplay.php?fid=7 Ok thanks! RE: Support for multilanguage sites, Internationalization (I18N) - CKnl - 2013-03-27 Hey all, I've just started to use this plugin, but I think I did something wrong. I have installed the plugin and followed every step, but the result isn't very eyepleasing... I'd like to achieve something like this: http://yoga-center.org/CMS/ That menu drops down when the mouse pointer is on it. Problem with my current menu: It really screws up everything when I click it and it doesn't drop down when my pointer is on it. Can this be fixed? rewrite language problem - tomkop - 2013-03-27 Hello, i have RewriteRule ^/?$ sk/ [R,L] # optional RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(sk|hu|cz|en)/(.*?/)?([A-Za-z0-9-]+)/?$ index.php?id=$3&lang=$1 [QSA,L] RewriteRule ^(sk|hu|cz|en)/?$ index.php?lang=$1 [QSA,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule /?([A-Za-z0-9-]+)/?$ index.php?id=$1 [QSA,L] in admin permalink %language%/%parent%/%slug%/ but this line in rewrite is problem: RewriteRule ^(sk|hu|cz|en)/(.*?/)?([A-Za-z0-9-]+)/?$ index.php?id=$3&lang=$1 [QSA,L] 500 Internal server error. on the other server it works .. is there any way to fix it otherwise? url si http://domain.sk/prietokomery/sk/sortiment/ not http://domain.sk/sk/sortiment/ can be a problem? thanx you RE: Support for multilanguage sites, Internationalization (I18N) - Angryboy - 2013-03-27 (2013-03-27, 01:13:39)CKnl Wrote: Hey all, As far as I know, that is a CSS problem rather than with the plugin itself. You'll need to define some CSS rules to achieve your result. It typically involves the sub-menus hidden until the main menu is hovered over, and aligning the sub-menu (using paddings and margins) so that it is be directly below the main menu. RE: Support for multilanguage sites, Internationalization (I18N) - TeeJay - 2013-04-04 Hello. I made a horizontal site menu and some of the pages have a submenu. I did that with Child Menu plugin and I couldn't sort it, so I started using this plugin. However, there is a little problem. If the submenu has any content, it's ok. But if there is no content in the submenu, there is still visible an empty div (it has a background). I didn't have this problem with Child Menu and I don't know why. How can I make the submenu (including the wrapper - div, nav and ul) visible only when there is a content of the submenu? For illustration here you are a screenshot of the full (upper part of the image) and empty div (lower part of the image). I want the div for submenu hidden if there is no menu inside. Look at it here http://i50.tinypic.com/dw85t3.png The code of the submenu is here: Code: <div id="c_subMenu"> I don't mind using much more simple code for the submenu, which is: Code: <div id="c_subMenu"> Thank you for you help, it's much appreciated. I saw some jquery ideas about this, but I prefer not using jquery. Furthermore, I'm not able to use it correctly :/ Edit:// Found the solution myself after careful looking at the code... I just edited the code for the submenu so that the function generated everything including the <div id="c_subMenu"> Code: <?php RE: Support for multilanguage sites, Internationalization (I18N) - Connie - 2013-04-05 this is how we did it at get-simple.de, just for spreading the wisdomm ;=) PHP Code: <?php RE: Support for multilanguage sites, Internationalization (I18N) - TeeJay - 2013-04-05 Thank you for your answer, Connie. Yes, this is a perfect solution as I already figured out yesterday after a few hours; next time I will try more before posting. Thanks anyway for your help RE: Support for multilanguage sites, Internationalization (I18N) - TeeJay - 2013-04-10 Hello everyone I have a website in Czech (cs) and English (en). However, I happened to meet a few major problems I could not solve. 1) When not using custom permalinks, default language is English -wrong. I need the default to be Czech. So I wrote into .htaccess Code: RewriteRule ^/?$ cs/ [R,L] 2) When using these custom permalinks showing all the languages, to the admin panel I wrote Code: %language%/%parent%/%slug%/ Code: # News Manager setup: 3) When using custom permalinks showing only the secondary language, in the admin panel I wrote Code: %nondefaultlanguage%/%parent%/%slug%/ Code: # News Manager setup: Code: <a class="en<?php if ($language == "en") echo "-current"; ?>" href="<?php echo htmlspecialchars(return_i18n_setlang_url('en')); ?>" title="English"></a> Futhermore, the news ("clanky") didn't work as in the second case. My question is, how can I make all these three things working properly? Well, I would like to use the third option the most - for Czech a standard address without /language/ in the address, for English /en/. I would also like to have translated the address of the web in English version according to the new translated Menu labels and translated page titles, but firstly I need to make it work at all. Thanks for helping me. I'm willing to provide all the information needed and try your kind suggestions. I don't know what do write in .htaccess because I don't understand what to write in there. Tom |