Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Articles: Languages section need to be styled differently #201

Open
mapk opened this issue Apr 17, 2018 · 26 comments
Open

Articles: Languages section need to be styled differently #201

mapk opened this issue Apr 17, 2018 · 26 comments

Comments

@mapk
Copy link
Collaborator

mapk commented Apr 17, 2018

Currently, the languages section takes up a lot of room if the page is offered in different locales.

screen shot 2018-04-17 at 7 22 56 am

Here are a couple ideas of what we could do here.

1. Turn it into a dropdown. Place on this would need some work.
screen shot 2018-04-17 at 7 32 10 am

2. Move it into a sidebar.
3. At least make the font-size smaller to match the text in the TOC.

Any other thoughts on what we could do here?

@mapk
Copy link
Collaborator Author

mapk commented Apr 23, 2018

Another idea suggested by Felipe Elia was to use a similar dropdown to the WP15 site.

image

@Clorith
Copy link
Member

Clorith commented Apr 24, 2018

Currently these links all go to Codex pages, we will have to revise what the plan is here, for two reasons:

  • We shouldn't link to the Codex when we are trying to decommission it.
  • We have no connection between articles on different locales on .org, so how do we create a link between different languages, these are curated articles, not something translatable via translate.wordpress.org

We can introduce a nice drop down like the one mentioned in #201 (comment) with Codex links for the first iteration just to retain those links, but will definitely need a better solution in the long run.

@mapk mapk added the design label May 7, 2018
@Kenshino
Copy link
Collaborator

We shouldn't link to the Codex when we are trying to decommission it.

We're decommissioning the English Codex (which is most of it yeah) but we can't remove the different languages until we have a plan for translation of the articles.

We can introduce a nice drop down like the one mentioned in #201 (comment) with Codex links for the first iteration just to retain those links, but will definitely need a better solution in the long run.

I think the dropdown is great - except it should be in the side bar.

Thoughts? @atachibana

@atachibana
Copy link
Collaborator

As John says, once we delete an English Codex Page, the links to I18N versions are also deleted.

In the past, when function reference was moved to Code Reference from Codex, the same thing occurred. Non English User cannot jump own I18N version, anymore. We should keep those link in the HelpHub page.

I prefer dropdown box, but it is ok that moving the position to the bottom of contents, or changing smaller font, etc.

@Kenshino
Copy link
Collaborator

@atachibana can you take the original code you wrote, convert that to a widget with a dropdown?

@atachibana
Copy link
Collaborator

First, I'd like to propose to hide the current language section by CSS for 1st realse. This 201 will take some time...

If we change this language section to Widget, all pages will have the same language list. Dropdown will show it smart way as just one line even if we register all languages, but, clicking it will cause 404 not found error in almost cases because there are no translated pages. So, we have to control the language list per page.

There are two ideas

Widget

  1. Add custom field 'codex_languages' to Custom Post Type 'Article'
  2. Specify a list of pairs of language and page that the article was translated to Custom field 'codex_languages'

en="FAQ Installation" it_codex="Domande frequenti sull’installazione di WordPress" nl_codex="Installatie FAQ"

  1. From Widget, Read current shown page's custom field 'codex_languages' value, and show the dropdown box with those languages only.

Plugin + CSS

This is current output from Plugin.

<p class="language-links"><a href="https://codex.wordpress.org/Multilingual_Codex" title="Multilingual Codex" class="mw-redirect">Languages</a>: <strong class="selflink">English</strong> &bull; <a class="external text" href="http://wpdocs.sourceforge.jp/Version 4.9">日本語</a></p>

There might be CSS hack to move above <p class="language-list"> (or I can change it to <div>) into side bar area, though I don't know...

@Clorith Clorith added this to the Version 1 milestone May 27, 2018
@atachibana
Copy link
Collaborator

This language section points to other translated Codex pages. The dropdown box is not appropriate for this purpose because moving to other pages when user select the item from dropdownbox is not common interface.

image

We should use Wikipedia style link:

image

Fortunately(?), we don't have many translated version, so the list not so long.

@atachibana
Copy link
Collaborator

