Update list of US Letter locales

Sync paper size fallbacks with the latest 1.8.1 CLDR table (#618000).
This commit is contained in:
Marek Kasik 2010-05-21 12:14:30 +02:00
parent 96986af5b4
commit 8cd4c387f0

View File

@ -669,10 +669,11 @@ gtk_paper_size_get_default (void)
if (!locale) if (!locale)
return GTK_PAPER_NAME_A4; return GTK_PAPER_NAME_A4;
if (g_str_has_prefix (locale, "en_CA") || /* CLDR 1.8.1
g_str_has_prefix (locale, "en_US") || * http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/territory_language_information.html
g_str_has_prefix (locale, "es_PR") || */
g_str_has_prefix (locale, "es_US")) if (g_regex_match_simple("[^_.@]{2,3}_(BZ|CA|CL|CO|CR|GT|MX|NI|PA|PH|PR|SV|US|VE)",
locale, G_REGEX_ANCHORED, G_REGEX_MATCH_ANCHORED))
paper_size = GTK_PAPER_NAME_LETTER; paper_size = GTK_PAPER_NAME_LETTER;
else else
paper_size = GTK_PAPER_NAME_A4; paper_size = GTK_PAPER_NAME_A4;