https://bugs.freedesktop.org/show_bug.cgi?id=79276
--- Comment #24 from Julien Nabet <[email protected]> --- Andras: I think the part to change is in SvxAutoCorrect::GetAutoCorrFileName see http://opengrok.libreoffice.org/xref/core/editeng/source/misc/svxacorr.cxx#1888 1888 OUString SvxAutoCorrect::GetAutoCorrFileName( const LanguageTag& rLanguageTag, 1889 bool bNewFile, bool bTst ) const 1890 { 1891 OUString sRet, sExt( rLanguageTag.getBcp47() ); 1892 1893 sExt = "_" + sExt + ".dat"; 1894 if( bNewFile ) 1895 ( sRet = sUserAutoCorrFile ) += sExt; 1896 else if( !bTst ) 1897 ( sRet = sShareAutoCorrFile ) += sExt; 1898 else 1899 { 1900 // test first in the user directory - if not exist, then 1901 ( sRet = sUserAutoCorrFile ) += sExt; 1902 if( !FStatHelper::IsDocument( sRet )) 1903 ( sRet = sShareAutoCorrFile ) += sExt; 1904 } 1905 return sRet; 1906 } Indeed, sExt retrieves "_fr-BE.dat" (if locale = Fr Belgium). Some questions now: 1) How should be the fallback system if there would be "fr-CA" and "fr-FR" (so not only "fr-FR")? I mean if I use "fr-BE" and the fallback system takes the first "fr-XX" present, it could be any of them. 2) for a new en-XX, what would be the fallback en-US, en-GB, other? 3) Should we hardcode this on this function or should we create some sort of customization file? -- You are receiving this mail because: You are the assignee for the bug.
_______________________________________________ Libreoffice-bugs mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
