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) »
  • Header in eventlist does not translate
Pages: [1]

Author Topic: Header in eventlist does not translate  (Read 2056 times)

PaulVanLil

  • I’m new here
  • *
  • Posts: 26
  • Karma: 0
    • VanLil.be
  • CiviCRM version: civicrm 4.0.6
  • CMS version: Joomla 1.6
  • MySQL version: 5.1.52
  • PHP version: 5.3.3
Header in eventlist does not translate
February 09, 2011, 10:29:17 am
Hi,

I am working with Dutch translation.
When I list events on the front end, the title 'Current and Upcoming Events' does not translate.
I changed to French translation and the same happens, no translation.
I looked up the string 'Current and Upcoming Events' in the translex database and it does not appear.
I have looked for a profile used by list events, but cannot find one.

Any idea? Do I miss something?

Thanks for supporting.
Paul

PaulVanLil

  • I’m new here
  • *
  • Posts: 26
  • Karma: 0
    • VanLil.be
  • CiviCRM version: civicrm 4.0.6
  • CMS version: Joomla 1.6
  • MySQL version: 5.1.52
  • PHP version: 5.3.3
Re: Header in eventlist does not translate
February 11, 2011, 12:40:43 am
I am now so far that I understood that the form is called by Icalendar.tpl.
The header 'Current and Upcoming Events' of this template is not part of the translations.

Any idea how we can put this title in the translation list?

Thanks,
Paul

PaulVanLil

  • I’m new here
  • *
  • Posts: 26
  • Karma: 0
    • VanLil.be
  • CiviCRM version: civicrm 4.0.6
  • CMS version: Joomla 1.6
  • MySQL version: 5.1.52
  • PHP version: 5.3.3
Re: Header in eventlist does not translate
February 20, 2011, 08:32:24 am
A solution is to use 'replace words' in administrate/option groups

thoni56

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 1
  • CiviCRM version: 4.7.3
  • CMS version: Joomla 3.4.8
Re: Header in eventlist does not translate
February 22, 2011, 09:49:11 pm
So how are templates handled generally? If a user installs CiviCRM they will get a lot of templates (and option lists and other stuff) in English. Are they supposed to go through every one of them and replace the texts?

PaulVanLil

  • I’m new here
  • *
  • Posts: 26
  • Karma: 0
    • VanLil.be
  • CiviCRM version: civicrm 4.0.6
  • CMS version: Joomla 1.6
  • MySQL version: 5.1.52
  • PHP version: 5.3.3
Re: Header in eventlist does not translate
February 28, 2011, 03:24:13 am
Hello thoni56,

Civicrm is translated in several languages.

Check out: http://wiki.civicrm.org/confluence/display/CRMDOC33/CiviCRM+Localisation.

These translations are very well done. Nevertheless, some words are not translated for one reason or the other. In order to resolve this, it is possible to use the method specified above.

best regards,
Paul


thoni56

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 1
  • CiviCRM version: 4.7.3
  • CMS version: Joomla 3.4.8
Re: Header in eventlist does not translate
February 28, 2011, 12:07:36 pm
Thanks, Paul. I knew that. Especially since I'm one of the translators...

My question was rather "Is there a thought out strategy for how templates are supposed to be handled when an administrator installs a new language in his CiviCRM installation?"

There are a few possible answers to this question:

1) no
2) they must be duplicated and translated by hand by the administrator for each installation separately
3) they are supposed to be translated by the localization team, but so far we have no mechanism for distributing additional templates
4) ...

PaulVanLil

  • I’m new here
  • *
  • Posts: 26
  • Karma: 0
    • VanLil.be
  • CiviCRM version: civicrm 4.0.6
  • CMS version: Joomla 1.6
  • MySQL version: 5.1.52
  • PHP version: 5.3.3
Re: Header in eventlist does not translate
March 01, 2011, 12:50:01 am
Best would be to have them translated by the localization team, so the job is done only once.

But: it's up to the creator/administrator to define what should be translated and thus what the variable words are. At least he/she should provide a list with possible words to be translated.

I guess most of the developers work like that. And if they miss some words, than the civicrm solution 'replace words' is a nice work around.

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Header in eventlist does not translate
March 01, 2011, 06:39:34 am
Quote from: thoni56 on February 28, 2011, 12:07:36 pm
My question was rather "Is there a thought out strategy for how templates are supposed to be handled when an administrator installs a new language in his CiviCRM installation?"

There are a few possible answers to this question:

1) no
2) they must be duplicated and translated by hand by the administrator for each installation separately
3) they are supposed to be translated by the localization team, but so far we have no mechanism for distributing additional templates
4) ...

The answer is a bit of mix between 2 and 3 above. If the default templates have some strings wrapped in {ts}, then these strings will make their way to the PO files and then the language-specific sql/*_xx_YY.mysql database seed files will sport the localised versions for everyone.

The answer of how this should be ideally handled depends on how often a given template gets customised – if most install use the default template, then ideally we would have a template distribution mechanism and ask the translators to provide localised versions of the default templates. If, on the other hand, the templates get customised often, then it makes more sense to go with the current route of {ts}-tagging the common parts of the templates.

Thoughts?
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) »
  • Discussion »
  • Internationalization and Localization (Moderators: Michał Mach, mathieu) »
  • Header in eventlist does not translate

This forum was archived on 2017-11-26.