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) »
  • Discussion »
  • Internationalization and Localization (Moderators: Michał Mach, mathieu) »
  • Where in the interface?
Pages: [1]

Author Topic: Where in the interface?  (Read 1388 times)

Maurice Snellen

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
Where in the interface?
September 14, 2010, 02:25:43 am
I'm working on a revision of the Dutch translation and am having some difficulty finding items that are in the drupal-civicrm.po file.
Is there any guideline where I should be looking in the interface so I can see in what context certain strings are used, as the translation is dependent on that.
Also, even though I have (after first installing in English) added Dutch as a language to my Drupal test-installation on my laptop, the items in CiviGroup Roles Sync and CiviMember Roles Sync continue to be displayed in English when I'm quite sure that these strings are available in Dutch.

Michał Mach

  • Moderator
  • Ask me questions
  • *****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: Where in the interface?
September 14, 2010, 04:50:12 am
Hey,

The only idea that comes to my mind to "reverse engineer" strings to UI is to follow those steps:

1. Check the name of the file that given string was extracted from in po file (it's in comments)
2. Take a look at file contents (in many cases, this should suffice and you will be able to get the context from looking at the template)
3. If it's a template file, and you don't get enough information form looking at it, try to locate PHP file that uses given template.
4. Having the PHP file, take a look at xml menu files (CRM/Contribute/xml/Menu/, CRM/Event/xml/Menu, etc) and see what URL path it serves, than go to given path

It's a bit cumbersome and complicated process, but I don't have any ideas for different approach at the moment. Maybe other will suggest something more useful. Good news is that following first two steps are quite simple and should provide you with some answers.

Thx,
m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Internationalization and Localization (Moderators: Michał Mach, mathieu) »
  • Where in the interface?

This forum was archived on 2017-11-26.