|
|
Home » Community » U++ Webs: Functioning, Layout , Design, Features and Structure of these forums, homepage etc. » [contribution] add language panel on ultimatepp.org to top
|
Re: [contribution] add language panel on ultimatepp.org to top [message #34781 is a reply to message #34772] |
Mon, 12 December 2011 12:35 |
|
Hi Wolfgang,
This was already discussed here:
andrei_natanael wrote on Tue, 16 February 2010 00:29 |
sergeynikitin wrote on Mon, 15 February 2010 23:35 | Perhaps we put the notation language together with the flag?
|
Please, no flags!
I know "a picture is worth a thousand words" but not in this case. Flags sometimes make sense for that country habitants but not for others. I would like to be able to know which is Russian translation without having to know it's flag. Languages abbreviations makes more sense than country flag, in fact we are talking about languages not countries so flags doesn't fit in language context. I don't see any correlation between language and flag.
Andrei
| (See this thread for full context)
My personal opinion is that in ideal situation user should need to switch the language only once in lifetime - when he makes a bookmark to his language of choice - and use that for the rest of his days Or even better, never. The language could be selected automatically, based on browser setting (minor cases of people visiting the site from computers with different language settings would be still solved by clicking on some switch). I hope this will be the case with new W++ based web soon in the future Anyways, the current switch in the footer is functional and simple solution that fully fulfills the intended purpose.
Best regards,
Honza
|
|
|
Re: [contribution] add language panel on ultimatepp.org to top [message #34782 is a reply to message #34772] |
Mon, 12 December 2011 12:39 |
Wolfgang
Messages: 146 Registered: November 2011 Location: Germany
|
Experienced Member |
|
|
The flag was just an additional idea..., the main contribution was to have a language panel additional in TOP OF THE PAGE!
the fact (for me) is that i have a bookmark to the german version but everytime i visit the forum or view one of the en-us pages (because there is no de version) i get switched to the en-us version.
And because most of the pages are really long, i have to scoll down and down and down to click my language again... thats really annoying.
[Updated on: Mon, 12 December 2011 12:40] Report message to a moderator
|
|
|
Re: [contribution] add language panel on ultimatepp.org to top [message #34786 is a reply to message #34782] |
Mon, 12 December 2011 13:27 |
|
koldo
Messages: 3394 Registered: August 2008
|
Senior Veteran |
|
|
Hello Wolfgang
I understand. Perhaps a possible solution would be to put language abbreviations instead of the flags, maintaining the bottom languages reference.
In case of index page it would be:
EN-US, CA-ES, CS-CZ, DE-DE, ES-ES, FR-FR, RO-RO, RU-RU, ZH-CN, ZH-TW
Best regards
Iñaki
|
|
|
|
|
|
|
|
|
Re: [contribution] add language panel on ultimatepp.org to top [message #34806 is a reply to message #34797] |
Tue, 13 December 2011 08:03 |
|
I just uploaded the changes. It should look like this:
It would be great if you could compile and run the uppweb and check it in as many browsers as possible. I only tested it in chromium and w3m. The switcher requires JavaScript, if you have JS turned off, the box should be either invisible (for CSS aware browsers) or it will just contain the name of the current language (this will probably happen only in the text-based browsers, like w3m or lynx).
Let me know how it works and whether you like it
Honza
-
Attachment: lang.png
(Size: 21.06KB, Downloaded 610 times)
|
|
|
|
Re: [contribution] add language panel on ultimatepp.org to top [message #34812 is a reply to message #34807] |
Tue, 13 December 2011 16:55 |
|
Wolfgang wrote on Tue, 13 December 2011 13:15 | hmm I dont know how to compile the uppweb package... is it possible on a windows machine?
|
Yes it is possible. But you have to have the sources - you can check them out from the public mirror, if you don't already have them:svn.exe checkout http://upp-mirror.googlecode.com/svn/trunk/ upp-mirror
Now you have everything necessary and you just have to tell theide where to look. To do this create a new assembly which will point to following nests:C:\somepath\upp-mirror\uppbox;C:\somepath\upp-mirror\rainbow;C:\somepath\upp-mirror/uppsrc If you're not sure how to create new assembly, have a look here (the pictures are quit outdated but the general information is still valid).
Now you can open uppweb package in this assembly, compile it and run it. It will generate the pages somewhere on your disk (not sure about the default now) and generate uppweb.xml configuration file in your home directory where you can tweak the paths for future runs.
Honza
|
|
|
|
Re: [contribution] add language panel on ultimatepp.org to top [message #34822 is a reply to message #34814] |
Tue, 13 December 2011 19:40 |
|
Yes, the defaults are weird I think there is historical reason since when it was running directly on the server, ages ago
Have a look in the uppweb.xml file (should be in your home directory). The targetdir option specifies the output directory for web pages (a lot of html files and few pngs). You can also edit the paths in here and run the uppweb.exe again, it will read it and use the values.
Here is my uppweb.xml for reference:
uppweb.xml | <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE uppweb>
<uppweb>
<rootdir>/home/h/upp-production</rootdir>
<targetdir>/home/h/uppweb/target</targetdir>
<diffdir>/home/h/uppweb/diff</diffdir>
<pdfdir>/home/h/uppweb/pdf</pdfdir>
<ftpUpload value="0"/>
<outPdf value="0"/>
<doSvn value="0"/>
</uppweb>
|
So I can open 'file:///home/h/uppweb/target/index.html' in any browser and see the generated site. You just have to substitute the path.
Honza
|
|
|
|
|
|
|
Re: [contribution] add language panel on ultimatepp.org to top [message #34836 is a reply to message #34830] |
Wed, 14 December 2011 07:35 |
|
Thanks for testing Wolfgang! I guess I'll have to find some computer with IE and refresh my knowledge about the (un)supported javascript features in this broken browser
BTW: The site generation doesn't work again :-/ The last update was at 2011/12/08 (so it is probably not my fault ). I hope we will rewrite it to W++ soon, the thing is quite buggy lately...
Honza
|
|
|
Goto Forum:
Current Time: Fri Sep 20 13:51:39 CEST 2024
Total time taken to generate the page: 0.04488 seconds
|
|
|