CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Language File?
Pages: [1]

Author Topic: Language File?  (Read 2028 times)

cma01

  • I’m new here
  • *
  • Posts: 26
  • Karma: 2
    • Legacy Marketing Services
Language File?
January 22, 2008, 03:12:47 pm
Is there a language file somewhere?

I need to change the verbage for some of the contribution pages to something else.

I am just finishing setting up a charity event on a Joomla/Civicrm installation.  I am using the membership feature for vendors and sponsors.  They get a listing on the site for a certain amount of time and I thought that would be the easiest way to do it.

web design kingwood  | Joomla development

geilhufe

  • I post frequently
  • ***
  • Posts: 293
  • Karma: 33
    • Social Source Software
Re: Language File?
January 23, 2008, 01:10:08 pm
You'll need to bone up on localization:
http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Localisation

Then create po files for your modifications.
Drupal and CiviCRM consulting, strategy and configuration
http://www.social-source.com/

cma01

  • I’m new here
  • *
  • Posts: 26
  • Karma: 2
    • Legacy Marketing Services
Re: Language File?
January 25, 2008, 10:33:38 am
Yes, but my question was where are those files?

Quote
CiviCRM localisation uses the standard OpenSource gettext approach. This means that all of the localisable strings (pieces of text) appearing anywhere in CiviCRM are kept in one 'POT' file (civicrm.pot), which serves as a 'template' for different 'PO' files (civicrm.po) - one for every language. This way, the fact that CiviCRM is localised into a given language is equivalent to the fact that there exists a civicrm.po file for the language in question.

Quote
Create a subdirectory in your CiviCRM installation under the l10n directory, named with the locale code for your translation (e.g. xx_XX).

I can follow directions, it would just be nice if the directions gave location of the starting point so I didn't have to look through every single folder in this massive component.
web design kingwood  | Joomla development

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Language File?
January 25, 2008, 10:41:53 am

1. Check http://sourceforge.net/project/showfiles.php?group_id=177914 and retrieve the localization files. (the one that is tagged with an l10n extension for your specific version/revision civicrm-1.9.12432-l10n.tar.gz)

2. Given the above, please fix the directions you were following :) The wiki is editable by the community

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Language File?
January 27, 2008, 09:23:10 pm
Actually, what you need to do is make a custom PO file with just the localisation changes you require (you can start by copying the appropriate POT file(s) from our repository.

After you make the file, say, like this:

Code: [Select]
msgid "Contributions"
msgstr "Gifts"

msgid "Memberships"
msgstr "Assignments"

msgid "Grants"
msgstr "Offers"

you need to save it (say, as a civicrm.po file), compile with msgfmt like this:

Code: [Select]
msgfmt -o civicrm.mo civicrm.po

and, finally, create a l10n/en_XX/LC_MESSAGES subdirectory and put the compiled MO file there. From now on, you should have a ‘en_XX’ option to choose on the localisation page in Administer CiviCRM.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Language File?

This forum was archived on 2017-11-26.