Re: Fwd: [www] NEW language Selection Dropdown!
On Sun, Jul 13, 2014 at 12:02 AM, Marcus (OOo) marcus.m...@wtnet.de wrote: Am 07/12/2014 10:10 PM, schrieb Tal Daniel: I reordered the language list, and fixed the spacing to line separator. [...] Have you seen already that the current sorting looks a bit incomplete? The languages with latin characters should be sorted via their native names and the non-latin languages maybe via ISO code. Thanks for reviewing this, Marcus. I'll reorder the Latin lang. list alphabetically. Sorry to override your changes, yesterday :)
Re: Fwd: [www] NEW language Selection Dropdown!
I reordered the language list, and fixed the spacing to line separator. Take into account that styles may change in the future, as there are requests to use Bootstrap library, or sorts. On Thu, Jul 10, 2014 at 12:42 AM, Marcus (OOo) marcus.m...@wtnet.de wrote: Am 07/09/2014 02:30 PM, schrieb Andrea Pescetti: On 08/07/2014 Tal Daniel wrote: Regarding the ORDER of languages, we have a tie. Should we take that to a VOTE? -- No need to. It's a minor thing. I think that the bottom line is: sort by something that is visible and sort in a way that a native speaker of a language based on a non-Latin alphabet would find normal. So long as it has a logic, I'm fine with that and I think others will be too. +1 Whatever the sorting will look like, it has to be traceable for the user. Indeed here there are different conventions around, for example http://www.microsoft.com/en-us/locale.aspx (just to pick one with a long list, but any corporate site will do) lists all Latin first, then Greek, Cyrillic and others, by alphabet. While wow, that must be a nearly complete list. ;-) I've done some more researching and found the following website with the same sorting rule: - Youtube (see footer) - Facebook (see header) - Google+ (see footer) - Twitter (see header) All sort first via Latin, then Cyrillic, then Arabic, then Indian, then Far-East. So, the bigger and most known websites seem to have a common sorting. http://en.wikipedia.org/wiki/Computer for some reason puts Hebrew between Italiano and Basa Jawa (does this sound natural to you?). Of course, it's again the sorting via ISO codes. Just have a look into the HTML code: :-P it - Italiano he - Hebrew jv - Basa Jawa But to answer your (rhetorical ;-) ) question: No, I would expect a more visible and therefore reasonable sorting. BTW: It's the same for Mozilla (see the language button in the footer). Even when the visible result is different to Wikipedia. We also expose ISO codes, so sorting by codes could be a way to make it simpler. Whatever works best for you, Tal, will probably work for us too! @Tal: Finally: It seems the common sorting rule is first via Latin, then Cyrillic, then Arabic, then Indian, then Far-East (more or less this way as I cannot interprete every character set of this world). So, I would suggest to sort this way, too. And yes, I know that I wrote something different in my previous mails. But after looking closer on other websites I think I have to change my opinion. Marcus - To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org For additional commands, e-mail: dev-h...@openoffice.apache.org -- טל
Re: Fwd: [www] NEW language Selection Dropdown!
Am 07/12/2014 10:10 PM, schrieb Tal Daniel: I reordered the language list, and fixed the spacing to line separator. looks good. Have you seen already that the current sorting looks a bit incomplete? The languages with latin characters should be sorted via their native names and the non-latin languages maybe via ISO code. Then the visible order is perfect. Take into account that styles may change in the future, as there are requests to use Bootstrap library, or sorts. I hope so. :-) Marcus On Thu, Jul 10, 2014 at 12:42 AM, Marcus (OOo)marcus.m...@wtnet.de wrote: Am 07/09/2014 02:30 PM, schrieb Andrea Pescetti: On 08/07/2014 Tal Daniel wrote: Regarding the ORDER of languages, we have a tie. Should we take that to a VOTE? -- No need to. It's a minor thing. I think that the bottom line is: sort by something that is visible and sort in a way that a native speaker of a language based on a non-Latin alphabet would find normal. So long as it has a logic, I'm fine with that and I think others will be too. +1 Whatever the sorting will look like, it has to be traceable for the user. Indeed here there are different conventions around, for example http://www.microsoft.com/en-us/locale.aspx (just to pick one with a long list, but any corporate site will do) lists all Latin first, then Greek, Cyrillic and others, by alphabet. While wow, that must be a nearly complete list. ;-) I've done some more researching and found the following website with the same sorting rule: - Youtube (see footer) - Facebook (see header) - Google+ (see footer) - Twitter (see header) All sort first via Latin, then Cyrillic, then Arabic, then Indian, then Far-East. So, the bigger and most known websites seem to have a common sorting. http://en.wikipedia.org/wiki/Computer for some reason puts Hebrew between Italiano and Basa Jawa (does this sound natural to you?). Of course, it's again the sorting via ISO codes. Just have a look into the HTML code: :-P it - Italiano he - Hebrew jv - Basa Jawa But to answer your (rhetorical ;-) ) question: No, I would expect a more visible and therefore reasonable sorting. BTW: It's the same for Mozilla (see the language button in the footer). Even when the visible result is different to Wikipedia. We also expose ISO codes, so sorting by codes could be a way to make it simpler. Whatever works best for you, Tal, will probably work for us too! @Tal: Finally: It seems the common sorting rule is first via Latin, then Cyrillic, then Arabic, then Indian, then Far-East (more or less this way as I cannot interprete every character set of this world). So, I would suggest to sort this way, too. And yes, I know that I wrote something different in my previous mails. But after looking closer on other websites I think I have to change my opinion. Marcus - To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org For additional commands, e-mail: dev-h...@openoffice.apache.org
Re: Fwd: [www] NEW language Selection Dropdown!
On 08/07/2014 Tal Daniel wrote: Regarding the ORDER of languages, we have a tie. Should we take that to a VOTE? -- No need to. It's a minor thing. I think that the bottom line is: sort by something that is visible and sort in a way that a native speaker of a language based on a non-Latin alphabet would find normal. So long as it has a logic, I'm fine with that and I think others will be too. Indeed here there are different conventions around, for example http://www.microsoft.com/en-us/locale.aspx (just to pick one with a long list, but any corporate site will do) lists all Latin first, then Greek, Cyrillic and others, by alphabet. While http://en.wikipedia.org/wiki/Computer for some reason puts Hebrew between Italiano and Basa Jawa (does this sound natural to you?). We also expose ISO codes, so sorting by codes could be a way to make it simpler. Whatever works best for you, Tal, will probably work for us too! Regards, Andrea. - To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org For additional commands, e-mail: dev-h...@openoffice.apache.org
Re: Fwd: [www] NEW language Selection Dropdown!
Am 07/09/2014 02:30 PM, schrieb Andrea Pescetti: On 08/07/2014 Tal Daniel wrote: Regarding the ORDER of languages, we have a tie. Should we take that to a VOTE? -- No need to. It's a minor thing. I think that the bottom line is: sort by something that is visible and sort in a way that a native speaker of a language based on a non-Latin alphabet would find normal. So long as it has a logic, I'm fine with that and I think others will be too. +1 Whatever the sorting will look like, it has to be traceable for the user. Indeed here there are different conventions around, for example http://www.microsoft.com/en-us/locale.aspx (just to pick one with a long list, but any corporate site will do) lists all Latin first, then Greek, Cyrillic and others, by alphabet. While wow, that must be a nearly complete list. ;-) I've done some more researching and found the following website with the same sorting rule: - Youtube (see footer) - Facebook (see header) - Google+ (see footer) - Twitter (see header) All sort first via Latin, then Cyrillic, then Arabic, then Indian, then Far-East. So, the bigger and most known websites seem to have a common sorting. http://en.wikipedia.org/wiki/Computer for some reason puts Hebrew between Italiano and Basa Jawa (does this sound natural to you?). Of course, it's again the sorting via ISO codes. Just have a look into the HTML code: :-P it - Italiano he - Hebrew jv - Basa Jawa But to answer your (rhetorical ;-) ) question: No, I would expect a more visible and therefore reasonable sorting. BTW: It's the same for Mozilla (see the language button in the footer). Even when the visible result is different to Wikipedia. We also expose ISO codes, so sorting by codes could be a way to make it simpler. Whatever works best for you, Tal, will probably work for us too! @Tal: Finally: It seems the common sorting rule is first via Latin, then Cyrillic, then Arabic, then Indian, then Far-East (more or less this way as I cannot interprete every character set of this world). So, I would suggest to sort this way, too. And yes, I know that I wrote something different in my previous mails. But after looking closer on other websites I think I have to change my opinion. Marcus - To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org For additional commands, e-mail: dev-h...@openoffice.apache.org
Re: Fwd: [www] NEW language Selection Dropdown!
Am 06/26/2014 01:56 PM, schrieb Ariel Constenla-Haile: On Wed, Jun 25, 2014 at 10:59:19PM +0200, Andrea Pescetti wrote: On 25/06/2014 Tal Daniel wrote: Published new language selection dropdown [again]. From now on, visitors can quickly select their language, if available. This affects all NL sites. Developers translators are called to add 2 new variables to {lang}/brand.mdtext, and change according to their language Done for Italian. Works nicely, thanks for developing it. Just the sorting is not intuitive... Maybe sort by Name (with non-Latin at the end) or by language code? Mozilla has a language listbox at the bottom of their site, and they sort via ISO codes. Wikipedia as a language list at the side, it seems that both sort the list according to the Latin transliteration, or something similar. They sort alphabetically via the native language names. But it's followed not really consequently. For OpenOffice I would suggest to do the sorting via ISO code. As they are shown in the list it's understandable for all - also for non-native speakers. BTW: Tal, I know that Hebrew is working from right-to-left. However, it doesn't look good compared to the other list items. Would you mind to change it to left-to-right? Marcus - To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org For additional commands, e-mail: dev-h...@openoffice.apache.org
Re: Fwd: [www] NEW language Selection Dropdown!
On Wed, Jun 25, 2014 at 10:59:19PM +0200, Andrea Pescetti wrote: On 25/06/2014 Tal Daniel wrote: Published new language selection dropdown [again]. From now on, visitors can quickly select their language, if available. This affects all NL sites. Developers translators are called to add 2 new variables to {lang}/brand.mdtext, and change according to their language Done for Italian. Works nicely, thanks for developing it. Just the sorting is not intuitive... Maybe sort by Name (with non-Latin at the end) or by language code? Mozilla has a language listbox at the bottom of their site, and Wikipedia as a language list at the side, it seems that both sort the list according to the Latin transliteration, or something similar. Regards -- Ariel Constenla-Haile La Plata, Argentina signature.asc Description: Digital signature
Fwd: [www] NEW language Selection Dropdown!
Published new language selection dropdown [again]. From now on, visitors can quickly select their language, if available. This affects all NL sites. Developers translators are called to add 2 new variables to {lang}/brand.mdtext, and change according to their language: selectedlang: en * language: Language ** (* change to your language code; ** translate title to your language) For example, choose Hebrew from the dropdown, or see /he/brand.mdtext, or /xx/brand.mdtext. Note: Native Languages link from the menu would probably be removed in the future, when the language dropdown would be more familiar and adopted. Enjoy, Tal
Re: Fwd: [www] NEW language Selection Dropdown!
Am 06/25/2014 01:19 PM, schrieb Tal Daniel: Published new language selection dropdown [again]. From now on, visitors can quickly select their language, if available. This affects all NL sites. thanks for this nice little feature. Good work! Developers translators are called to add 2 new variables to {lang}/brand.mdtext, and change according to their language: selectedlang: en * language: Language ** (* change to your language code; ** translate title to your language) Done for German, works great. Keep up the good work, what's next? ;-) Marcus - To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org For additional commands, e-mail: dev-h...@openoffice.apache.org
Re: Fwd: [www] NEW language Selection Dropdown!
On 25/06/2014 Tal Daniel wrote: Published new language selection dropdown [again]. From now on, visitors can quickly select their language, if available. This affects all NL sites. Developers translators are called to add 2 new variables to {lang}/brand.mdtext, and change according to their language Done for Italian. Works nicely, thanks for developing it. Just the sorting is not intuitive... Maybe sort by Name (with non-Latin at the end) or by language code? I can't figure out if there is a sort in place at the moment, it seems rather random to me. Or maybe it's sorted by English name, but since we don't show the English name this doesn't help the visitor. Regards, Andrea. - To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org For additional commands, e-mail: dev-h...@openoffice.apache.org
Re: [www] NEW language Selection Dropdown!
Great. I thought to publish it, too, lately (move the language bar from the test page, to the brand.html template, on top; see http://ooo-site.staging.apache.org/test/templates/brand-template-with-language-select-without-vars.html ). I understand that you prefer to mention language codes in brackets (e.g. ... [it]), rather than writing only the language names, as it is currently, and in Mozilla too. Note that a month ago, I mentioned that there are already inline HTML comments, for developers, next to each option, in the source code, intended for developers. Anyway, I'll try to publish soon, Tal On Sun, Jun 22, 2014 at 12:14 AM, Marcus (OOo) marcus.m...@wtnet.de wrote: Am 06/21/2014 10:25 PM, schrieb Andrea Pescetti: On 20/05/2014 21:52, Marcus (OOo) wrote: Am 05/20/2014 11:13 AM, schrieb Tal Daniel: Please test it a bit, comment here, and if all goes well, I'll move the code into the site brand.html template, to affect all sites. We are now at a point where we could enable this, right? Of course, improvements are always possible, but once we have something online it's easier to make incremental fixes. For example, leveraging the Apache CMS and view.pm is nice to have, , but it will be easier to involve an Apache CMS guru after the thing is online rather than wait. I this case I think it's impossible to test deeply on the local machine as the interaction with the CMS here is key. So indeed, starting with a minimal implementation and fixing problems on-the-fly seems needed. source code: I've added a comment next to eachoption, stating the language in English. I don't see it as redundant information as it helps to identify what to choose. And I mean the average user, not developers especially. Looking around, it seems that a good solution could be to do like the European Union official site http://europa.eu/ does: language name in native language and language code in square brackets. So something like Italiano [it] Magyar [hu] Polski [pl] Could this work? This is quite compact and informative, especially in our case where we actually use the language code for the directory containing the subsite (in most cases). Sure, that would fit. @Tal: Please go ahead. :-) Marcus -- טל
Re: [www] NEW language Selection Dropdown!
On Sat, Jun 21, 2014 at 2:14 PM, Marcus (OOo) marcus.m...@wtnet.de wrote: Am 06/21/2014 10:25 PM, schrieb Andrea Pescetti: On 20/05/2014 21:52, Marcus (OOo) wrote: Am 05/20/2014 11:13 AM, schrieb Tal Daniel: Please test it a bit, comment here, and if all goes well, I'll move the code into the site brand.html template, to affect all sites. We are now at a point where we could enable this, right? Of course, improvements are always possible, but once we have something online it's easier to make incremental fixes. For example, leveraging the Apache CMS and view.pm is nice to have, , but it will be easier to involve an Apache CMS guru after the thing is online rather than wait. I this case I think it's impossible to test deeply on the local machine as the interaction with the CMS here is key. By downloading and using the build scripts as described here -- http://openoffice.apache.org/website-local.html#how-to-do-website-development-locally-for-technical-users you actually do produce the same results as the CMS does but in your local environment. This is kind of mandatory if you change any files that effect the CMS processing -- templates, etc. I think maybe this part is not clear. I will make some modifications today to help. So indeed, starting with a minimal implementation and fixing problems on-the-fly seems needed. source code: I've added a comment next to eachoption, stating the language in English. I don't see it as redundant information as it helps to identify what to choose. And I mean the average user, not developers especially. Looking around, it seems that a good solution could be to do like the European Union official site http://europa.eu/ does: language name in native language and language code in square brackets. So something like Italiano [it] Magyar [hu] Polski [pl] Could this work? This is quite compact and informative, especially in our case where we actually use the language code for the directory containing the subsite (in most cases). Sure, that would fit. @Tal: Please go ahead. :-) Marcus - To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org For additional commands, e-mail: dev-h...@openoffice.apache.org -- - MzK What you can do, or dream you can do, begin it; Boldness has genius, power and magic in it. -- attributed to Johann Wolfgang von Goethe
Re: [www] NEW language Selection Dropdown!
On 20/05/2014 21:52, Marcus (OOo) wrote: Am 05/20/2014 11:13 AM, schrieb Tal Daniel: Please test it a bit, comment here, and if all goes well, I'll move the code into the site brand.html template, to affect all sites. We are now at a point where we could enable this, right? Of course, improvements are always possible, but once we have something online it's easier to make incremental fixes. For example, leveraging the Apache CMS and view.pm is nice to have, , but it will be easier to involve an Apache CMS guru after the thing is online rather than wait. source code: I've added a comment next to eachoption, stating the language in English. I don't see it as redundant information as it helps to identify what to choose. And I mean the average user, not developers especially. Looking around, it seems that a good solution could be to do like the European Union official site http://europa.eu/ does: language name in native language and language code in square brackets. So something like Italiano [it] Magyar [hu] Polski [pl] Could this work? This is quite compact and informative, especially in our case where we actually use the language code for the directory containing the subsite (in most cases). Regards, Andrea. - To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org For additional commands, e-mail: dev-h...@openoffice.apache.org
Re: [www] NEW language Selection Dropdown!
Am 06/21/2014 10:25 PM, schrieb Andrea Pescetti: On 20/05/2014 21:52, Marcus (OOo) wrote: Am 05/20/2014 11:13 AM, schrieb Tal Daniel: Please test it a bit, comment here, and if all goes well, I'll move the code into the site brand.html template, to affect all sites. We are now at a point where we could enable this, right? Of course, improvements are always possible, but once we have something online it's easier to make incremental fixes. For example, leveraging the Apache CMS and view.pm is nice to have, , but it will be easier to involve an Apache CMS guru after the thing is online rather than wait. I this case I think it's impossible to test deeply on the local machine as the interaction with the CMS here is key. So indeed, starting with a minimal implementation and fixing problems on-the-fly seems needed. source code: I've added a comment next to eachoption, stating the language in English. I don't see it as redundant information as it helps to identify what to choose. And I mean the average user, not developers especially. Looking around, it seems that a good solution could be to do like the European Union official site http://europa.eu/ does: language name in native language and language code in square brackets. So something like Italiano [it] Magyar [hu] Polski [pl] Could this work? This is quite compact and informative, especially in our case where we actually use the language code for the directory containing the subsite (in most cases). Sure, that would fit. @Tal: Please go ahead. :-) Marcus - To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org For additional commands, e-mail: dev-h...@openoffice.apache.org
Re: [www] NEW language Selection Dropdown!
On Sun, May 18, 2014, Ariel Constenla-Haile wrote: On Sun, May 18, 2014, Andrea Pescetti wrote: On 17/05/2014 Tal Daniel wrote: http://ooo-site.staging.apache.org/test/templates/brand-template-with-language-select-without-vars.html Please test it a bit, comment here, and if all goes well, I'll move the code into the site brand.html template, to affect all sites. Thanks for this! It looks good enough to me to go live. Please allow a bit more of the usual 72 hours for feedback, since mail delivery seems to be back to normal but we may still experience some delays. [...] It would be better to avoid JavaScript, and use the Dotiac::DTL / Django Template Language facilities, leaving the code logic on view.pm the list can be populated with a for loop. http://www.dotiac.com/cgi-bin/index.pl http://www.djangoproject.com/ The blog example: http://sourceforge.net/p/dotiac/code/HEAD/tree/trunk/Dotiac/examples/templates/blog.html Ariel, I'd be glad to work better with Django templating, may I'll give it a try and incorporate a {% foreach ... %} on a languages array that I'll create. But I may need your assistance with the view.pm code, to redirect to other pages [without Javascript?!]. Tal
Re: [www] NEW language Selection Dropdown!
On Sun, May 18, 2014 at 11:58 AM, Marcus (OOo) marcus.m...@wtnet.de wrote: Am 05/17/2014 11:36 PM, schrieb Tal Daniel: I've created a page for testing the new language dropdown here: http://ooo-site.staging.apache.org/test/templates/ brand-template-with-language-select-without-vars.html Notes: [...] Please test it a bit, comment here, and if all goes well, I'll move the code into the site brand.html template, to affect all sites. [...] One suggestion: I think it's better to write also the English name into the selectbox. Of course, e.g., a Russian guy knows what to choose to see the webpage in Russian. However for others that need to go there, too, it's a bit difficult - especially when the character set is different than Latin. Also I would add a Choose a website language (or similar) as first item. You can use this as default and fall-back if something is not working. Maybe with some - to separate from the lang items. Marcus, I prefer not to have redundant information on the select. If by others that need to go there you refer to developers, I think they can easily examine the source code: I've added a comment next to each option, stating the language in English. The same goes with choose a website language:. I prefer to show the current language, as a sign that other languages exist. There is also a better chance that people can understand the single word English than the longer phrase above, if they are not fluent in English.
Re: [www] NEW language Selection Dropdown!
Hi Tal, On Tue, May 20, 2014 at 11:55:10AM +0300, Tal Daniel wrote: It would be better to avoid JavaScript, and use the Dotiac::DTL / Django Template Language facilities, leaving the code logic on view.pm the list can be populated with a for loop. http://www.dotiac.com/cgi-bin/index.pl http://www.djangoproject.com/ The blog example: http://sourceforge.net/p/dotiac/code/HEAD/tree/trunk/Dotiac/examples/templates/blog.html Ariel, I'd be glad to work better with Django templating, may I'll give it a try and incorporate a {% foreach ... %} on a languages array that I'll create. But I may need your assistance with the view.pm code, to redirect to other pages [without Javascript?!]. I'm not sure if you can redirect without javascript on an HTML form, searching in google may help; anyway I was suggesting to move all that hard-coded list of languages out of the template; for example, you can create a CSV file with the data, process that file on view.pm, and feed the template with the data; that way, you only need to modify view.pm and the brand template once, and every time the language list changes, you only have to modify a CSV text file, which is easier to maintain and less error prone. You can see the live example on the foundation main site, where the content that seems dynamic is just generated at build time; the same approach could be used on the download pages, which are hard to maintain and a nightmare to translate; or even to generate the localized sites, all with same look and feels. (The main problem is that only Dave Fisher knows that stuff; if you are willing to learn, it will be very helpful for the project :) ). Regards -- Ariel Constenla-Haile La Plata, Argentina signature.asc Description: Digital signature
Re: [www] NEW language Selection Dropdown!
Am 05/20/2014 11:13 AM, schrieb Tal Daniel: On Sun, May 18, 2014 at 11:58 AM, Marcus (OOo)marcus.m...@wtnet.de wrote: Am 05/17/2014 11:36 PM, schrieb Tal Daniel: I've created a page for testing the new language dropdown here: http://ooo-site.staging.apache.org/test/templates/ brand-template-with-language-select-without-vars.html Notes: [...] Please test it a bit, comment here, and if all goes well, I'll move the code into the site brand.html template, to affect all sites. [...] One suggestion: I think it's better to write also the English name into the selectbox. Of course, e.g., a Russian guy knows what to choose to see the webpage in Russian. However for others that need to go there, too, it's a bit difficult - especially when the character set is different than Latin. Also I would add a Choose a website language (or similar) as first item. You can use this as default and fall-back if something is not working. Maybe with some - to separate from the lang items. Marcus, I prefer not to have redundant information on the select. If by others that need to go there you refer to developers, I think they can easily examine the source code: I've added a comment next to eachoption, stating the language in English. I don't see it as redundant information as it helps to identify what to choose. And I mean the average user, not developers especially. Sorry, but why do I need to inspect the source code to see which language item I've to select? Doesn't make sense to me. ;-) The same goes with choose a website language:. I prefer to show the current language, as a sign that other languages exist. OK Marcus - To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org For additional commands, e-mail: dev-h...@openoffice.apache.org
Re: [www] NEW language Selection Dropdown!
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/20/2014 10:46 AM, Ariel Constenla-Haile wrote: Hi Tal, On Tue, May 20, 2014 at 11:55:10AM +0300, Tal Daniel wrote: It would be better to avoid JavaScript, and use the Dotiac::DTL / Django Template Language facilities, leaving the code logic on view.pm the list can be populated with a for loop. http://www.dotiac.com/cgi-bin/index.pl http://www.djangoproject.com/ The blog example: http://sourceforge.net/p/dotiac/code/HEAD/tree/trunk/Dotiac/examples/templates/blog.html Ariel, I'd be glad to work better with Django templating, may I'll give it a try and incorporate a {% foreach ... %} on a languages array that I'll create. But I may need your assistance with the view.pm code, to redirect to other pages [without Javascript?!]. I'm not sure if you can redirect without javascript on an HTML form, searching in google may help; anyway I was suggesting to move all that hard-coded list of languages out of the template; for example, you can create a CSV file with the data, process that file on view.pm, and feed the template with the data; that way, you only need to modify view.pm and the brand template once, and every time the language list changes, you only have to modify a CSV text file, which is easier to maintain and less error prone. You can see the live example on the foundation main site, where the content that seems dynamic is just generated at build time; the same approach could be used on the download pages, which are hard to maintain and a nightmare to translate; or even to generate the localized sites, all with same look and feels. (The main problem is that only Dave Fisher knows that stuff; if you are willing to learn, it will be very helpful for the project :) ). Regards -- Ariel Constenla-Haile La Plata, Argentina I would strongly suggest that live changes not be made to view.pm or path.pm. There are instructions on how to set up a local environment/implementation of the AOO website complete with downloading and using the needed CMS files on the following page -- http://openoffice.apache.org/website-local.html This requires setting up an (Apache) webserver on your local box, and other requirements. Most of us doing more complex changes use this approach, and is really necessary when dealing with the view.pm and path.pm files which affect rendering to the whole site. This advice aside, it would be very nice to have some additional expertise on the use of the Django templating process used by the CMS. - -- - - MzK Life is either a daring adventure, or nothing. -- Helen Keller -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJTe98NAAoJEJ8zlgVF1GcuMnsIAJ3BB72ufJO7FFFzjovEeYG+ Xf5du4bcDXVDBQMhPkktlbdYBPbbPRsMvEDgeCfNL2N0OMrw2JOvuAckvNzXpeCE YqCyQ42/TDnYOacJTCF0flKhnnOUmxi9FtpPbXzajCMMoCg8AcuyxTyEQWCGV3xx SwQIDAZq/yaFOwJV1jIrUwIRwKX2W02WogzcQA6YhcIjIwLj8zXburfxyN6/9tW7 rbjFBuasnwRt+BnFdQ5mvMtr/iOcTcOTyKxUAGfLJdhVPQVHXMdcqsUml94wC9MU dGqBLlzHI/J2JOJj4x2BGUTWOYhYNXYuClWsoglxbKd07YGFu6E+eq6XfyCsBbU= =Fyey -END PGP SIGNATURE- - To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org For additional commands, e-mail: dev-h...@openoffice.apache.org
Re: [www] NEW language Selection Dropdown!
On Sun, May 18, 2014 at 2:40 AM, Andrea Pescetti pesce...@apache.orgwrote: On 17/05/2014 Tal Daniel wrote: http://ooo-site.staging.apache.org/test/templates/ brand-template-with-language-select-without-vars.html Please test it a bit, comment here, and if all goes well, I'll move the code into the site brand.html template, to affect all sites. Thanks for this! It looks good enough to me to go live. Please allow a bit more of the usual 72 hours for feedback, Sure, OK. I also see some alignment issues in the select (it seems that the drop-down is a few pixels taller than it should be), see http://i.imgur.com/inLcLeD.png but this is definitely minor. And in general all these problems can be addressed later. Andrea, what OS/Browser are you using? I see the select box without that bottom spacing. We'll fix that, later on. My main concern is that, even limiting it to the 38 released languages, I see that quite a few localized websites still need an update. [...] Based on this, I would still include the Other item at the end of the select as a link to native-lang.html then go live with the 38 languages and immediately ask the l10n list for volunteers in updating the relevant sites. Good idea. I'll even link from Language: to all languages, for accessibility's sake, as you suggested. Tal
Re: [www] NEW language Selection Dropdown!
Am 05/18/2014 07:51 AM, schrieb Tal Daniel: On Sun, May 18, 2014 at 2:40 AM, Andrea Pescettipesce...@apache.orgwrote: On 17/05/2014 Tal Daniel wrote: http://ooo-site.staging.apache.org/test/templates/ brand-template-with-language-select-without-vars.html Please test it a bit, comment here, and if all goes well, I'll move the code into the site brand.html template, to affect all sites. Thanks for this! It looks good enough to me to go live. Please allow a bit more of the usual 72 hours for feedback, Sure, OK. I also see some alignment issues in the select (it seems that the drop-down is a few pixels taller than it should be), see http://i.imgur.com/inLcLeD.png but this is definitely minor. And in general all these problems can be addressed later. Andrea, what OS/Browser are you using? I see the select box without that bottom spacing. We'll fix that, later on. I can see this also with Firefox on Linux. It's be cause of the language names in their native writing - here it is Hindi (hi) and Thai (th) which have a slightly higher height compared with the other language names inside the selectbox. I've the same problem in my download selectbox. It should be solved when you style the selectbox a bit different (customized height and adjusted text alignment). My main concern is that, even limiting it to the 38 released languages, I see that quite a few localized websites still need an update. [...] Based on this, I would still include the Other item at the end of the select as a link to native-lang.html then go live with the 38 languages and immediately ask the l10n list for volunteers in updating the relevant sites. Good idea. I'll even link from Language: to all languages, for accessibility's sake, as you suggested. +1 Marcus - To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org For additional commands, e-mail: dev-h...@openoffice.apache.org
Re: [www] NEW language Selection Dropdown!
Am 05/17/2014 11:36 PM, schrieb Tal Daniel: I've created a page for testing the new language dropdown here: http://ooo-site.staging.apache.org/test/templates/brand-template-with-language-select-without-vars.html Notes: * Ignore the surrounding templates that the python script attaches to the page, and focus on the central area, which is a duplicate of the brand template above it, with addition of the dropdown box. * The template example lacks variables, so I commented out a few lines, and hardcoded a few strings. * Currently, the selected language is English, but eventually, localized sites will set the default selected language according to their language, by changing a variable in brand.mdtext (or I'll do it). Please test it a bit, comment here, and if all goes well, I'll move the code into the site brand.html template, to affect all sites. Looks good, for me it's working. :-) I've not tested all list items but when one is working, then it's just a question of if the others are correctly named and linked. One suggestion: I think it's better to write also the English name into the selectbox. Of course, e.g., a Russian guy knows what to choose to see the webpage in Russian. However for others that need to go there, too, it's a bit difficult - especially when the character set is different than Latin. Also I would add a Choose a website language (or similar) as first item. You can use this as default and fall-back if something is not working. Maybe with some - to separate from the lang items. Ken, I'm sorry, I tried to create the /content structure in /content/test, and failed. I can't copy files from /content, without checking out the whole 9GB folder, and I don't think it's possible to create inner sites with templates, within the /content/test directory, at this stage. Hence, I created a simple page to test the func. of the dropdown only. That's a good alternative for the testing phase. Marcus On Sat, May 17, 2014 at 1:28 PM, Marcus (OOo)marcus.m...@wtnet.de wrote: Am 05/15/2014 11:10 PM, schrieb Tal Daniel: On Thu, May 15, Kay Schenk wrote: OK, this is looking interesting, but...please revert this change as the next real publish is likely to make this live and we probably don't want to do this yet without further review. So, please do the following -- * copy the revised version of brand.mdtext to the /test directory (we can then review this further) * revert your brand.mdtext change at the top level Thanks. Kay, I reverted /templates/brand.html to revision before my changes (robweir). No changes in brand.mdtext, apart from localized site (he), which still functions. So, there are no apparent changes in the ooo-site now. I'm not sure how we're going to test this, since now the feature isn't online, and I didn't find a way to override the brand.html template within a localized site, or /test; it's a global template. Anyway, I've created a branch - templates/brand-branch-with-language-select.html, so save template changes, for future testing. Please help in testing it, in the near future. My tests showed that all redirections work properly in Chrome. Default-selected language is selected according to the language defined in brand.mdtext (for example, see /xx/brand.mdtext or /he/brand.mdtext). Tal, I was not able to follow your work in the last days as I'm (still) recovering from a cold. Maybe stupid question but is there a version online of your lang selector? Thanks On 05/14/2014 01:21 AM, Tal Daniel wrote: On Wed, May 14 I wrote: Following my suggestion, I've changed the brand.html template to show a lanaugage selection dropdown on all sites (currently available on staging sites only - http://ooo-site.staging.apache.org/). To see a working example, select עברית (Hebrew) from the dropdown menu. - To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org For additional commands, e-mail: dev-h...@openoffice.apache.org
Re: [www] NEW language Selection Dropdown!
Tal Daniel wrote: On Sun, May 18, 2014 at 2:40 AM, Andrea Pescetti wrote: http://i.imgur.com/inLcLeD.png but this is definitely minor. And in general all these problems can be addressed later. Andrea, what OS/Browser are you using? I see the select box without that bottom spacing. We'll fix that, later on. That was Firefox on Linux, but it may be a font issue too. Anyway, other browsers work fine and indeed this is a very minor detail. Regards, Andrea. - To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org For additional commands, e-mail: dev-h...@openoffice.apache.org
Re: [www] NEW language Selection Dropdown!
On Sun, May 18, 2014 at 01:40:52AM +0200, Andrea Pescetti wrote: On 17/05/2014 Tal Daniel wrote: http://ooo-site.staging.apache.org/test/templates/brand-template-with-language-select-without-vars.html Please test it a bit, comment here, and if all goes well, I'll move the code into the site brand.html template, to affect all sites. Thanks for this! It looks good enough to me to go live. Please allow a bit more of the usual 72 hours for feedback, since mail delivery seems to be back to normal but we may still experience some delays. I had already reviewed the select list and code when it was on staging, and it's OK. My accessibility concern was not on the select, but on the JavaScript manipulating it. It would be better to avoid JavaScript, and use the Dotiac::DTL / Django Template Language facilities, leaving the code logic on view.pm the list can be populated with a for loop. http://www.dotiac.com/cgi-bin/index.pl http://www.djangoproject.com/ The blog example: http://sourceforge.net/p/dotiac/code/HEAD/tree/trunk/Dotiac/examples/templates/blog.html Regards -- Ariel Constenla-Haile La Plata, Argentina pgpxhgGE6XMnv.pgp Description: PGP signature
Re: [www] NEW language Selection Dropdown!
Am 05/15/2014 11:10 PM, schrieb Tal Daniel: On Thu, May 15, Kay Schenk wrote: OK, this is looking interesting, but...please revert this change as the next real publish is likely to make this live and we probably don't want to do this yet without further review. So, please do the following -- * copy the revised version of brand.mdtext to the /test directory (we can then review this further) * revert your brand.mdtext change at the top level Thanks. Kay, I reverted /templates/brand.html to revision before my changes (robweir). No changes in brand.mdtext, apart from localized site (he), which still functions. So, there are no apparent changes in the ooo-site now. I'm not sure how we're going to test this, since now the feature isn't online, and I didn't find a way to override the brand.html template within a localized site, or /test; it's a global template. Anyway, I've created a branch - templates/brand-branch-with-language-select.html, so save template changes, for future testing. Please help in testing it, in the near future. My tests showed that all redirections work properly in Chrome. Default-selected language is selected according to the language defined in brand.mdtext (for example, see /xx/brand.mdtext or /he/brand.mdtext). Tal, I was not able to follow your work in the last days as I'm (still) recovering from a cold. Maybe stupid question but is there a version online of your lang selector? Thanks On 05/14/2014 01:21 AM, Tal Daniel wrote: On Wed, May 14 I wrote: Following my suggestion, I've changed the brand.html template to show a lanaugage selection dropdown on all sites (currently available on staging sites only - http://ooo-site.staging.apache.org/). To see a working example, select עברית (Hebrew) from the dropdown menu. - To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org For additional commands, e-mail: dev-h...@openoffice.apache.org
Re: [www] NEW language Selection Dropdown!
I've created a page for testing the new language dropdown here: http://ooo-site.staging.apache.org/test/templates/brand-template-with-language-select-without-vars.html Notes: * Ignore the surrounding templates that the python script attaches to the page, and focus on the central area, which is a duplicate of the brand template above it, with addition of the dropdown box. * The template example lacks variables, so I commented out a few lines, and hardcoded a few strings. * Currently, the selected language is English, but eventually, localized sites will set the default selected language according to their language, by changing a variable in brand.mdtext (or I'll do it). Please test it a bit, comment here, and if all goes well, I'll move the code into the site brand.html template, to affect all sites. Tal Ken, I'm sorry, I tried to create the /content structure in /content/test, and failed. I can't copy files from /content, without checking out the whole 9GB folder, and I don't think it's possible to create inner sites with templates, within the /content/test directory, at this stage. Hence, I created a simple page to test the func. of the dropdown only. On Sat, May 17, 2014 at 1:28 PM, Marcus (OOo) marcus.m...@wtnet.de wrote: Am 05/15/2014 11:10 PM, schrieb Tal Daniel: On Thu, May 15, Kay Schenk wrote: OK, this is looking interesting, but...please revert this change as the next real publish is likely to make this live and we probably don't want to do this yet without further review. So, please do the following -- * copy the revised version of brand.mdtext to the /test directory (we can then review this further) * revert your brand.mdtext change at the top level Thanks. Kay, I reverted /templates/brand.html to revision before my changes (robweir). No changes in brand.mdtext, apart from localized site (he), which still functions. So, there are no apparent changes in the ooo-site now. I'm not sure how we're going to test this, since now the feature isn't online, and I didn't find a way to override the brand.html template within a localized site, or /test; it's a global template. Anyway, I've created a branch - templates/brand-branch-with-language-select.html, so save template changes, for future testing. Please help in testing it, in the near future. My tests showed that all redirections work properly in Chrome. Default-selected language is selected according to the language defined in brand.mdtext (for example, see /xx/brand.mdtext or /he/brand.mdtext). Tal, I was not able to follow your work in the last days as I'm (still) recovering from a cold. Maybe stupid question but is there a version online of your lang selector? Thanks On 05/14/2014 01:21 AM, Tal Daniel wrote: On Wed, May 14 I wrote: Following my suggestion, I've changed the brand.html template to show a lanaugage selection dropdown on all sites (currently available on staging sites only - http://ooo-site.staging.apache.org/). To see a working example, select עברית (Hebrew) from the dropdown menu. -- טל
Re: [www] NEW language Selection Dropdown!
On 17/05/2014 Tal Daniel wrote: http://ooo-site.staging.apache.org/test/templates/brand-template-with-language-select-without-vars.html Please test it a bit, comment here, and if all goes well, I'll move the code into the site brand.html template, to affect all sites. Thanks for this! It looks good enough to me to go live. Please allow a bit more of the usual 72 hours for feedback, since mail delivery seems to be back to normal but we may still experience some delays. I had already reviewed the select list and code when it was on staging, and it's OK. My accessibility concern was not on the select, but on the JavaScript manipulating it. I also see some alignment issues in the select (it seems that the drop-down is a few pixels taller than it should be), see http://i.imgur.com/inLcLeD.png but this is definitely minor. And in general all these problems can be addressed later. My main concern is that, even limiting it to the 38 released languages, I see that quite a few localized websites still need an update. This might indeed be an occasion to discuss on the l10n list how to handle this, and what criteria should be met for a site to be listed here. Based on this, I would still include the Other item at the end of the select as a link to native-lang.html then go live with the 38 languages and immediately ask the l10n list for volunteers in updating the relevant sites. Regards, Andrea. - To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org For additional commands, e-mail: dev-h...@openoffice.apache.org
Re: [www] NEW language Selection Dropdown!
Update: Languages selection dropdown is now complete. Developers and translators are called to edit the brand.mdtext variables (see instruction below), to fit their language, and edit the /templates/brand.html template with the correct phrasing for their language option within the select box. Note: Native Languages link from the menu would probably be removed in the future, when the language dropdown would be more familiar and adopted. Cheers, Tal On Wed, May 14, I wrote: Following my suggestion, I've changed the brand.html template to show a lanaugage selection dropdown on all sites (currently available on staging sites only - http://ooo-site.staging.apache.org/). To see a working example, select עברית (Hebrew) from the dropdown menu. NOTICE: Localized sites has 2 new vars in brand.mdtext: selectedlang: change to your language, which will be selected by default (e.g. ru) language: translation of the word Language Changes synched into content/xx/brand.mdtext, as an example. Can anyone help in moving the inline CSS style from brand.html into ooo.css, or other css file? (div id=languagesdiv style=float: right; padding: 1em; font-size: 0.9em;color:gray;) I can't do it since I didn't want to checkout the whole ooo-site. Next, we need to remove the Native Language link from the menu.
Re: [www] NEW language Selection Dropdown!
On Thu, May 15, Kay Schenk wrote: OK, this is looking interesting, but...please revert this change as the next real publish is likely to make this live and we probably don't want to do this yet without further review. So, please do the following -- * copy the revised version of brand.mdtext to the /test directory (we can then review this further) * revert your brand.mdtext change at the top level Thanks. Kay, I reverted /templates/brand.html to revision before my changes (robweir). No changes in brand.mdtext, apart from localized site (he), which still functions. So, there are no apparent changes in the ooo-site now. I'm not sure how we're going to test this, since now the feature isn't online, and I didn't find a way to override the brand.html template within a localized site, or /test; it's a global template. Anyway, I've created a branch - templates/brand-branch-with-language-select.html, so save template changes, for future testing. Please help in testing it, in the near future. My tests showed that all redirections work properly in Chrome. Default-selected language is selected according to the language defined in brand.mdtext (for example, see /xx/brand.mdtext or /he/brand.mdtext). Tal On 05/14/2014 01:21 AM, Tal Daniel wrote: On Wed, May 14 I wrote: Following my suggestion, I've changed the brand.html template to show a lanaugage selection dropdown on all sites (currently available on staging sites only - http://ooo-site.staging.apache.org/). To see a working example, select עברית (Hebrew) from the dropdown menu.
Re: [www] NEW language Selection Dropdown!
On 05/15/2014 02:10 PM, Tal Daniel wrote: On Thu, May 15, Kay Schenk wrote: OK, this is looking interesting, but...please revert this change as the next real publish is likely to make this live and we probably don't want to do this yet without further review. So, please do the following -- * copy the revised version of brand.mdtext to the /test directory (we can then review this further) * revert your brand.mdtext change at the top level Thanks. Kay, I reverted /templates/brand.html to revision before my changes (robweir). No changes in brand.mdtext, apart from localized site (he), which still functions. So, there are no apparent changes in the ooo-site now. I'm not sure how we're going to test this, since now the feature isn't online, and I didn't find a way to override the brand.html template within a localized site, or /test; it's a global template. Anyway, I've created a branch - templates/brand-branch-with-language-select.html, so save template changes, for future testing. Please help in testing it, in the near future. My tests showed that all redirections work properly in Chrome. Default-selected language is selected according to the language defined in brand.mdtext (for example, see /xx/brand.mdtext or /he/brand.mdtext). Tal OK, thanks for doing this. Really, we don't make changes for review to the main site page directly -- ever. On what you're trying to accomplish. I think (maybe?) we can duplicate the top-level structure found in the main content directory in /test. I think I actually did this at one point testing something in the past. So, try this and set up the following in /content/test /test brand.mdtext -- maybe not needed ? /test/templates -- copy some existing /content/templates stuff here (the.html files) and make changes We really need to stay in /test somehow for this. I can help more with this after this weekend. On 05/14/2014 01:21 AM, Tal Daniel wrote: On Wed, May 14 I wrote: Following my suggestion, I've changed the brand.html template to show a lanaugage selection dropdown on all sites (currently available on staging sites only - http://ooo-site.staging.apache.org/). To see a working example, select עברית (Hebrew) from the dropdown menu. -- - MzK Life is either a daring adventure, or nothing. -- Helen Keller - To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org For additional commands, e-mail: dev-h...@openoffice.apache.org
Re: [www] NEW language Selection Dropdown!
OK, this is looking interesting, but... ...please revert this change as the next real publish is likely to make this live and we probably don't want to do this yet without further review. So, please do the following -- * copy the revised version of brand.mdtext to the /test directory (we can then review this further) * revert your brand.mdtext change at the top level Thanks. On 05/14/2014 01:21 AM, Tal Daniel wrote: On Wed, May 14 I wrote: Following my suggestion, I've changed the brand.html template to show a lanaugage selection dropdown on all sites (currently available on staging sites only - http://ooo-site.staging.apache.org/). To see a working example, select עברית (Hebrew) from the dropdown menu. NOTICE: Localized sites has 2 new vars in brand.mdtext: selectedlang: change to your language, which will be selected by default (e.g. ru) language: translation of the word Language Changes synched into content/xx/brand.mdtext, as an example. Can anyone help in moving the inline CSS style from brand.html into ooo.css, or other css file? (div id=languagesdiv style=float: right; padding: 1em; font-size: 0.9em;color:gray;) I can't do it since I didn't want to checkout the whole ooo-site. Next, we need to remove the Native Language link from the menu. -- - MzK Life is either a daring adventure, or nothing. -- Helen Keller - To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org For additional commands, e-mail: dev-h...@openoffice.apache.org
[www] NEW language Selection Dropdown!
Following my suggestion, I've changed the brand.html template to show a lanaugage selection dropdown on all sites (currently available on staging sites only - http://ooo-site.staging.apache.org/). NOTICE: Localized sites has 2 new vars in brand.mdtext: selectedlang: change to your language, which will be selected by default (e.g. ru) language: translation of the word Language Changes synched into content/xx/brand.mdtext, as an example. Can anyone help in moving the inline CSS style from brand.html into ooo.css, or other css file? (div id=languagesdiv style=float: right; padding: 1em; font-size: 0.9em;color:gray;) I can't do it since I didn't want to checkout the whole ooo-site. Next, we need to remove the Native Language link from the menu. Tal
Re: [www] NEW language Selection Dropdown!
On Wed, May 14 I wrote: Following my suggestion, I've changed the brand.html template to show a lanaugage selection dropdown on all sites (currently available on staging sites only - http://ooo-site.staging.apache.org/). To see a working example, select עברית (Hebrew) from the dropdown menu. NOTICE: Localized sites has 2 new vars in brand.mdtext: selectedlang: change to your language, which will be selected by default (e.g. ru) language: translation of the word Language Changes synched into content/xx/brand.mdtext, as an example. Can anyone help in moving the inline CSS style from brand.html into ooo.css, or other css file? (div id=languagesdiv style=float: right; padding: 1em; font-size: 0.9em;color:gray;) I can't do it since I didn't want to checkout the whole ooo-site. Next, we need to remove the Native Language link from the menu.