summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-07-12 02:11:55 +0200
committerEike Rathke <erack@redhat.com>2013-07-12 02:12:11 +0200
commitae32dd4f7d2dc4592c54390f75a5f3479c899f18 (patch)
tree82b1abfd102abc3a91db696efef6995f0379ba04
parent5a795e01e02995880391a56d67065a0621d4b622 (diff)
some FIXME-BCP47 comments
Change-Id: I0c9a532ac4eec9730f7ae17b02742a381fa0a667
-rw-r--r--vcl/unx/generic/printer/ppdparser.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/unx/generic/printer/ppdparser.cxx b/vcl/unx/generic/printer/ppdparser.cxx
index 2092ea15549d..a8eeb2a95016 100644
--- a/vcl/unx/generic/printer/ppdparser.cxx
+++ b/vcl/unx/generic/printer/ppdparser.cxx
@@ -149,6 +149,7 @@ namespace psp
}
#endif
}
+ /* FIXME-BCP47: using Variant, uppercase? */
aLoc.Language = aLoc.Language.toAsciiLowerCase();
aLoc.Country = aLoc.Country.toAsciiUpperCase();
aLoc.Variant = aLoc.Variant.toAsciiUpperCase();
@@ -180,6 +181,7 @@ namespace psp
{
OUString aK( aKey.makeStringAndClear() );
com::sun::star::lang::Locale aLoc;
+ /* FIXME-BCP47: using Variant, uppercase? */
aLoc.Language = i_rLocale.Language.toAsciiLowerCase();
aLoc.Country = i_rLocale.Country.toAsciiUpperCase();
aLoc.Variant = i_rLocale.Variant.toAsciiUpperCase();
@@ -217,6 +219,7 @@ namespace psp
const translation_map& rMap( it->second );
com::sun::star::lang::Locale aLoc( normalizeInputLocale( i_rLocale, true ) );
+ /* FIXME-BCP47: use LanguageTag::getFallbackStrings()? */
for( int nTry = 0; nTry < 4; nTry++ )
{
translation_map::const_iterator tr = rMap.find( aLoc );
@@ -1016,6 +1019,8 @@ void PPDParser::parse( ::std::list< OString >& rLines )
String aUniKey(OStringToOUString(aKey, RTL_TEXTENCODING_MS_1252));
// handle CUPS extension for globalized PPDs
+ /* FIXME-BCP47: really only ISO 639-1 two character language codes?
+ * goodnight.. */
bool bIsGlobalizedLine = false;
com::sun::star::lang::Locale aTransLocale;
if( ( aUniKey.Len() > 3 && aUniKey.GetChar( 2 ) == '.' ) ||