LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-30-2012, 12:51 AM   #1
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Rep: Reputation: 210Reputation: 210Reputation: 210
drupal translation


Hello. I have installed drupal-7.16 successfully on a localhost running Vector Linux 7. I use lighttpd.

I installed a British language package, specifically drupal-5.20.en-gb.po, which I put in the profiles/standard translations directory. This seemed to work during the installation, but all words are spelled with en-US (IE, color"). Is there something else I need to do? I tried running various things in Home » Administration » Configuration » Regional and language (IE, the Translate interface), but this did nothing.

In case there was something wrong with the en-gb file, I also downloaded and installed the French language translation, to see if that could work. It did not.

All suggestions appreciated.

Mark
 
Old 10-30-2012, 06:30 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,055

Rep: Reputation: Disabled
Check $LANG. Is it set to en_GB or en_GB.utf8? If instead it is set to en_US<something> that could be the reason as gettext translates the text strings according to $LANG.

Furthermore the .mo file are used for the run-time translation, not the .po ones, so .po should be first compiled with the 'msgfmt' command if is not directly provided.
 
Old 10-31-2012, 10:47 AM   #3
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Original Poster
Rep: Reputation: 210Reputation: 210Reputation: 210
Quote:
Originally Posted by Didier Spaier View Post
Check $LANG. Is it set to en_GB or en_GB.utf8? If instead it is set to en_US<something> that could be the reason as gettext translates the text strings according to $LANG.
Code:
vector:/~
mark:$ echo $LANG
en_GB
vector:/~
mark:$
It still isn't working. I think the file is just too old. It's version 5.20, whereas Drupal is now 7.16. The French one, which I tried just to test, is version 7.16, and it worked fine when it was added at the beginning of the install using Drupal's provided install instructions (which failed when I tried with the en-GB one).

Quote:
Originally Posted by Didier Spaier View Post
Furthermore the .mo file are used for the run-time translation, not the .po ones, so .po should be first compiled with the 'msgfmt' command if is not directly provided.
Code:
vector:/~/slackpacks/drupal
mark:$ msgfmt drupal-5.20.en-gb.po
vector:/~/slackpacks/drupal
mark:$ ls
drupal-5.20.en-gb.po  messages.mo               smtpua-6.x-1.0-beta1.tar.gz
drupal-7.16/          mysqlsetup.txt
drupal-7.16.tar.gz    phpmailer-6.x-2.2.tar.gz
vector:/~/slackpacks/drupal
mark:$
Okay, so I did that, with it generating a "messages.mo" file, but I'm not sure what to do with it next.
 
Old 10-31-2012, 01:06 PM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,055

Rep: Reputation: Disabled
This page provides the instructions you need.
 
Old 11-03-2012, 02:11 PM   #5
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Original Poster
Rep: Reputation: 210Reputation: 210Reputation: 210
Quote:
Originally Posted by Didier Spaier View Post
This page provides the instructions you need.
From the link you provided:

Quote:
See if a translation of this Drupal version is available in your language of choice on the translation server. Not all languages are available for every version of Drupal, but if yours is available, follow these steps to install Drupal in your language:
The translation I was hoping for (en-GB) is not available for the latest Drupal (7.16). So, it's either Wordpress or Joomla, both of which do provide either en-CA or at least en-GB.
 
  


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
Curl to get word translation (wordnet) and translation from CLI? Xeratul Linux - General 3 05-24-2012 12:21 PM
.po translation (((X))) Linux - Newbie 5 03-28-2008 04:42 PM
Help with translation Thakowbbery General 2 01-18-2008 08:00 AM
translation hammam Linux - Software 2 05-20-2006 08:19 AM
translation? rebelcan Linux - General 1 07-28-2003 02:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:24 AM.

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