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) - mvlcek - 2012-02-24 intelx86 Wrote:Hello everybody. I think it's not possible to change how the sitemap is generated. But if someone can find a way/patch, I'll include it in one of the next versions. Support for multilanguage sites, Internationalization (I18N) - Carlos - 2012-02-27 Suggestion for Edit Navigation Structure section: if you do some changes in the menus and then visit another page without saving changes, warn and let the user choose to stay or cancel changes (just like GS page editor does). Support for multilanguage sites, Internationalization (I18N) - Superbobo - 2012-02-27 Superbobo Wrote:Hi, Please, is any solution? It is understood the query, I am weak in English Support for multilanguage sites, Internationalization (I18N) - mvlcek - 2012-02-27 Superbobo Wrote:Superbobo Wrote:Hi, This is currently not possible - all languages need to have the same slug name. Support for multilanguage sites, Internationalization (I18N) - Superbobo - 2012-02-27 Thanks for the answer even if it is not what I wanted to hear Support for multilanguage sites, Internationalization (I18N) - ChriS - 2012-03-13 I was searching for the possibilities to customize the error 404 page. Have found How to change 404 error message (lang) and have added that info to /wiki/404 Then I have found a discussion of (i think) Pre 3.0 time: 404 Page Translation : Dev Questions & Vote. Quotes from there: mvlcek 2011-03-13 19:39:02 Wrote:Just check if there is a page with slug name 404 (404.xml) and display it, if it exists. mvlcek 2011-04-08 21:57:11 Wrote:krisu Wrote:My suggestion is that translators should able translate the 404 with translation file, but user can have control over it if he wants way that mvlcek suggested.Yes that's best: If there is a page 404.xml, display it (like a normal page is displayed, i.e. with hooks), otherwise display the default title/message, which should be read from the language files instead of being hardcoded. I use GS 3.1 and I18N 2.6 with (de) as standard and (en) and (it) as secondary languages. I have enabled FancyURLs with "%language%/%parent%/%slug%/". I haven't found better informations of how 404 probably works actually on a installation like this. I have created 404 page in german and 404_en and 404_it pages. Now when I try to view a non existing URL on the GS-Installation (exampe: domain.com/xyz) I receive with every browser language (de, en, it) every time only the (de) 404 page. Also domain.com/en/xyz did not change everything. Can somebody help me in this, is it the .htaccess RewriteEngine ? Code: # RewriteRule ^/?$ de/ [R,L] # redirect to language of your choice. Quote out if undesired. Support for multilanguage sites, Internationalization (I18N) - mvlcek - 2012-03-13 ChriS Wrote:I was searching for the possibilities to customize the error 404 page. Have found How to change 404 error message (lang) and have added that info to /wiki/404 Currently I18N does not choose the correct language for the 404 page. It will be corrected in the next version. Support for multilanguage sites, Internationalization (I18N) - ChriS - 2012-03-14 Thanks for the response mvlcek. I'm using I18N 2.6 in GS 3.1 with "Include Language in URL" ("%language%/%parent%/%slug%") mvlcek Wrote:Having the same configuration/situation I feel a little uncomfortable knowing that the bots get to see this unusable file.intelx86 Wrote:... I spotted that sitemap.xml contains malformed addresses like:I think it's not possible to change how the sitemap is generated. Additionally the functionality of the WYSIWYG-Editor-function "insert/edit link" seems unusable for "Link to local page":
Support for multilanguage sites, Internationalization (I18N) - Carlos - 2012-03-14 @ChriS: Patch to remove "Link to local page" from the dropdown menu: http://get-simple.info/forum/post/21528/#p21528 Support for multilanguage sites, Internationalization (I18N) - lrsk - 2012-03-23 Posting here as well, because I'm getting a little desperate. mvlcek Wrote:lrsk Wrote:I am having some trouble adding I18N functionality to another plugin I'm using (user-login). I have previously hard-coded messages to the user etc, but would now like to add a language switching capability. I have tried adding this code in the header.php file that I use for the template, but the setlang functionality is still not working right with the user-login plugin. I have tried adding the code: Code: if (function_exists('i18n_load_texts')) { into the plugin file, but it still won't work correctly. In fact, it does work if I set the language using setlang and then navigate to a different page or refresh the login page. I have dug deeper into the code and found that $LANG does not change until after I navigate to a different page or rerun the same page, nor does $_SESSION['language']. I thought about setting $LANG = $language in the i18n_load_texts() function or something, but the $language variable is empty there for some reason. I don't want to create a solution that is so hacky that I can't maintain the site... Support for multilanguage sites, Internationalization (I18N) - mvlcek - 2012-03-24 lrsk Wrote: Where have you added this code? Looking at the plugin, it should be at the top of the function show_login_box(), welcome_message_login(), etc. The order in which functionalities are executed:
Hope this helps. Support for multilanguage sites, Internationalization (I18N) - lrsk - 2012-03-24 mvlcek Wrote:Where have you added this code? Yeah this helped a lot actually. I have it working now. This plugin has some login logic in the function user_login_check(), and the language preference is not visible there. I have extended the code in this function to give user feedback upon invalid usernames etc so I was using the i18n_r() function there, but this was giving me problems. I just set code names for certain events in user_login_check(), and evaluated them in show_login_box(). Thanks so much for the help! Support for multilanguage sites, Internationalization (I18N) - alez - 2012-03-25 Hello everybody. I'm new to the forum but found Get-Simple and I18N plugin very interesting projects. I've just translated i18n_base and i18n_navigation into italian... where can I upload or who can I send the language files ? I've actually also translated "send anonymus data" that is provided with getsimple, and just now I'm translating "multi user" plugin, and I'd like to know how to contribute these language files to the community. Bye! Support for multilanguage sites, Internationalization (I18N) - mvlcek - 2012-03-25 alez Wrote:Hello everybody. I'm new to the forum but found Get-Simple and I18N plugin very interesting projects. Please upload them to Extend and post a short notice in the respective plugin's support topic. Most plugin authors will include it in their next release and in the mean time anybody can download it from Extend. Support for multilanguage sites, Internationalization (I18N) - alez - 2012-03-27 mvlcek Wrote:Please upload them to Extend and post a short notice in the respective plugin's support topic. Most plugin authors will include it in their next release and in the mean time anybody can download it from Extend. Thank you for reply. Just done that. I18N italian translation is available here http://get-simple.info/extend/plugin-language/i18n-plugin-italian-translation/407/ Support for multilanguage sites, Internationalization (I18N) - matus - 2012-03-27 Hi Guys! I am using GS for a few months, now I have another project and I went for GS again. My problem is, when I use this plugin, page renders perfectly fine, but I cannot access the admin panel or when I am editing page, it doesn't save, deletes everything from the page, title is set to {No title} I believe and I can't even recover it from the backup, because it doesn't redirect me anywhere. Once I delete this plugin, everything is fine. I am sure that I used this plugin before on the same hosting and everything was just fine. Did you do previously any updates? I was running 3.1, then I tried 3.0 if it isn't just compatibility question, but both with no luck. I would appreciate any help. Thanks! Matus Support for multilanguage sites, Internationalization (I18N) - yojoe - 2012-03-28 I've got a strange problem with I18N_SHOW_LANGUAGE. Basically language elements of 1st level show as supposed. But if parent item contains child slugs, they show up in menu only, when their parent is the page being currently visited. Otherwise only first level of menu items is rendered by the plugin. I suppose it's more a bug, than a feature using: GS3.1, i18n 2.6, all other plugins turned off Support for multilanguage sites, Internationalization (I18N) - mvlcek - 2012-03-28 yojoe Wrote:I've got a strange problem with I18N_SHOW_LANGUAGE. It's definitely not a bug, it's correctly described as working like I18N_SHOW_NORMAL. There is currently no I18N_SHOW_LANGUAGE which works like I18N_SHOW_MENU showing all menu items. Support for multilanguage sites, Internationalization (I18N) - Leo-777 - 2012-03-28 Is it possible to do any of the filters to select from the directory by using Your plugin. Such as here or what? Support for multilanguage sites, Internationalization (I18N) - yojoe - 2012-03-29 mvlcek Wrote:It's definitely not a bug, it's correctly described as working like I18N_SHOW_NORMAL. HA! I've read whole documentation dozen times, and since "I18N_SHOW_LANGUAGE: like I18N_SHOW_NORMAL, but only menu items are shown that exist in the current language." didn't mention that _LANGUAGE won't generate whole menu structure (parent => slug), there's no way I could guess it's not a bug. Neither is not a feature, as It seems like a lack of feature. I still strive with laconic descriptions (or else, not many use case descriptions) of plugins you develop, and with some luck I'm able to achieve roughly the things I'd like. To sum up things, either I'll go with half translated menu structure for all language versions, or end up with flat 1st lvl menu ? Support for multilanguage sites, Internationalization (I18N) - mvlcek - 2012-03-29 yojoe Wrote:... You are right, it's a lack of feature, due to incrementally adding features, whenever there is a need. As to what you end up with: I suppose you are using pulldown menus, because if you have a one-level menu bar and a sidebar menu with the additional levels, the currently featured behaviour is normally exactly what you want - only the current menu is open. I'll try to add the feature this weekend. Support for multilanguage sites, Internationalization (I18N) - yojoe - 2012-03-29 mvlcek Wrote:You are right, it's a lack of feature, due to incrementally adding features, whenever there is a need.I would give my left nut that this functionality was in the core of plugin, after you merged navi and multilanguage plugins. Quote:As to what you end up with: I suppose you are using pulldown menus, because if you have a one-level menu bar and a sidebar menu with the additional levels, the currently featured behaviour is normally exactly what you want - only the current menu is open.Yes, I'm trying to make a dropdown with multilanguage support for a new GS theme I'm developing, and I'd like to make it fully compatible with your most popular i18n plugins. I never had a necessity to prepare a multilanguage dropdown menu for GS based website, until now. I'm even curious how many GS based multilanguage websites are out there. Support for multilanguage sites, Internationalization (I18N) - mvlcek - 2012-04-08 I18N version 3.0:
The new flags (use them instead of I18N_SHOW_NORMAL, etc.) are (see also here:
I18N will try to create correct sitemaps depending on your fancy URL settings, however, there are the following limitations for GetSimple 3.1:
Support for multilanguage sites, Internationalization (I18N) - mvlcek - 2012-04-08 Leo-777 Wrote:Is it possible to do any of the filters to select from the directory by using Your plugin. Such as here or what? Normally you would rather use the I18N Search plugin filtering for the keywords of your pages. You can also show filtered menus as detailed here. Support for multilanguage sites, Internationalization (I18N) - AlexStarnavsky - 2012-04-12 Hello! I found a bug (use GS3.1) in the plugin i18n (v3.0): when generate sitemap.xml modification date of all files stay in 1970. It looks like this: Code: <lastmod>1970-01-01T02:00:00+00:00</lastmod> To test this, in tab "Plugins" deactivate I18N Base - sitemap.xml is generated with the correct date of the modification of files. In addition to this, I noticed another small inaccuracy. By default, the tab "Theme" when off the plugin I18N Base present button View Sitemap, which uses the function Code: http://somadomain.com/admin/sitemap.php Code: http://somadomain.com/admin/load.php?Id=i18n_base&sitemap Do you plan in the near future to solve this problem? Thank you in advance. PS: Sorry for my bad English. |