Commit 57e7e403 authored by Guillaume Jenkins's avatar Guillaume Jenkins Committed by Commit Bot

Use latest Serbian-Latin and Serbian-Cyrillic dictionaries

- Makes Chrome/ium point to the latest sh-4-0 and sr-4-0 Hunspell
  dictionaries
- Fixes associated spell check component unit tests:
  - In SH, "Google" has been changed to "Gugl"
  - In SR, "Гоогле" ("Google") has been changed to "Гугл" ("Gugl")
  - In both test cases, the wording has also been updated based on Google Translate translations
- Lorry payloads have been created here:
  https://lorry.corp.google.com/?live_filter=&text_filter=%28sh-4-0%29%7C%28sr-4-0%29&access_filter=&entries=20&output_format=standard&descending=true

Bug: 997228
Change-Id: I0227666eda96efba37c8d5287d2d12a6e9cd65bd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1906782Reviewed-by: default avatarRouslan Solomakhin <rouslan@chromium.org>
Commit-Queue: Guillaume Jenkins <gujen@google.com>
Cr-Commit-Position: refs/heads/master@{#714245}
parent 6a93b00b
......@@ -111,10 +111,11 @@ base::FilePath GetVersionedFileName(base::StringPiece input_language,
// number if you're updating either dic or aff files. Increment the minor
// version number if you're updating only dic_delta files.
static constexpr LanguageVersion kSpecialVersionString[] = {
{"tr-TR",
"-4-0"}, // Jan 9, 2013: Add "FLAG num" to aff to avoid heapcheck
// crash.
{"tg-TG", "-5-0"}, // Mar 4, 2014: Add Tajik dictionary.
// Jan 9, 2013: Add "FLAG num" to aff to avoid heapcheck crash.
{"tr-TR", "-4-0"},
// Mar 4, 2014: Add Tajik dictionary.
{"tg-TG", "-5-0"},
// October 2017: Update from upstream.
{"en-AU", "-8-0"},
......@@ -130,6 +131,10 @@ base::FilePath GetVersionedFileName(base::StringPiece input_language,
// April 2019: Update Persian
{"fa-IR", "-8-0"},
// November 2019: Update Serbian-Latin and Serbian-Cyrillic
{"sh", "-4-0"},
{"sr", "-4-0"},
};
// Generate the bdict file name using default version string or special
......
......@@ -736,21 +736,20 @@ TEST_F(SpellCheckTest, SpellCheckText) {
}, {
// Serbo-Croatian (Serbian Latin)
"sh",
L"Google-ova misija je da organizuje sve informacije na svetu i "
L"u\x010dini ih univerzal-no dostupnim i korisnim."
L"Guglova misija je organizirati svjetske informacije i u\x010diniti ih "
L"univerzalno dostupnim i korisnim."
}, {
// Serbian
"sr",
L"\x0047\x006f\x006f\x0067\x006c\x0065\x002d\x043e\x0432\x0430 "
L"\x043c\x0438\x0441\x0438\x0458\x0430 \x0458\x0435 \x0434\x0430 "
L"\x043e\x0440\x0433\x0430\x043d\x0438\x0437\x0443\x0458\x0435 "
L"\x0441\x0432\x0435 "
L"\x0438\x043d\x0444\x043e\x0440\x043c\x0430\x0446\x0438\x0458\x0435 "
L"\x043d\x0430 \x0441\x0432\x0435\x0442\x0443 \x0438 "
L"\x0443\x0447\x0438\x043d\x0438 \x0438\x0445 "
L"\x0443\x043d\x0438\x0432\x0435\x0440\x0437\x0430\x043b\x043d\x043e "
L"\x0434\x043e\x0441\x0442\x0443\x043f\x043d\x0438\x043c \x0438 "
L"\x043a\x043e\x0440\x0438\x0441\x043d\x0438\x043c."
L"\x0413\x0443\x0433\x043B\x043E\x0432\x0430 "
L"\x043C\x0438\x0441\x0438\x0458\x0430 \x0458\x0435 \x0434\x0430 "
L"\x043E\x0440\x0433\x0430\x043D\x0438\x0437\x0443\x0458\x0435 "
L"\x0441\x0432\x0435\x0442\x0441\x043A\x0435 "
L"\x0438\x043D\x0444\x043E\x0440\x043C\x0430\x0446\x0438\x0458\x0435 "
L"\x0438 \x0443\x0447\x0438\x043D\x0438 \x0438\x0445 "
L"\x0443\x043D\x0438\x0432\x0435\x0440\x0437\x0430\x043B\x043D\x0438"
L"\x043C \x0434\x043E\x0441\x0442\x0443\x043F\x043D\x0438\x043C \x0438 "
L"\x043A\x043E\x0440\x0438\x0441\x043D\x0438\x043C."
}, {
// Slovak
"sk-SK",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment