LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-06-2016, 02:30 PM   #1
moonraven
LQ Newbie
 
Registered: Mar 2016
Posts: 4

Rep: Reputation: Disabled
Where can i find language pack for Chromium browser?


I have installed Chromium browser and i cant find any language packs for it?
I tried to search for it with slackpkg search but it didnt find any language packs, i installed Chromium from alienbob repository and im running Slackware 14.1 x64 with KDE.

Does anyone know how to install the language pack for Chromium?
 
Old 03-06-2016, 03:07 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
I don't think you need one. If LANG is set to some locale, the UI should appear in the same language.

Did you try?
 
Old 03-06-2016, 05:52 PM   #3
Nille_kungen
Member
 
Registered: Jul 2005
Distribution: Slackware64-current
Posts: 587

Rep: Reputation: 201Reputation: 201Reputation: 201
Try:
LANG=es /usr/bin/chromium
 
Old 03-06-2016, 08:17 PM   #4
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,335

Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
browsers get the system locale to choose lang.

then better option is Put a global lang.

/etc/profile.d/lang.sh

and edit

LAN=

to put your desired lang.

if you have utf8 option thats better.

execute

locale

to get a list of available langs.


for example if want spanish system

LANG=es_ES.utf8


That need a reboot to take effect.

Last edited by USUARIONUEVO; 03-06-2016 at 08:18 PM.
 
Old 03-07-2016, 08:44 AM   #5
moonraven
LQ Newbie
 
Registered: Mar 2016
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by USUARIONUEVO View Post
browsers get the system locale to choose lang.

then better option is Put a global lang.

/etc/profile.d/lang.sh

and edit

LAN=

to put your desired lang.

if you have utf8 option thats better.

execute

locale

to get a list of available langs.


for example if want spanish system

LANG=es_ES.utf8


That need a reboot to take effect.

Running locale just shows en_US lang and while running locale -a shows all (?) lang.

In that file it says "export" before? Like this: "export LANG=en_US" ? Should i just remove "LANG=en_US" and replace it with my language?

I should add that KDE is using my lang but Chromium doesnt?
 
Old 03-07-2016, 09:03 AM   #6
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Quote:
Originally Posted by moonraven View Post
Running locale just shows en_US lang and while running locale -a shows all (?) lang.
Yes. That's useful to know which locales are available.

Just running
Code:
echo $LANG
gives you the current setting.

Quote:
In that file it says "export" before? Like this: "export LANG=en_US" ? Should i just remove "LANG=en_US" and replace it with my language?
Yes. For instance I have now "export LANG=fr_FR.utf8. The word "export" saves the setting for whatever you do. If you remove it, every time you open a terminal you will have to type LANG=... again.

Quote:
I should add that KDE is using my lang but Chromium doesnt?
The locale setting in KDE is specific and only valid for KDE itself and the KDE applications. But it is unknown from Chromium. To tell Chromium what is your preferred locale you use the LANG variable: Chromium will honor its value displaying the UI in the same language.

Last edited by Didier Spaier; 03-07-2016 at 09:31 AM.
 
Old 03-07-2016, 09:21 AM   #7
moonraven
LQ Newbie
 
Registered: Mar 2016
Posts: 4

Original Poster
Rep: Reputation: Disabled
[QUOTE=Didier Spaier;5511611][QUOTE=moonraven;5511605]Running locale just shows en_US lang and while running locale -a shows all (?) lang.
Quote:
Yes. That's useful ton know which locales are available.

Just running
Code:
echo $LANG
gives you the current setting.

Yes. For instance I have now "export LANG=fr_FR.utf8. The word "export" saves the setting for whatever you do. If you remove it, every time you open a terminal you will have to type LANG=... again.

The locale setting in KDE is specific and only valid for KDE itself and the KDE applications. But it is unknown from Chromium. To tell Chromium what is your preferred locale you use the LANG variable: Chromium will honor its value displaying the UI in the same language.
It worked, thanks. Now Chromium is in my language.
 
Old 03-08-2016, 06:43 PM   #8
CTM
Member
 
Registered: Apr 2004
Distribution: Slackware
Posts: 308

Rep: Reputation: 287Reputation: 287Reputation: 287
Quote:
Originally Posted by USUARIONUEVO View Post
browsers get the system locale to choose lang.
Not quite true: Chrome works this way, but Firefox still uses localisation strings that are maintained outside the Firefox source tree and must either be present at build-time (in which case Firefox will be built with support for that locale and only that locale), or installed as a language pack (in which case you'll be able to switch between that locale and en-US at run-time using an about:config setting).

If you want to go down the former route, export an appropriate value for $MOZLOCALIZE to mozilla-firefox.SlackBuild (which may or may not work, depending on how alert the mozilla-l10n maintainer is for your locale: this is because Mozilla changes its build system every five minutes, and the SlackBuild still uses an older method that doesn't automatically handle missing locale strings; eventually I'll get around to sending Pat a patch that fixes this). If you want to go down the latter route (protip: you absolutely want to go down the latter route), just download and install a language pack.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't install chromium-browser.tcz from App Browser in Tinycore-5.3-19 M.Tenenbaum Linux - Newbie 1 06-05-2014 11:18 AM
LXer: Chromium Browser talks with Telepathy (IM/Chat Library) to provide an in-browser IM client - LXer Syndicated Linux News 0 10-04-2011 10:00 AM
Chinese language pack installation help shiokie Linux - Newbie 1 08-15-2010 09:19 AM
Where to get language pack for kde4? Raynus Linux - Software 1 02-04-2009 11:37 PM
LXer: Running The Chromium Browser On Ubuntu 8.04 With CrossOver Chromium LXer Syndicated Linux News 0 10-09-2008 04:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration