CRM-10966 l10n: month/year label in credit card expiration fields are not localised

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.2.2
    • Fix Version/s: 4.4.6, 4.5
    • Component/s: None
    • Labels:

      Description

      The month/year fields in the credit card payment block are not translated.

      Looking at the .pot files, it seems that the extractor.php from l10n scripts does not extract the string from packages/HTML/QuickForm/date.php

      Mentioned on the forum:
      http://forum.civicrm.org/index.php/topic,26254.0.html

        Attachments

        1. create-pot-files.sh
          5 kB
          Stella Power
        2. extractor.php
          6 kB
          Stella Power

          Issue Links

            Activity

            [CRM-10966] l10n: month/year label in credit card expiration fields are not localised
            Stella Power added a comment -

            I have the same problem. Not only are the labels not available for translation, but neither are the Jan - Dec month names.

            Stella Power added a comment -

            First attempt at modifying extractor scripts to create a quickform.pot file.

            Stella Power added a comment -

            The above code allows you to translate the month etc labels. The month drop-down values of Jan-Dec are still untranslatable though

            Mathieu Lutfy added a comment -

            Thanks for the patch!

            My recommendation for the dropdowns is to change the date format to use the numeric month instead of name (Admin > Localisation > Date formats > Advanced). That's what is usually shown on the card anyway. (and I think civicrm should default to that format as well)

            Mathieu Lutfy added a comment -

            Applied the patch, and pushed the new strings to Transifex:
            https://github.com/civicrm/l10n/commit/288cc56de16e50d0deb798328ba5ff3d3e06c41a#diff-fe2272a5578c72882b7dd0f451ccd838

            This issue was on my backlog for a while.. sorry for the delay!

              People

              • Assignee:
                Mathieu Lutfy
                Reporter:
                Mathieu Lutfy

                Dates

                • Created:
                  Updated:
                  Resolved: