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

Reply via email to