Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Issue 3185020: Remove redundant "keyboard layout" suffix and fix redundant language display. (Closed)

Created:
10 years, 4 months ago by kochi
Modified:
9 years, 7 months ago
Reviewers:
Yusuke Sato
CC:
chromium-reviews, Paweł Hajdan Jr., davemoore+watch_chromium.org, ben+cc_chromium.org, satorux1
Visibility:
Public.

Description

Remove redundant "keyboard layout" suffix and fix redundant language display. This issue is two-fold: 1) Remove "keyboard layout"-suffix from layouts 2) Do not show language name if obvious For 1, basically I removed the suffix from keyboard layout names. There are 2 exceptions: * For Japanese, to avoid confusion between Jpaanese input methods and Japanese keyboard layout, the suffix is intentionally kept. * For keyboard layouts used for Dutch, French and German, the suffix is kept (see below for the reason). For 2, * for non-ambiguous languages (do not have multiple input methods or layouts), show input method name or layout name * for ambiguous languages - show keyboard layout or input method name without language name for other languages (as their layout name or input method name explicitly or implicitly imply language name) - show "language - layout" pair for Dutch, French and German (They share "Belgian" keyboard layout in common, showing only "Belgian" is ambiguous about language) BUG=chromium-os:5804 TEST=./unit_tests --gtest_filter="LanguageMenu*" and manually check on ChromeOS device whether the menu text and notification menu are displayed as expected. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=57304

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove language from ime menu. #

Patch Set 3 : Add ar, he and hi as exception. #

Patch Set 4 : Fix comment. #

Total comments: 4

Patch Set 5 : Update for the comment. #

Patch Set 6 : Fix language identifiers for Dutch, French and German. #

Patch Set 7 : Merge trunk. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -135 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 2 chunks +28 lines, -28 lines 0 comments Download
M chrome/browser/chromeos/status/language_menu_button.h View 1 2 chunks +1 line, -14 lines 0 comments Download
M chrome/browser/chromeos/status/language_menu_button.cc View 1 2 3 4 5 6 chunks +20 lines, -46 lines 0 comments Download
M chrome/browser/chromeos/status/language_menu_button_unittest.cc View 1 2 1 chunk +81 lines, -47 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
kochi
Hi Yusuke, could you review this?
10 years, 4 months ago (2010-08-23 13:52:14 UTC) #1
Yusuke Sato
http://codereview.chromium.org/3185020/diff/1/3 File chrome/browser/chromeos/status/language_menu_button.cc (right): http://codereview.chromium.org/3185020/diff/1/3#newcode330 chrome/browser/chromeos/status/language_menu_button.cc:330: need_method_name); I guess you have to replace |need_method_name| with ...
10 years, 4 months ago (2010-08-23 19:46:43 UTC) #2
kochi
Thanks for the review, Yusuke-san. During my test, I found that other exceptional case for ...
10 years, 4 months ago (2010-08-24 09:06:32 UTC) #3
Yusuke Sato
LGTM. Thanks for the work! http://codereview.chromium.org/3185020/diff/16001/17002 File chrome/browser/chromeos/status/language_menu_button.cc (right): http://codereview.chromium.org/3185020/diff/16001/17002#newcode639 chrome/browser/chromeos/status/language_menu_button.cc:639: if (input_method.language_code == "ar" ...
10 years, 4 months ago (2010-08-24 17:40:59 UTC) #4
kochi
10 years, 4 months ago (2010-08-25 07:12:40 UTC) #5
Thanks for the review!

http://codereview.chromium.org/3185020/diff/16001/17002
File chrome/browser/chromeos/status/language_menu_button.cc (right):

http://codereview.chromium.org/3185020/diff/16001/17002#newcode639
chrome/browser/chromeos/status/language_menu_button.cc:639: if
(input_method.language_code == "ar" ||
On 2010/08/24 17:40:59, Yusuke Sato wrote:
> I think it would be better not to use a raw language_code. See my comment
below.
> 

Done.

http://codereview.chromium.org/3185020/diff/16001/17002#newcode645
chrome/browser/chromeos/status/language_menu_button.cc:645: const std::string
language_code
On 2010/08/24 17:40:59, Yusuke Sato wrote:
> Please move this to L.637 and use |language_code| in the conditions above.
> 

Done.

Powered by Google App Engine
This is Rietveld 408576698