Changeset 151469 in webkit
- Timestamp:
- Jun 11, 2013 1:55:02 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r151463 r151469 1 2013-06-11 Eric Carlson <eric.carlson@apple.com> 2 3 [Mac] Update text track menu 4 https://bugs.webkit.org/show_bug.cgi?id=117351 5 6 Reviewed by Darin Adler. 7 8 * media/video-controls-captions-trackmenu-localized.html: 9 * media/video-controls-captions-trackmenu-sorted.html: 10 * platform/mac-lion/media/video-controls-captions-trackmenu-localized-expected.txt: 11 * platform/mac/media/video-controls-captions-trackmenu-localized-expected.txt: 12 * platform/mac/media/video-controls-captions-trackmenu-sorted-expected.txt: 13 1 14 2013-06-11 Robert Hogan <robert@webkit.org> 2 15 -
trunk/LayoutTests/media/video-controls-captions-trackmenu-localized.html
r147679 r151469 41 41 42 42 item = captionsEntries[1]; 43 consoleWrite("<br>Second item in captions menu should be labelled 'Auto matic (English)'");44 testExpected("item.textContent", "Auto matic (English)");43 consoleWrite("<br>Second item in captions menu should be labelled 'Auto (Recommended)'"); 44 testExpected("item.textContent", "Auto (Recommended)"); 45 45 46 46 -
trunk/LayoutTests/media/video-controls-captions-trackmenu-sorted.html
r147675 r151469 42 42 trackMenuItems = textTrackMenuItems(); 43 43 testExpected("trackMenuItems[0].textContent", "Off"); 44 testExpected("trackMenuItems[1].textContent", "Auto matic (English)");44 testExpected("trackMenuItems[1].textContent", "Auto (Recommended)"); 45 45 testExpected("trackMenuItems[2].textContent", "u (English) SDH"); 46 46 testExpected("trackMenuItems[3].textContent", "y (English-Australia) SDH"); … … 63 63 trackMenuItems = textTrackMenuItems(); 64 64 testExpected("trackMenuItems[0].textContent", "Off"); 65 testExpected("trackMenuItems[1].textContent", "Auto matic (Japanese)");65 testExpected("trackMenuItems[1].textContent", "Auto (Recommended)"); 66 66 testExpected("trackMenuItems[2].textContent", "z (Japanese)"); 67 67 testExpected("trackMenuItems[3].textContent", "v (English)"); -
trunk/LayoutTests/platform/mac-lion/media/video-controls-captions-trackmenu-localized-expected.txt
r149741 r151469 11 11 EXPECTED (item.textContent == 'Off') OK 12 12 13 Second item in captions menu should be labelled 'Auto matic (English)'14 EXPECTED (item.textContent == 'Auto matic (English)') OK13 Second item in captions menu should be labelled 'Auto (Recommended)' 14 EXPECTED (item.textContent == 'Auto (Recommended)') OK 15 15 16 16 Third item in captions menu should be labelled 'English CC' -
trunk/LayoutTests/platform/mac/media/video-controls-captions-trackmenu-localized-expected.txt
r149503 r151469 11 11 EXPECTED (item.textContent == 'Off') OK 12 12 13 Second item in captions menu should be labelled 'Auto matic (English)'14 EXPECTED (item.textContent == 'Auto matic (English)') OK13 Second item in captions menu should be labelled 'Auto (Recommended)' 14 EXPECTED (item.textContent == 'Auto (Recommended)') OK 15 15 16 16 Third item in captions menu should be labelled 'English CC' -
trunk/LayoutTests/platform/mac/media/video-controls-captions-trackmenu-sorted-expected.txt
r149503 r151469 9 9 RUN(internals.settings.setShouldDisplayTrackKind('Captions', true)) 10 10 EXPECTED (trackMenuItems[0].textContent == 'Off') OK 11 EXPECTED (trackMenuItems[1].textContent == 'Auto matic (English)') OK11 EXPECTED (trackMenuItems[1].textContent == 'Auto (Recommended)') OK 12 12 EXPECTED (trackMenuItems[2].textContent == 'u (English) SDH') OK 13 13 EXPECTED (trackMenuItems[3].textContent == 'y (English-Australia) SDH') OK … … 24 24 RUN(internals.settings.setShouldDisplayTrackKind('Subtitles', true)) 25 25 EXPECTED (trackMenuItems[0].textContent == 'Off') OK 26 EXPECTED (trackMenuItems[1].textContent == 'Auto matic (Japanese)') OK26 EXPECTED (trackMenuItems[1].textContent == 'Auto (Recommended)') OK 27 27 EXPECTED (trackMenuItems[2].textContent == 'z (Japanese)'), OBSERVED 'w (Japanese) SDH' FAIL 28 28 EXPECTED (trackMenuItems[3].textContent == 'v (English)'), OBSERVED 'z (Japanese)' FAIL -
trunk/Source/WebCore/ChangeLog
r151467 r151469 1 2013-06-11 Eric Carlson <eric.carlson@apple.com> 2 3 [Mac] Update text track menu 4 https://bugs.webkit.org/show_bug.cgi?id=117351 5 6 Reviewed by Darin Adler. 7 8 No new tests, existing tests updated. 9 10 * English.lproj/Localizable.strings: Update the menu title. 11 12 * page/CaptionUserPreferencesMac.mm: System language is no longer needed. 13 14 * platform/LocalizedStrings.cpp: Ditto. 15 * platform/LocalizedStrings.h: 16 1 17 2013-06-11 Benjamin Poulain <bpoulain@apple.com> 2 18 -
trunk/Source/WebCore/English.lproj/Localizable.strings
r148101 r151469 74 74 "Align Right (Undo action name)" = "Align Right"; 75 75 76 /* Menu item label for automatic track selection behavior in the form of 'Automatic (SystemLanguage)'*/77 "Auto matic (%@)" = "Automatic (%@)";76 /* Menu item label for automatic track selection behavior */ 77 "Auto (Recommended)" = "Auto (Recommended)"; 78 78 79 79 /* Back context menu item */ -
trunk/Source/WebCore/page/CaptionUserPreferencesMac.mm
r150260 r151469 540 540 if (track == TextTrack::captionMenuOffItem()) 541 541 return textTrackOffMenuItemText(); 542 if (track == TextTrack::captionMenuAutomaticItem()) { 543 String preferredLanguageDisplayName = displayNameForLanguageLocale(languageIdentifier(defaultLanguage())); 544 return textTrackAutomaticMenuItemText(preferredLanguageDisplayName); 545 } 542 if (track == TextTrack::captionMenuAutomaticItem()) 543 return textTrackAutomaticMenuItemText(); 546 544 547 545 StringBuilder displayName; -
trunk/Source/WebCore/platform/LocalizedStrings.cpp
r149980 r151469 1027 1027 } 1028 1028 1029 String textTrackAutomaticMenuItemText( const String& language)1030 { 1031 return formatLocalizedString(WEB_UI_STRING("Auto matic (%@)", "Menu item label for automatic track selection behavior in the form of 'Automatic (SystemLanguage)'"), language.createCFString().get());1029 String textTrackAutomaticMenuItemText() 1030 { 1031 return formatLocalizedString(WEB_UI_STRING("Auto (Recommended)", "Menu item label for automatic track selection behavior")); 1032 1032 } 1033 1033 -
trunk/Source/WebCore/platform/LocalizedStrings.h
r150876 r151469 239 239 String textTrackSubtitlesText(); 240 240 String textTrackOffMenuItemText(); 241 String textTrackAutomaticMenuItemText( const String& language);241 String textTrackAutomaticMenuItemText(); 242 242 String textTrackNoLabelText(); 243 243 #if PLATFORM(MAC)
Note: See TracChangeset
for help on using the changeset viewer.