Whatever the design, current shortcode would not be required.
Before implementation, I will remove languages section.

@mapk
Copy link
Collaborator Author

mapk commented May 28, 2018

We should use Wikipedia style link:

I'm open to that now that the language section will exist in a sidebar and not at the top of the content.

@atachibana
Copy link
Collaborator

@Kenshino
To meet the schedule, I would like to separate this tasks into two.

For Version 1 release

  • Removing current short code from contents

For later release

  • Create Widget that implement above logic (using Custom Field of Custom Post Type 'Article')

What do you think?

@Clorith
Copy link
Member

Clorith commented Jun 1, 2018

I like your idea @atachibana, it means we're not tied down by the translations and can introduce them in a way that's more user friendly in continuous iterations, great idea!

@atachibana atachibana modified the milestones: Version 1, Version 2 Jun 4, 2018
@atachibana
Copy link
Collaborator

Language sections in all pages were removed for Version 1 release.
Now the milestone of this issue is set as Version 2, and I'll continue the design and implementation.

@Kenshino
Copy link
Collaborator

Kenshino commented Jun 4, 2018

Agreed!

@wittwitsan
Copy link
Member

Proposed design for language navigation

  • dropdown at the bottom of left sidebar

language-widget-sidebar

@zzap
Copy link
Member

zzap commented Jul 1, 2019

This is pretty much straightforward. I like it.

@ozekiy
Copy link

ozekiy commented Nov 1, 2019

I think that is also good. However, I thought it would be nice to see all the languages. I think that it is easy to see if the national flag is attached.

@Nishimura35
Copy link

Proposed design for language navigation
・Flags + Language name
bookingCom

@ShinichiNishikawa
Copy link

I think we should explicitly show the language links as a list.
When for example a Japanese person isn’t comfortable with English and can’t figure what it is by reading “English” on the drop down label, it is really difficult for that person to see there is a Japanese version.

Wikipedia says “日本語” and is super obvious.

@atrasi2079
Copy link

I think Nishimura35's idea is so good.
If I think about the mobile GUI, dropdown + flags style is also good.

スクリーンショット 2019-11-01 11 57 28

@miminari
Copy link
Member

miminari commented Nov 1, 2019

I like the idea @atachibana, too.
I think it is important for the people who can't read English that they can see the own language.

And Flag Images is very good icons, same reasons.

@ntwb
Copy link
Member

ntwb commented Nov 1, 2019

Flags are not ideal, many countries have multiple languages, the polyglots sites do not use them for this very reason, nor Wikipedia

See also:

@leogermani
Copy link

-1 for flags

http://www.flagsarenotlanguages.com/blog/

@naokomc
Copy link

naokomc commented Nov 20, 2019

I vote for the polyglots icon + text dropdown (WP15 style as Mark said).

When I access WP15 site, I see Japanese translation + dropdown with Japanese already selected.
image
WP15 site seems to be detecting my browser language and updating the parameter - so this is probably not possible for support docs.

I'd love to see the dropdown above ToC (there's already some space here).

image

But for some reason that's not feasible, how about the top of the left sidebar?

image

@tobifjellner
Copy link

Various alternative language versions could be listed in a dropdown.
But, in addition, any matches with languages in http parameter "accept-language" could be listed once more, separately, to be quickly reachable.

@miminari
Copy link
Member

miminari commented Jan 23, 2020

OK, the polyglots icon + text dropdown menu seems to be better.

But it reminds me of the nightmare when I set up the WordPress development version. You know, I have confused whenever I change the language to Japanese because the huge pulldown list looks to do not have any rules of sorting for Japanese, and it’s hard work for me to find “日本語”. (Why should it be next "Italiano" and before "Basa Jawa" ?)

ss_language-setting

Of course, as @atachibana said, we have a shorter list than the WP setting's one now. But if we have the choice of the dropdown way, I would like to implement the function it checks and chooses the browser language setting automatically as @naokomc said, or it might be the other option it's the function we can search by strings.

@Zebedeu
Copy link

Zebedeu commented Jan 23, 2020

@miminari I believe that a string search gets better, considering that there are locales that are not detected by the browser currently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests