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) »
  • After upgrade text not translated
Pages: [1]

Author Topic: After upgrade text not translated  (Read 580 times)

r4zoli

  • I post occasionally
  • **
  • Posts: 88
  • Karma: 1
  • CiviCRM version: 4.7
  • CMS version: Wordpress
  • MySQL version: 5
  • PHP version: 5
After upgrade text not translated
September 22, 2013, 09:36:56 am
I updated my test server (under wordpress CMS) to 4.4beta3 version.
When update finished the final message text seems to me untranslated.
I checked in transifex, the Hungarian translation 100%, my assumption. This text not in the transifex, or other problem happens.

mathieu

  • Administrator
  • Ask me questions
  • *****
  • Posts: 620
  • Karma: 36
    • Work
  • CiviCRM version: 4.7
  • CMS version: Drupal
  • MySQL version: MariaDB 10
  • PHP version: 7
Re: After upgrade text not translated
September 23, 2013, 12:58:42 pm
The string seems to be correctly translated in Hungarian. The code in the template, however, is a bit wrong:

Code: [Select]
         
          {ts 1='http://civicrm.org/civicrm/profile/create?reset=1&gid=15'}
          This release was made possible by contributions from people like <strong>you</strong>. <a href="%1" target="_blank">Register your site</a> to join the community.
          {/ts}

It should be all on one line:

Code: [Select]
         
          {ts 1='http://civicrm.org/civicrm/profile/create?reset=1&gid=15'}This release was made possible by contributions from people like <strong>you</strong>. <a href="%1" target="_blank">Register your site</a> to join the community.{/ts}

I'm guessing that, at run-time, the newlines from Smarty may be interpreted differently, so it doesn't get translated correctly.

I could not test, but fixing the "ts" usage always helps, so I created a pull-request:
https://github.com/civicrm/civicrm-core/pull/1678

If you would like to test locally, you would also have to fix your civicrm.mo file (msgunfmt civicrm.mo -o civicrm.po; fix the string to remote the newlines before/after; msgfmt civicrm.po -o civicrm.mo).
CiviCamp Montréal, 29 septembre 2017 | Co-founder / consultant / turn-key CiviCRM hosting for Quebec/Canada @ SymbioTIC.coop

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Internationalization and Localization (Moderators: Michał Mach, mathieu) »
  • After upgrade text not translated

This forum was archived on 2017-11-26.