Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi all,
I set fom mu News
type the following pattern
Pubblicato il [d] [month] [yyyy]
(Pubblicato means Published in Italian)
The month won't be translated when I refresh my News pubblications.
How can I obltain month names translated in the current language the site is using?
Thanks
Comment | File | Size | Author |
---|---|---|---|
#11 | token_433486-2.patch | 7.87 KB | tobiasb |
#5 | token_433486.patch | 7.92 KB | tobiasb |
Comments
Comment #1
NancyDruMoving to the token queue.
Comment #2
fei CreditAttribution: fei commentedBump! I am having the same issues when trying to output semantic URLs in French. This is a highly desirable feature for the international Drupal community! (many thanks for any help)
Comment #3
gregglesBetter title.
Comment #4
d.sibaud CreditAttribution: d.sibaud commentedsame problem with [mon] month abbreviation token, can't find in translation if I search May or Jun or wathever abbreviated month
Comment #5
tobiasbhere is a patch for all translatable date-tokens for nodes & comments.
Comment #6
tobiasbComment #7
doomed CreditAttribution: doomed commentedHello Razor,
I see there is a new version for this module, of June 1st.
Is the patch included in it?
(i dont think it is, from the release notes: http://drupal.org/node/479142 )
Comment #8
doomed CreditAttribution: doomed commentedHmm problems...
One one site, i updated to Token v6.x-1.12 and the translation bug is still there.
On another site, running Token v6.x-1.11 i tried to apply the patch but got this error on the command prompt (Vista):
C:\Users\myuser\Desktop\Downloads\PATCHIN\token> patch < token_433486.patch
patching file token_comment.inc
Assertion failed: hunk, file ../patch-2.5.9-src/patch.c, line 354
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
And immediatly the patch.exe application crashed with Windows asking if i wanted to report to Microsoft (the usual).
Comment #9
tobiasbThe patch is from 27 May 2009. therefore outdated.
Comment #10
doomed CreditAttribution: doomed commentedWould you mind posting a patch for the latest version ?
I'm willing to test it.
Comment #11
tobiasbOk, reroll.
Comment #12
a.a.egoroff CreditAttribution: a.a.egoroff commentedThanks for this patch.:)
/Subscribing/
Comment #13
Danny_Joris CreditAttribution: Danny_Joris commentedIs this committed to a release? Can someone review this plz? This is an important addition to Drupal.
Comment #14
tomsm CreditAttribution: tomsm commentedYes, translation of tokens would be most welcome. I need to translate [type-name] for my automatic titles module.
Comment #15
Dave ReidPatch contains some unrelated changes to the [user] token.
Comment #16
Dave ReidMore general title
Also see #307520: Date formatting function
Comment #17
Dave ReidThis is now fixed with #307520: Date formatting function.