I have at least accomplished the functional part of what I was trying to achieve ... and if I'm right also Carl Galloway way interested in this:
Let's assume I'm planning to provide static pages in 3 differnet languages (english, german and french) and that I also want to use one static page as the blogs frontpage for each of these languages.carl_galloway wrote:2. Could the static pages sidebar plugin be configured to show only pages from the specific language of the user, or if there aren't any pages then default to the serendipity default language (the one set in the configuration screen of admin).
In addition I want to configure a default-language, that will "jump in", when a user has none of the 3 languages provided and this will be english.
On my demo-site I have generated different static pages for each of the mentioned languages and assigned them permalinks with an additional "virtual" subfolder containing the language-id. This "trick" with the language-ids is nothing necesarry for the function of it, but it looks better to me. The only thing that needs to be obeyed, is the fact, that the permalinks have to be different(see bottom of this thread)
I have done some code-changes to serendipity_plugin_staticpage.php and serendipity_event_staticpage.php, and as far as I can see, it works ....
You can try it over at my demo-site, where I have also added the "Choose Language"-sidebar-plugin, so that you are not forced to twiddle around with your browsers preferred language
If you choose any other language you should always see the list of english static pages.
The "imprint"-page is set to "all languages" and therefore it will always appear.
If anyone else is interested in this feature, then please let me know, so that I can find out who to contact to share my code. I will also have to code an admin-gui, because right now, the list of available languages and the default-language are hard-coded!
Another feature discussed earlier in this thread reads like this:
I am not sure, if this was just an idea or whether this is supposed to work in the way described ... BUT with my current installation I cannot confirm that this works.ormus7577 wrote:Example: You just link to pages/about.html. The code checks the language setting (be it a general setting or set by the language picker) and serves you the best possible language version. The same way it works with the startpage...
Over at my demo-site you will also find a special subpage for each of my 3 languages called "multi_XXX-1", where XXX is the name of the language. All of the 3 pages have the same permalink. While the list of static-pages will display the correct name for each language, clicking the link will always bring me to the german page.
Cheers,
Manfred.
