From 65705eaa06155250c255ecdb766ebfeb081025f7 Mon Sep 17 00:00:00 2001 From: "mattm@chromium.org" Date: Wed, 19 Aug 2009 04:48:24 +0000 Subject: Gtk languages options page part 1: accept-languages configuration. Move accept_language_list to l10n_util, use it for LanguagesPageGtk. BUG=13524 TEST=You can view, reorder, remove and add accept-languages. Review URL: http://codereview.chromium.org/174043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23695 0039d316-1c4b-4281-b951-d872f2087c98 --- app/l10n_util.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/l10n_util.h') diff --git a/app/l10n_util.h b/app/l10n_util.h index 37a40cd..eacb329 100644 --- a/app/l10n_util.h +++ b/app/l10n_util.h @@ -402,6 +402,10 @@ void SortStrings(const std::string& locale, // en-US, es, fr, fi, pt-PT, pt-BR, etc. const std::vector& GetAvailableLocales(); +// Returns a vector of locale codes usable for accept-languages. +void GetAcceptLanguagesForLocale(const std::string& display_locale, + std::vector* locale_codes); + // A simple wrapper class for the bidirectional iterator of ICU. // This class uses the bidirectional iterator of ICU to split a line of // bidirectional texts into visual runs in its display order. -- cgit v1.1