You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openoffice.apache.org by Tal Daniel <ta...@gmail.com> on 2014/05/14 10:11:24 UTC

[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: Fwd: [www] NEW language Selection Dropdown!

Posted by "Marcus (OOo)" <ma...@wtnet.de>.
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: l10n-unsubscribe@openoffice.apache.org
For additional commands, e-mail: l10n-help@openoffice.apache.org


RE: [www] NEW language Selection Dropdown!

Posted by ßouЯock™ ღ <hi...@hotmail.com>.
You need to put these two strings beginning of brand.mdtext file.After than you can see your own language.Otherwise, always you see the English language selection by default.

> Date: Wed, 25 Jun 2014 18:40:01 +0300
> Subject: Re: Fwd: [www] NEW language Selection Dropdown!
> From: tal.reads@gmail.com
> To: l10n@openoffice.apache.org
> 
> On Wed, Jun 25, 2014 at 2:56 PM, Michal Hriň <hr...@apache.org> wrote:
> 
> > Hi, I tried it fastly, and I see that the "English item" is always
> > selected by default. When I change language to my native "Slovak" (or
> > whatever) on list is still selected "English".
> > This implies, after language change you cannot go back to english site.
> >
> 
> You need to define the 2 new variables in brand.mdtext, for Slovak to be
> the default selection in the dropdown, in the Slovekian website. Until
> then, use the Back button.
> 
> Dňa 25.06.2014 13:19, Tal Daniel  wrote / napísal(a):
> >
> >  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.
> >>
> >
 		 	   		  

Re: Fwd: [www] NEW language Selection Dropdown!

Posted by Dick Groskamp <th...@quicknet.nl>.
Tal Daniel schreef op 25-6-2014 17:40:
> On Wed, Jun 25, 2014 at 2:56 PM, Michal Hriň <hr...@apache.org> wrote:
>
>> Hi, I tried it fastly, and I see that the "English item" is always
>> selected by default. When I change language to my native "Slovak" (or
>> whatever) on list is still selected "English".
>> This implies, after language change you cannot go back to english site.
>>
> You need to define the 2 new variables in brand.mdtext, for Slovak to be
> the default selection in the dropdown, in the Slovekian website. Until
> then, use the Back button.
>
> Dňa 25.06.2014 13:19, Tal Daniel  wrote / napísal(a):
>>   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.
>>>
Done for NL page.
Thanks Tal

-- 
DiGro
___________________________
Apache OpenOffice 4.0.1 (Dutch) and scanned with Ziggo extended security (F-Secure)


---------------------------------------------------------------------
To unsubscribe, e-mail: l10n-unsubscribe@openoffice.apache.org
For additional commands, e-mail: l10n-help@openoffice.apache.org


Re: Fwd: [www] NEW language Selection Dropdown!

Posted by Tal Daniel <ta...@gmail.com>.
On Wed, Jun 25, 2014 at 2:56 PM, Michal Hriň <hr...@apache.org> wrote:

> Hi, I tried it fastly, and I see that the "English item" is always
> selected by default. When I change language to my native "Slovak" (or
> whatever) on list is still selected "English".
> This implies, after language change you cannot go back to english site.
>

You need to define the 2 new variables in brand.mdtext, for Slovak to be
the default selection in the dropdown, in the Slovekian website. Until
then, use the Back button.

Dňa 25.06.2014 13:19, Tal Daniel  wrote / napísal(a):
>
>  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.
>>
>

Re: Fwd: [www] NEW language Selection Dropdown!

Posted by Michal Hriň <hr...@apache.org>.
Hi,

I tried it fastly, and I see that the "English item" is always selected 
by default. When I change language to my native "Slovak" (or whatever) 
on list is still selected "English".

This implies, after language change you cannot go back to english site.

Regards,
Michal Hriň

Dňa 25.06.2014 13:19, Tal Daniel  wrote / napísal(a):
> 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
>

---------------------------------------------------------------------
To unsubscribe, e-mail: l10n-unsubscribe@openoffice.apache.org
For additional commands, e-mail: l10n-help@openoffice.apache.org


Re: Fwd: [www] NEW language Selection Dropdown!

Posted by Pedro Albuquerque <pa...@gmail.com>.
Hi Tal,
just to thank you for this feature.

Em 25-06-2014 12:19, Tal Daniel escreveu:
> 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
>


---------------------------------------------------------------------
To unsubscribe, e-mail: l10n-unsubscribe@openoffice.apache.org
For additional commands, e-mail: l10n-help@openoffice.apache.org


Re: Fwd: [www] NEW language Selection Dropdown!

Posted by Ariel Constenla-Haile <ar...@apache.org>.
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

Re: Fwd: [www] NEW language Selection Dropdown!

Posted by Aivaras Stepukonis <as...@gmail.com>.
2014.06.26 14:13, Tal Daniel rašė:
> 2014.06.25, Andrea Pescetti rašė:
>>> 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.
>>>
>>>
> On Thu, Jun 26, 2014 at 12:10 AM, Aivaras Stepukonis wrote:
>
>> In indices containing entries of different alphabets, it is a good
>> practice to sort them separately, e.g. starting with the Latin entries,
>> then moving to the Cyrillic ones, and so on.
>>
>> Good point, Andreas. I'll try that.
> Interesting, that you chose Cyrillic second. Does it imply that Europe is
> the center of the world? (first Latin, then Asia, then far east/west with
> strange fonts :) I'm kidding, of course. Can you elaborate the order you
> have in mind? i.e. what goes after Cyrillic?
Am I being ethnocentric? By no means! :) I think a good logical point of 
reference for sorting the list are the percentages of native AOO users 
(i.e., the alphabets they're representing) as stated on the "Download by 
Coutry" page <http://www.openoffice.org/stats/countries.html>.

You'll see that the countries using the Latin alphabet predominate. Than 
comes Russia (#8) accounting for one half of the Cyrillic world, then 
probably the logographic/pictrographic scripts.
>
> On Wed, Jun 25, 2014 Marcus (OOo) wrote:
>
>> Done for German, works great.
>>
>> Keep up the good work, what's next? ;-)
>
> Marcus, marcus, don't be greedy. But, now that you mention it, how about
> fixing the CSS on Linux? Once, you mentioned there's too much
> spacing/padding.
>


---------------------------------------------------------------------
To unsubscribe, e-mail: l10n-unsubscribe@openoffice.apache.org
For additional commands, e-mail: l10n-help@openoffice.apache.org


Re: Fwd: [www] NEW language Selection Dropdown!

Posted by Aivaras Stepukonis <as...@gmail.com>.
2014.06.26 14:13, Tal Daniel rašė:
> 2014.06.25, Andrea Pescetti rašė:
>>> 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.
>>>
>>>
> On Thu, Jun 26, 2014 at 12:10 AM, Aivaras Stepukonis wrote:
>
>> In indices containing entries of different alphabets, it is a good
>> practice to sort them separately, e.g. starting with the Latin entries,
>> then moving to the Cyrillic ones, and so on.
>>
>> Good point, Andreas. I'll try that.
> Interesting, that you chose Cyrillic second. Does it imply that Europe is
> the center of the world? (first Latin, then Asia, then far east/west with
> strange fonts :) I'm kidding, of course. Can you elaborate the order you
> have in mind? i.e. what goes after Cyrillic?
Am I being ethnocentric? By no means! :) I think a good logical point of 
reference for sorting the list are the percentages of native AOO users 
(i.e., the alphabets they're representing) as stated on the "Download by 
Coutry" page <http://www.openoffice.org/stats/countries.html>.

You'll see that the countries using the Latin alphabet predominate. Than 
comes Russia (#8) accounting for one half of the Cyrillic world, then 
probably the logographic/pictrographic scripts.
>
> On Wed, Jun 25, 2014 Marcus (OOo) wrote:
>
>> Done for German, works great.
>>
>> Keep up the good work, what's next? ;-)
>
> Marcus, marcus, don't be greedy. But, now that you mention it, how about
> fixing the CSS on Linux? Once, you mentioned there's too much
> spacing/padding.
>


---------------------------------------------------------------------
To unsubscribe, e-mail: l10n-unsubscribe@openoffice.apache.org
For additional commands, e-mail: l10n-help@openoffice.apache.org


Re: Fwd: [www] NEW language Selection Dropdown!

Posted by Tal Daniel <ta...@gmail.com>.
2014.06.25, Andrea Pescetti rašė:
>
>> 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.
>>
>>
On Thu, Jun 26, 2014 at 12:10 AM, Aivaras Stepukonis wrote:

> In indices containing entries of different alphabets, it is a good
> practice to sort them separately, e.g. starting with the Latin entries,
> then moving to the Cyrillic ones, and so on.
>
> Good point, Andreas. I'll try that.
Interesting, that you chose Cyrillic second. Does it imply that Europe is
the center of the world? (first Latin, then Asia, then far east/west with
strange fonts :) I'm kidding, of course. Can you elaborate the order you
have in mind? i.e. what goes after Cyrillic?

On Wed, Jun 25, 2014 Marcus (OOo) wrote:

>
> Done for German, works great.
>
> Keep up the good work, what's next? ;-)


Marcus, marcus, don't be greedy. But, now that you mention it, how about
fixing the CSS on Linux? Once, you mentioned there's too much
spacing/padding.

Re: Fwd: [www] NEW language Selection Dropdown!

Posted by Aivaras Stepukonis <as...@gmail.com>.
In indices containing entries of different alphabets, it is a good 
practice to sort them separately, e.g. starting with the Latin entries, 
then moving to the Cyrillic ones, and so on.

Regards,

Aivaras

2014.06.25 23:59, Andrea Pescetti rašė:
> 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: l10n-unsubscribe@openoffice.apache.org
> For additional commands, e-mail: l10n-help@openoffice.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: l10n-unsubscribe@openoffice.apache.org
For additional commands, e-mail: l10n-help@openoffice.apache.org


Re: Fwd: [www] NEW language Selection Dropdown!

Posted by Andrea Pescetti <pe...@apache.org>.
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: l10n-unsubscribe@openoffice.apache.org
For additional commands, e-mail: l10n-help@openoffice.apache.org


Re: Fwd: [www] NEW language Selection Dropdown!

Posted by "Marcus (OOo)" <ma...@wtnet.de>.
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-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Re: Fwd: [www] NEW language Selection Dropdown!

Posted by Andrea Pescetti <pe...@apache.org>.
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-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Fwd: [www] NEW language Selection Dropdown!

Posted by Tal Daniel <ta...@gmail.com>.
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

Fwd: [www] NEW language Selection Dropdown!

Posted by Tal Daniel <ta...@gmail.com>.
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: [www] NEW language Selection Dropdown!

Posted by Tal Daniel <ta...@gmail.com>.
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!

Posted by Tal Daniel <ta...@gmail.com>.
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!

Posted by Kay Schenk <ka...@gmail.com>.

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-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Re: [www] NEW language Selection Dropdown!

Posted by Kay Schenk <ka...@gmail.com>.
-----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-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Re: [www] NEW language Selection Dropdown!

Posted by Ariel Constenla-Haile <ar...@apache.org>.
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

Re: [www] NEW language Selection Dropdown!

Posted by Tal Daniel <ta...@gmail.com>.
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!

Posted by Ariel Constenla-Haile <ar...@apache.org>.
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

Re: [www] NEW language Selection Dropdown!

Posted by Andrea Pescetti <pe...@apache.org>.
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-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Re: [www] NEW language Selection Dropdown!

Posted by "Marcus (OOo)" <ma...@wtnet.de>.
Am 05/18/2014 07:51 AM, schrieb Tal Daniel:
> On Sun, May 18, 2014 at 2:40 AM, Andrea Pescetti<pe...@apache.org>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,
>>
>
> 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-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Re: [www] NEW language Selection Dropdown!

Posted by Tal Daniel <ta...@gmail.com>.
On Sun, May 18, 2014 at 2:40 AM, Andrea Pescetti <pe...@apache.org>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,
>

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!

Posted by Andrea Pescetti <pe...@apache.org>.
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-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Re: [www] NEW language Selection Dropdown!

Posted by Tal Daniel <ta...@gmail.com>.
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) <ma...@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
>>>> each<option>, 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!

Posted by Kay Schenk <ka...@gmail.com>.
On Sat, Jun 21, 2014 at 2:14 PM, Marcus (OOo) <ma...@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
>>>> each<option>, 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-unsubscribe@openoffice.apache.org
> For additional commands, e-mail: dev-help@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!

Posted by "Marcus (OOo)" <ma...@wtnet.de>.
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
>>> each<option>, 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-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Re: [www] NEW language Selection Dropdown!

Posted by Andrea Pescetti <pe...@apache.org>.
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
>> each<option>, 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-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Re: [www] NEW language Selection Dropdown!

Posted by "Marcus (OOo)" <ma...@wtnet.de>.
Am 05/20/2014 11:13 AM, schrieb Tal Daniel:
> On Sun, May 18, 2014 at 11:58 AM, Marcus (OOo)<ma...@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.

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-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Re: [www] NEW language Selection Dropdown!

Posted by Tal Daniel <ta...@gmail.com>.
On Sun, May 18, 2014 at 11:58 AM, Marcus (OOo) <ma...@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!

Posted by "Marcus (OOo)" <ma...@wtnet.de>.
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)<ma...@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-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Re: [www] NEW language Selection Dropdown!

Posted by Tal Daniel <ta...@gmail.com>.
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) <ma...@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!

Posted by "Marcus (OOo)" <ma...@wtnet.de>.
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-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Re: [www] NEW language Selection Dropdown!

Posted by Tal Daniel <ta...@gmail.com>.
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!

Posted by Kay Schenk <ka...@gmail.com>.
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-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Re: [www] NEW language Selection Dropdown!

Posted by Tal Daniel <ta...@gmail.com>.
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!

Posted by Tal Daniel <ta...@gmail.com>.
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.
>

Fwd: [www] NEW language Selection Dropdown!

Posted by Tal Daniel <ta...@gmail.com>.
CC to L10N, on all sites change (orignally sent to DEV):

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