Page 1 of 1

[SOLVED] Libreoffice defaults to A4 regardless of locales

Posted: Fri Dec 21, 2018 10:55 pm
by megatotoro
Hi,

I seem not to be able to change the default paper size of LO to "letter" (the one we use here) unless I choose the US locale in the login screen (and thus the system is in English). Is there a way to set "letter" as the default paper size for locales that use the Spanish language?

Any help will be greatly appreciated!

I'm running MX-18 (32 bits) but the issue is the same on the 64 bit version.

Code: Select all

$ cat /etc/default/locale
#  File generated by update-locale
LANG=es_CR.UTF-8

Code: Select all

$ locale -a
ar_EG.utf8
be_BY.utf8
bg_BG.utf8
C
ca_ES.utf8
cs_CZ.utf8
C.UTF-8
da_DK.utf8
de_CH.utf8
de_DE.utf8
el_GR.utf8
en_AU.utf8
en_CA.utf8
en_GB.utf8
en_IE.utf8
en_NZ.utf8
en_US
en_US.iso88591
en_US.utf8
es_AR.utf8
es_BO.utf8
es_CR
es_CR.iso88591
es_CR.utf8
es_ES.utf8
es_MX.utf8
es_NI.utf8
es_PA.utf8
es_PE.utf8
es_US.utf8
es_VE.utf8
et_EE.utf8
eu_ES.utf8
fa_IR
fa_IR.utf8
fi_FI.utf8
fr_BE.utf8
fr_CA.utf8
fr_CH.utf8
fr_FR.utf8
ga_IE.utf8
he_IL.utf8
hr_HR.utf8
hu_HU.utf8
is_IS.utf8
it_IT.utf8
ja_JP.utf8
ko_KR.utf8
lt_LT.utf8
lv_LV.utf8
mk_MK.utf8
nb_NO.utf8
nl_BE.utf8
nl_NL.utf8
nn_NO.utf8
pl_PL.utf8
POSIX
pt_BR.utf8
pt_PT.utf8
ro_RO.utf8
ru_RU.utf8
sk_SK.utf8
sl_SI.utf8
sq_AL.utf8
sr_RS
sr_RS.utf8
sv_SE.utf8
tr_TR.utf8
uk_UA.utf8
zh_CN.utf8
zh_TW.utf8

Re: Libreoffice defaults to A4 regardless of locales

Posted: Fri Dec 21, 2018 11:35 pm
by paul1149
If there's no way to affect the LO to OS connection in this regard, you can change the page layout in your default LO template.

Re: Libreoffice defaults to A4 regardless of locales

Posted: Fri Dec 21, 2018 11:41 pm
by Richard
Agree with Paul,
that's probably the quickest workaround,
To change the default template.

Re: Libreoffice defaults to A4 regardless of locales

Posted: Fri Dec 21, 2018 11:50 pm
by megatotoro
paul1149 wrote: Fri Dec 21, 2018 11:35 pm If there's no way to affect the LO to OS connection in this regard, you can change the page layout in your default LO template.


This weird behavior was not present in MX-17. I wonder what happened.

Thanks a lot for the idea about changing the template. That was a quick fix! :number1:

Re: Libreoffice defaults to A4 regardless of locales

Posted: Fri Dec 21, 2018 11:57 pm
by paul1149
You're welcome! I guess it makes sense that LO would take its cues from the system language and units.

Re: Libreoffice defaults to A4 regardless of locales

Posted: Sat Dec 22, 2018 3:24 am
by fehlix
megatotoro wrote: Fri Dec 21, 2018 10:55 pm Hi,

I seem not to be able to change the default paper size of LO to "letter" (the one we use here) unless I choose the US locale in the login screen (and thus the system is in English). Is there a way to set "letter" as the default paper size for locales that use the Spanish language?

Any help will be greatly appreciated!
Thanks, for pointing this out. Seems that this glitch was introduced during the implementation of locale selection at login.
This will be fixed shortly.

Re: Libreoffice defaults to A4 regardless of locales

Posted: Sun Dec 23, 2018 5:17 pm
by fehlix
fehlix wrote: Sat Dec 22, 2018 3:24 am
megatotoro wrote: Fri Dec 21, 2018 10:55 pm Hi,

I seem not to be able to change the default paper size of LO to "letter" (the one we use here) unless I choose the US locale in the login screen (and thus the system is in English). Is there a way to set "letter" as the default paper size for locales that use the Spanish language?

Any help will be greatly appreciated!
Thanks, for pointing this out. Seems that this glitch was introduced during the implementation of locale selection at login.
This will be fixed shortly.
The fix should meanwhile be available as an update. You can check that it works:
eg. select Spanish for Costa Rica (es_CR.utf8 ) at login you'll have as default papersize "letter" within LO and also default papersize for the printer.
And if you e.g, select Spanish for Bolivia (es_BO.utf8) or Spanish for Argentina (es_AR.utf8) at the login-screen you will find the default papersize "A4" for LO or the printer.
Sure, those defaults will only show up if you not already manually have chosen another default.
:puppy:

Re: Libreoffice defaults to A4 regardless of locales

Posted: Tue Dec 25, 2018 5:28 pm
by megatotoro
fehlix wrote: Sun Dec 23, 2018 5:17 pm The fix should meanwhile be available as an update. You can check that it works:
eg. select Spanish for Costa Rica (es_CR.utf8 ) at login you'll have as default papersize "letter" within LO and also default papersize for the printer.
And if you e.g, select Spanish for Bolivia (es_BO.utf8) or Spanish for Argentina (es_AR.utf8) at the login-screen you will find the default papersize "A4" for LO or the printer.
Sure, those defaults will only show up if you not already manually have chosen another default.
:puppy:
I checked it and you are right: it works perfectly now. Thanks a lot! :happy: