Ask Your Question
0

How to remove languages from Locale, Currency and Default Languages

asked 2020-03-02 09:53:45 +0200

isos81 gravatar image

updated 2020-09-01 13:01:37 +0200

Alex Kemp gravatar image

I would like to remove some languages from the Locale, Currency and Default Languages options as per request of a supervisor. We are on Linux. Here is a screenshot:

Libreoffice Options

I want these languages Not Appear at all in the drop down list. How can I do this?

Edit: Renaming the language name also works for me. If there is an option to rename the languages, that will work, too.

edit retag flag offensive close merge delete

Comments

In "Default Language", what's important is not the language name by itself but the small icon before the name telling that the language pack is installed. If your goal is to reclaim diskspace, don't install extra language packs and remove the unused/undesired ones. Usually, Linux package installers only load the locale one (en_US is always installed).

ajlittoz gravatar imageajlittoz ( 2020-03-02 11:06:21 +0200 )edit

It's not about disk space. We need to make one of the languages that appear in locale settings disappear

isos81 gravatar imageisos81 ( 2020-03-02 13:14:48 +0200 )edit

Replaced tag meta with common

ajlittoz gravatar imageajlittoz ( 2020-06-14 08:11:52 +0200 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2020-03-02 10:02:14 +0200

You can't. They are hardcoded in the program.

edit flag offensive delete link more

Comments

Can we recompile LO from the source and remove them?

isos81 gravatar imageisos81 ( 2020-03-02 10:08:06 +0200 )edit

So, is it doable? Can I do what I want if I follow these instructions?

isos81 gravatar imageisos81 ( 2020-03-02 10:12:22 +0200 )edit

Everything is doable if you change the code. The amount of work to understand what to change and how is not necessarily trivial.

Mike Kaganski gravatar imageMike Kaganski ( 2020-03-02 10:21:49 +0200 )edit

Allright, thanks Mike! I'll do my best.

isos81 gravatar imageisos81 ( 2020-03-02 10:25:14 +0200 )edit

Hi Mike, I have successfully compiled source code and run LO. I'm now looking for the text I want to replace. Do you know where it is or how can I change it? Can you please give some instructions for this?

isos81 gravatar imageisos81 ( 2020-03-03 07:40:22 +0200 )edit

Start by looking into i18npool/source/localedata/localedata.cxx. And then, join #libreoffice-dev on FreeNode for following questions; I don't know everything, and there you have better chances to get an answer.

Mike Kaganski gravatar imageMike Kaganski ( 2020-03-03 09:05:20 +0200 )edit

I found it. For future references,I'm pasting it here. I edited this file and got what I wanted: /home/ubuntu/libreoffice/svtools/inc/langtab.hrc

isos81 gravatar imageisos81 ( 2020-03-03 16:15:49 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2020-03-02 09:53:45 +0200

Seen: 113 times

Last updated: Mar 02