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

CommentFileSizeAuthor
#11 token_433486-2.patch7.87 KBtobiasb
#5 token_433486.patch7.92 KBtobiasb
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

NancyDru’s picture

Project: Submitted By » Token
Version: 6.x-1.2 » 6.x-1.11
Component: Miscellaneous » Code

Moving to the token queue.

fei’s picture

Bump! 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)

greggles’s picture

Title: [token] not translated » [d] [month] [yyyy] tokens not translated
Category: support » bug

Better title.

d.sibaud’s picture

same problem with [mon] month abbreviation token, can't find in translation if I search May or Jun or wathever abbreviated month

tobiasb’s picture

Status: Needs review » Active
FileSize
7.92 KB

here is a patch for all translatable date-tokens for nodes & comments.

tobiasb’s picture

Version: 6.x-1.11 » 6.x-1.x-dev
Status: Active » Needs review
doomed’s picture

Hello 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 )

doomed’s picture

Status: Active » Needs review

Hmm 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).

tobiasb’s picture

Title: [d] [month] [yyyy] tokens not translated » [d] [month] [yyyy] some date tokens are not translatable

The patch is from 27 May 2009. therefore outdated.

doomed’s picture

Would you mind posting a patch for the latest version ?

I'm willing to test it.

tobiasb’s picture

FileSize
7.87 KB

Ok, reroll.

a.a.egoroff’s picture

Thanks for this patch.:)
/Subscribing/

Danny_Joris’s picture

Is this committed to a release? Can someone review this plz? This is an important addition to Drupal.

tomsm’s picture

Yes, translation of tokens would be most welcome. I need to translate [type-name] for my automatic titles module.

Dave Reid’s picture

Status: Needs review » Needs work

Patch contains some unrelated changes to the [user] token.

Dave Reid’s picture

Title: [d] [month] [yyyy] some date tokens are not translatable » Use format_date() for translatable date tokens
Assigned: Unassigned » Dave Reid

More general title

Also see #307520: Date formatting function

Dave Reid’s picture

Status: Needs work » Fixed

This is now fixed with #307520: Date formatting function.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.